/* =========================================================
   Елена Тимощук — Адвокат. Стили лендинга.
   Дизайн-система: premium corporate / editorial.
   ========================================================= */

:root {
  /* Цвет */
  --color-primary: #0755bc;
  --color-primary-dark: #06499f;
  --color-primary-darker: #053c82;

  --color-text: #17191d;
  --color-text-secondary: #656a72;

  --color-bg: #ffffff;
  --color-bg-alt: #fafafb;
  --color-surface: #f2f7fd;
  --color-surface-2: #eaf1fb;

  --color-border: rgba(15, 70, 140, 0.1);
  --color-border-soft: rgba(15, 70, 140, 0.08);

  /* Радиусы */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Сетка и отступы */
  --container: 1200px;
  --section-space: 128px;
  --section-space-mobile: 80px;

  /* Тени — максимально деликатные */
  --shadow-soft: 0 10px 40px rgba(20, 45, 80, 0.06);
  --shadow-softer: 0 6px 20px rgba(20, 45, 80, 0.05);

  /* Сохранено для обратной совместимости внутри файла */
  --accent: var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --accent-light: var(--color-primary);
  --accent-soft: var(--color-surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Wix Madefor Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

section {
  scroll-margin-top: 90px;
}

h1, h2, h3, h4 {
  font-family: "Wix Madefor Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.section-pad {
  padding: var(--section-space) 0;
}

.bg-soft {
  background: var(--color-surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: box-shadow 0.25s ease;
}

/* ---------- Полоса с телефоном/почтой — только мобильные ---------- */
.mobile-topbar {
  display: none;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-softer);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.2;
}

.logo span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-phone,
.header-email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header-phone {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
}

.header-phone:hover,
.header-email:hover {
  color: var(--color-primary);
}

.header-phone svg,
.header-email svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ---------- Индикатор прогресса прокрутки ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.12s linear;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span::before {
  position: absolute;
  top: -6px;
}

.burger span::after {
  position: absolute;
  top: 6px;
}

.burger.is-open span {
  background: transparent;
}

.burger.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height, 80px));
  display: flex;
  align-items: center;
  padding: 24px 0;
  overflow: hidden;
}

.hero-scales {
  position: absolute;
  top: 12px;
  right: 3%;
  width: 220px;
  height: 220px;
  color: var(--color-primary);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-4deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 64px;
  align-items: stretch;
}

.hero-text .eyebrow {
  margin-bottom: clamp(6px, 1.1vh, 14px);
}

.hero-text h1 {
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: clamp(10px, 1.3vh, 17px);
  max-width: 640px;
}

.hero-lead {
  color: var(--color-text-secondary);
  font-size: clamp(15.5px, 1.7vh, 17px);
  line-height: 1.5;
  margin: 0 0 clamp(14px, 2.1vh, 27px);
  max-width: 480px;
}

/* ---------- Единая светло-голубая панель: направления + форма ---------- */
.hero-panel {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(16px, 2.3vh, 25px) clamp(22px, 2.6vh, 26px) clamp(12px, 1.7vh, 19px);
  margin-bottom: 0;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(10px, 1.6vh, 18px);
}

.hero-stat-number {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.8vh, 40px);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: clamp(12.5px, 1.4vh, 14px);
  line-height: 1.35;
  color: var(--color-text-secondary);
  max-width: 220px;
}

.hero-panel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(10px, 1.6vh, 18px);
}

.hero-tags span {
  font-size: clamp(13px, 1.4vh, 14px);
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: clamp(6px, 0.85vh, 8px) clamp(12px, 1.4vh, 13px);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.hero-tags span:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.hero-panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: clamp(10px, 1.5vh, 17px);
  border-top: 1px solid var(--color-border);
}

.hero-panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.hero-panel-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.hero-panel-item strong {
  color: var(--color-text);
}

/* ---------- Форма — вторая половина той же панели ---------- */
.hero-cta-card {
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: 1px solid var(--color-border);
  padding: clamp(12px, 1.8vh, 20px) clamp(22px, 2.6vh, 26px) clamp(16px, 2.1vh, 22px);
}

.hero-cta-text {
  font-size: clamp(14px, 1.4vh, 15.5px);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 clamp(8px, 1.3vh, 13px);
}

.hero-form {
  display: flex;
  gap: 12px;
}

.hero-form input {
  flex: 1;
  min-width: 0;
  min-height: clamp(46px, 5.2vh, 52px);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(7, 85, 188, 0.12);
}

.hero-form .btn {
  flex-shrink: 0;
  min-height: clamp(46px, 5.2vh, 52px);
}

.hero-form-note {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  margin: clamp(8px, 1.1vh, 12px) 0 0;
}

.hero-form-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: #1a7a4c;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
}

.hero-form-success.is-visible {
  display: flex;
}

.hero-form-error {
  display: none;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}

.hero-form-error a {
  text-decoration: underline;
}

.hero-form-error.is-visible {
  display: block;
}

