/* ==========================================
   ЗДОРОВЫЙ РАСЧЁТ — Стили
   Палитра: белый · #10B981 (зелёный) · #3B82F6
   Шрифт: Inter
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg:      #ffffff;
    --soft:    #F0FDF4;
    --ink:     #0F172A;
    --ink2:    #334155;
    --ink3:    #64748B;
    --green:   #10B981;
    --grn-dk:  #059669;
    --grn-lt:  #ECFDF5;
    --blue:    #3B82F6;
    --line:    #E2E8F0;
    --sh:  0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.07);
    --shl: 0 4px 24px rgba(15,23,42,.10), 0 12px 40px rgba(15,23,42,.08);
    --ff: 'Inter', system-ui, -apple-system, sans-serif;
    --r: 14px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--ff); font-size:16px; line-height:1.65; color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
ul { list-style:none; }
strong { font-weight:700; }

.container { max-width:1160px; margin:0 auto; padding:0 24px; }
@media(max-width:600px){ .container{ padding:0 16px; } }

/* ── ХЕДЕР ──────────────────────────────── */
.site-header {
    position:sticky; top:0; z-index:100;
    background:rgba(255,255,255,.95); backdrop-filter:blur(12px);
    border-bottom:1px solid var(--line);
}
.header-inner { display:flex; align-items:center; height:64px; gap:28px; }

.logo { display:flex; align-items:center; gap:9px; font-size:19px; font-weight:700; }
.logo-icon { font-size:24px; }
.logo-text { letter-spacing:-.01em; }
.logo-accent { color:var(--green); }

.main-nav { display:flex; gap:4px; margin-left:auto; }
.nav-link { padding:8px 13px; border-radius:8px; font-size:14px; font-weight:500; color:var(--ink2); transition:all .2s; }
.nav-link:hover { background:var(--grn-lt); color:var(--green); }

.nav-toggle { display:none; flex-direction:column; gap:5px; padding:8px; border-radius:8px; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--ink2); border-radius:2px; }

@media(max-width:800px){
    .main-nav { display:none; flex-direction:column; gap:4px; position:absolute; top:64px; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--line); padding:12px 20px 20px; box-shadow:var(--sh); }
    .main-nav.nav-open { display:flex; }
    .nav-toggle { display:flex; margin-left:auto; }
}

/* ── HERO ───────────────────────────────── */
.hero {
    position:relative; overflow:hidden;
    background:linear-gradient(135deg,#F0FDF4,#DCFCE7,#ECFDF5);
    padding:80px 0 100px;
}

.hero-bg { position:absolute; inset:0; pointer-events:none; }
.hb-circle {
    position:absolute; border-radius:50%;
    border:1px solid rgba(16,185,129,.15);
}
.hb-c1 { width:500px; height:500px; top:-150px; right:-100px; }
.hb-c2 { width:340px; height:340px; top:-60px; right:20px; border-color:rgba(16,185,129,.1); }
.hb-c3 { width:180px; height:180px; bottom:40px; left:6%; border-color:rgba(16,185,129,.08); }
.hb-svg { position:absolute; left:5%; top:15%; width:380px; height:300px; }
.hb-dots { position:absolute; right:5%; bottom:10%; width:160px; height:160px; }

.hero-content { position:relative; z-index:1; display:grid; grid-template-columns:1.1fr 0.9fr; gap:52px; align-items:center; }
@media(max-width:960px){ .hero-content{ grid-template-columns:1fr; gap:36px; } }

.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:6px 16px; border-radius:50px; background:rgba(16,185,129,.12); color:var(--green); font-size:13px; font-weight:600; margin-bottom:22px; border:1px solid rgba(16,185,129,.2); }
.hero-title { font-size:clamp(30px,5vw,52px); font-weight:800; line-height:1.12; margin-bottom:18px; }
.hero-accent { color:var(--green); }
.hero-sub { font-size:16px; color:var(--ink2); margin-bottom:30px; line-height:1.7; max-width:480px; }

.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:8px; padding:14px 26px; background:var(--green); color:#fff; font-size:15px; font-weight:700; border-radius:50px; transition:all .25s; box-shadow:0 4px 14px rgba(16,185,129,.35); cursor:pointer; }
.btn-primary:hover { background:var(--grn-dk); transform:translateY(-2px); box-shadow:0 8px 24px rgba(16,185,129,.45); }
.btn-ghost { display:inline-flex; align-items:center; padding:14px 22px; border:1.5px solid var(--line); color:var(--ink2); font-size:15px; font-weight:500; border-radius:50px; transition:all .2s; }
.btn-ghost:hover { border-color:var(--green); color:var(--green); background:var(--grn-lt); }

/* Декоративные карточки hero */
.hero-right { position:relative; height:280px; }
@media(max-width:960px){ .hero-right{ display:none; } }

