*, *::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); 
    flex-shrink: 0;
}

.tag__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--color-muted);  
    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;
}
/* Базовые настройки секции */
.products {
  width: 100%;
  /*min-height: 900px; /* Изменено с height на min-height для гибкости */
  background-color: #E8EDE6;
  position: relative;
  margin: 0 auto;
  border-bottom: 1px solid #D4DDD2;
  box-sizing: border-box;
  padding-bottom: 100px; /* Отступ снизу для красоты */
  display: flex;       /* Добавлено для порядка */
  flex-direction: column;
}

.products__container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Тег (ПРОДУКЦИЯ) */
.products__tag {
  position: absolute;
  top: 64px;
  left: 64px;
  display: flex;
  align-items: center;
}

.tag__line {
  width: 36px;
  height: 1px;
  background-color: var(--color-muted);
  margin-right: 12px;
}

.tag__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--color-muted);  
    text-transform: uppercase;
}

/* Заголовок */
.products__title {
  position: absolute;
  top: 104px;
  left: 64px;
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 46px;
  line-height: 1.1;
  color: #1E2B1D;
}

.accent-italic {
  font-weight: 200;
  font-style: italic;
  color: #6B7F6A;
}

/* Кнопки фильтрации (Добавлено для управления в MPA) */
.products__filters {
  position: absolute;
  top: 112px;
  left: 550px; /* Позиционируем справа от заголовка */
  display: flex;
  gap: 12px;
}

.filter-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #D4DDD2;
  padding: 10px 20px;
  color: #6B7F6A;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #1E2B1D;
  color: #1E2B1D;
}

.filter-btn.active {
  background-color: #1E2B1D;
  color: #FFFFFF;
  border-color: #1E2B1D;
}

/* Ссылка (СМОТРЕТЬ ПОРТФОЛИО) */
.products__portfolio-link {
  position: absolute;
  top: 112px;
  right: 64px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #2A3829;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #D4DDD2;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.products__portfolio-link:hover {
  color: #1E2B1D;
  border-bottom-color: #1E2B1D;
  padding-right: 5px;
}

/* Сетка карточек */
.products__grid {
  position: relative;
  margin-top: 220px; /* Опустили чуть ниже из-за фильтров */
  left: 64px;
  display: flex;
  flex-wrap: wrap; /* Чтобы карточки могли переноситься, если их станет много */
  gap: 24px;
  width: calc(100% - 128px);
}

/* Карточка товара */
.product-card {
  width: 420px; /* Немного уменьшил для лучшего входа в сетку */
  height: 548px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease; /* Для работы filter.js */
}

.product-card__visual {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(180deg, rgba(30, 43, 29, 0) 40%, rgba(30, 43, 29, 0.8) 100%);
  z-index: 2;
}

.product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.05); /* Легкий зум при наведении */
}

/*.product-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #FFFFFF;
  z-index: 4;
  transition: all 0.3s ease;
}

.product-card:hover .product-card__arrow {
  background-color: #FFFFFF;
  color: #1E2B1D;
  border-color: #FFFFFF;
}*/

/* Инфо внутри карточки */
.product-card__info {
  position: absolute;
  left: 30px;
  bottom: 40px;
  z-index: 3;
}

.product-card__name {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #FFFFFF;
}

.product-card__sub {
  margin: 8px 0 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}


.footer {
    width: 100%;
    height: 320px;
    background-color: #151F14;
    padding-top: 40px;
    position: relative;
    box-sizing: border-box;
    color: #FFFFFF;
    margin-top: 0;
    clear: both;
}

.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;
    }
}
