/* ============================================================
   Scorpionix — статический сайт
   Общие стили для всех страниц
   ============================================================ */

:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --green-light: #e8f5e9;
    --accent: #ff8f00;
    --accent-dark: #ef6c00;
    --text: #1f2a24;
    --muted: #5c6b63;
    --bg: #ffffff;
    --bg-soft: #f4f8f5;
    --card: #ffffff;
    --border: #e3ebe5;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 6px 24px rgba(27, 94, 32, .08);
    --shadow-lg: 0 18px 50px rgba(27, 94, 32, .14);
    --container: 1180px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--green-dark); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(28px, 4.5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p { margin: 0 0 1em; }

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

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent-dark);
    background: #fff4e2; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
    border: 2px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
    line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(239, 108, 0, .28); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green); }
.btn--lg { padding: 17px 36px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--green-dark); color: #d9f0db; font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--green-dark); }
.logo:hover { text-decoration: none; }
.logo__mark { flex: none; }
.logo small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__list a { display: inline-block; padding: 9px 13px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.nav__list a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.nav__list a.is-active { color: var(--green-dark); background: var(--green-light); }

.header__cta { margin-left: 6px; }

.burger { margin-left: auto; display: none; width: 46px; height: 46px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 50%; width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; transform: translateX(-50%); transition: .2s; }
.burger span { top: 50%; transform: translate(-50%, -50%); }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #f1f9f2 0%, #e3f3e6 60%, #d7eedb 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0; }
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.hero__list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; }
.hero__list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; margin-top: 2px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.product-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 30px; text-align: center; position: relative; }
.product-card .badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.product-visual { margin: 0 auto 18px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 8px 0 4px; }
.price__new { font-size: 40px; font-weight: 800; color: var(--accent-dark); }
.price__old { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.price__note { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-light); color: var(--green-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 28px; height: 28px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Specs table ---------- */
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.specs th, .specs td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.specs th { width: 42%; background: var(--bg-soft); color: var(--green-dark); font-weight: 700; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }

/* ---------- Composition list ---------- */
.ingredient { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.ingredient__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--green-light); display: grid; place-items: center; }
.ingredient__icon svg { width: 34px; height: 34px; color: var(--green); }
.ingredient h3 { margin-bottom: 6px; }
.ingredient p { color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 20px; }
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Two-column note (indications) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.panel--ok { border-top: 4px solid var(--green); }
.panel--warn { border-top: 4px solid var(--accent); }
.panel ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.panel li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.panel li .mk { flex: none; font-weight: 800; }
.panel--ok .mk { color: var(--green); }
.panel--warn .mk { color: var(--accent-dark); }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; height: 100%; }
.review__head { display: flex; align-items: center; gap: 13px; }
.review__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none; }
.review__name { font-weight: 700; color: var(--green-dark); }
.review__meta { font-size: 13px; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.review p { margin: 0; color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 56px 20px 22px; font-size: 17px; font-weight: 700; color: var(--green-dark); position: relative; font-family: inherit; }
.faq__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent-dark); transition: .2s; }
.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Order / CTA form ---------- */
.cta { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 22px; padding: 44px; }
.cta h2 { color: #fff; }
.cta p { color: #d9f0db; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.form { display: grid; gap: 14px; }
.form input, .form textarea {
    width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border);
    font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form__note { font-size: 13px; color: #cfe8d2; margin: 0; }
.form__success { display: none; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); border-radius: 12px; padding: 18px; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }

/* ---------- Contacts ---------- */
.contact-item { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.contact-item__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--green-light); color: var(--green-dark); display: grid; place-items: center; }
.contact-item h3 { margin: 0 0 3px; font-size: 17px; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); }

/* ---------- Article (legal / text pages) ---------- */
.article { max-width: 840px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { color: var(--muted); padding-left: 22px; }
.article li { margin-bottom: 8px; }

/* ---------- Breadcrumbs / page hero ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 40px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.page-hero h1 { margin: 0; }
.page-hero p { margin: 12px 0 0; color: var(--muted); max-width: 760px; }

/* ---------- Disclaimer ---------- */
.disclaimer { background: #fff8ec; border: 1px solid #ffe2b3; border-radius: var(--radius); padding: 18px 22px; color: #7a5a16; font-size: 14.5px; }
.disclaimer strong { color: #5f4510; }

/* ---------- Footer ---------- */
.footer { background: #11241a; color: #b9cabf; padding: 56px 0 26px; font-size: 15px; }
.footer a { color: #d7e7da; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { color: #93a89a; margin: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #8a9d90; font-size: 13.5px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound__code { font-size: clamp(90px, 18vw, 170px); font-weight: 800; line-height: 1; color: var(--green); margin: 0; }
.notfound h1 { margin: 10px 0 14px; }
.notfound p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; gap: 34px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .order-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 820px) {
    .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .25s ease; margin: 0; max-height: calc(100vh - 72px); overflow-y: auto; }
    .nav.is-open { transform: translateY(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
    .nav__list a { padding: 13px 12px; border-radius: 8px; font-size: 16px; }
    .header__cta { display: none; }
    .burger { display: block; }
    .nav { margin-left: 0; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .section { padding: 48px 0; }
    .grid--2, .grid--3, .grid--4, .split { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .cta { padding: 30px 22px; }
    .topbar__item--hours { display: none; }
    .specs th { width: 50%; }
}
