/* =========================================================
   vsemkk.ru — базовые стили
   Без внешних шрифтов/фреймворков/CDN. Только системные шрифты.
   ========================================================= */

:root{
  --blue-900:#0b2f6b;
  --blue-800:#0d3a86;
  --blue-700:#1a5fe0;
  --blue-600:#2277f0;
  --blue-500:#39b8f0;
  --blue-400:#6fd0f5;
  --blue-100:#e8f3ff;
  --blue-50:#f4faff;
  --ink:#122038;
  --ink-soft:#3a4a63;
  --gray:#647089;
  --gray-light:#98a3b8;
  --line:#e1eaf5;
  --white:#ffffff;
  --orange:#ff8a3d;
  --green:#17b57e;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --shadow-sm:0 4px 14px rgba(18,32,58,.06);
  --shadow-md:0 14px 34px rgba(15,55,120,.12);
  --shadow-lg:0 24px 60px rgba(10,40,100,.16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0 0 0.6em; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--blue-700); color:#fff; padding:10px 16px; border-radius:0 0 8px 0; z-index:999;
}
.skip-link:focus{ left:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:none;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color:#fff;
  box-shadow:0 10px 24px rgba(26,95,224,.28);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(26,95,224,.36); }
.btn-primary:active{ transform:translateY(0); }
.btn-outline{
  background:#fff; color:var(--blue-700); border:1.5px solid var(--line);
}
.btn-outline:hover{ border-color:var(--blue-500); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
  position:relative;
}
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo-img{ display:block; height:auto; max-width:100%; }

/* Логотип на тёмном подвале — светлая подложка, т.к. в файле логотипа тёмный текст */
.logo-plate{
  display:inline-flex; align-items:center; background:#fff;
  padding:8px 14px; border-radius:12px;
}

.main-nav{ display:flex; align-items:center; gap:28px; margin-left:auto; }
.main-nav a{ font-weight:600; font-size:15px; color:var(--ink-soft); padding:8px 2px; position:relative; }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background:var(--blue-600); transform:scaleX(0); transform-origin:left; transition:transform .18s ease;
}
.main-nav a:hover{ color:var(--blue-700); }
.main-nav a:hover::after,
.main-nav a.active::after{ transform:scaleX(1); }
.main-nav a.active{ color:var(--blue-700); }
.main-nav a.nav-cta{
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color:#fff; padding:10px 20px; border-radius:999px; margin-left:6px;
}
.main-nav a.nav-cta::after{ display:none; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; background:none; border:none; border-radius:8px;
}
.nav-toggle span{ display:block; height:2px; width:22px; background:var(--ink); border-radius:2px; margin:0 auto; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ padding:14px 0; border-bottom:1px solid var(--line); background:var(--blue-50); }
.breadcrumbs ol{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0; }
.breadcrumbs li{ font-size:13px; color:var(--gray); display:flex; align-items:center; gap:6px; }
.breadcrumbs li:not(:last-child)::after{ content:"›"; color:var(--gray-light); margin-left:6px; }
.breadcrumbs li a{ color:var(--blue-700); font-weight:600; }
.breadcrumbs li a:hover{ text-decoration:underline; }
.breadcrumbs li[aria-current="page"]{ color:var(--ink-soft); font-weight:600; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color:#fff;
  padding:64px 0 120px;
  overflow:hidden;
}
.hero::before, .hero::after{
  content:""; position:absolute; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 60%);
  filter:blur(2px);
}
.hero::before{ width:420px; height:420px; top:-140px; right:-100px; }
.hero::after{ width:280px; height:280px; bottom:-120px; left:-80px; background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), transparent 60%); }
.hero-inner{ position:relative; z-index:1; max-width:760px; }
.hero-eyebrow{
  display:inline-block; padding:6px 14px; border-radius:999px;
  background:rgba(255,255,255,.16); font-size:13px; font-weight:600; margin-top:20px;
  border:1px solid rgba(255,255,255,.28);
}
.hero h1{ font-size:clamp(28px, 4vw, 42px); line-height:1.18; font-weight:800; margin-bottom:16px; }
.hero p{ font-size:17px; color:rgba(255,255,255,.88); max-width:620px; }

/* ---------- Calculator strip ---------- */
.calc-strip{ position:relative; z-index:2; margin-top:-72px; }
.calc-inner{
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  padding:28px 30px 22px;
}
.calc-form{
  display:grid;
  grid-template-columns:1.3fr 1.1fr .9fr auto;
  gap:24px;
  align-items:end;
}
.calc-field label{ display:block; font-size:13px; font-weight:700; color:var(--gray); margin-bottom:10px; text-transform:uppercase; letter-spacing:.04em; }
.calc-value{
  display:flex; align-items:center; gap:6px; margin-top:10px;
  border:1.5px solid var(--line); border-radius:var(--radius-sm); padding:8px 14px;
  background:var(--blue-50);
}
.calc-value input{
  border:none; background:transparent; font-size:17px; font-weight:700; color:var(--ink);
  width:100%; outline:none; font-family:inherit;
}
.calc-value span{ font-size:14px; color:var(--gray); font-weight:600; }

