/* ============================================================
   SiteForge — global stylesheet (generated, tokens filled by build.py)
   Grid: 8px base. Color strategy 60-30-10.
   60% neutral bg / 30% primary / 10% accent (CTA only).
   ============================================================ */

:root{
  --primary: #1C3050;        /* 30% — headings, dark sections */
  --primary-soft: #2C4A78;
  --accent: #B5541C;          /* 10% — CTA, highlights */
  --accent-ink: #FFFFFF;
  --bg: #F7F9FC;                  /* 60% — light page background */
  --surface: #FFFFFF;
  --text: #13203A;
  --muted: #55617A;
  --line: #E2E8F1;
  --footer-bg: #0B1424;
  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 2px 8px rgba(10,20,40,.06);
  --shadow-hover: 0 16px 40px rgba(10,20,40,.14);
  --tr: .25s ease;
  --container: 1200px;
}

/* ---------- Reset & base ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font-body);
  font-size:16px; line-height:1.6;
  color:var(--text); background:var(--bg);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
ul,ol{ list-style-position:inside; }
button{ font:inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:4px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--primary); color:#fff; padding:8px 16px; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--primary); line-height:1.15; }
h1{ font-size:clamp(32px,4.5vw,56px); letter-spacing:-.02em; }
h2{ font-size:clamp(26px,3.2vw,40px); letter-spacing:-.01em; }
h3{ font-size:clamp(19px,2vw,24px); }
p{ max-width:66ch; }
.lead{ font-size:clamp(17px,1.5vw,20px); color:var(--muted); }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ---------- Buttons (min touch target 48px) ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:12px 32px;
  border-radius:999px; border:2px solid transparent;
  font-family:var(--font-display); font-weight:700; font-size:16px;
  text-decoration:none; transition:transform var(--tr), box-shadow var(--tr), background var(--tr);
  will-change:transform;
}
.btn:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:var(--shadow-hover); }
.btn-accent{ background:var(--accent); color:var(--accent-ink); }
.btn-accent:hover{ filter:brightness(1.06); }
.btn-ghost{ border-color:var(--primary); color:var(--primary); background:transparent; }
.btn-ghost:hover{ background:var(--primary); color:#fff; }
.btn-light{ background:#fff; color:var(--primary); }

/* ---------- Header / nav ---------- */
.site-head{
  position:sticky; top:0; z-index:100;
  border-bottom:1px solid var(--line);
}
/* Стекло-блюр живёт на псевдоэлементе: backdrop-filter на самом хедере сделал бы его
   containing block для position:fixed мобильного меню (меню сжалось бы до высоты шапки). */
.site-head::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.head-in{ display:flex; align-items:center; justify-content:space-between; min-height:72px; gap:16px; }
.logo{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo:hover{ text-decoration:none; }
.logo-mark{
  width:40px; height:40px; border-radius:10px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background:var(--primary); color:#fff;
  font-family:var(--font-display); font-weight:800; font-size:22px;
}
.logo-name{ font-family:var(--font-display); font-weight:800; font-size:20px; color:var(--primary); letter-spacing:.02em; }
.logo-r{ font-size:11px; vertical-align:super; }

.nav-menu{ display:flex; align-items:center; gap:8px; list-style:none; }
.nav-menu a:not(.btn){
  display:inline-flex; align-items:center;
  min-height:44px; padding:8px 16px; border-radius:999px;
  color:var(--text); font-weight:600; font-size:15px;
}
.nav-menu a:not(.btn):hover{ background:var(--bg); text-decoration:none; color:var(--primary); }
.nav-menu a.on{ color:var(--accent); }
.nav-cta{ margin-left:8px; min-height:44px; padding:8px 24px; font-size:15px; }

.burger{
  display:none; position:relative; z-index:120;
  width:48px; height:48px; border:0; background:transparent; border-radius:12px;
}
.burger span{
  display:block; width:24px; height:2.5px; margin:5px auto; border-radius:2px;
  background:var(--primary); transition:transform var(--tr), opacity var(--tr);
}
.burger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ---------- Marquee ---------- */
.marquee{
  overflow:hidden; white-space:nowrap;
  background:var(--primary); color:#fff;
  padding:12px 0; border-block:1px solid rgba(255,255,255,.08);
}
.marquee-track{ display:inline-block; animation:marquee 28s linear infinite; }
.marquee-track span{
  display:inline-block; padding:0 24px;
  font-family:var(--font-display); font-weight:700; font-size:14px;
  letter-spacing:.14em; text-transform:uppercase;
}
.marquee-track .mq-dot{ color:var(--accent); padding:0; }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- Hero (golden-ratio split) ---------- */
.hero{ padding:96px 0 80px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.618fr 1fr; gap:48px; align-items:center; }
.hero-kicker{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--surface); border:1px solid var(--line); border-radius:999px;
  padding:8px 16px; font-size:13px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--primary); margin-bottom:24px;
}
.hero-kicker .flag{ font-size:15px; }
.hero h1 span{ color:var(--accent); }
.hero .lead{ margin:24px 0 32px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; }
.hero-img{
  background:var(--surface); border:1px solid var(--line); border-radius:24px;
  padding:24px; box-shadow:var(--shadow);
}
.hero-img img{ width:100%; aspect-ratio:1/1; object-fit:contain; }