/* ---------- Фото ----------
   hero-media не имеет собственной высоты: оба его потомка
   (::before и hero-media-frame) абсолютно спозиционированы,
   поэтому grid-строка получает высоту от hero-text, а затем
   align-items:stretch растягивает hero-media ровно под неё —
   низ фото и низ формы всегда совпадают. */
.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-media-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-frame:hover img {
  transform: scale(1.02);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  box-shadow: var(--shadow-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  max-width: calc(100% - 48px);
}

.hero-badge svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ---------- Вступительная анимация hero при загрузке ---------- */
.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .hero-anim {
  opacity: 1;
  transform: none;
}

body.is-loaded .hero-anim-1 { transition-delay: 0.05s; }
body.is-loaded .hero-anim-2 { transition-delay: 0.15s; }
body.is-loaded .hero-anim-3 { transition-delay: 0.25s; }
body.is-loaded .hero-anim-4 { transition-delay: 0.35s; }
body.is-loaded .hero-anim-5 { transition-delay: 0.45s; }

/* =========================================================
   Скролл-анимации появления
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-grid > *:nth-child(1) { transition-delay: 0s; }
.stagger-grid > *:nth-child(2) { transition-delay: 0.06s; }
.stagger-grid > *:nth-child(3) { transition-delay: 0.12s; }
.stagger-grid > *:nth-child(4) { transition-delay: 0.18s; }
.stagger-grid > *:nth-child(5) { transition-delay: 0.24s; }
.stagger-grid > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-grid > *:nth-child(7) { transition-delay: 0.36s; }
.stagger-grid > *:nth-child(8) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightbox,
  .lightbox-content,
  .hero-media-frame img {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   About
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 110px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.about-text p {
  color: var(--color-text-secondary);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-3px);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon,
.process-card:hover .advantage-icon {
  transform: scale(1.05);
}

.advantage-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* =========================================================
   Как я работаю (процесс)
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease;
}

.process-card:hover {
  transform: translateY(-3px);
}

.process-card .advantage-icon {
  background: #fff;
}

.process-step {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: "Wix Madefor Display", sans-serif;
  font-size: 26px;
  font-weight: 600;
  transition: color 0.25s ease;
  color: rgba(7, 85, 188, 0.16);
}

.process-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.process-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* =========================================================
   Цитата (светлая акцентная секция)
   ========================================================= */
.quote-band {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  padding: var(--section-space) 0;
}

.quote-glow {
  display: none;
}

.quote-band-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  width: 40px;
  height: 30px;
  color: var(--color-primary);
  opacity: 0.5;
  margin: 0 auto 24px;
  display: block;
}

.quote-text {
  font-family: "Wix Madefor Display", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--color-primary);
}

.quote-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

.quote-attribution {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: inline-block;
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 70, 140, 0.18);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* =========================================================
   Court acts gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 33, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox-content {
  position: relative;
  max-width: 620px;
  width: 100%;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.85;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* =========================================================
   Contacts
   ========================================================= */
.contacts-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contacts-info h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.notice-badge {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.contacts-note {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 26px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.info-list span,
.info-list a {
  font-size: 14.5px;
  color: var(--color-text-secondary);
}

.info-list a:hover {
  color: var(--color-primary);
}

.contacts-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.contacts-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

/* Form */
.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 36px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(7, 85, 188, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.form-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--color-primary);
}

.form-consent label {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1a7a4c;
  border: 1px solid rgba(26, 122, 76, 0.2);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-top: 16px;
}

.form-success.is-visible {
  display: flex;
}

.form-error {
  display: none;
  background: #fff;
  color: #b3261e;
  border: 1px solid rgba(179, 38, 30, 0.2);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-top: 16px;
}

.form-error a {
  text-decoration: underline;
  font-weight: 600;
}

.form-error.is-visible {
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary-darker);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 24px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand .logo span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contacts a:hover {
  color: #fff;
}

.footer-bottom {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .about-inner,
  .contacts-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 0;
    display: block;
    padding: 32px 0 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }

  .hero-media::before {
    top: -16px;
    right: -16px;
  }

  .hero-media-frame {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hero-text h1,
  .hero-lead {
    max-width: none;
  }
}

@media (max-width: 1080px) {
  .main-nav,
  .header-contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .header-actions .btn-primary {
    padding: 0 18px;
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-space: var(--section-space-mobile);
  }

  .container {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .about-text h2,
  .contacts-info h2,
  .section-head h2 {
    font-size: 28px;
  }

  .advantages-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-caption {
    padding: 8px 8px;
    font-size: 12.5px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-panel,
  .hero-cta-card {
    padding: 20px;
  }

  /* Фото в hero на мобильных не показываем — экономим место */
  .hero-media {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    background: var(--color-primary);
    padding: 8px 16px;
  }

  .mobile-topbar a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-topbar svg {
    flex-shrink: 0;
    opacity: 0.9;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-form .btn {
    width: 100%;
  }

  .hero-badge {
    left: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 12.5px;
  }
}
