/* ==========================================================================
   Бетон-Архангельск — общие стили
   ========================================================================== */

:root {
  --c-text: #111111;
  --c-muted: #5f6368;
  --c-hint: #8a8f96;
  --c-line: #e3e5e8;
  --c-border: #d5d8dc;
  --c-bg: #ffffff;
  --c-soft: #f3f4f6;
  --c-accent: #ffd60a;
  --c-accent-hover: #f5c800;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --container: 1208px;
  --container-wide: 1368px;

  --font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 1280px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: calc(var(--container-wide) + 48px);
}

/* сетка карточек + их внутренний отступ 36px: шапка и hero на главной */
.container--hero {
  max-width: calc(var(--container-wide) + 48px);
  padding: 0 60px;
}

/* Заглушки под изображения
   ========================================================================== */

.ph {
  position: relative;
  background-color: #e9ecef;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.45) 0 12px,
    transparent 12px 24px
  );
}

.ph::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  bottom: 16px;
  padding: 4px 10px;
  font-size: 12px;
  color: #6c7278;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
}

/* Кнопки и ссылки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn .icon {
  font-size: 18px;
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-text);
}

.btn--accent:hover {
  background: var(--c-accent-hover);
}

.btn--sm {
  height: 36px;
  padding: 0 20px;
  font-size: 15px;
}

.btn--sm .icon {
  font-size: 16px;
}

.btn--lg {
  height: 50px;
  padding: 0 36px;
  border-radius: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
  border-radius: 10px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.link-more span {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.link-more .icon {
  font-size: 16px;
  transition: transform 0.2s;
}

.link-more:hover .icon {
  transform: translateX(3px);
}

/* Шапка
   ========================================================================== */

.header {
  position: relative;
  z-index: 10;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 86px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo__img {
  display: block;
  width: 52px;
  height: 52px;
}

/* меню по центру шапки — не зависит от ширины блоков слева и справа */
.nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 40px;
  transform: translateX(-50%);
}

.nav a {
  font-size: 14px;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.6;
}

