:root {
  --blue: #1764f5;
  --blue-dark: #0a347f;
  --blue-soft: #edf4ff;
  --ink: #102142;
  --muted: #536a91;
  --line: #d9e5f8;
  --green: #22b849;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(30, 76, 151, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.68 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-row { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 24px; font-weight: 800; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a, .footer-grid a { text-decoration: none; }
.main-nav a { color: #29456f; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .footer-grid a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone { color: var(--blue-dark); font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, #2267f3, #42aaf3);
  box-shadow: 0 8px 22px rgba(34, 103, 243, .22);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(34, 103, 243, .28); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-small { min-height: 40px; padding: 8px 15px; font-size: 14px; }
.button-secondary { color: var(--blue); background: #fff; border: 1px solid #aac8fb; box-shadow: none; }
.breadcrumbs { display: flex; gap: 10px; padding: 17px 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.hero { overflow: hidden; border-top: 1px solid #f2f6fd; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 30%, #dfeaff 0, transparent 32%), linear-gradient(145deg, #f8fbff, #edf4ff); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 64px; align-items: center; padding: 72px 0; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.035em; }
.lead { max-width: 760px; margin: 24px 0 0; color: #36557e; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.microcopy { max-width: 690px; margin: 16px 0 0; color: #667a9a; font-size: 13px; }
.hero-card { padding: 26px; border: 1px solid rgba(87, 137, 226, .25); border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.highlight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.highlight span { display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.highlight p { margin: 0; color: #29456f; font-weight: 650; line-height: 1.45; }
.messenger { display: block; margin-top: 13px; border-radius: 10px; padding: 11px 14px; color: #fff; font-size: 14px; font-weight: 750; text-align: center; text-decoration: none; }
.telegram { background: #168bd2; }
.max { background: #7b47ec; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 60px; padding: 70px 0; align-items: start; }
.content { min-width: 0; }
.content-section { scroll-margin-top: 92px; padding: 0 0 50px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.content-section:last-child { margin-bottom: 0; border: 0; }
h2 { margin: 0 0 20px; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.18; letter-spacing: -.02em; }
.content-section p { margin: 0 0 18px; color: #314d75; font-size: 17px; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 13px 14px 13px 42px; border-radius: 12px; color: #29456f; background: var(--blue-soft); }
.check-list li::before { position: absolute; top: 13px; left: 15px; color: var(--green); content: "✓"; font-weight: 900; }
.table-wrap { max-width: 100%; margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 670px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--blue-dark); background: var(--blue-soft); font-size: 13px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
.guide-figure { margin: 28px 0 0; }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: #f5f7fb; box-shadow: 0 12px 32px rgba(30, 76, 151, .08); }
.guide-figure figcaption { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.discovery-calculator { display: grid; gap: 20px; margin-top: 26px; border: 1px solid #bcd2f6; border-radius: 18px; padding: 24px; background: linear-gradient(145deg, #f8fbff, #edf4ff); }
.calculator-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calculator-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calculator-inputs label { display: grid; gap: 8px; color: var(--blue-dark); font-size: 14px; font-weight: 750; }
.calculator-inputs input { width: 100%; border: 1px solid #9fbee9; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; font: inherit; font-size: 20px; font-weight: 750; }
.calculator-inputs input:focus { border-color: var(--blue); outline: 3px solid rgba(23, 100, 245, .12); }
.calculator-result span { display: flex; min-height: 94px; flex-direction: column; justify-content: center; border-radius: 14px; padding: 16px 18px; color: #36557e; background: #fff; box-shadow: 0 8px 20px rgba(30, 76, 151, .07); }
.calculator-result strong { color: var(--blue-dark); font-size: 34px; line-height: 1.1; }
.calculator-note { margin: 0 !important; border-left: 4px solid var(--green); padding-left: 14px; font-size: 15px !important; }
.related-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.related-inline a { border: 1px solid #bcd2f6; border-radius: 10px; padding: 10px 14px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.source-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.source-list li { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.source-list a { display: block; padding: 14px 16px; color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.source-list a:hover { color: var(--blue); }
.side-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: #fff; box-shadow: 0 12px 35px rgba(30, 76, 151, .08); }
.side-nav strong { margin-bottom: 10px; }
.side-nav a { border-top: 1px solid #eef3fb; padding: 10px 0; color: #496383; font-size: 13px; line-height: 1.35; text-decoration: none; }
.side-nav a:hover { color: var(--blue); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; padding: 17px 20px; background: #fbfdff; }
.faq-list summary { color: var(--blue-dark); font-weight: 760; cursor: pointer; }
.faq-list details p { margin: 13px 0 0; font-size: 15px; }
.related-section { padding: 62px 0; background: #f5f8fd; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-grid a { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; text-decoration: none; }
.related-grid strong { color: var(--blue-dark); font-size: 18px; }
.related-grid span { color: var(--muted); font-size: 14px; }
.form-section { padding: 74px 0; color: #fff; background: linear-gradient(135deg, #1358e6, #273cb7); }
.form-section h2 { max-width: 600px; }
.form-section p { max-width: 570px; color: #dbe8ff; }
.form-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-line a, .portal-link { color: #fff; font-size: 20px; font-weight: 800; }
.portal-link { display: inline-block; margin-top: 12px; font-size: 15px; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-radius: 20px; padding: 27px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.lead-form label { display: grid; gap: 7px; color: #29456f; font-size: 13px; font-weight: 720; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid #bdd0ec; border-radius: 10px; padding: 12px 13px; color: var(--ink); background: #fff; font: inherit; font-size: 15px; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(23, 100, 245, .12); }
.lead-form .wide { grid-column: 1 / -1; }
.lead-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.lead-form .consent input { width: 18px; height: 18px; margin: 3px 0 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 24px; margin: 0; color: #2a4f7a !important; font-size: 13px; }
.site-footer { padding: 54px 0 82px; color: #c7d7f1; background: #091a38; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid p { max-width: 360px; margin: 0; }
.footer-grid strong { color: #fff; }
.brand-light { color: #fff; }
.metrika-pixel { position: absolute; left: -9999px; }
.mobile-bar { display: none; }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { gap: 34px; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 34px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  body { padding-bottom: 60px; }
  .shell { width: min(100% - 28px, 680px); }
  .site-header { position: static; }
  .header-row { min-height: 64px; }
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions .phone { display: none; }
  .button-small { font-size: 13px; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .hero-grid, .page-layout, .form-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; padding: 48px 0; }
  h1 { font-size: clamp(36px, 11vw, 52px); }
  .lead { font-size: 18px; }
  .page-layout { padding: 52px 0; }
  .side-nav { display: none; }
  .content-section { padding-bottom: 38px; margin-bottom: 38px; }
  .content-section p { font-size: 16px; }
  .check-list { grid-template-columns: 1fr; }
  .calculator-inputs, .calculator-result { grid-template-columns: 1fr; }
  .discovery-calculator { padding: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a { min-height: 112px; }
  .form-section { padding: 54px 0; }
  .form-grid { gap: 28px; }
  .lead-form { grid-template-columns: 1fr; padding: 20px; }
  .lead-form label, .lead-form .wide { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: 44px; }
  .mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 24px rgba(20, 52, 104, .15); }
  .mobile-bar a { padding: 13px 5px; color: var(--blue-dark); font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
