/* ============================================================
   BELORPOSTEL — ВАРИАНТ 2: «ЛЁН И ШАЛФЕЙ»
   Прохладный greige + приглушённая зелень, острая геометрия.
   Разметка и JS не меняются. Классы, id и имя анимации fadeIn сохранены.
============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
  /* --- Базовые (имена сохранены — используются в inline-стилях HTML) --- */
  --primary: #55705b; /* шалфей */
  --primary-dark: #34473a; /* хвоя */
  --accent: #4c6552; /* CTA — глубокая зелень */
  --bg: #f1efea; /* лён */
  --white: #ffffff;
  --text: #23282a; /* графитовые чернила */

  /* --- Расширенная палитра --- */
  --accent-soft: #d5ded4; /* светлый шалфей */
  --accent-dark: #3a4e40; /* hover */
  --surface: #ffffff;
  --surface-warm: #e9e6df; /* вторичные плашки */
  --muted: #767e7b;
  --line: #d9d5cc; /* тонкие рамки */
  --line-strong: #b9b4a9;
  --dark: #21262a; /* футер */
  --sale: #b05442; /* глина — скидки */

  /* --- Тени: почти нет, вся глубина на рамках --- */
  --sh-sm: none;
  --sh-md: 0 2px 12px rgba(35, 40, 42, 0.06);
  --sh-lg: 0 10px 30px rgba(35, 40, 42, 0.1);

  /* --- Острая геометрия --- */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
  --r-pill: 3px;

  --font-head: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Manrope", "Montserrat", -apple-system, sans-serif;
  --tr: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- Заголовки --- */
h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 34px;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 18px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--accent);
}

/* ============================================================
   HEADER
============================================================ */
header {
  background: var(--bg);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  padding: 8px 18px;
  border: 1px solid var(--primary-dark);
  border-radius: var(--r-sm);
  background: transparent;
}

.phone-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--tr);
}

