*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette — "Лесной туман" */
  --color-white:   #F6F8F5;
  --color-beige:   #E8EDE6;
  --color-mid:     #D4DDD2;
  --color-dark:    #1E2B1D;
  --color-accent:  #6B7F6A;
  --color-text:    #2A3829;
  --color-muted:   #8A9E88;

  /* Typography */
  --font-display: 'Raleway', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-width: 1440px;
  --side-pad:  64px;
}

/* ═══════════════════════════════════════════════
    TAG (универсальный стиль)
════════════════════════════════════════════════ */
/* Этот блок отвечает за все теги на светлом фоне */
.tag {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tag__line {
    display: block;
    width: 36px;
    height: 1px;
    background-color: var(--color-muted); /* Использует ваш #8A9E88 */
    flex-shrink: 0;
}

.tag__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--color-muted); /* Использует ваш #8A9E88 */
    text-transform: uppercase;
}

/* Специальное уточнение для темных блоков (как Advantages) */
.advantages .tag__line {
    background-color: rgba(255, 255, 255, 0.7);
    border: none; /* Убираем возможные рамки */
}

.advantages .tag__text {
    color: rgba(255, 255, 255, 0.7);
    background: transparent; /* ПРИНУДИТЕЛЬНО убираем фон/обводку у текста */
    border: none;            /* Убираем рамки */
    outline: none;           /* Убираем контур выделения */
}

html {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--color-white);
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }


/* ═══════════════════════════════════════════════
   HEADER
   Specs: W 1440 | H 80 | BG #F6F8F5 | border-bottom 1px #D4DDD2
════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 80px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-mid);
  overflow: hidden;
}

.header__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  /* Logo at left 64px, CTA at right 64px */
  padding: 0 0 0 var(--side-pad);
  display: flex;
  align-items: center;
  gap: 0;           /* controlled individually via margins */
}


/* ── Logo ──────────────────────────────────────
   Size: 53×60px (overflows 80px height slightly
   but matches Figma — logo is slightly taller)
   Left edge: 64px (set by parent padding)
─────────────────────────────────────────────── */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Logo is 60px tall, header 80px — visually centred */
}

.header__logo img {
  width: 53px;
  height: 60px;
  object-fit: contain;
}


/* ── Navigation ────────────────────────────────
   Gap logo→"О нас": 411px
   Between nav items: 40px
   Font: Plus Jakarta Sans Regular 13px, color #2A3829, spacing 0.12%
─────────────────────────────────────────────── */
.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 411px;   /* spec: offset from logo to first item */
  flex-shrink: 0;
}

.header__nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.0012em;  /* 0.12% */
  color: var(--color-text);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.header__nav-link:hover { color: var(--color-dark); }
.header__nav-link:hover::after { transform: scaleX(1); }


/* ── CTA Button ────────────────────────────────
   W: 40px | H: 100% (fills header height 80px)
   BG: #1E2B1D | text vertical
   Right edge: 64px from container edge
   Gap "Как работаем"→button: 333px
─────────────────────────────────────────────── */
.header__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* ИСПРАВЛЕНИЕ: */
  margin-left: auto; /* Это вытолкнет кнопку к правому краю */
  margin-right: var(--side-pad); /* Ваши 64px от правого края */

  /* Уточнение размеров из ТЗ */
  width: 130px; /* В вашем сниппете стоит 40px, а по ТЗ должно быть 130px */
  height: 40px; /* Высота кнопки */
  align-self: center; /* Центрируем кнопку по вертикали внутри хедера */

  background: var(--color-dark);
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.header__cta:hover { background: var(--color-accent); }

.header__cta-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--color-white);
  
  /* ИСПРАВЛЕНИЕ: Удаляем вертикальный режим и повороты */
  writing-mode: horizontal-tb; /* Стандартный горизонтальный текст */
  white-space: nowrap;
  transform: none;            /* Отменяем поворот */
  padding: 0;                 /* Сбрасываем лишние отступы, так как центровка будет за счет родителя */
  
  /* Текст должен быть по центру */
  text-align: center;
}
/* Основная секция */
.contacts-section {
    width: 100%;
    min-height: 100vh;
    background-color: #1E2B1D; /* Ваш фирменный темный цвет */
    padding: 120px 0 64px 0;
    box-sizing: border-box;
    color: #F6F8F5;
}

.contacts__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    justify-content: space-between;
    gap: 80px; /* Отступ между формой и картой */
}

/* Левая колонка (Форма) */
.contacts__column-left {
    flex: 1;
    max-width: 560px;
}

/* Стили тега внутри темного блока */
.contacts-section .tag {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contacts-section .tag__line {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.35);
    margin-right: 12px;
}

