/* ===== Variables ===== */
:root {
  --color-bg: #FFFFFF;
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-accent: #EA6C00;
  --color-accent-hover: #C45A00;
  --color-brand: #2D7D6F;
  --color-brand-deep: #236358;
  --color-surface: #F0F9F7;
  --color-border: #E5E7EB;
  --font-base: 'Source Sans 3', system-ui, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;
  --fs-base: 19px;
  --fs-h1: clamp(1.875rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 1.875rem);
  --fs-h3: 1.25rem;
  --fs-btn: 1.125rem;
  --fs-price: 1.625rem;
  --fs-small: 16px;
  --lh: 1.65;
  --container: 1140px;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 20px 50px rgba(45, 125, 111, 0.12);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --z-header: 100;
  --z-float: 120;
  --z-lightbox: 200;
  --z-toast: 300;
}

/* Accessibility mode */
body.a11y {
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-muted: #333333;
  --color-accent: #000000;
  --color-accent-hover: #333333;
  --color-brand: #000000;
  --color-surface: #FFFFFF;
  --color-border: #000000;
  --fs-base: 23px;
  --fs-h1: 2.125rem;
  --fs-h2: 2rem;
  --fs-h3: 1.5rem;
  --fs-btn: 1.375rem;
  --fs-price: 1.75rem;
  --fs-small: 18px;
  --lh: 2;
  cursor: default;
}

body.a11y .btn--accent {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

body.a11y .btn--outline {
  border: 2px solid #000;
  color: #000;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--color-text);
  background: var(--color-bg);
}

.svg-sprite,
body > svg[aria-hidden="true"] {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 125, 111, 0.35);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

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

p { margin: 0 0 1rem; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.muted { color: var(--color-muted); }

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

.section { padding: 4rem 0; }
.section--surface { background: var(--color-surface); }
.section--brand {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
  color: #fff;
}
.section--brand h2,
.section--brand .cta__lead { color: #fff; }
.section--brand a { color: #fff; }

/* Scroll reveal */
.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);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Agentic welcome */
.welcome-back {
  padding: 0.875rem 0;
  background: linear-gradient(90deg, rgba(45, 125, 111, 0.12), rgba(234, 108, 0, 0.08));
  border-bottom: 1px solid var(--color-border);
}
.welcome-back[hidden] { display: none; }
.welcome-back__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.0625rem;
}
.welcome-back__inner p { margin: 0; }
.welcome-back__dismiss {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
}
.welcome-back__dismiss:hover { color: var(--color-text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--outline:hover {
  background: var(--color-brand);
  color: #fff;
}

.btn--sm { padding: 0.5rem 1.125rem; font-size: 1rem; min-height: 44px; }
.btn--lg { padding: 1rem 2rem; min-height: 48px; width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

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

.header__sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
  padding: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  color: var(--color-brand);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.logo:hover { text-decoration: none; }

.logo__img {
  display: block;
  height: clamp(1.75rem, 2.4vw, 2.35rem);
  width: auto;
  max-width: min(200px, 42vw);
}

.logo__tagline {
  font-family: var(--font-base);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-muted);
  white-space: nowrap;
}

.logo__icon { width: 40px; height: 28px; color: var(--color-brand); }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__text strong { font-family: var(--font-heading); font-size: 1.125rem; color: var(--color-text); }
.logo__text small { font-size: 0.75rem; color: var(--color-muted); }

.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 1rem);
  margin: 0;
  min-width: 0;
}
.nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a:hover { color: var(--color-brand); }
.nav a.is-active,
.mobile-menu nav a.is-active {
  color: var(--color-brand);
  position: relative;
}
.nav a.is-active::after,
.mobile-menu nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 1px;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__phones {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.phone-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  white-space: nowrap;
  line-height: 1.25;
}
.phone-link:hover { color: var(--color-accent); text-decoration: none; }

.header__actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.header__phones .phone-link:last-child {
  display: none;
}

@media (min-width: 1400px) {
  .header__phones .phone-link:last-child {
    display: block;
  }
}

.header__actions .btn--accent {
  white-space: nowrap;
  padding-inline: 0.875rem;
}

.header__actions .btn--sm {
  min-height: 40px;
  padding: 0.4375rem 1rem;
  font-size: 1rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.mobile-menu {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mobile-menu nav a {
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}
.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mobile-menu__phones a {
  font-weight: 700;
  color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 68vh, 680px);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  overflow: hidden;
  background: #eef1ef;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 70% center;
}

/* Фото на весь hero; слева только лёгкий свет — пара видна почти до формы */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.78) 18%,
      rgba(255, 255, 255, 0.42) 38%,
      rgba(255, 255, 255, 0.12) 58%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 24%,
      transparent 80%,
      rgba(255, 255, 255, 0.28) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 34rem;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.hero__tagline {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand);
  background: rgba(45, 125, 111, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.lead-form input,
.cta-form input:not([type="checkbox"]),
.cta-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.lead-form input:focus,
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(45, 125, 111, 0.15);
}

.form-note {
  font-size: var(--fs-small);
  color: var(--color-brand);
  margin: 0;
  text-align: center;
}

.form-error {
  font-size: var(--fs-small);
  color: #B42318;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #FEF3F2;
  border-radius: 8px;
  border: 1px solid #FECDCA;
}
.form-error[hidden] { display: none; }

.field-error {
  font-size: var(--fs-small);
  color: #B42318;
  margin: -0.25rem 0 0;
}
.field-error[hidden] { display: none; }

.lead-form input.is-invalid,
.cta-form input:not([type="checkbox"]).is-invalid {
  border-color: #B42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.lead-form.is-loading,
.cta-form.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

/* ===== Trust ===== */
.trust { padding: 2.5rem 0; }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trust-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.trust-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.375rem;
}
.trust-card__value a { color: inherit; text-decoration: none; }
.trust-card__value a:hover { color: var(--color-accent); }

.trust-card__label {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== Situations ===== */
.situations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.situations__subtitle {
  font-size: 1.125rem;
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.situations__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.situations__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.quote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(234, 108, 0, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text);
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: stretch;
  max-width: 52rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  display: flex;
  margin-bottom: 0.75rem;
}

.service-card > p:not(.service-card__price) {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.service-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-price);
  font-weight: 700;
  color: var(--color-accent) !important;
  margin: 1rem 0 0;
  margin-top: auto;
  flex-shrink: 0;
}

.service-card .btn { margin-top: 1rem; width: 100%; }

.pricing-table {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pricing-table h3 { margin-bottom: 1.25rem; }

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.price-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}
.price-card__label {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.35;
  min-height: calc(2 * 1.35 * 1.0625rem);
}
.price-card__value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  overflow-wrap: anywhere;
}

.price-list { margin: 0 0 1rem; display: none; }

.price-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}
.price-list__row:last-child { border-bottom: none; }