.hero-card { position:absolute; background:#fff; border-radius:18px; box-shadow:var(--shl); border:1px solid rgba(15,23,42,.04); }
.hc-main { width:280px; padding:20px; top:0; right:0; animation:floatC 7s ease-in-out infinite; }
.hc-label { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink3); margin-bottom:8px; }
.hc-range { font-size:28px; font-weight:800; color:var(--green); margin-bottom:14px; }
.hc-bar { display:flex; border-radius:6px; overflow:hidden; height:10px; margin-bottom:10px; gap:2px; }
.hcb-seg { height:100%; border-radius:3px; }
.hcb-active { box-shadow:0 0 0 2px var(--green); }
.hc-hint { font-size:12px; color:var(--ink3); }

.hc-sm { display:flex; align-items:center; gap:12px; padding:14px 18px; animation:floatC 7s ease-in-out infinite reverse; }
.hc-a { left:0; bottom:80px; animation-delay:-2.5s; }
.hc-b { right:0; bottom:10px; animation-delay:-5s; }
.hcs-icon { font-size:24px; }
.hcs-v { font-size:17px; font-weight:700; color:var(--ink); line-height:1; }
.hcs-l { font-size:11px; color:var(--ink3); margin-top:3px; }

@keyframes floatC { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }

/* ── СЕКЦИИ ─────────────────────────────── */
section { padding:80px 0; }
.sec-head { text-align:center; margin-bottom:44px; }
.sec-label { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--green); margin-bottom:10px; }
.sec-title { font-size:clamp(26px,3.8vw,40px); font-weight:700; line-height:1.15; margin-bottom:12px; }
.sec-sub { font-size:16px; color:var(--ink3); max-width:560px; margin:0 auto; line-height:1.65; }
@media(max-width:768px){ section{ padding:56px 0; } }

/* ── КАЛЬКУЛЯТОР ────────────────────────── */
.calc-sec { background:var(--soft); }
.calc-card { max-width:680px; margin:0 auto; background:#fff; border-radius:24px; padding:36px; box-shadow:var(--shl); border:1px solid var(--line); }

.calc-form { display:grid; grid-template-columns:1fr 1fr auto; gap:16px; align-items:end; margin-bottom:24px; }
@media(max-width:640px){ .calc-form{ grid-template-columns:1fr; } }

.calc-field label { display:block; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink3); margin-bottom:8px; }
.calc-input-wrap { position:relative; display:flex; align-items:center; }
.calc-input-wrap input { width:100%; padding:14px 48px 14px 16px; font-family:var(--ff); font-size:18px; font-weight:600; background:#fff; border:2px solid var(--line); border-radius:12px; color:var(--ink); transition:border-color .2s; }
.calc-input-wrap input:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(16,185,129,.12); }
.calc-input-wrap input::placeholder { font-weight:400; font-size:14px; color:var(--ink3); }
.calc-unit { position:absolute; right:14px; font-size:13px; font-weight:700; color:var(--ink3); pointer-events:none; }

.calc-btn { padding:14px 24px; font-size:15px; font-weight:700; border-radius:12px; white-space:nowrap; align-self:end; }

/* Результат */
.calc-result { border-top:1px solid var(--line); padding-top:20px; }
.calc-error { display:flex; align-items:center; gap:10px; padding:14px 18px; background:#FEF2F2; border:1px solid #FECACA; border-radius:10px; color:#DC2626; font-size:14px; }

.calc-res-inner { display:flex; gap:20px; align-items:center; margin-bottom:20px; }
@media(max-width:500px){ .calc-res-inner{ flex-direction:column; align-items:flex-start; } }

.res-imt-block { text-align:center; padding:18px 24px; border-radius:16px; border:3px solid; min-width:100px; }
.res-imt-val { font-size:44px; font-weight:800; line-height:1; }
.res-imt-label { font-size:12px; color:var(--ink3); margin-top:4px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }

.res-cat-block { flex-grow:1; }
.res-cat-icon { font-size:28px; margin-bottom:6px; }
.res-cat-name { font-size:20px; font-weight:800; margin-bottom:8px; }
.res-range { font-size:13px; color:var(--ink3); margin-bottom:4px; }
.res-ideal { font-size:14px; color:var(--ink2); }

/* Шкала ИМТ */
.calc-scale { margin-bottom:16px; }
.scale-wrap { }
.scale-bar { position:relative; display:flex; gap:2px; height:16px; border-radius:8px; overflow:visible; margin-bottom:8px; }
.scale-seg { border-radius:4px; }
.scale-marker { position:absolute; top:-10px; transform:translateX(-50%); }
.scale-marker-pin { width:3px; height:36px; background:var(--ink); border-radius:2px; margin:0 auto; }
.scale-marker-val { font-size:11px; font-weight:800; color:var(--ink); text-align:center; margin-top:4px; white-space:nowrap; }
.scale-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--ink3); padding:0 2px; }

.calc-disclaimer { font-size:12px; color:var(--ink3); font-style:italic; line-height:1.6; }