input[type="range"].calc-range{
  -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px;
  background:var(--line); outline:none;
}
input[type="range"].calc-range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:20px; height:20px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border:3px solid #fff; box-shadow:0 2px 8px rgba(26,95,224,.4); cursor:pointer;
}
input[type="range"].calc-range::-moz-range-thumb{
  width:20px; height:20px; border-radius:50%; border:3px solid #fff;
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow:0 2px 8px rgba(26,95,224,.4); cursor:pointer;
}
.calc-btn{ height:56px; padding:0 30px; }

.calc-result{
  margin-top:22px; padding-top:20px; border-top:1px dashed var(--line);
  display:flex; gap:40px; flex-wrap:wrap;
}
.calc-result-item{ display:flex; flex-direction:column; gap:4px; }
.calc-result-item span{ font-size:13px; color:var(--gray); font-weight:600; }
.calc-result-item strong{ font-size:22px; color:var(--blue-700); font-weight:800; }
.calc-note{ margin:18px 0 0; font-size:12.5px; color:var(--gray-light); line-height:1.5; }

/* ---------- Section shell ---------- */
.section{ padding:72px 0; }
.section-alt{ background:var(--blue-50); }
.section-head{ max-width:680px; margin:0 auto 40px; text-align:center; }
.section-head h2{ font-size:clamp(24px,3vw,32px); font-weight:800; color:var(--blue-900); }
.section-head p{ color:var(--gray); font-size:16px; }
.section-head-link{ margin-top:6px; }
.section-head-link a{ color:var(--blue-700); font-weight:700; font-size:14.5px; }
.section-head-link a:hover{ text-decoration:underline; }

.eyebrow{
  display:inline-block; font-size:13px; font-weight:700; color:var(--blue-600);
  text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;
}

/* ---------- Stats ---------- */
.stats-bar{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
  margin-top:-40px; position:relative; z-index:2;
}
.stat-item{ text-align:center; padding:28px 16px; border-right:1px solid var(--line); }
.stat-item:last-child{ border-right:none; }
.stat-item strong{ display:block; font-size:28px; font-weight:800; color:var(--blue-700); }
.stat-item span{ font-size:13.5px; color:var(--gray); font-weight:600; }

/* ---------- MFO grid / cards ---------- */
.mfo-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:22px;
}
.mfo-card{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px 22px 22px; box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.mfo-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.mfo-rank{
  position:absolute; top:-12px; left:20px; width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px;
  box-shadow:0 6px 14px rgba(26,95,224,.35);
}
.mfo-badge{
  align-self:flex-start; background:var(--blue-100); color:var(--blue-700);
  font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; margin-bottom:16px;
}
.mfo-logo{
  height:56px; display:flex; align-items:center; margin-bottom:14px;
}
.mfo-logo img{ max-height:56px; width:auto; object-fit:contain; }
.mfo-name{ font-size:19px; font-weight:800; color:var(--ink); margin-bottom:14px; }
.mfo-params{ margin-bottom:20px; }
.mfo-params li{
  display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--line);
  font-size:14px;
}
.mfo-params li:last-child{ border-bottom:none; }
.mfo-params li span{ color:var(--gray); }
.mfo-params li strong{ color:var(--ink); font-weight:700; }
.mfo-btn{ margin-top:auto; }

.showcase-updated{
  text-align:right; margin:18px 0 0; font-size:13px; color:var(--gray-light); font-weight:600;
}

