/* ============================================================
   КУБРЕН — дизайн-система. Анти-синяя палитра, Manrope, mobile-first.
   Оптимизировано под Safari/WebKit (стоячее правило владельца).
   ============================================================ */

:root {
  /* Палитра */
  --teal:        #2BB5A0;   /* основной */
  --teal-deep:   #1A3D37;   /* глубокая бирюза */
  --teal-600:    #229488;
  --teal-50:     #E6F7F3;
  --amber:       #E0A43B;   /* CTA-акцент */
  --amber-600:   #C98E27;
  --warm-white:  #F4F1EB;
  --bg:          #FAFCFB;
  --surface:     #FFFFFF;
  --ink:         #1C1C1C;
  --ink-soft:    #4A5450;
  --ink-mute:    #8A938F;
  --line:        #E7ECEA;
  --ok:          #3FA17A;

  /* Типографика */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(2.1rem, 5.2vw, 3.9rem);
  --h2: clamp(1.65rem, 3.6vw, 2.6rem);
  --h3: clamp(1.2rem, 2.2vw, 1.5rem);
  --lead: clamp(1.05rem, 1.6vw, 1.28rem);

  /* Геометрия */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(26,61,55,.06);
  --shadow:    0 14px 40px rgba(26,61,55,.10);
  --shadow-lg: 0 30px 70px rgba(26,61,55,.16);
  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--teal-deep); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; }
p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
section { padding-block: var(--section-y); }
.section-tag { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); background: var(--teal-50); padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1rem; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head p { font-size: var(--lead); margin-top: .85rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: 1.05rem 1.7rem; border-radius: 100px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #2B1C00; box-shadow: 0 10px 26px rgba(224,164,59,.40); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224,164,59,.48); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 26px rgba(43,181,160,.34); }
.btn-teal:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-600); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.2rem 2rem; font-size: 1.08rem; }
.btn:active { transform: translateY(0) scale(.985); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,252,251,.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.4rem; color: var(--teal-deep); letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; font-size: .98rem; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--teal-600); }
.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-phone { font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.header-phone span { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-mute); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--teal-deep); background: var(--teal-50); padding: .5rem 1rem; border-radius: 100px; margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .hl { color: var(--teal); }
.hero-lead { font-size: var(--lead); color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.2rem; }
.hero-sub { font-size: .98rem; color: var(--ink-mute); margin-bottom: 1.8rem; display: flex; align-items: center; gap: .5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-proof { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.hero-proof .num { font-size: 1.5rem; font-weight: 800; color: var(--teal-deep); }
.hero-proof .lbl { font-size: .82rem; color: var(--ink-mute); }
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: var(--radius-lg); aspect-ratio: 4/5; width: 100%; object-fit: cover;
  background: linear-gradient(160deg, var(--teal-50), #cfeee7 60%, var(--teal) 140%);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; max-width: 260px;
}
.hero-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); display: grid; place-items: center; flex: none; }
.hero-card .ic svg { width: 24px; height: 24px; color: var(--teal-600); }
.hero-card b { color: var(--teal-deep); display: block; font-size: .98rem; }
.hero-card span { font-size: .82rem; color: var(--ink-mute); }
.hero-wave { display: block; width: 100%; margin-top: -2px; color: var(--surface); }