/* ── ТАБЛИЦА НОРМ ───────────────────────── */
.norms-sec { background:var(--bg); }
.norms-table-wrap { max-width:820px; margin:0 auto 40px; overflow-x:auto; }
.norms-table { width:100%; border-collapse:collapse; border-radius:var(--r); overflow:hidden; box-shadow:var(--sh); border:1px solid var(--line); }
.norms-table thead { background:var(--soft); }
.norms-table th { padding:14px 18px; text-align:left; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--green); border-bottom:2px solid var(--line); }
.norms-table td { padding:13px 18px; font-size:14px; border-bottom:1px solid var(--line); }
.norms-table tr:last-child td { border-bottom:none; }
.norms-table tr:hover td { background:rgba(16,185,129,.03); }
.nt-norm td:first-child { font-weight:700; }
.nt-norm { background:rgba(16,185,129,.04); }
.nt-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle; }
.norms-note { font-size:13px; color:var(--ink3); font-style:italic; margin-top:12px; }

/* Важно знать */
.important-block { background:var(--soft); border-radius:var(--r); padding:32px; max-width:820px; margin:0 auto; border:1px solid rgba(16,185,129,.2); }
.imp-title { font-size:18px; font-weight:700; margin-bottom:20px; color:var(--ink); }
.imp-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media(max-width:640px){ .imp-grid{ grid-template-columns:1fr; } }
.imp-item { display:flex; gap:14px; align-items:flex-start; }
.imp-icon { font-size:26px; flex-shrink:0; margin-top:2px; }
.imp-item strong { display:block; font-size:14px; font-weight:700; margin-bottom:5px; }
.imp-item p { font-size:13px; color:var(--ink3); line-height:1.65; }

/* ── СОВЕТЫ ─────────────────────────────── */
.tips-sec { background:var(--soft); }
.tips-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:900px){ .tips-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .tips-grid{ grid-template-columns:1fr; } }

.tip-card { background:#fff; border-radius:var(--r); padding:24px 22px; box-shadow:var(--sh); border:1px solid var(--line); transition:all .3s; }
.tip-card:hover { transform:translateY(-4px); box-shadow:var(--shl); }
.tip-icon { width:50px; height:50px; border-radius:12px; font-size:24px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.tip-badge { display:inline-block; padding:3px 10px; border-radius:50px; font-size:11px; font-weight:700; margin-bottom:10px; }
.tip-card h3 { font-size:16px; font-weight:700; margin-bottom:9px; }
.tip-card p { font-size:13px; color:var(--ink3); line-height:1.7; }

/* ── FAQ ────────────────────────────────── */
.faq-sec { background:var(--bg); }
.faq-list { max-width:760px; margin:0 auto; border-radius:var(--r); overflow:hidden; border:1px solid var(--line); box-shadow:var(--sh); }
.faq-item { border-bottom:1px solid var(--line); }
.faq-item:last-child { border-bottom:none; }

.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; font-size:15px; font-weight:600; text-align:left; background:#fff; cursor:pointer; transition:background .2s; }
.faq-q:hover { background:var(--grn-lt); }
.faq-q.open { background:var(--grn-lt); color:var(--green); }
.faq-arrow { font-size:18px; flex-shrink:0; transition:transform .25s; }
.faq-q.open .faq-arrow { transform:rotate(180deg); }

.faq-a { background:#FAFFFE; border-top:1px solid var(--line); }
.faq-a p { padding:16px 20px; font-size:14px; color:var(--ink2); line-height:1.75; }

/* ── FOOTER ─────────────────────────────── */
.site-footer { background:#0F172A; color:rgba(255,255,255,.65); }
.footer-inner { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; padding:52px 0 36px; }
@media(max-width:768px){ .footer-inner{ grid-template-columns:1fr 1fr; gap:28px; } }
@media(max-width:480px){ .footer-inner{ grid-template-columns:1fr; } }

.ft-brand .ft-logo { font-size:20px; font-weight:700; color:#fff; margin-bottom:12px; }
.ft-brand .ft-logo span { color:var(--green); }
.ft-brand p { font-size:13px; line-height:1.65; max-width:300px; }
.ft-col h4 { font-size:12px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:#fff; margin-bottom:14px; }
.ft-col ul { display:grid; gap:9px; }
.ft-col a { font-size:14px; color:rgba(255,255,255,.6); transition:color .2s; }
.ft-col a:hover { color:var(--green); }

.footer-policy { padding:20px 0; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:18px; font-size:13px; line-height:1.7; color:rgba(255,255,255,.5); max-width:860px; }
.footer-policy strong { color:rgba(255,255,255,.7); }
.footer-bottom { display:flex; justify-content:space-between; padding-bottom:28px; font-size:12px; color:rgba(255,255,255,.4); gap:14px; flex-wrap:wrap; }

/* ── АНИМАЦИИ ───────────────────────────── */
.fade-in { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ── ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ──────────────── */
.hero-left { min-width:0; }
