:root {
  --blue: #1b3764;
  --blue-2: #6685b8;
  --blue-3: #102440;
  --light: #f4f7fb;
  --white: #ffffff;
  --text: #15171d;
  --muted: #5f6876;
  --line: #d9dee7;
  --success: #177344;
  --danger: #b42121;
  --shadow: 0 22px 60px rgba(16, 36, 64, .16);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(102, 133, 184, .65); outline-offset: 3px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 55, 100, .96);
  color: var(--white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header--static { position: static; }
.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand img { width: 188px; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.nav a, .header-phone {
  opacity: .94;
  transition: opacity .2s ease, transform .2s ease;
}
.nav a:hover, .header-phone:hover { opacity: 1; transform: translateY(-1px); }
.header-phone {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  border-radius: 12px;
  padding: 11px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 10px;
}

.hero {
  min-height: 590px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 34%, rgba(255,255,255,.16), transparent 30%),
    radial-gradient(circle at 12% 80%, rgba(102,133,184,.26), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--blue-3));
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: block;
  max-width: 900px;
  padding: 104px 0 108px;
}
.hero__content { position: relative; z-index: 2; }
.eyebrow, .section-label {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow, .section-label--light { color: #c9d6ea; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -0.055em;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
h3 { line-height: 1.16; }
.hero__text {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-badges span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 900;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.14); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--dark { background: #05070a; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.36); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--max { background: #0F5FFF; color: var(--white); border-color: #0F5FFF; }
.btn--danger { background: #8f1e1e; color: #fff; }

.quick-strip { background: var(--blue-3); color: var(--white); }
.quick-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}
.quick-strip__inner div { min-height: 118px; padding: 24px; background: var(--blue-3); }
.quick-strip strong { display: block; margin-bottom: 4px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.quick-strip span { color: rgba(255,255,255,.7); font-weight: 750; }

.section { padding: 108px 0; }
.section--soft { background: var(--light); }
.section--blue { background: var(--blue); color: var(--white); }
.grid { display: grid; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}
.section-head h2, .section-head p { margin-bottom: 0; }
.section-head h2 { max-width: 770px; }
.section-link {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}
.section-subtitle { max-width: 390px; color: var(--muted); }
.section--blue .section-subtitle { color: rgba(255,255,255,.72); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit-card, .service-card, .case-grid article, .reviews-grid blockquote, .process-grid article {
  background: var(--white);
  border: 1px solid rgba(27,55,100,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.benefit-card:hover, .service-card:hover, .case-grid article:hover, .reviews-grid blockquote:hover, .process-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(27,55,100,.18);
}
.benefit-card { min-height: 246px; padding: 28px 24px; }
.benefit-card span, .service-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: #030507;
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.06em;
}
.benefit-card h3, .service-card h3 { min-height: 46px; margin-bottom: 14px; font-size: 20px; letter-spacing: -0.02em; }
.benefit-card p, .service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  min-height: 286px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card p { margin-bottom: 18px; }
.service-card button {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  transition: background .18s ease, color .18s ease;
}
.service-card button:hover { background: var(--blue); color: var(--white); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
  align-items: start;
}
details {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 22px;
}
summary {
  color: var(--blue);
  font-weight: 950;
  cursor: pointer;
}
details ul { margin-bottom: 0; color: var(--muted); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process-grid article { min-height: 230px; padding: 28px 24px; }
.process-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  background: var(--blue);
  color: var(--white);
  font-weight: 950;
}
.process-grid p { color: var(--muted); }

.quiz-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 58px;
  align-items: start;
}
.quiz-copy p:not(.section-label) { color: rgba(255,255,255,.76); }
.quiz {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}
.quiz__progress { height: 8px; margin-bottom: 28px; background: rgba(255,255,255,.16); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 33.333%; background: #fff; transition: width .2s ease; }
.quiz fieldset { display: none; padding: 0; margin: 0; border: 0; }
.quiz fieldset.is-active { display: grid; gap: 12px; }
.quiz legend { margin-bottom: 20px; font-size: 26px; line-height: 1.1; font-weight: 950; letter-spacing: -.03em; }
.quiz fieldset > button:not(.btn) {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: var(--white);
  text-align: left;
  font-weight: 850;
}
.quiz fieldset > button:not(.btn):hover,
.quiz fieldset > button.is-selected { background: var(--white); color: var(--blue); }
.quiz label { display: grid; gap: 8px; }
.quiz label span { color: rgba(255,255,255,.86); font-size: 13px; font-weight: 800; }
.quiz .consent { color: rgba(255,255,255,.78); }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.about-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: 70px;
  align-items: start;
}
.section--about p:not(.section-label) { color: var(--muted); }
.reg-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border: 1px solid var(--blue);
  overflow: hidden;
}
.reg-card div { min-width: 0; }
.reg-card span, .reg-card strong {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  border-right: 1px solid var(--blue);
}
.reg-card div:last-child span, .reg-card div:last-child strong { border-right: none; }
.reg-card span { background: var(--blue); color: var(--white); font-size: 12px; font-weight: 800; }
.reg-card strong { color: var(--blue); font-size: 12px; font-weight: 800; background: var(--white); }
.mission-card {
  min-height: 460px;
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(145deg, rgba(27,55,100,.96), rgba(16,36,64,.96)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 17px);
  color: var(--white);
  box-shadow: var(--shadow);
}
.mission-card__title { margin-bottom: 16px; color: #c9d6ea; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.mission-card h3 { margin-bottom: 14px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.04em; }
.mission-card p { color: rgba(255,255,255,.76); }
.check-list { display: grid; gap: 14px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.88); font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; font-weight: 900; }

.case-grid, .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-grid article, .reviews-grid blockquote { margin: 0; padding: 30px; min-height: 240px; }
.case-grid span { display: inline-block; margin-bottom: 18px; padding: 7px 10px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.case-grid h3 { font-size: 23px; letter-spacing: -.03em; }
.case-grid p, .reviews-grid p { color: var(--muted); }
.reviews-grid blockquote { display: grid; align-content: space-between; gap: 24px; }
.reviews-grid p { font-size: 17px; }
.reviews-grid cite { color: var(--blue); font-weight: 900; font-style: normal; }

.request-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px;
  align-items: center;
}
.request-copy p:not(.section-label) { color: rgba(255,255,255,.78); }
.mini-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mini-contacts a { padding: 10px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 800; }
.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}
.request-form label, .admin-login label { display: grid; gap: 8px; }
.request-form label span, .admin-login label span { font-size: 13px; font-weight: 800; color: var(--blue); }
.form-wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfd5df;
  background: #fff;
  padding: 14px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,55,100,.1); }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(180,33,33,.1) !important; }