.header__phone {
  margin-left: auto;
  margin-right: 24px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header__phone:last-child {
  margin-right: 0;
}

/* Подвал
   ========================================================================== */

.footer {
  padding: 22px 0 28px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__brand {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.footer__brand span {
  display: block;
  font-weight: 400;
  color: var(--c-muted);
}

.footer__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.footer__item .icon {
  font-size: 16px;
}

.footer__item--muted {
  font-size: 13px;
  color: var(--c-muted);
}

.footer__item--muted .icon {
  color: var(--c-text);
}

.footer__site {
  font-size: 14px;
  color: var(--c-muted);
}

/* ==========================================================================
   Главная
   ========================================================================== */

.hero {
  position: relative;
  width: calc(100% - 48px); /* боковые поля как у .container */
  max-width: 1600px;
  height: 616px;
  margin: -86px auto 0;
  padding-top: 86px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 28px 28px;
  background-color: #dfe7ef;
  /* светлая вуаль слева — под текстом */
  --hero-veil: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0,
    rgba(255, 255, 255, 0.62) 40%,
    rgba(255, 255, 255, 0.25) 56%,
    rgba(255, 255, 255, 0) 68%
  );
  background-image: var(--hero-veil), url("../img/hero.jpg");
  background-image: var(--hero-veil), image-set(
    url("../img/hero.webp") type("image/webp"),
    url("../img/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  /* ~50% по горизонтали: при сужении экрана картинка обрезается с обеих сторон,
     и миксер смещается вместе с центрированным контентом, а не наезжает на текст */
  background-position: 55% 80%;
  background-repeat: no-repeat;
}

/* та же сетка и внутренний отступ, что у карточек .feature —
   текст hero стоит на одной вертикали с текстом карточек */
.hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 36px;
}

.hero__content {
  padding-top: 104px;
  max-width: 700px;
}

.hero__label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.hero__title {
  margin-top: 18px;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__text {
  margin-top: 20px;
  font-size: 22px;
  color: #3a3f45;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 26px;
}

/* Цифры */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1170px;
  margin: 0 auto;
  padding: 32px 0 34px;
}

.stats__item {
  text-align: center;
  padding: 0 20px;
}

.stats__item + .stats__item {
  border-left: 1px solid var(--c-line);
}

.stats__value {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stats__caption {
  margin-top: 12px;
  font-size: 17px;
  color: #3a3f45;
}

/* Карточки */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 228px;
  padding: 38px 36px 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  --feature-veil: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0,
    rgba(255, 255, 255, 0.45) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  background-color: #e9ecef;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.feature__bg--lab {
  background-image: var(--feature-veil), url("../img/feature-lab.jpg");
  background-image: var(--feature-veil), image-set(
    url("../img/feature-lab.webp") type("image/webp"),
    url("../img/feature-lab.jpg") type("image/jpeg")
  );
}

.feature__bg--pump {
  background-image: var(--feature-veil), url("../img/feature-pump.jpg");
  background-image: var(--feature-veil), image-set(
    url("../img/feature-pump.webp") type("image/webp"),
    url("../img/feature-pump.jpg") type("image/jpeg")
  );
}

.feature > :not(.feature__bg) {
  position: relative;
  z-index: 1;
}

.feature__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.feature__text {
  margin-top: 10px;
  font-size: 17px;
  color: #3a3f45;
}

.feature .link-more {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Страница заявки
   ========================================================================== */

.page-head {
  padding: 36px 0 28px;
}

.breadcrumbs {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumbs a:hover {
  color: var(--c-text);
}

.page-title {
  margin-top: 8px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-lead {
  margin-top: 4px;
  font-size: 20px;
  color: var(--c-muted);
}

.order {
  display: grid;
  grid-template-columns: 1fr 356px;
  gap: 32px;
  align-items: start;
  padding-bottom: 8px;
}

/* Форма */

.form-card {
  padding: 36px 44px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.form-section + .form-section {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--c-line);
}

.form-section__title {
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.form-section > .form-grid + .form-grid,
.form-section > .form-grid + .field,
.form-section > .field + .field,
.form-section > .segmented + .form-grid {
  margin-top: 20px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.field__label span {
  color: var(--c-hint);
}

.field__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-muted);
}

.control {
  position: relative;
  display: flex;
  align-items: center;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--c-hint);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #b9bdc2;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.45);
}

.select {
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

.select:invalid {
  color: var(--c-hint);
}

.select option {
  color: var(--c-text);
}

.textarea {
  height: 58px;
  min-height: 44px;
  padding: 12px 16px;
  resize: vertical;
}

.control__icon {
  position: absolute;
  font-size: 18px;
  pointer-events: none;
}

.control__icon--start {
  left: 16px;
}

.control__icon--end {
  right: 16px;
}

.control--icon-start .input {
  padding-left: 46px;
}

/* Скрываем нативную иконку у date/time — своя иконка слева */
.input::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

/* Переключатель */

.segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--c-soft);
  border-radius: var(--radius-pill);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  width: 176px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.segmented input:checked + label {
  background: var(--c-accent);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--c-text);
  outline-offset: 1px;
}

/* Чекбокс */

.checkbox {
  display: flex;
  gap: 16px;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
}

.checkbox__box {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #b9bdc2;
  border-radius: 4px;
  background: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.checkbox__box .icon {
  position: absolute;
  inset: 2px;
  width: 14px;
  height: 14px;
  stroke-width: 3;
  opacity: 0;
}

.checkbox input:checked + .checkbox__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.checkbox input:checked + .checkbox__box .icon {
  opacity: 1;
}

.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

.checkbox__text {
  font-size: 14px;
  line-height: 20px;
}

.checkbox__text small {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--c-muted);
}

.checkbox__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox--sm .checkbox__text {
  font-size: 12px;
}

.field + .checkbox,
.form-grid + .checkbox {
  margin-top: 22px;
}

.form-submit {
  margin-top: 26px;
}

.form-note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--c-muted);
}

/* Боковая карточка */

.help-card {
  padding: 34px 32px 34px;
  background: var(--c-soft);
  border-radius: var(--radius);
}

.help-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.help-card__text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--c-muted);
}

.help-card__phones {
  margin-top: 12px;
}

.help-card__phones a {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.help-card__sep {
  height: 1px;
  margin: 22px 0 20px;
  background: #d9dce0;
}

.help-card__subtitle {
  font-size: 16px;
  font-weight: 700;
}

.help-card__caption {
  margin-top: 6px;
  font-size: 16px;
  color: var(--c-muted);
}