.price-list__row dt { font-weight: 400; }
.price-list__row dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
  white-space: nowrap;
}

.pricing-table__note {
  font-size: var(--fs-small);
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.pricing-table > .btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* ===== Includes ===== */
.includes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.include-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.include-card strong { display: block; margin-bottom: 0.25rem; font-family: var(--font-heading); }
.include-card p { margin: 0; font-size: 1rem; color: var(--color-muted); }

.includes__footnote { font-size: var(--fs-small); margin: 0; }

/* ===== Advantages ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.advantage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.advantage__icon {
  flex-shrink: 0;
}

.advantage strong { display: block; margin-bottom: 0.375rem; font-family: var(--font-heading); }
.advantage p { margin: 0; color: var(--color-muted); font-size: 1.0625rem; }
.advantage em { font-style: italic; color: var(--color-text); }

/* ===== Gallery carousel ===== */
.gallery__carousel {
  position: relative;
  display: block;
}

.gallery__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-border);
  aspect-ratio: 16 / 10;
}

.gallery__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.gallery__slide button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.gallery__nav svg { width: 1.25rem; height: 1.25rem; }
.gallery__nav:hover { background: #fff; }
.gallery__nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.gallery__nav--prev { left: 0.75rem; }
.gallery__nav--next { right: 0.75rem; }

.gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.gallery__dot.is-active {
  background: var(--color-brand);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__track { transition: none; }
}

/* ===== Reviews ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-card__stars { margin-bottom: 0.5rem; }
.review-card__author { font-weight: 700; margin-bottom: 0.5rem; }
.review-card blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--color-text);
}
.review-card__source { font-size: var(--fs-small); color: var(--color-muted); margin: 0; }

.reviews__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Schedule ===== */
.schedule__accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule__heading {
  margin: 0;
  padding: 1.25rem 1.5rem 0.75rem;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
}

.schedule__body {
  position: relative;
}

.schedule__panel {
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule__panel .timeline {
  padding: 0 1.5rem 0;
  margin: 0;
  list-style: none;
}

.schedule__peek {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0 1rem;
  background: var(--color-bg);
  transition: opacity 0.3s ease, max-height 0.35s ease, padding 0.35s ease;
}

.schedule__fade {
  display: none;
}

.schedule__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(45, 125, 111, 0.12);
  color: var(--color-brand);
  cursor: pointer;
  transition: background var(--transition), transform 0.35s ease;
}

.schedule__toggle:hover {
  background: rgba(45, 125, 111, 0.2);
}

.schedule__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: schedule-chevron-bounce 1.6s ease-in-out infinite;
}

.schedule__chevron svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.schedule__accordion.is-expanded .schedule__chevron {
  animation: none;
  transform: rotate(180deg);
}

