/* ============================================================
   ДокПро — css/style.css
   Mobile-first. Палитра: глубокий синий + белый + оранжевый акцент
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --navy-900: #0b1c3f;
  --navy-800: #10244f;
  --navy-700: #17315f;
  --navy-600: #214379;
  --paper:    #f6f8fc;
  --white:    #ffffff;
  --ink:      #16223a;
  --ink-soft: #5a6a86;
  --accent:   #ff7a1a;
  --accent-2: #ffb347;
  --accent-dark: #e5630a;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(16, 36, 79, .08);
  --shadow-md: 0 10px 30px rgba(16, 36, 79, .12);
  --shadow-lg: 0 18px 50px rgba(16, 36, 79, .18);
  --shadow-accent: 0 10px 26px rgba(255, 122, 26, .35);

  --font-text: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Montserrat', var(--font-text);

  --container: 1160px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--navy-900);
}

img, svg { max-width: 100%; display: block; }

/* Якоря не прячутся под sticky-шапкой */
section[id], footer[id], header[id] { scroll-margin-top: 84px; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.container-narrow { max-width: 760px; }

.section { padding: 72px 0; }
.section-dark {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
}
.section-dark .section-title,
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-sub { color: rgba(255, 255, 255, .72); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.section-sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { box-shadow: 0 14px 32px rgba(255, 122, 26, .45); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  box-shadow: inset 0 0 0 2px rgba(16, 36, 79, .25);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--navy-800); }
.section-dark .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.section-dark .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* Пульсация CTA в шапке */
.btn-pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}

/* ---------- Прогресс прокрутки ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1001;
  transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 36, 79, .08);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { display: inline-flex; border-radius: 10px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--navy-900);
}
.logo-text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-cta { margin-left: auto; }
.btn-nav-mobile { display: none; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  height: 2.5px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню — выезжающая панель */
.site-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(280px, 80vw);
  padding: 90px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  box-shadow: -16px 0 40px rgba(16, 36, 79, .15);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 999;
}
.site-nav.open { transform: translateX(0); }
.site-nav a {
  padding: 10px 4px;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid rgba(16, 36, 79, .07);
}
.site-nav .btn-nav-mobile { display: inline-flex; margin-top: 16px; border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(1000px 500px at 80% -10%, #e8f0ff 0%, transparent 60%),
    linear-gradient(180deg, #eef3fb 0%, var(--paper) 100%);
}

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 122, 26, .12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}

.hero-title {
  font-size: clamp(32px, 6.5vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
}

.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, #2e86de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 44px;
  color: var(--ink-soft);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-800);
}
.hero-stats .stat-star { color: var(--accent); font-size: 18px; }
.hero-stats span { font-size: 13px; }

/* Анимированные пятна фона */
.hero-blobs { position: absolute; inset: 0; z-index: 1; filter: blur(70px); opacity: .55; }
.blob { position: absolute; border-radius: 50%; }
.blob-1 {
  width: 420px; height: 420px;
  background: #7fb2ff;
  top: -120px; left: -100px;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 360px; height: 360px;
  background: #ffb37f;
  bottom: -140px; right: -80px;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 260px; height: 260px;
  background: #6fe3d0;
  top: 40%; left: 55%;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Bento-сетка услуг ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 36, 79, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 122, 26, .35);
}

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 122, 26, .14), rgba(127, 178, 255, .18));
  margin-bottom: 4px;
  transition: transform .25s ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }

.card h3 { font-size: 19px; margin-bottom: 4px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; flex-grow: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-800);
}
.card-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, .12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

/* Карточка-ссылка (бенто услуг на главной) */
a.card { color: inherit; text-decoration: none; }
.card-more {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s ease;
}
.card:hover .card-more { transform: translateX(4px); }

/* Адрес в футере */
.footer-addr { margin: 12px 0 16px; font-style: normal; }
.footer-addr p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}
.footer-addr a { color: rgba(255, 255, 255, .75); }
.footer-addr a:hover { color: var(--accent-2); }

/* Карта на странице контактов */
.map-wrap {
  margin: 0 0 1.2em;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(16, 36, 79, .1);
}
.map-embed {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Шаги ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 122, 26, .5);
}
.step:hover .step-icon { transform: scale(1.15) rotate(6deg); }

