/* ==========================================================================
   Вернём права — стили поверх theme.css
   ========================================================================== */

:root {
  /* Фирменные цвета: глубокий юридический синий + тёплый песочный акцент */
  --brand: #123a63;
  --brand-2: #1f6ba8;
  --accent: #d9a441;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #ebe7df;
  --text: #14181f;
  --muted: #5d6470;
  --border: #ddd8ce;
  --grad: linear-gradient(135deg, #123a63 0%, #1f6ba8 60%, #2a83c4 100%);

  /* Свои переменные */
  --radius-sm: 4px;
  --shadow-lift: 0 18px 40px -18px rgba(18, 58, 99, .35), 0 4px 12px -6px rgba(18, 58, 99, .12);
  --shadow-deep: 0 40px 80px -40px rgba(18, 58, 99, .5), 0 10px 30px -18px rgba(18, 58, 99, .22);
  --hairline: rgba(18, 58, 99, .12);
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 88% -5%, rgba(217, 164, 65, .16), transparent 65%),
    radial-gradient(700px 500px at -10% 12%, rgba(31, 107, 168, .12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
  max-width: 20em;
  margin-bottom: .5em;
}

.section-intro {
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .35vw, 1.16rem);
  max-width: 62ch;
  margin: 0;
}

/* Тонкая направляющая линия-декор */
.rail {
  width: 72px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease-out, ease), box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  text-align: center;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(18, 58, 99, .35);
}
.btn-ghost:hover {
  background: rgba(18, 58, 99, .06);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 243, 239, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand);
  white-space: nowrap;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: .95rem;
}
.main-nav a {
  color: var(--muted);
  font-weight: 550;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.main-nav a:hover { color: var(--brand); border-color: var(--accent); }

.header-phone {
  font-weight: 750;
  color: var(--brand);
  font-size: 1rem;
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .6);
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease;
}
.header-phone:hover { border-color: var(--brand); background: #fff; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--brand);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Первый экран — диагональный клин с перекрытием слоёв
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) 0 clamp(90px, 10vw, 150px);
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    linear-gradient(155deg, rgba(18, 58, 99, .96) 0%, rgba(31, 107, 168, .88) 55%, rgba(42, 131, 196, .7) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5em;
  letter-spacing: -.03em;
}

.hero-lead {
  color: rgba(255, 255, 255, .9);
  max-width: 60ch;
  margin: 0 0 1em;
}

.hero-note {
  color: #fff;
  background: rgba(217, 164, 65, .22);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: .95rem;
  margin: 0 0 1.6em;
  max-width: 58ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.hero-media {
  margin: 0;
  position: relative;
}
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, .4);
}

.hero-wedge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   О фирме
   -------------------------------------------------------------------------- */
.section-about { margin-top: -40px; }
.section-about .container { position: relative; }

/* --------------------------------------------------------------------------
   Услуги — асимметричная сетка
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(28px, 4vw, 48px);
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:nth-child(2) { border-top-color: var(--accent); margin-top: 26px; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(18, 58, 99, .3);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.service-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .4em;
}

.service-desc { color: var(--muted); margin: 0 0 1.2em; font-size: .97rem; }

.service-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.price-note { font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Как мы работаем
   -------------------------------------------------------------------------- */
.section-process { background: linear-gradient(180deg, transparent, rgba(18, 58, 99, .05)); }

.process-track {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}
.process-step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -22px;
  width: 22px;
  height: 1px;
  background: var(--hairline);
}
.process-step:last-child::after { display: none; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 750;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}

.step-title { font-size: 1.15rem; color: var(--brand); margin-bottom: .35em; }
.step-desc { color: var(--muted); margin: 0; font-size: .97rem; }

/* --------------------------------------------------------------------------
   Отзывы
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(28px, 4vw, 48px);
}

.review-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }

.review-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.review-text {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--text);
}
.review-text::before { content: "«"; }
.review-text::after { content: "»"; }

.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-author { font-weight: 700; color: var(--brand); }
.review-case { font-size: .86rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background-color .2s ease;
}
.faq-item[open] { background: rgba(255, 255, 255, .7); }

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 22px 52px 22px 0;
  position: relative;
  font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem);
  font-weight: 650;
  color: var(--brand);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq-item[open] .faq-question::after { transform: translateY(-30%) rotate(225deg); }

.faq-answer {
  margin: 0;
  padding: 0 52px 26px 0;
  color: var(--muted);
  max-width: 82ch;
}

/* --------------------------------------------------------------------------
   Заявка
   -------------------------------------------------------------------------- */
.section-cta { background: linear-gradient(180deg, rgba(18, 58, 99, .06), transparent 70%); }

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.cta-text { color: var(--muted); margin: 0 0 1em; max-width: 56ch; }

.cta-contacts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.cta-link { display: flex; flex-direction: column; gap: 2px; }
.cta-link-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cta-link-value { font-weight: 750; color: var(--brand); font-size: 1.06rem; }
.cta-link:hover .cta-link-value { color: var(--brand-2); }

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-deep);
}

.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }

.form-field label {
  font-size: .88rem;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9aa0aa; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(31, 107, 168, .16);
}
.form-field textarea { resize: vertical; min-height: 108px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--muted);
  margin: 4px 0 20px;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.form-consent a { text-decoration: underline; }

