:root {
    --navy: #0a2540;
    --navy-2: #12385e;
    --ink: #1b2733;
    --muted: #5b6b7b;
    --line: #e1e8ef;
    --bg: #f4f8fb;
    --card: #ffffff;
    --green: #12945a;
    --green-dark: #0d7a49;
    --gold: #e0a526;
    --gold-soft: #fff7e0;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(10, 37, 64, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Arabic", "Noto Sans Hebrew", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--navy-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
section { padding: 56px 0; }
.sub { color: var(--muted); margin: -.2em 0 1.8em; max-width: 60ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 20px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green-dark); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .92rem; background: #fff; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; margin-inline-start: 6px; font-size: .8em; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 180px; max-height: 70vh; overflow: auto; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg); font-weight: 700; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 12px; background: var(--green); color: #fff !important; font-weight: 700; text-decoration: none; border: 2px solid var(--green); transition: background .15s, transform .15s; text-align: center; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #3b2a00 !important; }
.btn.gold:hover { background: #c98f13; border-color: #c98f13; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1b6a6f 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .45em; }
.hero p.lead { font-size: 1.12rem; color: #d3e1ef; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #d3e1ef; font-size: .97rem; }
.trust li::before { content: "✓"; color: #5be0a0; font-weight: 800; margin-inline-end: 10px; }
.hero-art { display: flex; justify-content: center; direction: ltr; }
.hero-art svg { width: min(380px, 100%); direction: ltr; unicode-bidi: isolate; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }

/* status */
.status { margin-top: 16px; padding: 0; }
.status .box { display: flex; gap: 16px; align-items: flex-start; background: #e7f7ee; border: 1px solid #a6dcc0; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.status .box.open { background: #e7f7ee; border-color: #a6dcc0; }
.status .ico { font-size: 1.6rem; line-height: 1; }
.status h2 { font-size: 1.1rem; margin: 0 0 4px; }
.status p { margin: 0; color: #4a4a4a; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin-inline: auto; }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.gold { border-color: var(--gold); }
.plan.rec { border-color: var(--green); box-shadow: 0 16px 40px rgba(18, 148, 90, .22); }
.plan .tag { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--green-dark); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.plan .tagline { color: var(--muted); margin: 0 0 14px; }
.plan .price { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { padding-inline-start: 28px; position: relative; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 800; }
.plan.gold li::before { color: var(--gold); }
.fee-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* why */
.why { background: #fff; border-block: 1px solid var(--line); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 4px 4px; }
.why-card .ico { width: 46px; height: 46px; border-radius: 12px; background: #e7f7ee; color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1.05rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: #b8cde0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
[dir="rtl"] .faq summary { padding: 18px 0 18px 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: #3c4a58; }

/* seo */
.seo { background: #fff; border-top: 1px solid var(--line); }
.seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.seo article h2 { font-size: 1.25rem; }
.seo article p { margin: 0; color: #3c4a58; }

/* disclaimer + footer */
.disc { background: #fff6f4; border: 1px solid #f2cdc4; border-radius: var(--radius); padding: 22px 26px; }
.disc h2 { font-size: 1.1rem; color: #8a2b19; }
.disc p { margin: 0 0 8px; color: #5a3a34; font-size: .96rem; }
.site-footer { background: var(--navy); color: #b7c7d8; padding: 36px 0; font-size: .92rem; }
.site-footer a { color: #d7e4f1; }
.site-footer .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0; }
.site-footer p { margin: 6px 0; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .hero-art svg { width: 240px; }
    .steps, .grid4 { grid-template-columns: repeat(2, 1fr); }
    .plans, .seo-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    .lang { margin-inline-start: auto; }
}
@media (max-width: 520px) {
    section { padding: 40px 0; }
    .steps, .grid4 { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 56px; }
    .btn { width: 100%; }
    /* кнопки шапки скрываются точечно ниже */
}

/* общая шапка и подвал */
.bar .btn-status { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--navy) !important; border: 2px solid var(--line); }
.bar .btn-status:hover { background: #f3f7fb; border-color: #c4d3e2; }
.bar .btn-status svg { width: 18px; height: 18px; flex: none; }
.foot-brand { font-size: 1.1rem; color: #fff; }
.foot-tag { margin: 6px 0 22px; max-width: 60ch; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; margin-bottom: 8px; }
.foot-grid h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa6bd; font-weight: 700; }
.foot-grid a { display: block; padding: 9px 0; text-decoration: none; font-size: .98rem; }
.foot-grid a:hover { text-decoration: underline; }
.foot-user { display: block; color: #8fa6bd; font-size: .92rem; }
.site-footer .langs { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; margin-top: 18px; }
.site-footer .langs a { padding: 6px 2px; }
.foot-copy { color: #8fa6bd; font-size: .85rem; }
@media (max-width: 900px) { .bar .btn-status { margin-inline-start: 0; } }
@media (max-width: 520px) {
    .bar .btn.small.btn-apply { display: none; }
    .bar .btn.small.btn-status { display: inline-flex; width: auto; padding: 9px 11px; }
    .bar .btn-status span { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid a { padding: 11px 0; }
}
.logo { white-space: nowrap; } @media (max-width: 520px) { .logo { font-size: 1rem; gap: 8px; } .logo svg { width: 30px; height: 30px; } .bar { gap: 10px; } }

.dates { padding: 28px 0 0; }
.dates-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.dates-box h2 { font-size: 1.4rem; }
.dates-box ul { margin: 12px 0; padding-inline-start: 1.2em; }
.dates-box li { margin: 6px 0; }
.dates-note { color: var(--muted); font-size: .92rem; margin: 0; }
.lang summary { min-height: 44px; display: flex; align-items: center; box-sizing: border-box; }
.lang li a { min-height: 44px; display: flex; align-items: center; box-sizing: border-box; }
.site-footer { padding-bottom: 84px; } /* место под плавающую кнопку чата */
.bar .btn.small.btn-status { min-height: 44px; }
.site-footer .langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.logo { min-height: 44px; display: inline-flex; align-items: center; }

/* мобильная доработка: компактные блоки, SVG-иконки, ритм */
.why-card .ico svg { width: 24px; height: 24px; }
.why-cta { margin: 32px 0 0; }
.why-cta .btn { min-height: 48px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn.small { min-height: 44px; }
@media (max-width: 520px) {
    h2 { font-size: 1.45rem; }
    .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px !important; }
    .why-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
    .why-card .ico { width: 40px; height: 40px; margin-bottom: 8px; }
    .why-card h3 { font-size: .98rem; }
    .why-card p { font-size: .88rem; line-height: 1.5; }
    .steps { gap: 10px; }
    .step { padding: 16px 16px 16px 64px; min-height: 64px; }
    .step::before { position: absolute; inset-inline-start: 16px; top: 16px; margin: 0; }
    .step h3 { margin-bottom: 2px; }
    .why-cta .btn { width: 100%; }
    .disc { margin-bottom: 72px; } /* кнопка чата не перекрывает текст */
}
