/* ============================================================
   ATLANT Nutrition — энергичный чистый спорт
   Белый фон, электрик-синий #0B5CFF, тёмно-синие блоки,
   Golos Text 800 заголовки + Unbounded для дисплея, Inter текст
   ============================================================ */

:root {
  --blue: #0B5CFF;
  --blue-dark: #0847C4;
  --blue-ghost: #E8F0FF;
  --navy: #071C3D;
  --navy-2: #0B2A5C;
  --red: #E5223A;
  --ink: #0C1526;
  --muted: #5A6B84;
  --line: #E3E9F2;
  --bg-soft: #F4F7FB;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(7, 28, 61, .08);
  --shadow-lift: 0 18px 44px rgba(7, 28, 61, .14);
  --font-head: "Golos Text", "Inter", sans-serif;
  --font-display: "Unbounded", "Golos Text", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  touch-action: pan-y;
  overscroll-behavior-y: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.container { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

.num, .price, .p-price, .p-old {
  font-family: var(--font-head);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--navy);
  color: #BBD0F5;
  font-size: 13px;
  font-weight: 500;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; padding-block: 6px;
}
.topbar b { color: #fff; font-weight: 700; }
.topbar-phone { color: #fff; font-weight: 700; white-space: nowrap; }
.topbar-phone:hover { color: #9CC0FF; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: .02em;
  color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue);
  display: grid; place-items: center;
  color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span { color: var(--blue); }

.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 9px 14px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--blue-ghost); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--blue); transform: translateY(-1px); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; padding-inline: 5px;
  background: var(--red); color: #fff;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
  border: 2px solid #fff;
}
.cart-count.is-empty { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger i {
  width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; display: block;
  transition: transform .25s, opacity .25s;
}
.burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 24px;
  font-weight: 700; font-size: 16px;
  border-top: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--blue); }

/* ============ HERO SLIDER ============ */
.hero { background: var(--navy); position: relative; overflow: clip; color: #fff; }
.hero input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.hero-track {
  display: flex;
  width: 300%;
  transition: transform .65s cubic-bezier(.65,.05,.2,1);
}
#hs1:checked ~ .hero-track { transform: translateX(0); }
#hs2:checked ~ .hero-track { transform: translateX(-33.3333%); }
#hs3:checked ~ .hero-track { transform: translateX(-66.6667%); }

.hero-slide {
  width: 33.3333%; flex-shrink: 0;
  position: relative;
  min-height: 540px;
  display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(7,28,61,.96) 34%, rgba(7,28,61,.72) 58%, rgba(7,28,61,.28) 100%);
  z-index: 1;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 72px 24px 96px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 8px;
  margin-bottom: 22px;
}
.hero-kicker.is-blue { background: var(--blue); }
.hero-slide h1, .hero-slide .h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  max-width: 640px;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero-slide h1 em, .hero-slide .h1 em { font-style: normal; color: #6FA1FF; }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #B9CCEC; max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 15px;
  border-radius: 12px; border: 0;
  padding: 15px 28px;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(11,92,255,.35); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-ghost); color: var(--blue); }