/* ---------- Feature blocks ---------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.feature-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:28px 24px; box-shadow:var(--shadow-sm);
}
.feature-icon{
  width:52px; height:52px; border-radius:14px; background:var(--blue-100);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.feature-icon svg{ width:26px; height:26px; }
.feature-card h3{ font-size:18px; font-weight:800; margin-bottom:8px; }
.feature-card p{ font-size:14.5px; color:var(--gray); margin:0; }

/* ---------- Steps ---------- */
.steps{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:step;
}
.step{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:30px 22px 24px;
}
.step-num{
  width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.step h3{ font-size:17px; font-weight:800; margin-bottom:8px; }
.step p{ font-size:14.5px; color:var(--gray); margin:0; }

/* ---------- Content prose blocks ---------- */
.prose{ max-width:820px; margin:0 auto; color:var(--ink-soft); font-size:15.5px; }
.prose h2{ color:var(--blue-900); font-size:24px; font-weight:800; }
.prose h3{ color:var(--blue-900); font-size:18px; font-weight:700; margin-top:28px; }
.prose ul{ margin:16px 0; padding-left:0; }
.prose ul li{ position:relative; padding-left:26px; margin-bottom:10px; }
.prose ul li::before{
  content:""; position:absolute; left:0; top:7px; width:10px; height:10px; border-radius:3px;
  background:linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

/* ---------- Comparison table ---------- */
.table-wrap{ overflow-x:auto; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); border:1px solid var(--line); }
table.compare{ width:100%; border-collapse:collapse; min-width:640px; background:#fff; }
table.compare th, table.compare td{ padding:14px 18px; text-align:left; font-size:14.5px; border-bottom:1px solid var(--line); }
table.compare th{ background:var(--blue-50); color:var(--blue-900); font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.03em; }
table.compare tr:last-child td{ border-bottom:none; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); padding:4px 22px;
}
.faq-item summary{
  cursor:pointer; list-style:none; padding:18px 0; font-weight:700; font-size:16px; color:var(--ink);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--blue-100);
  color:var(--blue-700); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px;
  transition:transform .18s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-answer{ padding:0 0 20px; color:var(--gray); font-size:14.5px; line-height:1.65; }
.faq-answer p{ margin:0; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(135deg, var(--blue-900), var(--blue-600));
  border-radius:var(--radius-lg); padding:44px 40px; color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-banner h2{ font-size:22px; font-weight:800; margin-bottom:6px; }
.cta-banner p{ color:rgba(255,255,255,.85); margin:0; font-size:14.5px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--blue-900); color:rgba(255,255,255,.82); padding:56px 0 0; }
.footer-inner{
  display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:40px; padding-bottom:36px;
}
.footer-brand .logo{ margin-bottom:14px; }
.footer-copy{ font-size:13.5px; margin-bottom:6px; }
.footer-note{ font-size:12.5px; color:rgba(255,255,255,.55); max-width:320px; }
.footer-col h3{ font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:#fff; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ font-size:14.5px; color:rgba(255,255,255,.72); }
.footer-col ul li a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:20px; padding-bottom:26px;
  font-size:12.5px; color:rgba(255,255,255,.5); line-height:1.6;
}

/* ---------- Legal pages ---------- */
.legal-page{ padding:56px 0 80px; }
.legal-page h1{ color:var(--blue-900); font-size:30px; font-weight:800; margin-bottom:6px; }
.legal-page .updated{ color:var(--gray-light); font-size:13.5px; margin-bottom:32px; }
.legal-page .prose{ max-width:100%; }

/* ---------- 404 ---------- */
.error-page{
  position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color:#fff; padding:80px 0 96px; text-align:center;
}
.error-page::before{
  content:""; position:absolute; width:420px; height:420px; top:-160px; right:-120px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 60%);
}
.error-inner{ position:relative; z-index:1; max-width:640px; margin:0 auto; }
.error-code{
  display:block; font-size:clamp(72px, 14vw, 128px); font-weight:800; line-height:1;
  background:linear-gradient(135deg, #fff, rgba(255,255,255,.55));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:8px;
}
.error-page h1{ font-size:clamp(22px, 3vw, 30px); font-weight:800; margin-bottom:12px; }
.error-page p{ color:rgba(255,255,255,.85); font-size:16px; max-width:520px; margin:0 auto 28px; }
.error-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:48px; }
.error-actions .btn-outline{ background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.35); }
.error-actions .btn-outline:hover{ background:rgba(255,255,255,.18); border-color:#fff; }
.error-links{
  background:#fff; border-radius:var(--radius-lg); padding:28px 30px; text-align:left;
  box-shadow:var(--shadow-lg); color:var(--ink);
}
.error-links h2{ font-size:16px; font-weight:800; color:var(--blue-900); margin-bottom:14px; }
.error-links ul{ display:flex; flex-direction:column; gap:10px; }
.error-links li a{ color:var(--blue-700); font-weight:600; font-size:15px; }
.error-links li a:hover{ text-decoration:underline; }

@media (max-width: 520px){
  .error-actions{ flex-direction:column; }
  .error-actions .btn{ width:100%; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px){
  .feature-grid, .steps{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }
  .stats-bar{ grid-template-columns:repeat(2,1fr); }
  .stat-item:nth-child(2){ border-right:none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4){ border-top:1px solid var(--line); }
}

@media (max-width: 760px){
  .main-nav{
    position:absolute; top:76px; left:0; right:0; background:#fff; flex-direction:column;
    align-items:stretch; padding:14px 24px 22px; gap:4px; box-shadow:var(--shadow-md);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:12px 0; border-bottom:1px solid var(--line); }
  .main-nav a.nav-cta{ text-align:center; margin:10px 0 0; }
  .nav-toggle{ display:flex; }

  .calc-form{ grid-template-columns:1fr 1fr; }
  .calc-field-rate{ grid-column:1/2; }
  .calc-btn{ grid-column:1/-1; width:100%; }

  .feature-grid, .steps{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr; }
}

@media (max-width: 520px){
  .calc-form{ grid-template-columns:1fr; }
  .calc-field-rate{ grid-column:auto; }
  .stats-bar{ grid-template-columns:repeat(2,1fr); }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
}