/* ---------- Sections ---------- */
.sec{ padding:96px 0; }
.sec-alt{ background:var(--surface); border-block:1px solid var(--line); }
.sec-head{ max-width:720px; margin:0 auto 56px; text-align:center; }
.sec-head .kicker{
  display:inline-block; font-family:var(--font-display); font-weight:700; font-size:13px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:16px;
}
.sec-head p{ margin:16px auto 0; color:var(--muted); }

/* ---------- Product cards (container-query driven) ---------- */
.p-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(264px,1fr)); gap:24px; }
.p-card-wrap{ container-type:inline-size; }
.p-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden; height:100%; display:flex; flex-direction:column;
  transition:transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.p-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-hover); border-color:var(--primary-soft); }
.p-img{ background:#fff; padding:24px; }
.p-img img{ width:100%; aspect-ratio:1/1; object-fit:contain; transition:transform .35s ease; }
.p-card:hover .p-img img{ transform:scale(1.05); }
.p-body{ padding:24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.p-cat{ font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.p-name{ font-size:18px; }
.p-short{ font-size:15px; color:var(--muted); flex:1; }
.p-badge{
  position:absolute; top:16px; left:16px; z-index:2;
  background:var(--accent); color:var(--accent-ink);
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 12px; border-radius:999px;
}
.p-card{ position:relative; }
.p-body .btn{ margin-top:16px; }
@container (min-width: 400px){
  .p-card{ flex-direction:row; align-items:stretch; }
  .p-img{ flex:0 0 45%; display:flex; align-items:center; }
}

/* ---------- Advantages ---------- */
.adv-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:24px; }
.adv-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:32px 24px; transition:transform var(--tr), box-shadow var(--tr);
}
.adv-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.adv-ic{
  width:56px; height:56px; border-radius:16px; margin-bottom:24px;
  display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--accent) 12%, #fff); color:var(--accent);
}
.adv-ic svg{ width:28px; height:28px; }
.adv-card h3{ margin-bottom:8px; font-size:18px; }
.adv-card p{ font-size:15px; color:var(--muted); }

/* ---------- Stats band ---------- */
.stats{ background:var(--primary); color:#fff; padding:64px 0; }
.stats-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:32px; text-align:center; }
.stat-n{
  font-family:var(--font-display); font-weight:800; font-size:clamp(32px,4vw,48px);
  color:#fff; display:block; font-variant-numeric:tabular-nums;
}
.stat-n b{ color:var(--accent); font-weight:800; }
.stat-l{ color:rgba(255,255,255,.72); font-size:15px; margin-top:4px; display:block; }