.step-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-accent);
  margin-bottom: 14px;
  transition: transform .25s ease;
}
.step-num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: rgba(255, 255, 255, .12);
}
.step h3 { font-size: 18px; }
.step p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14.5px; }

/* ---------- FAQ (аккордеон) ---------- */
.acc-item {
  background: var(--white);
  border: 1px solid rgba(16, 36, 79, .08);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.acc-item.open { box-shadow: var(--shadow-md); }

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-900);
  user-select: none;
}
.acc-head::-webkit-details-marker { display: none; }

.acc-arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(16, 36, 79, .06);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
  background: var(--accent);
  color: var(--white);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.acc-body p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Форма заявки ---------- */
.request-box {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: 30px 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.request-box .section-title { text-align: left; }
.request-box .section-sub { margin: 0 0 24px; text-align: left; color: var(--ink-soft); }

.request-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
}
.req { color: var(--accent); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(16, 36, 79, .15);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .14);
}

.form-field textarea { resize: vertical; min-height: 96px; }

/* Honeypot: невидим для людей */
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Кастомный чекбокс */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(16, 36, 79, .3);
  border-radius: 6px;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.checkbox input:checked + .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checkbox input:focus-visible + .checkbox-box { box-shadow: 0 0 0 4px rgba(255, 122, 26, .2); }

.field-error {
  margin: 0;
  color: #d33;
  font-size: 13px;
  font-weight: 500;
}
.hidden { display: none; }

.form-note {
  margin: -6px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .75);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 10px; font-size: 14.5px; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); }
.footer-contacts li { color: rgba(255, 255, 255, .75); }
.footer-about { font-size: 14.5px; max-width: 280px; }
.logo-footer .logo-text { color: var(--white); }
.btn-footer { margin-top: 8px; font-size: 14px; padding: 10px 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }

.footer-region {
  padding-bottom: 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer-region p { margin: 0; }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .request-box { padding: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .hero { padding: 130px 0 110px; }

  /* Шапка: горизонтальное меню, бургер скрыт */
  .burger { display: none; }
  .site-nav {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    width: auto; height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-left: auto;
  }
  .site-nav a {
    padding: 0;
    border-bottom: none;
    font-weight: 500;
    color: var(--navy-800);
    position: relative;
  }
  /* Подчёркивание при наведении */
  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width .25s ease;
  }
  .site-nav a:hover::after { width: 100%; }
  .site-nav a:hover { color: var(--accent-dark); }
  .site-nav .btn-nav-mobile { display: none; }
  .header-cta { margin-left: 0; }

  /* Bento: первая карточка широкая + акцентная 6-я */
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }

  /* Шаги в ряд с соединительной линией */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before {
    content: '';
    position: absolute;
    top: 52px; /* центр иконок */
    left: 8%;
    width: 84%;
    height: 2px;
    background: linear-gradient(90deg,
      rgba(255, 122, 26, .2) 0%,
      rgba(255, 122, 26, .6) 50%,
      rgba(255, 122, 26, .2) 100%);
    background-size: 200% 100%;
    animation: line-flow 4s linear infinite;
    z-index: 0;
  }
  .step { z-index: 1; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1.05fr 1.05fr 1fr; gap: 24px; }

  .request-form { gap: 20px; }
}