.form-hint { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.form-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  border: 1px solid;
}
.form-success { background: rgba(31, 122, 72, .1); border-color: rgba(31, 122, 72, .35); color: #1c5c39; }
.form-error { background: rgba(176, 42, 42, .1); border-color: rgba(176, 42, 42, .35); color: #8f2222; }

/* --------------------------------------------------------------------------
   Законодательство
   -------------------------------------------------------------------------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(28px, 4vw, 48px);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 28px 26px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
}
.legal-card-wide { grid-column: 1 / -1; border-left-color: var(--brand); }

.legal-tag {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-card-wide .legal-tag { color: var(--brand-2); }

.legal-title { font-size: 1.24rem; color: var(--brand); margin-bottom: .35em; }
.legal-sub { color: var(--muted); font-size: .93rem; margin: 0 0 16px; }
.legal-body { color: var(--text); font-size: .95rem; }
.legal-body p { margin: 0 0 1em; }
.legal-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */
.section-contacts { background: linear-gradient(180deg, rgba(18, 58, 99, .04), rgba(18, 58, 99, .09)); }

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.contacts-list {
  list-style: none;
  margin: clamp(20px, 3vw, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contacts-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.contacts-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.contacts-value { font-size: 1.1rem; font-weight: 650; color: var(--text); }
a.contacts-value:hover { color: var(--brand-2); }

.contacts-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  box-shadow: var(--shadow-lift);
}
.contacts-note { color: var(--muted); font-size: .92rem; margin: 16px 0 0; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0d2743;
  color: rgba(255, 255, 255, .78);
  padding: clamp(44px, 5vw, 72px) 0 34px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-col { min-width: 0; }

.footer-logo {
  font-size: 1.16rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.footer-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

.footer-tagline { margin: 0 0 14px; font-size: .93rem; max-width: 34ch; }
.footer-year { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .55); }

.footer-title {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: rgba(255, 255, 255, .78); font-size: .94rem; }
.footer-nav a:hover { color: #fff; }

.footer-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .94rem; }
.footer-contacts a { color: rgba(255, 255, 255, .78); }
.footer-contacts a:hover { color: #fff; }

.footer-notice { font-size: .85rem; color: rgba(255, 255, 255, .55); margin: 0; }

/* --------------------------------------------------------------------------
   Утилитарная страница (политика, 404)
   -------------------------------------------------------------------------- */
.page-simple { padding: clamp(44px, 6vw, 84px) 0; }
.page-simple .container { max-width: 860px; }
.page-simple h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); color: var(--brand); }
.page-simple h2 { font-size: 1.2rem; color: var(--brand); margin-top: 1.8em; }
.page-simple p, .page-simple li { color: var(--text); }
.page-simple .lead { color: var(--muted); font-size: 1.06rem; }

/* --------------------------------------------------------------------------
   Появление по скроллу — только когда JS жив
   -------------------------------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease-out, ease); }

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

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; font-size: .9rem; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-img { aspect-ratio: 16 / 9; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(2) { margin-top: 0; }
  .service-card:nth-child(2) { border-top-color: var(--accent); }
  .process-track { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .contacts-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  .burger { display: flex; margin-left: auto; }
  .header-phone { order: 3; }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 18px 20px 26px;
    background: rgba(245, 243, 239, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-deep);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    font-size: 1.02rem;
    color: var(--brand);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; min-height: 66px; }
  .main-nav { inset: 66px 0 auto 0; }
  .header-phone { padding: 9px 12px; font-size: .92rem; }
  body { font-size: 1rem; }
  .hero { padding-top: 40px; }
  .hero-bg { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .hero-actions .btn { width: 100%; }
  .review-card { grid-template-columns: 1fr; }
  .review-photo { width: 72px; height: 72px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav a, .footer-contacts li { font-size: 1rem; }
}

/* --- Недостающие дизайн-токены (значения из theme.css платформы) --- */
:root{
  --font-sans: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: var(--step-0, clamp(1rem, .96rem + .2vw, 1.125rem));
  --line-height: 1.6;
}

/* ==========================================================================
   Дополнение: оформление блоков, у которых стилей не было
   ========================================================================== */

/* Текстовые колонки первого экрана и блока записи */
.hero-copy,
.cta-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  max-width: 62ch;
}

.hero-copy .hero-title { margin-bottom: .35em; }
.hero-copy .hero-lead { max-width: 58ch; }
.hero-copy .hero-actions { margin-top: var(--space-2, 8px); }

.cta-copy .section-title { margin-bottom: var(--space-4, 16px); }
.cta-copy .cta-text { max-width: 56ch; }
.cta-copy .cta-contacts { margin-top: auto; padding-top: var(--space-6, 32px); }

/* Разделы, у которых не было своего фона под ними */
.section-services { background: linear-gradient(180deg, rgba(255, 255, 255, .65), transparent 68%); }
.section-reviews { background: linear-gradient(180deg, rgba(18, 58, 99, .05), transparent 72%); }
.section-faq { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 60%); }
.section-legal { background: linear-gradient(180deg, rgba(18, 58, 99, .04), rgba(18, 58, 99, .09)); }

.section-services .services-grid,
.section-reviews .reviews-grid,
.section-faq .faq-list,
.section-legal .legal-grid { margin-top: clamp(28px, 4vw, 48px); }

/* Подвал: колонка с названием фирмы */
.footer-brand { min-width: 0; }
.footer-brand .footer-tagline { max-width: 36ch; }

/* Шапка: логотип, меню и телефон одной строкой, ссылки без подчёркивания */
.site-header .header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4, 16px);
}

.site-header a,
.logo,
.main-nav a,
.header-phone,
.btn,
.cta-link,
.footer-nav a,
.footer-contacts a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-copy,
  .cta-copy { max-width: none; }
  .cta-copy .cta-contacts { margin-top: var(--space-6, 32px); }
}