/* ---------- Reviews (judge.me-style asymmetric masonry) ---------- */
.rev-cols{ columns:3; column-gap:24px; }
.r-card{
  break-inside:avoid; margin-bottom:24px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:24px; transition:transform var(--tr), box-shadow var(--tr);
}
.r-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.r-top{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.r-ava{
  width:40px; height:40px; border-radius:50%; flex:0 0 auto;
  background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:16px;
}
.r-who{ font-weight:700; font-size:15px; color:var(--text); }
.r-meta{ font-size:13px; color:var(--muted); }
.r-verified{
  display:inline-flex; align-items:center; gap:4px;
  font-size:12px; font-weight:700; color:#188544; margin-left:auto; white-space:nowrap;
}
.r-verified svg{ width:14px; height:14px; }
.r-title{ font-family:var(--font-display); font-weight:700; margin-bottom:8px; color:var(--primary); }
.r-text{ font-size:15px; color:var(--text); }
.r-prod{ margin-top:16px; font-size:13px; color:var(--muted); border-top:1px dashed var(--line); padding-top:12px; }

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg, var(--primary), var(--primary-soft));
  border-radius:24px; color:#fff; text-align:center;
  padding:64px 32px; position:relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; inset:-40%;
  background:radial-gradient(circle at 70% 20%, rgba(255,255,255,.14), transparent 45%);
  pointer-events:none;
}
.cta-band h2{ color:#fff; position:relative; }
.cta-band p{ color:rgba(255,255,255,.8); margin:16px auto 32px; position:relative; }
.cta-band .btn{ position:relative; }

/* ---------- Filter chips ---------- */
.chips{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:48px; }
.chip{
  min-height:44px; padding:8px 24px; border-radius:999px;
  border:1.5px solid var(--line); background:var(--surface); color:var(--text);
  font-weight:600; font-size:15px; transition:all var(--tr);
}
.chip:hover{ border-color:var(--primary); }
.chip.on{ background:var(--primary); border-color:var(--primary); color:#fff; }
.search-note{ text-align:center; color:var(--muted); margin:-24px 0 32px; }

/* ---------- Product detail rows (products page) ---------- */
.cat-block{ margin-bottom:64px; }
.cat-block > h2{ margin-bottom:32px; padding-bottom:16px; border-bottom:2px solid var(--line); }
.prod-row{
  display:grid; grid-template-columns:1fr 1.618fr; gap:40px; align-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:32px; margin-bottom:24px; scroll-margin-top:96px;
  transition:box-shadow var(--tr), border-color var(--tr);
}
.prod-row:hover{ box-shadow:var(--shadow-hover); border-color:var(--primary-soft); }
.prod-row .p-img{ border:1px solid var(--line); border-radius:var(--r-sm); }
.prod-row h3{ margin-bottom:12px; }
.prod-row .p-cat{ margin-bottom:8px; }
.prod-desc{ color:var(--muted); margin-bottom:16px; }
.feat-list{ list-style:none; margin-bottom:24px; }
.feat-list li{ padding-left:28px; position:relative; margin-bottom:8px; font-size:15px; }
.feat-list li::before{
  content:""; position:absolute; left:0; top:7px; width:16px; height:8px;
  border-left:2.5px solid var(--accent); border-bottom:2.5px solid var(--accent);
  transform:rotate(-45deg);
}

/* ---------- About page ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.split .hero-img img{ aspect-ratio:4/3; }
.promise-list{ list-style:none; max-width:720px; margin:0 auto; }
.promise-list li{
  display:flex; gap:16px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:24px; margin-bottom:16px;
}
.promise-num{
  flex:0 0 40px; width:40px; height:40px; border-radius:50%;
  background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700;
}
.promise-list b{ display:block; margin-bottom:4px; color:var(--primary); font-family:var(--font-display); }
.promise-list p{ font-size:15px; color:var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1.618fr 1fr; gap:48px; align-items:start; }
.form-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:40px;
}
.f-row{ margin-bottom:24px; }
.f-row label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; color:var(--primary); }
.f-row input,.f-row select,.f-row textarea{
  width:100%; min-height:48px; padding:12px 16px;
  border:1.5px solid var(--line); border-radius:var(--r-sm);
  font:inherit; background:#fff; color:var(--text);
  transition:border-color var(--tr);
}
.f-row textarea{ min-height:144px; resize:vertical; }
.f-row input:focus,.f-row select:focus,.f-row textarea:focus{ outline:none; border-color:var(--accent); }
.f-err{ color:#c0392b; font-size:13px; margin-top:4px; display:none; }
.f-row.bad input,.f-row.bad textarea{ border-color:#c0392b; }
.f-row.bad .f-err{ display:block; }
.form-ok{
  display:none; background:#e8f7ee; border:1px solid #bfe6cd; color:#14683a;
  border-radius:var(--r-sm); padding:24px; font-weight:600;
}
.info-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:32px; margin-bottom:24px;
}
.info-card h3{ margin-bottom:16px; }
.info-card p, .info-card a{ font-size:15px; }
.info-line{ display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; color:var(--muted); }
.info-line svg{ width:20px; height:20px; flex:0 0 auto; color:var(--accent); margin-top:2px; }

/* ---------- FAQ accordion ---------- */
.faq-wrap{ max-width:768px; margin:0 auto; }
.faq-item{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm);
  margin-bottom:16px; overflow:hidden;
}
.faq-item summary{
  list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:20px 24px; font-family:var(--font-display); font-weight:700; color:var(--primary);
  min-height:48px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:""; flex:0 0 12px; width:12px; height:12px;
  border-right:2.5px solid var(--accent); border-bottom:2.5px solid var(--accent);
  transform:rotate(45deg); transition:transform var(--tr); margin-top:-4px;
}
.faq-item[open] summary::after{ transform:rotate(-135deg); margin-top:4px; }
.faq-item .faq-a{ padding:0 24px 20px; color:var(--muted); }

/* ---------- Footer ---------- */
.site-foot{ background:var(--footer-bg); color:rgba(255,255,255,.7); margin-top:96px; }
.foot-grid{
  display:grid; grid-template-columns:1.618fr 1fr 1fr 1fr; gap:40px;
  padding:64px 24px 48px;
}
.foot-brand .logo-name{ color:#fff; }
.foot-brand .logo{ margin-bottom:16px; }
.foot-tag{ font-size:15px; margin-bottom:24px; max-width:36ch; }
.foot-addr{ font-style:normal; font-size:14px; line-height:1.7; color:rgba(255,255,255,.7); }
.foot-addr a{ color:rgba(255,255,255,.85); }
.site-foot h4{ color:#fff; font-size:14px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px; }
.foot-links{ list-style:none; }
.foot-links li{ margin-bottom:12px; }
.foot-links a{ color:rgba(255,255,255,.7); font-size:15px; }
.foot-links a:hover{ color:#fff; }
.foot-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:24px; text-align:center; font-size:14px; color:rgba(255,255,255,.55);
}
.foot-disclosure{
  max-width:720px; margin:0 auto 16px;
  font-size:13px; line-height:1.6; color:rgba(255,255,255,.45);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding:80px 0 56px; text-align:center; }
.page-hero .lead{ margin:16px auto 0; max-width:66ch; }
.crumbs{ display:flex; justify-content:center; gap:8px; list-style:none; font-size:14px; color:var(--muted); margin-bottom:24px; }
.crumbs a{ color:var(--muted); }
.crumbs li+li::before{ content:"/"; margin-right:8px; color:var(--line); }

/* ---------- Legal pages ---------- */
.legal{ max-width:768px; margin:0 auto; }
.legal h2{ font-size:24px; margin:48px 0 16px; }
.legal p, .legal li{ color:var(--muted); margin-bottom:16px; }
.legal ul{ margin-bottom:16px; }

/* ---------- Scroll-reveal (JS adds .in; gated on .js so no-JS users see content) ---------- */
.js .rv{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.js .rv.in{ opacity:1; transform:none; }
.js .rv-d1{ transition-delay:.08s; } .js .rv-d2{ transition-delay:.16s; } .js .rv-d3{ transition-delay:.24s; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .marquee-track{ animation:none; }
  .js .rv{ opacity:1; transform:none; transition:none; }
  *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px){
  .hero-grid, .split, .contact-grid{ grid-template-columns:1fr; }
  .prod-row{ grid-template-columns:1fr; gap:24px; }
  .rev-cols{ columns:2; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px){
  body{ font-size:18px; }               /* mobile readability 18px+ */
  .sec{ padding:64px 0; }
  .hero{ padding:64px 0 48px; text-align:center; }
  .hero-kicker{ margin-inline:auto; }
  .hero .lead{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
  .sec-head{ margin-bottom:40px; }

  /* burger + full-screen centered menu with X */
  .burger{ display:block; }
  .nav-menu{
    position:fixed; inset:0; z-index:110;
    flex-direction:column; justify-content:center; align-items:center; gap:16px;
    background:var(--surface);
    opacity:0; visibility:hidden; transition:opacity var(--tr), visibility var(--tr);
  }
  .nav-menu.open{ opacity:1; visibility:visible; }
  .nav-menu a:not(.btn){ font-size:22px; min-height:48px; }
  .nav-cta{ margin-left:0; margin-top:16px; }
  body.menu-lock{ overflow:hidden; }

  /* everything centered on mobile */
  .p-grid{ grid-template-columns:1fr; }
  .p-card, .adv-card, .prod-row, .r-card{ text-align:center; }
  .adv-ic{ margin-inline:auto; }
  .r-top{ justify-content:center; flex-wrap:wrap; }
  .r-verified{ margin-left:0; }
  .feat-list li{ text-align:left; }
  .rev-cols{ columns:1; }
  .foot-grid{ grid-template-columns:1fr; text-align:center; }
  .foot-brand .logo{ justify-content:center; }
  .foot-tag{ margin-inline:auto; }
  .p-body .btn, .prod-row .btn{ align-self:center; }
  .p-badge{ left:50%; transform:translateX(-50%); }
  .form-card{ padding:24px; }
  .cta-band{ padding:48px 24px; }
}
