/* ═══════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════ */
*, *::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: clip;
}

.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;
}
/* Используем ваши переменные или подставляем значения напрямую */
:root {
    --color-beige: #E8EDE6;
    --color-dark: #1E2B1D;
    --color-accent: #6B7F6A;
    --color-muted: rgba(30, 43, 29, 0.6);
    --color-white: #FFFFFF;
    --max-width: 1440px;
    --side-pad: 64px;
    --font-display: 'Raleway', sans-serif;
}

/* ── Block: About ───────────────────────────── */
.about {
  background-color: #F6F8F5;
  width: 100%;
  padding-bottom: 80px;
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 680px;
  display: flex;
  padding: 0 var(--side-pad); /* 64px */
  align-items: flex-start;
}

.about__content {
  width: 400px;
  padding-top: 64px;
}

.about__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 46px;
  line-height: 1.2;
  color: var(--color-dark);
  margin-top: 32px;
  margin-bottom: 70px;
}

.about__title-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  color: var(--color-accent);
}

.about__description p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 24px;
  width: 366px;
}

/* Сетка со статистикой */
.about__grid {
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, 307px);
  gap: 20px; 
  background-color: transparent;
  margin-top: 64px;
}

.stat-card {
  width: 307px;
  height: 275px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(30, 43, 29, 0.05);
  border-radius: 2px; /* Совсем легкое скругление для премиального вида */
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px); /* Интерактив при наведении */
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7F6A;
  line-height: 1.4;
}

.reviews {
    overflow: clip; 
    width: 100%;
    max-width: 100%;
    min-height: 620px;
    background-color: #E8EDE6;
    padding: 64px 0;
    position: relative;
    border-bottom: 1px solid #D4DDD2;
    box-sizing: border-box;
}

.reviews-slider {
    width: 100%;
    overflow: hidden; /* Слайды должны скрываться при прокрутке */
    padding-bottom: 20px;
}

.reviews .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    position: relative;
    height: 100%;
    isolation: isolate;
}

/* Шапка блока с заголовком и управлением */
.reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрируем кнопки по вертикали относительно текста заголовка */
    margin-top: 34px;
    margin-bottom: 50px;
    width: 100%; /* Шапка должна занимать всю доступную ширину */
    position: relative;
    z-index: 20;
    flex-wrap: nowrap; 
    gap: 20px;
}

.reviews__title {
    max-width: 600px; /* Текст не будет растягиваться шире, чем нужно */
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 46px;
    line-height: 1.1; /* Чуть поджали строки для эстетики */
    color: #1E2B1D;
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
}

.reviews__title span {
    font-weight: 200; /* ExtraLight */
    font-style: italic;
    color: #6B7F6A;
}

/* Группа кнопок навигации (Слайдер) */
.reviews__controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0; /* ГАРАНТИРУЕТ, ЧТО КНОПКИ НЕ ПРОПАДУТ! */
    min-width: 100px;
    margin-left: 20px; /* Минимальный отступ от заголовка на всякий случай */
    position: relative;
    z-index: 50;
    isolation: isolate; 
    pointer-events: all;
}

.reviews__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all !important;
    cursor: pointer;
    border-radius: 0; /* Если нужны четкие квадраты */
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.reviews__btn--prev {
    background-color: #E8EDE6;
    border: 1px solid #D4DDD2;
    color: #1E2B1D;
}

.reviews__btn--next {
    background-color: #1E2B1D;
    color: #FFFFFF;
}

.reviews__btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Сетка отзывов */
.reviews__grid {
    /*display: flex;
    /* Увеличиваем отступ между прямоугольниками до 80px */
    /*gap: 80px; */
    position: relative;
    justify-content: flex-start; /* Выравнивание от левого края по ТЗ */
}

.review-card {
    /* Ширина карточки 384px по ТЗ */
    width: 100%; 
    height: 340px;
    background-color: #F6F8F5;
    padding: 32px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Чтобы карточки не сжимались при больших отступах */
    flex-shrink: 0; 
    box-shadow: 0 10px 30px rgba(30, 43, 29, 0.03);
}

/* Кавычка */
.review-card__quote {
    position: absolute;
    top: 14px;
    left: 32px;
    width: 26px;
    height: 35px;
    font-family: 'Raleway', sans-serif;
    font-weight: 200; /* ExtraLight */
    font-size: 48px;
    letter-spacing: 0%;
    color: #D4DDD2;
    line-height: 1;
}

/* Текст отзыва */
.review-card__text {
    margin-top: 54px; /* 14px отступ кавычки + 21px отступ текста + высота кавычки */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; /* Light */
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0%;
    color: #8A9E88;
    flex-grow: 1;
}

/* Линия-разделитель */
.review-card__divider {
    width: calc(100% - 64px);
    height: 1px;
    background-color: #D4DDD2;
    position: absolute;
    bottom: 80px;
    left: 32px;
}

/* Футер карточки (Аватар + Имя) */
.review-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    background-color: #D4DDD2;
    border-radius: 50%;
    flex-shrink: 0;
}

.review-card__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 11px;
    letter-spacing: 0%;
    color: #1E2B1D;
    margin: 0 0 4px 0;
}

.review-card__product {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; /* Light */
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #8A9E88;
}

.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;
    }
}