/* ---------- Offer band (2+1) ---------- */
.offer-band { background: var(--teal-deep); color: #fff; }
.offer-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.offer-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.offer-band p { color: rgba(255,255,255,.78); margin-top: .4rem; }
.offer-band .big { color: var(--amber); }

/* ---------- Generic surfaces ---------- */
.surface { background: var(--surface); }
.cards { display: grid; gap: var(--gap); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 28px; height: 28px; color: var(--teal-600); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { position: relative; padding-top: .5rem; }
.step .n { counter-increment: step; width: 48px; height: 48px; border-radius: 14px; background: var(--amber); color: #2B1C00; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 1rem; }
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: .4rem; }

/* ---------- Calculator ---------- */
.calc {
  background: linear-gradient(155deg, var(--teal-deep), #14302b);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}
.calc h3 { color: #fff; font-size: 1.5rem; margin-bottom: .4rem; }
.calc p.cap { color: rgba(255,255,255,.7); margin-bottom: 1.6rem; }
.calc-row { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-end; }
.calc-field { flex: 1 1 180px; }
.calc-field label { display: block; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.seg { display: flex; background: rgba(255,255,255,.08); border-radius: 100px; padding: .3rem; gap: .25rem; }
.seg button { flex: 1; padding: .65rem .4rem; border-radius: 100px; color: rgba(255,255,255,.8); font-weight: 700; font-size: .92rem; transition: background .15s, color .15s; }
.seg button.active { background: var(--amber); color: #2B1C00; }
.stepper { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.08); border-radius: 100px; padding: .3rem; width: fit-content; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; }
.stepper button:hover { background: var(--amber); color: #2B1C00; }
.stepper .val { min-width: 46px; text-align: center; font-weight: 800; font-size: 1.3rem; }
.calc-result { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.calc-result .sum { font-size: 2.2rem; font-weight: 800; color: #fff; }
.calc-result .sum small { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.65); }
.calc-result .per { font-size: .9rem; color: var(--amber); font-weight: 700; }
.calc-b2b-nudge { margin-top: 1rem; font-size: .92rem; background: rgba(224,164,59,.16); border: 1px solid rgba(224,164,59,.4); color: #ffe6bd; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.calc-b2b-nudge.show { display: block; }
.calc-b2b-nudge a { color: var(--amber); font-weight: 700; text-decoration: underline; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.price-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow); }
.price-card .tag-top { position: absolute; top: -13px; left: 2rem; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; padding: .35rem .85rem; border-radius: 100px; }
.price-card h3 { margin-bottom: .3rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; color: var(--teal-deep); margin: .6rem 0 .2rem; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--ink-mute); }
.price-card ul.feats { margin: 1.2rem 0; display: grid; gap: .65rem; }
.price-card ul.feats li { display: flex; gap: .6rem; font-size: .96rem; color: var(--ink-soft); }
.price-card ul.feats li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }

/* B2B hidden band */
.b2b-band { background: var(--warm-white); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2rem) clamp(1.4rem,4vw,2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; border: 1px dashed var(--amber); }
.b2b-band h3 { color: var(--teal-deep); }
.b2b-band p { margin-top: .3rem; font-size: .96rem; }

/* B2B price table */
.b2b-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.b2b-table th, .b2b-table td { padding: 1.1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.b2b-table thead { background: var(--teal-deep); }
.b2b-table thead th { color: #fff; font-size: .9rem; }
.b2b-table tbody tr:last-child td { border-bottom: none; }
.b2b-table .price { font-weight: 800; color: var(--teal-deep); font-size: 1.25rem; }
.b2b-table .lbl { font-weight: 700; color: var(--teal-600); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); align-items: center; }
.lab-card { background: var(--surface); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.lab-card .fact { font-size: 1.1rem; color: var(--teal-deep); font-weight: 700; margin: .6rem 0 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.badge { font-size: .85rem; font-weight: 600; color: var(--teal-deep); background: var(--teal-50); padding: .45rem .9rem; border-radius: 100px; display: inline-flex; gap: .4rem; align-items: center; }

/* couriers */
.courier { text-align: center; }
.courier .ava { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .9rem; background: linear-gradient(160deg, var(--teal-50), var(--teal)); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; }

/* reviews */
.review { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.review .stars { color: var(--amber); margin-bottom: .7rem; letter-spacing: 2px; }
.review p { color: var(--ink); font-size: .98rem; }
.review .who { margin-top: 1rem; font-weight: 700; color: var(--teal-deep); font-size: .92rem; }
.review .who span { font-weight: 600; color: var(--ink-mute); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 820px; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 700; color: var(--teal-deep); text-align: left; font-size: 1.02rem; }
.faq-q .chev { width: 22px; height: 22px; transition: transform .25s; flex: none; color: var(--teal-600); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.4rem 1.3rem; font-size: .98rem; }

/* ---------- Zones ---------- */
.zones { display: flex; flex-wrap: wrap; gap: .6rem; }
.zone-chip { font-weight: 600; font-size: .94rem; color: var(--teal-deep); background: var(--surface); border: 1px solid var(--line); padding: .6rem 1.1rem; border-radius: 100px; transition: all .15s; }
.zone-chip:hover { border-color: var(--teal); color: var(--teal-600); background: var(--teal-50); }

/* ---------- Order form (2-step) ---------- */
.order-section { background: var(--teal-deep); color: #fff; }
.order-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.order-wrap h2 { color: #fff; }
.order-wrap .order-points { display: grid; gap: 1rem; margin-top: 1.6rem; }
.order-wrap .order-points li { display: flex; gap: .7rem; color: rgba(255,255,255,.85); }
.order-wrap .order-points svg { width: 24px; height: 24px; color: var(--amber); flex: none; }
.order-form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.4rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.order-form .progress { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.2rem; font-weight: 600; }
.order-form .progress .dot { width: 28px; height: 4px; border-radius: 100px; background: var(--line); }
.order-form .progress .dot.on { background: var(--teal); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px; /* ≥16px — без авто-зума в iOS Safari */
  padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.order-step { display: none; }
.order-step.active { display: block; animation: fade .3s ease; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; animation: fade .3s ease; }
.form-success .check { width: 70px; height: 70px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .check svg { width: 38px; height: 38px; color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.72); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .15s; display: inline-block; }
.site-footer a:hover { color: var(--amber); }
.site-footer .foot-links { display: grid; gap: .55rem; font-size: .94rem; }
.foot-logo { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .8rem; display: flex; gap: .5rem; align-items: center; }
.foot-contact { font-size: .95rem; display: grid; gap: .5rem; }
.foot-contact b { color: #fff; font-size: 1.2rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.foot-b2b { color: rgba(255,255,255,.6); } /* скрытый B2B-вход */

/* ---------- Mobile sticky call ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
/* .reveal оставлен как смысловой класс-хук, контент всегда виден (без скрытия по JS). */
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .order-wrap, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .header-phone { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
  }
  .cards-3, .cards-4, .steps, .cards-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--surface); box-shadow: 0 -6px 24px rgba(26,61,55,.12);
    padding: .6rem; gap: .5rem; border-top: 1px solid var(--line);
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
  }
  .mobile-bar .btn { flex: 1; padding: .9rem; font-size: .98rem; }
  body { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card { left: 8px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(160deg, var(--teal-50), var(--bg)); padding-block: clamp(2.5rem,6vw,4rem); }
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p { font-size: var(--lead); max-width: 60ch; }
.breadcrumbs { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumbs a:hover { color: var(--teal-600); }
.prose { max-width: 760px; }
.prose h2 { margin: 2rem 0 .9rem; }
.prose h3 { margin: 1.5rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: .4rem; color: var(--ink-soft); }
.prose a { color: var(--teal-600); font-weight: 600; text-decoration: underline; }