.phone-btn:hover {
  background: var(--accent-dark);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: url("../images/main.jpg") center/cover no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 34, 30, 0.66) 0%,
    rgba(28, 34, 30, 0.46) 50%,
    rgba(28, 34, 30, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 22px;
  max-width: 780px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  animation: fadeIn 0.7s ease both;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero p {
  font-size: clamp(14px, 1.9vw, 17px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-btn {
  background: var(--accent);
  color: #fff;
  padding: 17px 46px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  transition:
    background var(--tr),
    color var(--tr),
    border-color var(--tr);
}

.hero-btn:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   INFO / ХАРАКТЕРИСТИКИ
============================================================ */
.info-section {
  padding: 64px 0 56px;
  background: var(--surface);
  scroll-margin-top: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-grid {
  display: flex;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.specs-info {
  width: 100%;
  max-width: 640px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 30px 32px;
  text-align: center;
}

.info-img img {
  display: none;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 14px;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list li span:first-child {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.specs-list li span:last-child {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.fabric-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 22px;
  border: none;
}

/* ============================================================
   РАЗМЕРЫ / ТАБЫ
============================================================ */
.sizes-section {
  background: transparent;
  padding: 56px 0 8px;
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.size-tab {
  font-family: var(--font-body);
  padding: 12px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  margin-left: -1px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.size-tab:first-child {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  margin-left: 0;
}

.size-tab:last-child {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.size-tab:hover {
  color: var(--primary-dark);
  background: var(--surface-warm);
}

.size-tab.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.size-content {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 0.4s;
}

.size-content.active {
  display: block;
}

.size-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 26px 28px;
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.size-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.size-item strong {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ============================================================
   КАТАЛОГ
============================================================ */
.catalog {
  padding: 40px 0 72px;
  background: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  position: relative;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    border-color var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

/* Бейдж скидки — прямоугольный ярлык */
.badge,
.badge-discount {
  position: absolute;
  top: 0;
  left: 14px;
  background: var(--sale);
  color: #fff;
  padding: 8px 12px 7px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: none;
  border: none;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 18px 16px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.p-stock {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2px 0 0;
}

.p-stock b {
  color: var(--sale);
  font-weight: 800;
}

.p-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.old {
  color: #a8a49b;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 14px;
}

.now {
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.buy-btn {
  font-family: var(--font-body);
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  border-radius: var(--r-sm);
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  transition:
    background var(--tr),
    color var(--tr);
}

.buy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.buy-btn:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ============================================================
   ПРЕИМУЩЕСТВА
============================================================ */
.advantages-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.adv-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  background: transparent;
  border-right: 1px solid var(--line);
  transition: background var(--tr);
}

.adv-item:last-child {
  border-right: none;
}

.adv-item:hover {
  background: var(--surface-warm);
}

.adv-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--r-sm);
}

.adv-text h4 {
  font-family: var(--font-body);
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}

.adv-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   КАК ЗАКАЗАТЬ
============================================================ */
.steps-section {
  padding: 64px 0 72px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
  text-align: center;
}

.step-item {
  position: relative;
}

@media (min-width: 900px) {
  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: var(--line-strong);
    z-index: 0;
  }
}

.step-icon {
  width: 72px;
  height: 72px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  transition:
    background var(--tr),
    color var(--tr),
    border-color var(--tr);
}

.step-item:hover .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   BOTTOM HERO
============================================================ */
.bottom-hero {
  background: url("../images/main.jpg") center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.bottom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(33, 45, 37, 0.76) 0%,
    rgba(28, 34, 30, 0.84) 100%
  );
}

.bottom-content {
  position: relative;
  z-index: 2;
  padding: 40px 22px;
  max-width: 720px;
}

.bottom-content h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.bottom-content p {
  font-size: clamp(14px, 1.9vw, 17px);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
}

.bottom-btn {
  background: transparent;
  color: #fff;
  padding: 17px 46px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  transition:
    background var(--tr),
    color var(--tr),
    border-color var(--tr);
}

.bottom-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer,
footer {
  background: var(--dark);
  padding: 56px 0 22px;
  border-top: 2px solid var(--primary);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 44px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-icon {
  font-size: 28px;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.footer-logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-title {
  font-family: var(--font-body);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-company {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
  margin: 6px 0;
  padding: 2px 0;
}

.footer-link {
  color: #a9c0ad;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Документы */
.footer-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-docs-list li {
  margin-bottom: 6px;
}

.footer-doc-link {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    color 0.2s,
    padding-left 0.2s;
}

.footer-doc-link i {
  color: var(--primary);
  font-size: 13px;
  width: 18px;
  text-align: center;
}

.footer-doc-link:hover {
  color: #fff;
  padding-left: 6px;
}

/* Юридический блок */
.footer-legal {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.footer-legal p {
  margin: 5px 0;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  text-align: center;
  padding-top: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  margin: 5px 0;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
}

/* ============================================================
   МОДАЛКА + ФОРМА ЗАКАЗА
============================================================ */
.modal-overlay {
  display: none; /* JS переключает на flex */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 34, 30, 0.66);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 460px;
  padding: 32px 30px 28px;
  border-radius: var(--r-md);
  position: relative;
  text-align: left;
  box-shadow: var(--sh-lg);
  border-top: 3px solid var(--accent);
  animation: fadeIn 0.3s ease both;
  max-height: 94vh;
  overflow-y: auto;
}

.modal h3 {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 600;
  color: var(--primary-dark) !important;
  margin: 0 0 4px;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  transition:
    color var(--tr),
    border-color var(--tr),
    background var(--tr);
}

.close-modal:hover {
  color: #fff;
  background: var(--sale);
  border-color: var(--sale);
}

/* Карточка товара в модалке */
.modal-product-card {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
  margin: 18px 0 20px;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.modal-product-details {
  flex: 1;
}

.modal-product-details h4 {
  font-family: var(--font-head);
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.modal-product-details p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-product-details p b {
  color: var(--text);
  font-weight: 700;
}

.modal-product-details .modal-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 18px;
  margin-top: 6px;
}

/* Поля формы */
.form-group {
  margin-bottom: 12px;
}

input {
  font-family: var(--font-body);
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition:
    border-color var(--tr),
    background var(--tr),
    box-shadow var(--tr);
}

input::placeholder {
  color: #a8a49b;
  font-weight: 400;
}

input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(76, 101, 82, 0.14);
}

.field-error {
  color: var(--sale);
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.4;
  display: none; /* JS переключает на block */
}

.agree {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin: 12px 0 14px;
}

.submit-btn {
  font-family: var(--font-body);
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--tr),
    border-color var(--tr);
}

.submit-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ============================================================
   АНИМАЦИИ (имя fadeIn используется в inline-стилях JS — не менять)
============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   АДАПТИВ
============================================================ */
@media (max-width: 1020px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .adv-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .adv-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
  }

  .info-section,
  .advantages-section,
  .steps-section {
    padding: 48px 0;
  }

  .sizes-section {
    padding: 44px 0 8px;
  }

  .specs-info {
    padding: 24px 20px;
  }

  .info-grid {
    display: block;
  }

  .card-title {
    font-size: 20px;
  }

  .now {
    font-size: 20px;
  }

  .adv-item {
    padding: 20px 16px;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-company,
  .footer-legal {
    text-align: center;
    font-size: 12px;
  }

  .footer-docs-list li {
    text-align: center;
  }

  .footer-doc-link {
    justify-content: center;
    padding: 9px 0;
  }

  .footer-doc-link:hover {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body {
    padding: 14px 12px 12px;
  }

  .buy-btn {
    font-size: 10px;
    padding: 12px 6px;
    letter-spacing: 0.1em;
  }

  .badge,
  .badge-discount {
    font-size: 11px;
    padding: 6px 10px;
    left: 10px;
  }

  .tabs-wrapper {
    gap: 0;
  }

  .size-tab {
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .size-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .hero-btn,
  .bottom-btn {
    padding: 15px 32px;
    font-size: 11px;
  }

  .modal {
    padding: 26px 20px 22px;
  }

  .modal h3 {
    font-size: 23px;
  }

  .modal-product-image {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 480px) {
  .size-content.active,
  .card {
    max-width: 100%;
    width: 100%;
  }

  .site-footer,
  footer {
    padding: 40px 0 16px;
  }

  .footer-company {
    font-size: 11.5px;
    word-break: break-word;
  }

  .footer-bottom p {
    font-size: 10.5px;
  }

  .footer-logo-text {
    font-size: 20px;
  }
}