/* Анимация «течения» соединительной линии */
@keyframes line-flow {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Внутренние страницы: hero, хлебные крошки, контент, сайдбар
   ============================================================ */

.page-main { min-height: 60vh; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 48px;
  background:
    radial-gradient(820px 380px at 90% -20%, #e8f0ff 0%, transparent 65%),
    linear-gradient(180deg, #eef3fb 0%, var(--paper) 100%);
  border-bottom: 1px solid rgba(16, 36, 79, .06);
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  right: -120px; bottom: -170px;
  border-radius: 50%;
  background: rgba(255, 122, 26, .1);
  filter: blur(30px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before {
  content: '›';
  color: rgba(16, 36, 79, .35);
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy-800); font-weight: 600; }

.page-kicker {
  display: inline-block;
  padding: 5px 14px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, .12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.page-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(30px, 5.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
}
.page-title:empty { min-height: 1.12em; }

.page-body { padding-top: 48px; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-content {
  min-width: 0;
  min-height: 240px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--white);
  border: 1px solid rgba(16, 36, 79, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.page-content > :first-child { margin-top: 0; }
.page-content > :last-child { margin-bottom: 0; }
.page-content h2 {
  margin: 1.6em 0 .55em;
  font-size: clamp(22px, 3vw, 28px);
}
.page-content h3 {
  margin: 1.4em 0 .45em;
  font-size: clamp(18px, 2.4vw, 21px);
}
.page-content h4 { margin: 1.3em 0 .4em; font-size: 17px; }
.page-content p { margin: 0 0 1em; color: var(--ink-soft); }
.page-content strong { color: var(--navy-900); }
.page-content ul,
.page-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--ink-soft);
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .45em; padding-left: .15em; }
.page-content li::marker { color: var(--accent); font-weight: 700; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content img,
.page-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.page-content table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 14.5px;
}
.page-content th,
.page-content td {
  padding: 11px 14px;
  border: 1px solid rgba(16, 36, 79, .1);
  text-align: left;
  vertical-align: top;
}
.page-content th {
  color: var(--navy-900);
  background: var(--paper);
  font-weight: 700;
}
.page-content blockquote {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 122, 26, .07);
  color: var(--ink-soft);
}
.page-content blockquote p:last-child { margin-bottom: 0; }
.page-content .lead { font-size: 18px; color: var(--ink); }
.page-content .note,
.page-content .callout {
  margin: 0 0 1.4em;
  padding: 16px 18px;
  border: 1px solid rgba(255, 122, 26, .22);
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 26, .06);
  color: var(--ink-soft);
  font-size: 14.5px;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}
.side-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(16, 36, 79, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.side-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--navy-900);
}
.side-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; }
.side-card .btn { width: 100%; }
.side-card-accent {
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(255, 122, 26, .28), transparent 70%),
    linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border-color: rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-md);
}
.side-card-accent .side-card-title { color: var(--white); }
.side-card-accent p { color: rgba(255, 255, 255, .72); }
.side-list { display: grid; gap: 10px; margin: 0; }
.side-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.side-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .58em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.side-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.page-faq {
  padding-top: 64px;
  background: var(--white);
  border-top: 1px solid rgba(16, 36, 79, .06);
}
.page-faq .section-head { margin-bottom: 28px; }

/* Страница благодарности */
.thank-you { text-align: center; }
.thank-you-icon {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25b36b, #4cd18a);
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 179, 107, .3);
}
.thank-you h2 { margin-top: 0; }
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Карта услуг в подвале */
.footer-sitemap {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-sitemap h4 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-sitemap-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px 24px;
}
.footer-sitemap-list a {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-sitemap-list a:hover { color: var(--accent-2); }

@media (min-width: 640px) {
  .footer-sitemap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .page-hero { padding: 38px 0 56px; }
  .page-body { padding-top: 64px; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .page-sidebar { position: sticky; top: 96px; }
  .footer-sitemap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .footer-sitemap-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Секция «Образец документа» ---------- */
.samples-section { padding-top: 8px; }

.samples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
}

.samples-item {
  margin: 0;
  padding: 12px;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border: 1px solid rgba(16, 36, 79, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.samples-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.samples-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  overflow: hidden;
}
/* компактное превью фиксированной высоты: страница документа целиком */
.samples-zoom img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.samples-item figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: center;
}

@media (min-width: 640px) {
  .samples-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- Лайтбокс образцов ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 28, 63, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* образец всегда виден целиком и не занимает весь экран */
  max-height: 72vh;
  /* у образцов прозрачный фон — даём белую «бумагу», иначе текст сливается с подложкой */
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .samples-item, .lightbox, .lightbox-close { transition: none; }
}

/* ---------- Кнопки мессенджеров (футер, контакты, спасибо) ---------- */
.mess { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mess a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.mess a:hover { transform: translateY(-1px); opacity: .88; color: #fff; }
.mess .wa { background: #25c15e; }
.mess .tg { background: #2ea6dc; }