.contacts-section .tag__text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* Заголовок и подзаголовок */
.contacts__title {
    margin-bottom: 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 46px;
    line-height: 1.2;
    color: #F6F8F5;
}

.accent-italic {
    font-weight: 200;
    font-style: italic;
    color: #6B7F6A;
}

.contacts__subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 40px;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 17px 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #FFFFFF;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.form-textarea {
    height: 100px;
    resize: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Кнопка */
.cta__button {
    width: 100%;
    height: 56px;
    background-color: #6B7F6A;
    color: #F6F8F5;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0.16em;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ff4d4d; /* Красная подсветка, если введено не по формату */
}
.cta__button:hover {
    background-color: #7c927b;
}

.cta__policy {
    margin-top: 15px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* Правая колонка (Инфо и Карта) */
.contacts__column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    margin-bottom: 40px;
    margin-top: 80px; /* Чтобы выровнять с началом формы */
    align-items: start;
}

.info-item .info-label {
    color: #6B7F6A;
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.info-item .info-text {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #F6F8F5;
}

/* Ссылки в блоке контактной информации */
.info-link {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #F6F8F5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #6B7F6A;
}

@media (max-width: 768px) {
    .info-link {
        text-underline-offset: 3px;
    }
}

/* Контейнер для карты */
.map-container {
    width: 100%;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    filter: grayscale(1) invert(0.9) contrast(1.2); /* "Ночная" стильная карта */
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: grayscale(0) invert(0); /* Карта становится обычной при наведении */
}


.footer {
    width: 100%;
    height: 320px;
    background-color: #151F14;
    padding-top: 40px;
    position: relative;
    box-sizing: border-box;
    color: #FFFFFF;
    margin-top: 0;
}

.footer__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    position: relative;
}

/* Левая часть */
.footer__brand {
    width: 344px; /* Чтобы следующая колонка началась с 408px (64+344) */
}

.footer__logo {
    width: 53px;
    height: 60px;
    margin-bottom: 10px;
}

.footer__description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.35); /* Насыщенность 35% */
}

/* Навигация и колонки */
.footer__nav {
    display: flex;
    flex-grow: 1;
}

.footer__col {
    /* Фиксированные отступы согласно ТЗ */
    width: 344px; /* Расстояние между колонками Продукция и Компания (752-408) */
}

/* Последняя колонка "Контакты" по ТЗ имеет тот же отступ от левого края, 
что и первая, но в дизайне обычно они распределены. 
Если строго по ТЗ (408px), то используем: */
.footer__col:nth-child(1),
.footer__col:nth-child(3) { width: 344px; } 

.footer__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.25); /* Насыщенность 25% */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li, .footer__link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); /* Насыщенность 50% */
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #FFFFFF;
}

/* Нижняя часть */
.footer__divider {
    position: absolute;
    top: 218px; /* 258px от верха фрейма минус 40px padding-top */
    left: 64px;
    width: 1312px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08); /* Насыщенность 8% */
}

.footer__copy {
    position: absolute;
    top: 235px; /* 275px от верха фрейма минус 40px padding-top */
    left: 64px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2); /* Насыщенность 20% */
}
/* Мобильное меню — скрыто по умолчанию */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: #F6F8F5;
    border-top: 1px solid #E8EDE6;
    z-index: 999;
    flex-direction: column;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.3);
}

.mobile-menu__overlay.is-active {
    display: block;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-menu__link {
    padding: 16px 0;
    border-bottom: 1px solid #E8EDE6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #2A3829;
    text-decoration: none;
}

.mobile-menu__cta {
    display: block;
    margin: 16px 20px;
    background: #1E2B1D;
    color: #F6F8F5;
    text-align: center;
    padding: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

/* Бургер-кнопка — скрыта на десктопе */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1E2B1D;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.header__burger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .header {
        height: 56px;
    }

    .header__inner {
        padding: 0 20px;
        justify-content: space-between;
    }

    .header__logo img {
        width: 36px;
        height: 40px;
    }

    /* Скрываем десктопную навигацию и кнопку */
    .header__nav,
    .header__cta {
        display: none !important;
    }

    /* Показываем бургер */
    .header__burger {
        display: flex;
    }
}
/* ── Чекбокс согласия на обработку данных ── */
.form-group--checkbox {
  margin: 8px 0 24px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--color-mid);
  border-radius: 3px;
  position: relative;
  transition: all 0.2s ease;
}

.form-checkbox input:checked + .form-checkbox__box {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.form-checkbox input:checked + .form-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox input:focus-visible + .form-checkbox__box {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-checkbox__text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.form-checkbox__link {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-muted);
  text-underline-offset: 2px;
}

.form-checkbox__link:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}
