/* ==========================================================================
   VPSNow — стили сайта
   Цвета и размеры собраны в переменных ниже: меняйте их, чтобы перекрасить сайт.
   ========================================================================== */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  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 {
  --deep: #0b3a8c;          /* фирменный тёмно-синий (первый экран, шапка) */
  --brand: #018fff;         /* синий из логотипа */
  --link: #0b4fb8;
  --link-hover: #083a87;
  --yellow: #ffd23f;        /* акцент: главные кнопки */
  --yellow-hover: #ffc60a;
  --ink: #0b1b33;           /* основной текст */
  --muted: #4a5872;         /* второстепенный текст */
  --on-deep: #ffffff;
  --on-deep-muted: #c5d6f5;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e3e9f2;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1c3256; color: #fff; }
.btn--blue { background: var(--link); color: #fff; }
.btn--blue:hover { background: var(--link-hover); color: #fff; }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Плашка выбора языка ---------- */
.langbar { background: var(--yellow); color: var(--ink); font-size: 15px; }
.langbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.langbar__yes { color: var(--ink); font-weight: 600; }
.langbar__close { margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 8px; }

/* ---------- Шапка ---------- */
.site-header { background: var(--deep); color: var(--on-deep); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .04em; padding: 6px 10px; border-radius: 8px; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255,255,255,.16); }
.logo:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.site-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: #fff; text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { border-bottom-color: var(--yellow); color: #fff; }
.lang-switch { display: flex; gap: 2px; margin-left: auto; font-size: 14px; font-weight: 500; }
.lang-switch a { color: var(--on-deep-muted); text-decoration: none; padding: 8px 8px; border-radius: 8px; }
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.14); }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }

@media (max-width: 960px) {
  .site-header__inner { gap: 12px; min-height: 68px; }
  .site-header__cabinet { margin-left: auto; }
  .burger { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); border-top: 1px solid rgba(255,255,255,.12); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 8px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
  .nav-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 18px; }
  .site-nav__list a[aria-current="page"] { color: var(--yellow); border-bottom-color: rgba(255,255,255,.1); }
  .lang-switch { margin: 8px 0 0; }
  .lang-switch a { padding: 10px 14px; font-size: 16px; }
}
@media (max-width: 420px) {
  .site-header__cabinet { padding: 0 14px; font-size: 14px; }
}