.consent {
  display: flex !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 13px;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.consent a { color: var(--blue); font-weight: 800; text-decoration: underline; }
.form-status { min-height: 22px; margin: 0; font-weight: 800; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.quiz .form-status.is-ok { color: #ffffff; }
.quiz .form-status.is-error { color: #ffd3d3; }

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
  gap: 34px;
}
.license-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(16,36,64,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.license-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.license-card img { width: 100%; height: 420px; object-fit: contain; background: var(--light); }
.license-card span { color: var(--blue); font-weight: 900; }
.license-modal {
  max-width: min(96vw, 1080px);
  max-height: 94vh;
  padding: 20px;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow);
}
.license-modal::backdrop { background: rgba(3,7,13,.72); }
.license-modal img { max-height: 84vh; width: auto; margin: auto; }
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}

.clients-row {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 16px;
  margin-top: 28px;
}
.client-card, .trust-card { min-height: 128px; display: grid; place-items: center; padding: 28px; background: var(--blue); color: var(--white); }
.client-card img { width: 230px; }
.trust-card { justify-items: start; place-items: center start; gap: 6px; background: var(--white); color: var(--text); border: 1px solid var(--line); }
.trust-card span { color: var(--muted); }

.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contacts p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contacts-card { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contacts-card > * { display: grid; gap: 6px; padding: 28px; background: var(--white); }
.contacts-card span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.contacts-card strong { color: var(--blue); font-size: 19px; }

.footer { padding: 72px 0; background: var(--blue); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 70px; }
.footer h2 { margin-bottom: 20px; font-size: 24px; letter-spacing: -0.03em; }
.footer a, .footer p { display: block; margin: 0 0 10px; color: rgba(255,255,255,.82); font-weight: 700; }
.icon-link { display: grid !important; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; max-width: 390px; }
.icon-link img { width: 30px; max-height: 32px; }
.footer-brand { display: grid; align-content: start; justify-items: end; gap: 20px; }
.footer-brand img { width: 220px; }
.admin-link { font-size: 12px; opacity: .66; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-actions {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 75;
  display: grid;
  gap: 8px;
}
.float-actions a {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #05070a;
  color: #fff;
  font-size: 0;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.float-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0,0,0,.26);
}
.float-actions a svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}
.float-actions .float-action--telegram { background: #229ED9; }
.float-actions .float-action--max { background: #0F5FFF; }
.float-actions .float-action--max img { width: 38px; height: 38px; }
.float-actions .float-action__text {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
}

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.plain-page { background: var(--light); }
.policy { max-width: 900px; padding: 64px 20px 96px; }
.policy h1 { color: var(--blue); font-size: clamp(36px, 5vw, 58px); }
.policy h2 { margin-top: 34px; font-size: 26px; }
.policy .lead { padding: 18px 20px; background: #fff7df; border: 1px solid #f2d27b; color: #5d4512; }
.policy p, .policy li { color: var(--muted); }
.policy a { color: var(--blue); font-weight: 800; text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--blue); font-weight: 900; }

.admin-page { min-height: 100vh; background: var(--blue); color: var(--white); }
.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.admin-login { width: min(100%, 440px); padding: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.admin-login img { margin-bottom: 28px; }
.admin-login h1 { font-size: 34px; letter-spacing: -0.04em; }
.admin-login p { color: rgba(255,255,255,.76); }
.admin-login form { display: grid; gap: 14px; margin: 28px 0; }
.admin-login input { background: #fff; }
.admin-login a { color: rgba(255,255,255,.82); font-weight: 800; }
.admin-panel { width: min(100%, 1280px); align-self: start; }
.admin-top { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding: 30px 0; }
.admin-top h1 { font-size: 44px; margin-bottom: 8px; }
.admin-top p { color: rgba(255,255,255,.72); }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-status { margin: -12px 0 18px; color: rgba(255,255,255,.76); font-weight: 700; }
.admin-status.is-ok { color: #bff0d0; }
.admin-status.is-error { color: #ffd1d1; }
.source-badge { display: inline-block; padding: 7px 9px; background: rgba(27,55,100,.08); color: var(--blue); border: 1px solid rgba(27,55,100,.12); font-size: 12px; font-weight: 900; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stats div { padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.admin-stats span { display: block; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.admin-stats strong { display: block; margin-top: 8px; font-size: 34px; }
.admin-filters { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 18px; }
.admin-table-wrap { overflow: auto; background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 1120px; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table select { width: 150px; padding: 10px; border: 1px solid var(--line); }
.admin-table textarea { min-height: 58px; width: 210px; padding: 10px; font-size: 14px; }
.admin-table .small { display: block; color: var(--muted); font-size: 12px; }
.admin-row-actions { display: grid; gap: 8px; }
.admin-row-actions button { border: 1px solid var(--line); background: var(--white); padding: 8px 10px; font-weight: 800; text-align: left; }
.empty-state { margin: 0; padding: 24px; color: var(--muted); }

@media (max-width: 1080px) {
  .nav { gap: 15px; font-size: 13px; }
  .services-grid, .benefits-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .request-grid, .contacts-grid, .quiz-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { justify-items: start; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header__inner { min-height: 68px; gap: 14px; }
  .brand img { width: 152px; }
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    background: var(--blue-3);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a:last-child { border-bottom: none; }
  .header-phone { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding: 74px 0 76px; }
  .hero__text { font-size: 16px; }
  .btn { width: 100%; }
  .quick-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .quick-strip__inner div { min-height: 98px; padding: 18px; }
  .section { padding: 74px 0; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 16px; }
  .services-grid, .benefits-grid, .process-grid, .case-grid, .reviews-grid, .details-grid { grid-template-columns: 1fr; }
  .reg-card { grid-template-columns: repeat(2, 1fr); }
  .request-form { grid-template-columns: 1fr; padding: 24px; }
  .license-grid { grid-template-columns: 1fr; }
  .license-card img { height: 340px; }
  .clients-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand img { width: 180px; }
  .float-actions { left: 14px; bottom: 14px; gap: 7px; }
  .float-actions a { width: 54px; height: 54px; }
  .float-actions a svg { width: 27px; height: 27px; }
  .to-top { right: 14px; bottom: 14px; }
  .admin-shell { padding: 16px; }
  .admin-top { display: block; }
  .admin-actions { justify-content: flex-start; }
  .admin-stats, .admin-filters { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  h1 { font-size: 38px; }
  h2 { font-size: 31px; }
  .hero__actions, .contact-actions, .quiz-actions { display: grid; }
  .quick-strip__inner { grid-template-columns: 1fr; }
  .reg-card { grid-template-columns: 1fr; }
  .license-card img { height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* Price list */
.price-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-preview-card {
  min-height: 236px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid rgba(27,55,100,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(27,55,100,.18);
}
.price-preview-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.05em;
}
.price-preview-card h3 { min-height: 50px; margin-bottom: 12px; font-size: 21px; }
.price-preview-card p { margin: 0; color: var(--muted); font-size: 15px; }
.price-banner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  background: var(--light);
  border: 1px solid var(--line);
}
.price-banner strong, .price-banner span { display: block; }
.price-banner strong { margin-bottom: 6px; color: var(--blue); font-size: 20px; }
.price-banner span { color: var(--muted); }
.price-hero {
  padding-top: 88px;
  background:
    radial-gradient(circle at 78% 25%, rgba(255,255,255,.13), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--blue-2));
  color: var(--white);
}
.price-hero__inner { padding: 96px 0 86px; max-width: 880px; }
.price-hero h1 { max-width: 760px; margin-bottom: 18px; }
.price-hero p:not(.eyebrow) { max-width: 780px; color: rgba(255,255,255,.78); font-size: 18px; }
.price-summary { padding-bottom: 54px; }
.price-catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.price-catalog-nav a {
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
}
.price-catalog-nav a:hover { background: var(--blue); color: var(--white); }
.price-notice {
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff7df;
  border: 1px solid #f2d27b;
  color: #5d4512;
}
.price-catalog { padding: 54px 0 96px; background: var(--light); }
.price-section {
  scroll-margin-top: 110px;
  margin-bottom: 34px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(16,36,64,.06);
}
.price-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.price-section__head h2 { margin-bottom: 0; font-size: clamp(28px, 3.6vw, 46px); }
.price-table-wrap { overflow: auto; border: 1px solid var(--line); }
.price-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: var(--white);
}
.price-table th, .price-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.price-table th {
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-table th:nth-child(1), .price-table td:nth-child(1) { width: 38%; }
.price-table th:nth-child(2), .price-table td:nth-child(2) { width: 24%; }
.price-table th:nth-child(3), .price-table td:nth-child(3) { width: 26%; }
.price-table td { color: var(--text); }
.price-table td:nth-child(3) { color: var(--muted); }
.price-action {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}
.price-action:hover { background: var(--blue); color: var(--white); }
.price-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.price-cta h2 { max-width: 780px; margin-bottom: 0; }

@media (max-width: 1080px) {
  .price-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .price-preview-grid { grid-template-columns: 1fr; }
  .price-banner, .price-section__head, .price-cta { display: grid; }
  .price-section { padding: 18px; }
  .price-table { min-width: 760px; }
  .price-hero__inner { padding: 74px 0 72px; }
}


/* V8: partner logos and improved mobile layout */
.clients-row {
  grid-template-columns: minmax(210px, 300px) minmax(210px, 300px) 1fr;
  align-items: stretch;
}
.client-card {
  min-height: 142px;
  border: 1px solid rgba(27,55,100,.12);
  box-shadow: 0 12px 30px rgba(16,36,64,.06);
}
.client-card--dark { background: var(--blue); }
.client-card--light { background: var(--white); }
.client-card--light img {
  width: min(100%, 245px);
  max-height: 82px;
  object-fit: contain;
}
.client-card--logo img {
  width: min(100%, 260px);
  max-height: 92px;
  object-fit: contain;
}
.client-card--dark img {
  width: min(100%, 240px);
  max-height: 86px;
  object-fit: contain;
}

@media (max-width: 780px) {
  body { overflow-x: hidden; }
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { box-shadow: 0 10px 28px rgba(16,36,64,.18); }
  .header__inner { min-height: 64px; }
  .brand img { width: 146px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 14px; }
  .nav {
    inset: 74px 16px auto;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    overflow: hidden;
  }
  .nav a {
    padding: 16px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .nav a:last-child { border-bottom: 0; }
  .hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(255,255,255,.12), transparent 35%),
      linear-gradient(145deg, var(--blue), var(--blue-3));
  }
  .hero__inner { padding: 58px 0 64px; }
  h1 {
    max-width: 96%;
    font-size: clamp(34px, 9.5vw, 43px);
    line-height: 1.06;
    letter-spacing: -0.04em;
  }
  h2 {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  .hero__text {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 15.5px;
    line-height: 1.68;
  }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .btn { min-height: 52px; border-radius: 14px; }
  .hero-badges { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .hero-badges span { border-radius: 14px; padding: 10px 12px; font-size: 12.5px; }
  .quick-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
  .quick-strip__inner div { min-height: 92px; padding: 16px 14px; }
  .quick-strip strong { font-size: 22px; line-height: 1.05; }
  .quick-strip span { font-size: 13px; line-height: 1.35; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .section-subtitle { max-width: 100%; margin-top: 14px; }
  .benefit-card, .service-card, .case-grid article, .process-grid article, details,
  .price-preview-card, .price-banner, .mission-card, .request-form, .license-card,
  .client-card, .trust-card, .contacts-card, .quiz {
    border-radius: 20px;
  }
  .benefit-card, .service-card, .case-grid article, .process-grid article,
  .price-preview-card { min-height: auto; padding: 22px 20px; }
  .benefit-card span, .service-card span { margin-bottom: 10px; font-size: 30px; }
  .benefit-card h3, .service-card h3 { min-height: auto; margin-bottom: 10px; font-size: 20px; }
  .service-card button { width: 100%; min-height: 46px; border-radius: 12px; }
  .details-grid { gap: 10px; }
  details { padding: 18px; }
  summary { line-height: 1.3; }
  .quiz-grid { gap: 26px; }
  .quiz { padding: 22px 18px; }
  .quiz legend { font-size: 22px; line-height: 1.18; }
  .quiz fieldset > button:not(.btn) { border-radius: 14px; padding: 15px; }
  .about-grid { gap: 30px; }
  .reg-card { border-radius: 18px; }
  .mission-card { min-height: auto; padding: 26px 22px; }
  .request-grid { gap: 28px; }
  .request-form { padding: 22px 18px; gap: 14px; }
  input, textarea, select { min-height: 50px; border-radius: 12px; }
  .consent { font-size: 12.5px; line-height: 1.45; }
  .license-grid { gap: 16px; }
  .license-card { padding: 16px; }
  .clients-row { grid-template-columns: 1fr; gap: 12px; }
  .client-card, .trust-card { min-height: 118px; padding: 22px 18px; }
  .client-card img { max-width: 230px; max-height: 84px; }
  .trust-card { gap: 8px; }
  .contacts-grid { gap: 28px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .contacts-card { overflow: hidden; }
  .contacts-card > * { padding: 22px 18px; }
  .contacts-card strong { font-size: 17px; line-height: 1.35; word-break: break-word; }
  .footer { padding: 52px 0 68px; }
  .footer-grid { gap: 30px; }
  .footer-brand img { width: 172px; }
  .icon-link { grid-template-columns: 32px 1fr; gap: 12px; max-width: none; }
  .admin-login { padding: 28px 20px; border-radius: 22px; }
  .admin-login h1, .admin-top h1 { font-size: 30px; line-height: 1.08; }
  .admin-table { min-width: 960px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, var(--container)); }
  h1 { font-size: clamp(32px, 10.2vw, 38px); }
  h2 { font-size: clamp(28px, 8.4vw, 34px); }
  .hero__inner { padding: 48px 0 56px; }
  .eyebrow, .section-label { font-size: 11px; letter-spacing: .09em; }
  .quick-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-strip__inner div { min-height: 86px; padding: 14px 12px; }
  .quick-strip strong { font-size: 19px; }
  .quick-strip span { font-size: 12px; }
  .price-table-wrap { overflow: visible; border: 0; }
  .price-table { min-width: 0; display: block; background: transparent; }
  .price-table thead { display: none; }
  .price-table tbody { display: grid; gap: 12px; }
  .price-table tr {
    display: grid;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(16,36,64,.06);
  }
  .price-table td {
    display: grid;
    gap: 4px;
    width: auto !important;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .price-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .price-action { justify-content: center; min-height: 44px; border-radius: 12px; }
  .price-section { padding: 16px 12px; border-radius: 20px; }
  .price-section__head .btn { width: 100%; }
}

@media (max-width: 360px) {
  .quick-strip__inner { grid-template-columns: 1fr; }
}


/* Production refinements */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.footer-grid--official {
  grid-template-columns: 1fr 1.15fr 1fr .9fr;
}
.footer-requisites p,
.footer-note {
  margin: 0 0 8px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}
.footer-requisites strong { color: var(--white); }
.admin-table td .small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.admin-row-actions { display: grid; gap: 8px; }
.admin-row-actions button { min-height: 34px; }
@media (max-width: 980px) {
  .footer-grid--official { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid--official { grid-template-columns: 1fr; }
}


.plain-table {
  width: 100%;
  margin: 18px 0 30px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}
.plain-table th, .plain-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.plain-table th {
  width: 34%;
  color: var(--blue);
  font-weight: 900;
  background: rgba(27,55,100,.04);
}
@media (max-width: 640px) {
  .plain-table, .plain-table tbody, .plain-table tr, .plain-table th, .plain-table td { display: block; width: 100%; }
  .plain-table th { border-bottom: 0; padding-bottom: 6px; }
  .plain-table td { padding-top: 0; }
}


/* V13: official wording, partners and contacts */
.compliance-note {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 36px rgba(16,36,64,.12);
}
.compliance-note strong { font-size: 22px; line-height: 1.25; }
.compliance-note span { color: rgba(255,255,255,.78); }
.clients-row--partners { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
.clients-row--partners .trust-card--wide { grid-column: 1 / -1; }
.client-card { gap: 12px; text-align: center; }
.client-card span,
.client-card--text strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
}
.client-card--dark span { color: var(--white); }
.client-card--text {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
}
.float-actions a { width: 74px; height: 74px; }
.float-actions a svg { width: 38px; height: 38px; }
.float-actions .float-action--telegram { background: #229ED9; }
.float-actions .float-action--max { background: #0F5FFF; }
.float-actions .float-action--max img { width: 38px; height: 38px; }
.float-actions .float-action__text { font-size: 20px; }
@media (max-width: 780px) {
  .clients-row--partners { grid-template-columns: 1fr 1fr; }
  .clients-row--partners .trust-card--wide { grid-column: 1 / -1; }
  .float-actions a { width: 60px; height: 60px; }
  .float-actions a svg { width: 30px; height: 30px; }
  .float-actions .float-action__text { font-size: 16px; }
  .compliance-note { padding: 20px 18px; border-radius: 20px; }
}
@media (max-width: 520px) {
  .clients-row--partners { grid-template-columns: 1fr; }
}

/* Production polish: floating actions, admin panel and Telegram flow */
.float-actions {
  gap: 12px;
}
.float-actions a {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
}
.float-actions .float-action__text {
  border: 0;
  letter-spacing: .02em;
  font-weight: 900;
}
.float-actions .float-action--max {
  background: linear-gradient(145deg, #0F5FFF, #0a48c7);
}
.admin-table tr.admin-row--new td:first-child { border-left: 5px solid #2f80ed; }
.admin-table tr.admin-row--progress td:first-child { border-left: 5px solid #d69b10; }
.admin-table tr.admin-row--done td:first-child { border-left: 5px solid #177344; }
.admin-table tr:hover { background: #f8fbff; }
.admin-table textarea:focus,
.admin-table select:focus { outline: 2px solid rgba(102,133,184,.5); outline-offset: 2px; }
.admin-row-actions a,
.admin-row-actions button {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 10px;
  color: var(--blue);
  font-weight: 800;
  text-align: left;
}
.admin-row-actions a:hover,
.admin-row-actions button:hover { background: var(--blue); color: var(--white); }
.admin-row-actions .danger-action { color: var(--danger); }
.admin-row-actions .danger-action:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
.source-badge { border-radius: 999px; white-space: nowrap; }
@media (max-width: 780px) {
  .float-actions { left: 12px; bottom: 14px; gap: 9px; }
  .float-actions a { width: 56px; height: 56px; }
  .float-actions a svg { width: 28px; height: 28px; }
  .float-actions .float-action__text { font-size: 15px; }
}
