@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbfaf7;
  --band: #f4f0e8;
  --card: #ffffff;
  --fg: #181c25;
  --muted: #5f6675;
  --border: #e4e1da;
  --border-soft: #ece9e3;
  --accent: #c2410c;
  --accent-text: #9a3412;
  --accent-bright: #f97415;
  --accent-soft: #fdf0e6;
  --accent-softer: #fff8f2;
  --footer-bg: #14171f;
  --footer-fg: #f0ede6;
  --footer-muted: #a9adb6;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--accent-text); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.site-header .bar {
  max-width: 1400px; margin: 0 auto; padding: 14px 24px; min-height: 76px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.logo { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.logo span { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fg); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent-bright); }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(237, 235, 231, 0.7); font-size: 13px; font-weight: 500; }
.lang a, .lang span { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* Hero */
.hero { background: var(--band); border-bottom: 1px solid var(--border-soft); padding: 88px 16px 200px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 800; letter-spacing: -0.03em; white-space: pre-line; margin-bottom: 20px; }
.hero .lead { max-width: 640px; margin: 0 auto; font-size: 18px; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.trust li { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 500; }

/* Plans */
.plans { margin-top: -136px; padding: 0 16px; }
.plan-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 12px 32px -16px rgba(20, 23, 31, 0.2);
}
.plan.hl { border: 2px solid var(--accent); padding: 27px; box-shadow: 0 20px 50px -12px rgba(150, 73, 0, 0.25); }
.badge {
  position: absolute; top: 0; inset-inline-end: 24px; transform: translateY(-50%);
  background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.plan h3 { font-size: 23px; font-weight: 600; margin-bottom: 4px; }
.plan .tag { font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .num { font-size: 46px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 26px; font-weight: 600; }
.price .per { font-size: 13px; color: var(--muted); }
.plan.hl .price .num, .plan.hl .price .cur { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--muted); margin-top: -8px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li.off { color: var(--muted); }
.ico-yes { color: var(--accent); flex-shrink: 0; }
.ico-no { color: #a3a8b1; flex-shrink: 0; }
.btn {
  display: block; text-align: center; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(24, 28, 37, 0.3); color: var(--fg); background: transparent; margin-top: auto;
}
.btn:hover { background: rgba(24, 28, 37, 0.05); color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #9a3412; color: #fff; }

/* Sections */
.section { padding: 88px 16px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; vertical-align: middle; }
.compare thead th { background: #f7f5f0; border-bottom: 1px solid var(--border); vertical-align: bottom; }
.compare thead th:first-child { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding-inline-start: 24px; }
.compare thead .pn { display: block; font-size: 16px; font-weight: 600; color: var(--fg); }
.compare thead .pp { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.compare thead th.hl { background: var(--accent-soft); border-top: 3px solid var(--accent-bright); }
.compare thead th.hl .pp { color: var(--accent-text); font-weight: 600; }
.compare tbody th { text-align: start; font-weight: 400; padding-inline-start: 24px; }
.compare tbody th small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.compare tbody tr { border-bottom: 1px solid #f1eee8; }
.compare tbody tr.group th { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); padding-top: 20px; padding-bottom: 10px; }
.compare td { font-weight: 500; font-variant-numeric: tabular-nums; }
.compare td.hl, .compare tr.group td.hl { background: var(--accent-softer); }
.compare td svg { margin: 0 auto; }
.compare tfoot td { padding: 18px 10px; }
.compare tfoot .btn { margin: 0; padding: 10px; font-size: 14px; }
.conditions { list-style: none; padding: 0; margin: 40px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Legal pages */
.doc-head { padding: 72px 16px 40px; text-align: center; }
.doc-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.doc-head .updated { font-size: 14px; color: var(--muted); }
.doc { max-width: 860px; margin: 0 auto; padding: 0 16px 88px; }
.doc p { color: #454b57; margin-bottom: 14px; }
.doc .intro p { font-size: 17px; }
.summary { background: var(--accent-soft); border: 1px solid #f6d9c2; border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.summary h2 { font-size: 20px; margin-bottom: 4px; }
.summary .snote { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 48px; }
.toc h2 { font-size: 18px; margin-bottom: 12px; }
.toc ol { margin: 0; padding-inline-start: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.doc section { margin-bottom: 44px; scroll-margin-top: 24px; }
.doc section h2 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.dots { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.dots li { position: relative; padding-inline-start: 22px; color: #454b57; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); }
.summary .dots li { color: var(--fg); }
.doc .table-wrap { margin-bottom: 14px; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.doc table th, .doc table td { padding: 12px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid #f1eee8; }
.doc table thead th { background: #f7f5f0; font-weight: 600; border-bottom: 1px solid var(--border); }
.doc table tbody th { font-weight: 500; width: 32%; }
.doc table td { color: #454b57; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 56px; }
.contact-card h2 { font-size: 20px; margin-bottom: 14px; }
.contact-card p { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 56px 24px; }
.site-footer .cols { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .brand { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.site-footer p, .site-footer a { color: var(--footer-muted); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.site-footer .contacts { display: flex; flex-direction: column; gap: 4px; }
.site-footer .copy { max-width: 1400px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid rgba(240, 237, 230, 0.12); font-size: 13px; color: var(--footer-muted); }

@media (max-width: 640px) {
  .hero { padding: 56px 16px 180px; }
  .section { padding: 64px 16px; }
  .plan { padding: 22px; }
  .plan.hl { padding: 21px; }
}

/* На телефоне: логотип и язык — в первой строке, меню — во второй */
@media (max-width: 640px) {
  .main-nav { order: 3; width: 100%; }
}