/* ---------- Первый экран (главная) ---------- */
.hero { background: var(--deep); color: var(--on-deep); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__text h1 { color: #fff; margin-bottom: 22px; line-height: 1.05; }
.hero__accent { color: var(--yellow); }
@media (max-width: 640px) { .hero__text h1 br { display: none; } }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--on-deep-muted); max-width: 540px; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; margin-top: 3px; color: var(--yellow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Конфигуратор ---------- */
.configurator { flex: 1 1 400px; min-width: 0; max-width: 520px; background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.configurator__label { margin: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.seg { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; background: var(--bg-alt); padding: 6px; border-radius: 14px; }
.seg__btn { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.seg__btn:hover { background: #e3ebf6; }
.seg__btn[aria-pressed="true"] { background: var(--link); color: #fff; }
.configurator__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 20px; }
.configurator__plan { margin: 0; font-size: 22px; font-weight: 600; }
.configurator__price { margin: 0; }
.configurator__amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.configurator__per { color: var(--muted); }
.bars { display: grid; gap: 14px; margin-top: 18px; }
.bar__row { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.bar__row span { color: var(--muted); }
.bar__track { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--link); transition: width .25s ease; }
.configurator__note { margin: 18px 0; font-size: 14px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--muted); max-width: 560px; }
.section__foot { margin-top: 18px; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.steps li { background: var(--bg-alt); border-radius: 20px; padding: 28px; }
.steps__num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.steps h3 { margin: 18px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Таблица тарифов */
.table-wrap { overflow-x: auto; background: #fff; border-radius: 20px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.plans-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; text-align: left; }
.plans-table th, .plans-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plans-table thead th { font-size: 20px; padding-top: 18px; padding-bottom: 18px; }
.plans-table tbody th { color: var(--muted); font-weight: 400; padding-left: 22px; }
.plans-table tbody th, .plans-table thead td, .plans-table__order td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
@media (max-width: 640px) {
  .plans-table { font-size: 15px; min-width: 560px; }
  .plans-table tbody th { padding-left: 14px; max-width: 130px; box-shadow: 1px 0 0 var(--line); }
  .plans-table th, .plans-table td { padding: 12px 10px; }
}
.plans-table__price td { font-weight: 700; font-size: 22px; }
.plans-table__order td, .plans-table__order th { border-bottom: 0; padding-top: 16px; padding-bottom: 18px; }

/* Возможности */
.split { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.split__aside { flex: 1 1 300px; }
.split__main { flex: 2 1 520px; min-width: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
.features li { display: flex; gap: 14px; }
.features li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--link); }
.features h3 { font-size: 18px; margin: 0 0 4px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.section--alt .card { border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; }
.logos img { height: 26px; width: auto; opacity: .8; }

/* Жёлтая плашка-призыв */
.cta { background: var(--yellow); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 36px); }
.cta p { margin: 0; color: #3b3210; font-size: 17px; }

/* Вопросы-ответы (раскрывающиеся) */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* SEO-текст */
.seo-text { max-width: 860px; color: var(--muted); }
.seo-text h2 { color: var(--ink); }
.seo-text summary { cursor: pointer; color: var(--link); font-weight: 600; margin-bottom: 12px; }

/* ---------- Внутренние страницы ---------- */
.page-hero { background: var(--deep); color: #fff; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin: 0; max-width: 900px; }
.page-hero p { color: var(--on-deep-muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 720px; margin: 14px 0 0; }
.crumbs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-deep-muted); }
.crumbs a { color: var(--on-deep-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

.page { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
.page__grid { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.page__main { flex: 999 1 560px; min-width: 0; }
.page__aside { flex: 1 1 300px; display: grid; gap: 16px; }

/* Текст статей */
.prose { max-width: 800px; font-size: 17px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.8em; scroll-margin-top: 20px; }
.prose > :first-child, .prose > section:first-child > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose ul.clauses { list-style: none; padding-left: 0; }
.prose ul.clauses li { padding-left: 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.note { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.4em; }
.note p:last-child { margin-bottom: 0; }
.note--yellow { background: #fff5cc; }

/* Оглавление FAQ */
.toc { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px 28px; margin: 0 0 2em; }
.toc__group { font-weight: 600; margin: 0 0 8px; }
.toc ul { margin: 0 0 18px; padding-left: 1.2em; }
.toc ul:last-child { margin-bottom: 0; }
.toc li { margin-bottom: 6px; font-size: 16px; }

/* Список возможностей на странице «Возможности» */
.feature-list h3 { display: flex; gap: 12px; }
.feature-list h3::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; background: var(--link); }

/* Боковые карточки */
.side-card { background: var(--bg-alt); border-radius: 20px; padding: 24px; }
.side-card h2 { font-size: 18px; margin: 0 0 10px; }
.side-card p { margin: 0 0 .6em; font-size: 15px; }
.side-card p:last-child { margin-bottom: 0; }
.side-card dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.side-card dt { font-weight: 600; }
.side-card dd { margin: 0; color: var(--muted); }
.side-card--dark { background: var(--ink); color: #fff; }
.side-card--dark p { color: #c5d0e2; }
.side-card--dark .btn { margin-top: 8px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #c5d0e2; font-size: 15px; }
.site-footer a { color: #c5d0e2; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer__brand p { margin: 18px 0 14px; line-height: 1.6; }
.site-footer__title { color: #fff; font-weight: 600; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__accent { color: var(--yellow) !important; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #1f3352; font-size: 13px; color: #9fb0c8; }
.ua-badge { display: inline-block; }
.ua-badge img { display: block; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .langbar, .cta { display: none; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}
.page-hero p a { color: #fff; }
.side-card__more { margin-top: 12px !important; }
.side-card--dark a:not(.btn) { color: #fff; }
@media (min-width: 1000px) { .page__aside { position: sticky; top: 24px; } }