.hero-price-tag {
  display: inline-flex; align-items: baseline; gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 10px 16px;
}
.hero-price-tag .p-price { font-size: 26px; font-weight: 800; }
.hero-price-tag .p-old { font-size: 16px; color: #8FA6CC; text-decoration: line-through; }

.hero-dots {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: 30px;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots label {
  width: 34px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: background .3s;
}
.hero-dots label:hover { background: rgba(255,255,255,.55); }
#hs1:checked ~ .hero-dots label[for="hs1"],
#hs2:checked ~ .hero-dots label[for="hs2"],
#hs3:checked ~ .hero-dots label[for="hs3"] { background: var(--blue); }

/* ============ TRUST STRIP ============ */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-block: 26px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-ico {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 13px; background: var(--blue-ghost); color: var(--blue);
  display: grid; place-items: center;
}
.trust-ico svg { width: 24px; height: 24px; }
.trust-item b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding-block: 76px; }
.section-soft { background: var(--bg-soft); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head .link-all {
  font-weight: 700; color: var(--blue); font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap .2s;
}
.section-head .link-all:hover { gap: 11px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}

/* ============ LINES (три линейки) ============ */
.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.line-card {
  position: relative; overflow: clip;
  border-radius: var(--radius-lg);
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.line-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.line-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.line-card:hover img { transform: scale(1.05); }
.line-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,28,61,.05) 30%, rgba(7,28,61,.9) 82%);
}
.line-body { position: relative; z-index: 2; padding: 26px; }
.line-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: var(--blue); color: #fff;
  padding: 6px 12px; border-radius: 7px;
  margin-bottom: 12px;
}
.line-card h3 { font-size: 24px; margin-bottom: 8px; }
.line-body p { font-size: 14px; color: #C4D4EF; margin-bottom: 16px; max-width: 300px; }
.line-cta { font-weight: 800; font-size: 14px; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.line-card:hover .line-cta { color: #8FB5FF; }

/* ============ PRODUCT CARDS ============ */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tab-btn {
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; padding: 9px 20px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 30px;
}
.p-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.p-photo {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: clip;
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-photo img { transform: scale(1.06); }
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 7px; color: #fff;
  width: fit-content;
  font-variant-numeric: tabular-nums;
}
.badge-disc { background: var(--red); }
.badge-hit { background: var(--navy); }
.badge-new { background: var(--blue); }
.p-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-cat { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.p-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px; line-height: 1.35;
  min-height: 2.7em;
}
.p-name a:hover { color: var(--blue); }
.p-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.p-price { font-size: 20px; font-weight: 800; }
.p-old { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.p-buy {
  display: flex; gap: 8px; align-items: center;
}
.p-buy .btn-add {
  flex: 1;
  background: var(--blue-ghost); color: var(--blue);
  border: 0; border-radius: 10px;
  font-weight: 800; font-size: 14px;
  padding: 11px 12px;
  transition: background .2s, color .2s;
}
.p-buy .btn-add:hover { background: var(--blue); color: #fff; }
.p-buy .btn-add.added { background: var(--navy); color: #fff; }

/* ============ QUIZ ============ */
.quiz-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: clip;
  position: relative;
}
.quiz-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 88% -10%, rgba(11,92,255,.5), transparent 65%),
    radial-gradient(420px 320px at -6% 110%, rgba(11,92,255,.32), transparent 60%);
  pointer-events: none;
}
.quiz-inner { position: relative; padding: 52px; }
.quiz-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 30px; }
.quiz-head h2 { font-size: clamp(24px, 3vw, 36px); max-width: 520px; }
.quiz-head p { color: #B9CCEC; margin-top: 10px; max-width: 480px; }
.quiz-steps-label {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #7FA8F7; font-weight: 600;
}
.quiz-progress { display: flex; gap: 7px; margin-top: 12px; }
.quiz-progress i { width: 44px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); transition: background .3s; }
.quiz-progress i.done { background: var(--blue); }

.quiz-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quiz-opt {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  color: #fff; text-align: left;
  padding: 20px 18px;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz-opt:hover { border-color: var(--blue); background: rgba(11,92,255,.18); transform: translateY(-3px); }
.quiz-opt .qi {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--blue); display: grid; place-items: center;
  margin-bottom: 14px;
}
.quiz-opt .qi svg { width: 22px; height: 22px; }
.quiz-opt b { display: block; font-size: 16px; font-family: var(--font-head); font-weight: 800; margin-bottom: 5px; }
.quiz-opt span { font-size: 13px; color: #AFC4E8; line-height: 1.4; display: block; }

.quiz-result-note { color: #B9CCEC; font-size: 14.5px; margin-bottom: 22px; max-width: 620px; }
.quiz-result-note b { color: #fff; }
.quiz-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quiz-products .p-card { border: 0; }
.quiz-restart {
  margin-top: 24px;
  background: transparent; color: #8FB5FF;
  border: 0; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.quiz-restart:hover { color: #fff; }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  border-radius: var(--radius-lg); overflow: clip;
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.blog-photo { aspect-ratio: 16 / 10; overflow: clip; background: var(--bg-soft); }
.blog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-photo img { transform: scale(1.05); }
.blog-body { padding: 22px; }
.blog-tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.blog-body h3 { font-size: 19px; margin: 10px 0 8px; }
.blog-card:hover h3 { color: var(--blue); }
.blog-body p { font-size: 14px; color: var(--muted); }
.blog-meta { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ============ TG BAND ============ */
.tg-band {
  background: linear-gradient(105deg, var(--blue) 0%, #0A46C8 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 46px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  position: relative; overflow: clip;
}
.tg-band::after {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 34px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.tg-band h2 { font-size: clamp(22px, 2.8vw, 32px); max-width: 560px; }
.tg-band p { margin-top: 10px; color: #CFE0FF; max-width: 500px; font-size: 15px; }
.tg-band .btn-white { position: relative; z-index: 2; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: #A9BEE3; margin-top: 76px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px; padding-block: 56px 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col b {
  display: block; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; padding-block: 5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 14px; }
.footer-contact .num { color: #fff; font-size: 20px; font-weight: 800; display: block; margin-bottom: 8px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  font-size: 13px; line-height: 1.6; color: #7E95BE;
}
.footer-disclaimer a { color: #9CC0FF; font-weight: 600; }
.footer-disclaimer a:hover { color: #fff; }

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7,21,45,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(430px, 100vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  box-shadow: -20px 0 60px rgba(7,28,61,.2);
}
.cart-drawer.open { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 20px; }
.cart-close {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-size: 20px; line-height: 1; color: var(--muted);
  transition: all .2s;
}
.cart-close:hover { border-color: var(--red); color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.cart-empty svg { width: 52px; height: 52px; color: var(--line); margin: 0 auto 16px; }
.cart-item {
  display: grid; grid-template-columns: 74px 1fr auto;
  gap: 14px; align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 74px; height: 60px; object-fit: cover; border-radius: 9px; }
.ci-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ci-price { font-size: 14px; font-weight: 800; margin-top: 5px; }
.ci-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 9px; overflow: clip;
}
.qty button {
  width: 30px; height: 30px; border: 0; background: #fff;
  font-size: 16px; font-weight: 700; color: var(--navy);
  transition: background .15s;
}
.qty button:hover { background: var(--blue-ghost); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ci-remove:hover { color: var(--red); }
.cart-foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-row span { color: var(--muted); font-weight: 600; }
.cart-total-row b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-head); }
.cart-foot .btn { width: 100%; }
.cart-free-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.cart-free-note b { color: var(--blue); }

/* ============ PAGE HERO (catalog etc.) ============ */
.page-hero { background: var(--navy); color: #fff; padding-block: 46px 52px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero p { color: #B9CCEC; margin-top: 10px; max-width: 560px; }
.crumbs { font-size: 13px; color: #7E95BE; margin-bottom: 14px; font-weight: 500; }
.crumbs a:hover { color: #fff; }

/* ============ CATALOG ============ */
.catalog-layout {
  display: grid; grid-template-columns: 264px 1fr;
  gap: 34px; align-items: start;
  padding-block: 44px 76px;
}
.filters {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.filters-title { font-size: 17px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.filters-reset { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 13px; }
.filters-reset:hover { text-decoration: underline; }
.f-group { border-top: 1px solid var(--line); padding-block: 16px; }
.f-group b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 12px; font-family: var(--font-head); }
.f-check {
  display: flex; align-items: center; gap: 10px;
  padding-block: 5px; cursor: pointer;
  font-size: 14px; font-weight: 500;
}
.f-check input { display: none; }
.f-box {
  width: 19px; height: 19px; flex-shrink: 0;
  border: 1.5px solid #C4CFDE; border-radius: 6px;
  display: grid; place-items: center;
  transition: all .15s;
}
.f-box svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.f-check input:checked + .f-box { background: var(--blue); border-color: var(--blue); }
.f-check input:checked + .f-box svg { opacity: 1; }
.f-check:hover .f-box { border-color: var(--blue); }
.f-count { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.f-price-row { display: flex; gap: 10px; }
.f-price-row input {
  width: 100%; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 14px; font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}
.f-price-row input:focus { outline: none; border-color: var(--blue); }

.catalog-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 4px; flex-wrap: wrap;
}
.catalog-found { font-size: 14px; color: var(--muted); font-weight: 600; }
.catalog-found b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sort-select {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  font-family: var(--font-body); background: #fff; color: var(--ink);
}
.sort-select:focus { outline: none; border-color: var(--blue); }
.filters-toggle {
  display: none;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 10px; padding: 10px 16px;
  font-weight: 700; font-size: 14px;
}
.catalog-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: var(--muted);
}
.catalog-empty b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 8px; font-family: var(--font-head); }

/* ============ PRODUCT PAGE ============ */
.product-layout {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; padding-block: 44px 30px;
  align-items: start;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg); overflow: clip;
  background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button {
  width: 92px; aspect-ratio: 4 / 3;
  border-radius: 11px; overflow: clip;
  border: 2px solid var(--line); background: var(--bg-soft);
  padding: 0;
  transition: border-color .2s;
}
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pp-cat { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .09em; }
.pp-title { font-size: clamp(24px, 2.8vw, 34px); margin: 12px 0 18px; }
.pp-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pp-price { font-size: 34px; font-weight: 800; font-family: var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.pp-old { font-size: 19px; font-weight: 600; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; font-family: var(--font-head); }
.pp-save { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 22px; }
.pp-desc { color: #35455D; font-size: 15.5px; margin-bottom: 26px; max-width: 560px; }
.pp-buy-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 30px; }
.pp-buy-row .qty { border-radius: 12px; }
.pp-buy-row .qty button { width: 46px; height: 52px; font-size: 18px; }
.pp-buy-row .qty span { min-width: 40px; font-size: 16px; }
.pp-perks { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.pp-perk { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; color: #35455D; }
.pp-perk svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

.specs-block { padding-block: 30px 0; }
.specs-block h2 { font-size: 24px; margin-bottom: 20px; }
.specs-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.specs-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.specs-table td:first-child { color: var(--muted); width: 46%; padding-right: 20px; }
.specs-table td:last-child { font-weight: 600; }

/* ============ CHECKOUT ============ */
.checkout-layout {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 40px; padding-block: 44px 76px; align-items: start;
}
.co-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
}
.co-card h2 { font-size: 21px; margin-bottom: 20px; }
.co-field { margin-bottom: 16px; }
.co-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.co-field input, .co-field textarea {
  width: 100%;
  border: 1.5px solid var(--line); border-radius: 11px;
  padding: 13px 15px; font-size: 15px; font-family: var(--font-body);
}
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--blue); }
.co-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: grid; gap: 10px; }
.radio-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.radio-opt:hover { border-color: var(--blue); }
.radio-opt input { display: none; }
.r-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #C4CFDE; flex-shrink: 0;
  display: grid; place-items: center;
  transition: border-color .15s;
}
.r-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); transform: scale(0); transition: transform .15s;
}
.radio-opt input:checked ~ .r-dot { border-color: var(--blue); }
.radio-opt input:checked ~ .r-dot::after { transform: scale(1); }
.radio-opt input:checked ~ .r-body b { color: var(--blue); }
.r-body b { display: block; font-size: 14.5px; font-weight: 700; }
.r-body span { font-size: 13px; color: var(--muted); }
.r-price { margin-left: auto; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.co-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.co-summary .cart-item:last-of-type { border-bottom: 0; }
.co-totals { border-top: 2px solid var(--navy); padding-top: 16px; margin-top: 8px; display: grid; gap: 9px; }
.co-line { display: flex; justify-content: space-between; font-size: 14.5px; }
.co-line span { color: var(--muted); }
.co-line b { font-variant-numeric: tabular-nums; }
.co-line.total { font-size: 18px; }
.co-line.total b { font-size: 22px; font-family: var(--font-head); font-weight: 800; }
.co-submit { width: 100%; margin-top: 18px; }
.co-agree { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

.thanks {
  text-align: center; padding: 90px 24px;
  max-width: 620px; margin: 0 auto;
}
.thanks-ico {
  width: 84px; height: 84px; margin: 0 auto 26px;
  border-radius: 24px; background: var(--blue-ghost); color: var(--blue);
  display: grid; place-items: center;
}
.thanks-ico svg { width: 40px; height: 40px; }
.thanks h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.thanks p { color: var(--muted); font-size: 16px; margin-bottom: 30px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .quiz-options { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .lines-grid { grid-template-columns: 1fr; }
  .line-card { min-height: 300px; }
  .blog-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .quiz-inner { padding: 34px 24px; }
  .quiz-products { grid-template-columns: 1fr; }
  .tg-band { padding: 34px 26px; }
  .hero-slide { min-height: 500px; }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .container { padding-inline: 16px; }
  .section { padding-block: 52px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-body { padding: 12px; gap: 8px; }
  .p-name { font-size: 13.5px; }
  .p-price { font-size: 17px; }
  .p-old { font-size: 12.5px; }
  .p-buy .btn-add { font-size: 13px; padding: 10px 8px; }
  .topbar .container { justify-content: center; }
  .topbar-extra { display: none; }
  .cart-btn .cart-btn-label { display: none; }
  .cart-btn { padding: 12px 14px; }
  .hero-inner { padding: 56px 16px 88px; }
  .hero-slide { min-height: 560px; align-items: flex-end; }
  .trust .container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item b { font-size: 13px; }
  .trust-item span { font-size: 12px; }
  .trust-ico { width: 40px; height: 40px; }
  .quiz-options { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 28px; }
  .gallery-thumbs button { width: 72px; }
  .co-card { padding: 20px; }
  .co-grid-2 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr auto; gap: 10px; }
  .cart-item img { width: 60px; height: 50px; }
}