.schedule__accordion.is-expanded .schedule__peek {
  opacity: 1;
  max-height: none;
  padding: 0.5rem 0 1rem;
  pointer-events: auto;
}

.schedule__accordion.is-expanded .schedule__panel .timeline {
  padding-bottom: 0;
}

@keyframes schedule-chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .schedule__panel,
  .schedule__peek,
  .schedule__chevron {
    transition: none;
    animation: none;
  }
}

.timeline {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 7.75rem 2.75rem 1fr;
  column-gap: 1rem;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.timeline li:last-child { border-bottom: none; }
.timeline time {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  line-height: 1.2;
  font-size: 0.9375rem;
}
.timeline__icon {
  flex-shrink: 0;
  justify-self: center;
}
.timeline p {
  margin: 0;
  line-height: 1.45;
}

/* ===== Steps ===== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 1.0625rem; color: var(--color-muted); margin: 0; }

.documents {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.documents h3 {
  font-size: var(--fs-h3);
  margin: 0 0 1.125rem;
}

.documents__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 3rem;
  align-items: start;
}

.documents ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.documents ul li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-text);
}

.documents ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .documents__cols {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===== CTA Form ===== */
.cta__lead { margin-bottom: 2rem; opacity: 0.95; }

.cta-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.section--brand .cta-form input:not([type="checkbox"]),
.section--brand .cta-form textarea {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
}

.section--brand .checkbox-label input[type="checkbox"] {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  cursor: pointer;
  opacity: 0.9;
  max-width: 100%;
}
.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  border: none;
  background: transparent;
  box-shadow: none;
}

.cta__contacts-title {
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.cta__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  max-width: 40rem;
}

.cta__channels li:last-child {
  grid-column: 1 / -1;
}

.cta__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
}

.cta__channel:hover {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}

.cta__channel-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
}

.cta__channel-icon [fill="none"] {
  fill: none;
}

.cta__channel--max .cta__channel-icon {
  color: #fff;
}

/* ===== Location ===== */
.location__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.location__map {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 0;
}
.location__map iframe {
  width: 100%;
  flex: 1;
  min-height: 360px;
  border: 0;
  display: block;
}
.location__route {
  flex-shrink: 0;
  align-self: center;
  margin: 1rem 1rem 1.25rem;
  min-width: min(100% - 2rem, 16rem);
  text-align: center;
}

.location__item {
  margin-bottom: 1.25rem;
}
.location__item strong.label-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.location__item strong:not(.label-with-icon) { display: block; margin-bottom: 0.375rem; font-family: var(--font-heading); }
.location__item p { margin: 0; color: var(--color-muted); }

/* ===== FAQ ===== */
.faq__list { max-width: 800px; }

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg);
  overflow: hidden;
}
.faq__item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--color-brand);
  font-weight: 400;
}
.faq__item[open] summary::after { content: '−'; }

