:root {
  --bg: #ffffff;
  --tint: #f3f6fb;
  --ink: #13213a;
  --ink-2: #3f4e68;
  --muted: #64738c;
  --line: #dfe5ef;
  --accent: #1b4fd8;
  --accent-2: #1641b5;
  --accent-soft: #e7eefe;
  --check: #14b88a;
  --navy: #0f2342;
  --radius: 14px;
  --container: 1180px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

/* Language visibility */
html:not([data-lang="ru"]) .ru { display: none !important; }
html[data-lang="ru"] .pl { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .num { font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 10px;
  font: 600 .95rem/1.2 var(--font); border: 1px solid var(--line); color: var(--ink); background: #fff;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.arrow { font-weight: 600; white-space: nowrap; }
.arrow::after { content: " →"; }

/* Header */
.header { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo em { font-style: normal; font-weight: 400; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav a, .nav__drop > button { color: var(--ink-2); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav__drop > button:hover, .nav .is-active { color: var(--ink); }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 16px); left: -16px; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; display: none;
  box-shadow: 0 12px 32px rgba(15, 35, 66, .1);
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { display: block; }
.nav__drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); }
.nav__menu a small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.nav__menu a:hover { background: var(--tint); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; background: var(--tint); border-radius: 9px; padding: 3px; }
.lang button {
  border: 0; background: none; font: 600 .82rem var(--font); color: var(--muted); cursor: pointer;
  padding: 5px 10px; border-radius: 7px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,35,66,.1); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; font: 600 .88rem var(--font); color: var(--ink); cursor: pointer; padding: 8px 12px; }

@media (max-width: 960px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); display: none;
    max-height: calc(100vh - 72px); overflow: auto; box-shadow: 0 12px 32px rgba(15, 35, 66, .08);
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav__drop > button { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 1.02rem; color: var(--ink); }
  .nav__menu { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 8px; min-width: 0; }
  .nav__drop::after { display: none; }
  .header__actions { margin-left: auto; }
}

/* Hero */
.hero { padding: 80px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 32px; }
.prices { background: var(--tint); border-radius: 18px; padding: 8px 28px 20px; }
.prices__title { font-size: .9rem; font-weight: 600; color: var(--muted); padding: 18px 0 10px; margin: 0; }
.prices__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.prices__row > span { font-weight: 500; }
.prices__row small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.prices__row strong { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.prices__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .prices { padding: 4px 20px 16px; }
}

/* Page hero */
.page-hero { padding: 56px 0 8px; }
.page-hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 680px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.kicker { font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.page-hero + .section { padding-top: 48px; }

/* Services */
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.list__item {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: border-color .15s;
}
.list__item:hover { border-color: #b8c6de; }
.list__item .n { font-size: .82rem; font-weight: 600; color: var(--muted); }
.list__item h3 { margin: 0; }
.list__item p { margin: 0; color: var(--muted); }
.list__item .arrow { margin-top: auto; padding-top: 12px; }
@media (max-width: 960px) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .list { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.plan__tag { font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.plan__desc { color: var(--muted); font-size: .95rem; margin: 6px 0 24px; min-height: 3em; }
.plan__price { font-size: 2.8rem; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan__note { color: var(--muted); font-size: .85rem; margin: 8px 0 24px; }
.plan ul { list-style: none; padding: 20px 0 0; margin: 0 0 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { padding-left: 26px; font-size: .95rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--check); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.plan--featured .plan__desc, .plan--featured .plan__note, .plan--featured .plan__price small { color: #a9b6cd; }
.plan--featured ul { border-color: rgba(255,255,255,.14); }
.plan--featured .plan__tag { background: rgba(255,255,255,.12); color: #fff; }
.plan--featured .btn--solid:hover { background: #fff; border-color: #fff; color: var(--navy); }

.aside-prices { padding: 32px; border-radius: 18px; background: var(--tint); }
.aside-prices h3 { margin-bottom: 8px; }
.aside-prices .prices { padding: 0; background: none; border-radius: 0; }

/* Price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ptable--wide { min-width: 680px; }
.ptable th, .ptable td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable thead th { background: var(--tint); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.ptable thead th:not(:first-child) { color: var(--ink); font-size: 1rem; }
.ptable thead th small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.ptable tbody tr:hover td { background: #fafbfd; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tr.group td { padding-top: 28px; padding-bottom: 10px; font-size: .82rem; font-weight: 600; color: var(--accent); background: #fff !important; }
.ptable td.val { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.yes { color: var(--check); font-weight: 700; }
.yes::before { content: "✓"; }
.dash { color: #b6c0d0; }
.table-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--tint); }
.step .n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 18px;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 24px; }
.faq details[open] { border-color: #b8c6de; }
.faq summary {
  cursor: pointer; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 24px;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); max-width: 720px; margin-top: -4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact > div { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact .label { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.contact a.big { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); word-break: break-word; }
.contact a.big:hover { color: var(--accent); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Closing band */
.section--closing { padding-top: 0; }
.closing {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--accent); color: #fff; border-radius: 20px; padding: 48px;
}
.closing h2 { margin-bottom: 8px; }
.closing p { color: #d6e1ff; margin: 0; max-width: 560px; }
.closing .btn--solid { background: #fff; border-color: #fff; color: var(--accent); }
.closing .btn--solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.footer { background: var(--navy); padding: 56px 0 32px; font-size: .92rem; color: #a9b6cd; }
.footer a { color: #e6ecf7; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .9rem; font-weight: 600; color: #fff; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo { display: inline-block; margin-bottom: 12px; color: #fff; }
.footer .logo em { color: #7fa2ff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .85rem; color: #8f9cb5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