.faq__answer {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--color-border);
}
.faq__answer p { margin: 0.75rem 0 0; color: var(--color-muted); font-size: 1.0625rem; }

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.footer a { color: rgba(255,255,255,0.9); }
.footer a:hover { color: #fff; }

.footer__brand { margin-bottom: 2rem; }
.footer__brand .logo { color: #fff; }
.footer__brand .logo__tagline {
  color: rgba(255, 255, 255, 0.78);
}
.footer__brand .logo__text strong { color: #fff; }
.footer__tagline { font-style: italic; opacity: 0.8; margin: 0; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__col > p {
  margin: 0 0 0.625rem;
}

.footer__col > p:last-child {
  margin-bottom: 0;
}

.footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.footer__social-link:hover {
  background: var(--color-brand);
  transform: translateY(-1px);
}

.footer__social-link .icon--inline {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  background: transparent;
}

.footer__social-link .icon--inline svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer__rating { font-size: var(--fs-small); margin: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: var(--fs-small);
}
.footer__bottom p { margin: 0; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }

.lightbox img {
  max-height: 75vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.3); }

.lightbox__close { top: 1rem; right: 1rem; font-size: 1.75rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.is-showing {
  animation: toast-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast[hidden] { display: none; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Mobile call bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-float);
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.625rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 30px rgba(31, 41, 55, 0.08);
}
.mobile-bar .btn { width: 100%; min-height: 48px; font-size: 1rem; }
.mobile-bar .btn--call {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

/* MAX messenger float */
.max-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: var(--z-float);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  transition: transform var(--spring);
  text-decoration: none;
}
.max-float:hover {
  transform: scale(1.06);
  text-decoration: none;
  color: #fff;
}
.max-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ===== Responsive ===== */
@media (max-width: 1280px) and (min-width: 900px) {
  .header__phones .phone-link:last-child { display: none; }
  .header__actions .btn--outline { display: none; }
  .includes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .nav, .header__contacts { display: none; }
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .burger { display: flex; }
  .mobile-bar { display: grid; }
  .max-float { bottom: 5.25rem; }
  body { padding-bottom: 5rem; }

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 2rem;
    background: var(--color-bg);
  }

  .hero__media {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: min(56vw, 300px);
    min-height: 220px;
  }

  .hero__media::after {
    background: linear-gradient(
      180deg,
      transparent 40%,
      rgba(255, 255, 255, 0.45) 78%,
      var(--color-bg) 100%
    );
  }

  /* На мобилке кадр на пару: левый двор/терраса обрезаются */
  .hero__media img {
    object-fit: cover;
    object-position: 90% 18%;
  }

  .hero__inner {
    padding-top: 0.25rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero__lead {
    max-width: none;
  }

  .lead-form {
    max-width: none;
  }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .includes__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .location__map iframe {
    flex: none;
    height: 320px;
  }
  .price-cards { grid-template-columns: repeat(2, 1fr); }

  .gallery__viewport { aspect-ratio: 4 / 3; }
  .gallery__nav {
    width: 2.35rem;
    height: 2.35rem;
  }
  .gallery__nav--prev { left: 0.5rem; }
  .gallery__nav--next { right: 0.5rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.35rem, 7.4vw, 1.7rem); }
  .hero__title-line { white-space: nowrap; }
  .mobile-bar { gap: 0.5rem; padding-left: 0.625rem; padding-right: 0.625rem; }
  .mobile-bar .btn { font-size: 0.9375rem; padding-left: 0.5rem; padding-right: 0.5rem; }
}

@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }

  .situations__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .trust-card { min-width: 0; padding: 1rem 0.75rem; }
  .trust-card__label { overflow-wrap: anywhere; }
  .reviews__links { flex-direction: column; align-items: stretch; }
  .reviews__links .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .trust-card__value { font-size: 1.375rem; }

  .includes__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .cta-form__row { grid-template-columns: 1fr; }
  .cta__channels {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .cta__channels li:last-child {
    grid-column: auto;
  }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .price-cards { grid-template-columns: 1fr; }

  .pricing-table {
    padding: 1.25rem;
    overflow-x: hidden;
  }
  .price-card__value {
    white-space: normal;
    font-size: 1.25rem;
  }

  .timeline {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .timeline li {
    grid-template-columns: 6.5rem 2.25rem 1fr;
    column-gap: 0.65rem;
  }
  .timeline time {
    font-size: 0.8125rem;
    white-space: normal;
  }

  .header__actions .btn--outline { display: none; }
}

/* ===== Legal pages ===== */
.legal-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-header a { text-decoration: none; font-weight: 600; }
.legal-header a:hover { text-decoration: underline; }

.legal-page {
  padding: 3rem 0 4rem;
  max-width: 720px;
}
.legal-page h1 {
  margin-bottom: 0.5rem;
}
.legal-page__updated {
  color: var(--color-muted);
  font-size: var(--fs-small);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.legal-page ul,
.legal-page ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page p:last-child { margin-bottom: 0; }


/* ===== Cookie consent ===== */
.cookie {
  position: fixed;
  z-index: 250;
  left: 1rem;
  bottom: 1.25rem;
  width: min(26.5rem, calc(100% - 2rem));
  pointer-events: none;
}
.cookie__card {
  pointer-events: auto;
  position: relative;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: cookie-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-base);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.cookie__close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}
.cookie__close:focus-visible,
.cookie__accept:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 125, 111, 0.35);
}
.cookie__title {
  margin: 0 2.25rem 0.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
.cookie__text {
  margin: 0 0 1rem;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--color-text);
}
.cookie__text a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.cookie__text a:hover { color: var(--color-brand-deep); }
.cookie__accept {
  width: 100%;
  min-height: 48px;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie__card { animation: none; }
}
@media (max-width: 899px) {
  body:has(.mobile-bar) .cookie {
    left: 0.75rem;
    width: min(26.5rem, calc(100% - 6.75rem));
    bottom: calc(5.15rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 899px) and (max-height: 820px) {
  .lead-form { padding-right: 4.75rem; }
}

@media (min-width: 641px) and (max-width: 899px) {
  .services__grid,
  .reviews__grid,
  .advantages__grid { grid-template-columns: 1fr 1fr; }
  .lead-form { max-width: 32rem; }
}
body.a11y .cookie__card {
  border: 2px solid #000;
  box-shadow: none;
}
body.a11y .cookie__close {
  color: #000;
  border: 2px solid #000;
  background: #fff;
}
#cookies { scroll-margin-top: 1.5rem; }

.checkbox-label a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.section--brand .checkbox-label a { color: #fff; }
.section--brand .checkbox-label a:hover { color: #fff