/* AkrilVanna — лендинг */
:root {
  --color-text: #1a1d24;
  --color-muted: #5c6370;
  --color-border: #e3e6ec;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fb;
  --color-primary: #0b4f9c;
  --color-primary-2: #0a2d5a;
  --color-hero-slate: #41526c;
  /* Блок «Речица» */
  --grad-city: linear-gradient(
    152deg,
    #0a0d12 0%,
    #1a222e 28%,
    #2f3d4f 52%,
    #41526c 70%,
    #4a5c70 100%
  );
  --grad-btn: linear-gradient(135deg, #2a3545 0%, #41526c 48%, #4d5f7a 100%);
  --shadow-sm: 0 4px 20px rgba(7, 36, 80, 0.08);
  --shadow-md: 0 8px 32px rgba(7, 36, 80, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1100px;
  --header-h: 72px;
}
@media (min-width: 900px) {
  :root {
    /* 7+ пунктов навигации часто в 2 ряда: запас больше прежних 88px */
    --header-h: 120px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* смещение вьюпорта для :target-навигации: надёжнее, чем только margin у секций (учёт залипшой шапки) */
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  outline: 2px solid var(--color-primary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}
.site-header a:hover,
.site-header a:focus {
  text-decoration: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 16px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.brand__link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.brand {
  min-width: 0;
}

@media (min-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
    min-height: 80px;
    padding: 16px 24px;
    text-align: start;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .header-phone {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
  }
  .header-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    position: relative;
    z-index: 1;
  }
  .nav-toggle {
    display: none !important;
  }
}
@media (min-width: 1100px) {
  .header-phone {
    font-size: 2.75rem;
  }
}

.brand__name {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.brand__link:hover .brand__name,
.brand__link:focus .brand__name {
  color: #0a0a0a;
}

.brand__tagline {
  font-size: 0.9rem;
  color: #6a6f7a;
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

.header-nav {
  justify-self: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 22px;
}

.header-nav__link {
  font-weight: 500;
  color: #3d3d3d;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 4px 0;
}
@media (min-width: 900px) {
  .header-nav__link {
    font-size: 0.95rem;
  }
}
.header-nav__link:hover,
.header-nav__link:focus {
  color: #0b4f9c;
  text-decoration: none;
}

.header-phone {
  text-align: center;
  font-weight: 700;
  font-size: 1.45rem;
  white-space: nowrap;
  min-width: 0;
  color: #0a0a0a;
  letter-spacing: 0.01em;
}
.header-phone:hover,
.header-phone:focus {
  color: #0b4f9c;
  text-decoration: none;
}

/* Моб. контейнер для бургера: не занимает места в потоке; иконка в fixed, см. @media 899 */
.header-mobile-sticky {
  display: none;
}

/* Моб: бутербод + меню; на 899+ позиция задаётся в @media (fixed угол) */
.header-burger {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Бутерброд: на десктопе скрыт в @media 900+ */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #d9dde4;
  background: #fff;
  color: #0a0a0a;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 22, 36, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: #f3f5f8;
  border-color: #c9ced8;
  outline: none;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] {
  background: #e9ecf1;
  border-color: #b4bcc8;
}
/* 2 + 5 + 2 + 5 + 2: центр крайних на ±7px — так линии сходятся в ровный крест */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle__bar {
  transition: transform 0.2s, opacity 0.2s;
}

/* Моб. меню: вправо, не выезжает за вьюпорт; якорь — правый край кнопки (fixed) */
.mobile-menu[hidden] {
  display: none !important;
}
.mobile-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 1;
  margin: 0;
  width: min(20.5rem, calc(100vw - 1.25rem));
  min-width: 11rem;
  max-width: min(20.5rem, calc(100vw - 1.25rem));
  max-height: min(32rem, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4rem - 2.5rem));
  padding: 0.35rem 0.2rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  line-height: normal;
  text-align: left;
  color: #1a1d24;
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(12, 20, 40, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03) inset;
  box-sizing: border-box;
  transform-origin: 100% 0;
}
.mobile-menu:not([hidden]) {
  animation: mobileMenuFromBtn 0.24s ease forwards;
}
@keyframes mobileMenuFromBtn {
  from {
    opacity: 0;
    transform: translate(4px, -2px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mobile-menu__link {
  display: block;
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1d24;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.mobile-menu__link:hover,
.mobile-menu__link:focus {
  background: #f3f5f9;
  color: #0b4f9c;
  text-decoration: none;
  border-color: #e3e6ec;
  outline: none;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Моб: плавающий звонок, когда шапка ушла со скроллом */
.float-phone {
  display: none;
  position: fixed;
  z-index: 90;
  right: calc(max(0.9rem, env(safe-area-inset-right, 0px) + 0.35rem) + 1px);
  bottom: max(1.35rem, env(safe-area-inset-bottom, 0px) + 0.8rem);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  overflow: visible;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, rgba(11, 79, 156, 0.92) 0%, rgba(20, 110, 200, 0.88) 100%);
  box-shadow: 0 6px 24px rgba(11, 79, 156, 0.42);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.float-phone--visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.float-phone__face {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.float-phone__pulse {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: rgba(20, 110, 200, 0.45);
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: floatPhoneRing 2.1s ease-out infinite;
  will-change: transform, opacity;
}
.float-phone__pulse--delay {
  animation-delay: 1.05s;
}
@media (prefers-reduced-motion: reduce) {
  .float-phone__pulse,
  .float-phone__pulse--delay {
    animation: none;
  }
}
@keyframes floatPhoneRing {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.float-phone:hover,
.float-phone:focus {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 65, 128, 0.96) 0%, rgba(12, 95, 195, 0.92) 100%);
  box-shadow: 0 8px 28px rgba(11, 79, 156, 0.55);
  outline: none;
}
.float-phone:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0b4f9c;
}
@media (max-width: 899px) {
  .float-phone {
    display: flex;
  }
}
@media (min-width: 900px) {
  .float-phone {
    display: none !important;
  }
}

/* Layout */
.block {
  padding: 64px 20px;
}
/* Меньше зазор между «Комплексная реставрация» (форма) и «Цены» */
#kompleks.block {
  padding-bottom: 40px;
}
#prices.block {
  padding-top: 40px;
}
/* Меньше зазор между «Галерея» и следующим блоком */
#gallery.block {
  padding-bottom: 40px;
}
/* Меньше зазор между «Речица» и «Отзывы» */
#rechitsa.block--city {
  padding: 64px 20px 40px 20px;
}
#reviews.block {
  padding: 40px 20px 64px 20px;
}
.block--light {
  background: #fff;
}
.block--soft {
  background: var(--color-bg-soft);
}
/* «О нас»: тот же мотив, что у hero; чуть спокойнее, чем полный набор (ниже вес фонового фото) */
#about.block--soft {
  color: #e4eaf2;
  background-color: #41526c;
  background-image: linear-gradient(
      128deg,
      rgba(6, 9, 14, 0.54) 0%,
      rgba(20, 28, 40, 0.42) 45%,
      rgba(5, 8, 12, 0.58) 100%
    ),
    linear-gradient(
      150deg,
      rgba(65, 82, 108, 0.54) 0%,
      rgba(65, 82, 108, 0.38) 38%,
      rgba(50, 65, 88, 0.46) 100%
    ),
    url("../img/hero.jpg?v=3");
  background-size: cover, cover, cover;
  background-position: center 40%, center 40%, center 40%;
  background-repeat: no-repeat;
  /* зона «О нас» по вертикали: 56px сверху, снизу на 5мм меньше */
  padding: 56px 20px calc(56px - 5mm) 20px;
}
/* «Контакты» — тот же фон, что у hero */
#contacts.block--soft {
  color: #e4eaf2;
  background-color: #41526c;
  background-image: linear-gradient(
      128deg,
      rgba(6, 9, 14, 0.48) 0%,
      rgba(20, 28, 40, 0.36) 45%,
      rgba(5, 8, 12, 0.52) 100%
    ),
    linear-gradient(
      150deg,
      rgba(65, 82, 108, 0.48) 0%,
      rgba(65, 82, 108, 0.32) 38%,
      rgba(50, 65, 88, 0.4) 100%
    ),
    url("../img/hero.jpg?v=3");
  background-size: cover, cover, cover;
  background-position: center 40%, center 40%, center 40%;
  background-repeat: no-repeat;
}
#contacts .contacts__line {
  color: rgba(230, 236, 244, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
#contacts .contacts__line strong {
  color: #fff;
}
#contacts .contacts__line a {
  color: #a8d8ff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
#contacts .contacts__line a[href^="tel:"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: currentColor;
  border-bottom: none;
}
#contacts .contacts__line a:hover,
#contacts .contacts__line a:focus {
  color: #fff;
  border-bottom-color: #fff;
}
#contacts .contacts__line a[href^="tel:"]:hover,
#contacts .contacts__line a[href^="tel:"]:focus {
  text-decoration: underline;
  text-decoration-color: #fff;
  border-bottom: none;
}
#contacts .placeholder {
  color: rgba(200, 210, 228, 0.9);
}
#contacts .social-row {
  margin-top: 18px;
}
#contacts #contacts-title,
#contacts .section-title {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}
#contacts .form-card {
  position: static;
  top: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
#contacts .form-card__title,
#contacts .form-card__sub {
  color: #e4eaf2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
#contacts .form-card__sub {
  color: rgba(215, 224, 240, 0.92);
  margin-bottom: 0.9rem;
}
#contacts .form-field label {
  color: rgba(240, 244, 250, 0.95);
}
#contacts .form-field input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #f4f6fa;
}
#contacts .form-field input::placeholder {
  color: rgba(230, 236, 244, 0.5);
}
#contacts .form-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
#contacts .form__success {
  color: #b8f0c4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* С тёмного фона: «Получить» в «О нас» + «Отправить» в форме контактов */
#about .btn--primary,
#contacts .form-card .btn--primary {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  filter: none;
}
#about .btn--primary:hover,
#about .btn--primary:focus,
#contacts .form-card .btn--primary:hover,
#contacts .form-card .btn--primary:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
  text-decoration: none;
}
#about .btn--primary:focus-visible,
#contacts .form-card .btn--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Hero: фото + подсветка #41526c (--color-hero-slate) + затемнение для текста; ?v сбрасывает кэш */
.block--hero {
  color: #eef2f8;
  min-height: clamp(200px, 32vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 20px 1rem;
  background-color: #41526c;
  /* слои: сверху вниз — тёмнота для читаемости, цветовой вуаль #41526c, снимок */
  background-image: linear-gradient(
      128deg,
      rgba(6, 9, 14, 0.48) 0%,
      rgba(20, 28, 40, 0.36) 45%,
      rgba(5, 8, 12, 0.52) 100%
    ),
    linear-gradient(
      150deg,
      rgba(65, 82, 108, 0.48) 0%,
      rgba(65, 82, 108, 0.32) 38%,
      rgba(50, 65, 88, 0.4) 100%
    ),
    url("../img/hero.jpg?v=3");
  background-size: cover, cover, cover;
  background-position: center 40%, center 40%, center 40%;
  background-repeat: no-repeat;
}

.hero__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px 44px;
  align-items: center;
  text-align: left;
  width: 100%;
}

@media (min-width: 900px) {
  .hero__content {
    gap: 28px 48px;
  }
}
@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero__text {
    text-align: left;
  }
  .hero__lead {
    margin: 0;
  }
}

.hero__title {
  font-size: clamp(1.95rem, 5.2vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  color: #f0f3f8;
  text-wrap: balance;
}
@media (min-width: 1000px) {
  .hero__title {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  }
}

.hero__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.035em;
  max-width: 40rem;
  margin: 0;
  color: #e1e6ef;
  opacity: 0.98;
  font-weight: 400;
}
@media (min-width: 768px) {
  .hero__lead {
    font-size: 1.32rem;
    max-width: 30em;
  }
}
@media (min-width: 1000px) {
  .hero__lead {
    font-size: 1.4rem;
  }
}

.hero__figure {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  background: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  justify-self: end;
}
@media (min-width: 480px) {
  .hero__figure {
    max-width: 280px;
  }
}
@media (min-width: 768px) {
  .hero__figure {
    max-width: min(100%, 300px);
    margin: 0 0 0 auto;
  }
}
@media (min-width: 1000px) {
  .hero__figure {
    max-width: min(100%, 340px);
  }
}

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

/* Фотографии: чуть сильнее контраст (только визуал) */
.block--hero .hero__figure img,
.price-card__img,
.about-figure__img {
  filter: contrast(1.1) saturate(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
  margin-top: 8px;
}

.btn--light {
  background: #fff;
  color: var(--color-primary-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn--light:hover,
.btn--light:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--color-primary-2);
}

/* Зелёная вспышка при нажатии (все <button> и .btn-ссылки) */
@keyframes btn-activate-blink {
  0% {
    filter: none;
  }
  45% {
    filter: brightness(1.1) drop-shadow(0 0 4px #00b0a6)
      drop-shadow(0 0 10px rgba(0, 176, 166, 0.55)) saturate(1.12);
  }
  100% {
    filter: none;
  }
}

/* Прозрачные/ghost-CTA: плюс заливка — как раньше, но зелёного бренда */
@keyframes btn-activate-blink-ghost {
  0% {
    background-color: rgba(0, 176, 166, 0);
    filter: none;
  }
  40% {
    background-color: rgba(0, 176, 166, 0.4);
    filter: brightness(1.12) drop-shadow(0 0 5px #00b0a6)
      drop-shadow(0 0 12px rgba(0, 176, 166, 0.55)) saturate(1.12);
  }
  100% {
    background-color: rgba(0, 176, 166, 0);
    filter: none;
  }
}

button:not([disabled]):active,
a.btn:not([disabled]):active {
  animation: btn-activate-blink 0.4s ease;
}

.btn--hero-ghost {
  background: transparent;
  color: #f4f6fa;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
  margin-top: 16px;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  padding: 12px 28px;
}
@media (min-width: 768px) {
  .btn--hero-ghost {
    font-size: 1.08rem;
    padding: 12px 30px;
  }
}
.btn--hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  border-color: #fff;
  transform: translateY(-1px);
}
.btn--hero-ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
button.btn--hero-ghost:not([disabled]):active,
button.btn--ghost-cta:not([disabled]):active {
  animation: btn-activate-blink-ghost 0.4s ease;
}

/* Ghost CTA на светлом фоне: как hero (без заливки), при нажатии/фокусе — вспышка */
.btn--ghost-cta {
  background: transparent;
  color: #0f1b2a;
  border: 1px solid rgba(15, 40, 70, 0.35);
  box-shadow: none;
  margin-top: 12px;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  padding: 12px 24px;
}
.btn--ghost-cta:hover {
  background: rgba(0, 176, 166, 0.1);
  color: #0a1e33;
  border-color: #00b0a6;
  text-decoration: none;
  box-shadow: none;
  transform: translateY(-1px);
}
.btn--ghost-cta:focus-visible {
  outline: 2px solid #00b0a6;
  outline-offset: 2px;
}

.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 36, 60, 0.4);
  border: none;
}
.btn--primary:hover,
.btn--primary:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn--block {
  width: 100%;
  margin-top: 12px;
}

/* «Отправить» / «Получить» на светлой подложке: прозрачный фон, тёмная обводка */
#kompleks .form-card .btn--primary {
  background: transparent;
  color: var(--color-primary-2);
  box-shadow: none;
  border: 1px solid #0a2d5a;
  filter: none;
}
#kompleks .form-card .btn--primary:hover,
#kompleks .form-card .btn--primary:focus {
  background: rgba(10, 40, 70, 0.05);
  border-color: #0b4f9c;
  color: var(--color-primary-2);
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
  text-decoration: none;
}
#kompleks .form-card .btn--primary:focus-visible {
  outline: 2px solid #0b4f9c;
  outline-offset: 2px;
}
.modal__dialog .btn--primary {
  background: transparent;
  color: var(--color-primary-2);
  box-shadow: none;
  border: 1px solid #0a2d5a;
  filter: none;
}
.modal__dialog .btn--primary:hover,
.modal__dialog .btn--primary:focus {
  background: rgba(10, 40, 70, 0.06);
  border-color: #0b4f9c;
  color: var(--color-primary-2);
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
  text-decoration: none;
}
.modal__dialog .btn--primary:focus-visible {
  outline: 2px solid #0b4f9c;
  outline-offset: 2px;
}

.section-title {
  font-size: 2.05rem;
  margin: 0 0 8px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.section-lead {
  margin: 0 0 20px;
  color: var(--color-text);
}

/* Two column */
.two-col {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 880px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .two-col--kompleks {
    align-items: center;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }
  .two-col--contacts {
    align-items: start;
  }
  .about-grid {
    align-items: start;
    /* Снимок / текст: снимок чуть крупнее (0.05fr слева) */
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr);
    column-gap: clamp(1.5rem, 2.5vw, 2.75rem);
  }
  .about-text .section-title {
    margin-top: 0;
  }
}

/* «Преимущества»: сетка 2×2 — пары заголовков в одной строке напротив друг друга; в колонку — порядок как в main.txt */
.section-title--advantages {
  color: #00b0a6;
  margin-bottom: 1.5rem;
}
.advantages-cols {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  column-gap: 0;
  align-items: start;
  margin: 0;
  padding: 0;
}
.advantages-cols .advantages-item:nth-child(1) {
  order: 1;
}
.advantages-cols .advantages-item:nth-child(2) {
  order: 3;
}
.advantages-cols .advantages-item:nth-child(3) {
  order: 2;
}
.advantages-cols .advantages-item:nth-child(4) {
  order: 4;
}
@media (min-width: 880px) {
  .advantages-cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 1.75rem;
  }
  .advantages-cols .advantages-item:nth-child(1),
  .advantages-cols .advantages-item:nth-child(2),
  .advantages-cols .advantages-item:nth-child(3),
  .advantages-cols .advantages-item:nth-child(4) {
    order: 0;
  }
}
.advantages-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}
.advantages-item__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
  letter-spacing: -0.01em;
}
.advantages-item__text {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* Feature rows */
.feature-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-chips__item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.feature-chips__h {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}
.feature-chips__item p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}
.feature-chips__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Блок «Комплексная реставрация»: города, сетка условий 2×2 */
.kompleks-main {
  min-width: 0;
}
.kompleks-main .section-title--advantages {
  margin-top: 0;
  margin-bottom: 1rem;
}
.kompleks-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}
.kompleks-cities__name {
  color: #00b0a6;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kompleks-cities__sep {
  color: #9aa3b2;
  font-weight: 500;
  user-select: none;
}
.feature-chips--kompleks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 520px) {
  .feature-chips--kompleks {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-chips--kompleks .feature-chips__item {
  height: 100%;
  box-sizing: border-box;
}
.feature-chips--kompleks .feature-chips__h {
  font-size: 1rem;
}

/* Форма в «Комплексная реставрация» — без карточки, по вертикали к центру текстового блока */
.two-col--kompleks .form-card {
  position: static;
  top: auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transform: translateY(0.4rem);
}
.two-col--kompleks .form-card__title,
.two-col--kompleks .form-card__sub {
  color: #00b0a6;
}
.two-col--kompleks .form-card__title {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}
.two-col--kompleks .form-card__sub {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 1rem;
}

/* Form card */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.form-card__title {
  font-size: 1.2rem;
  margin: 0 0 4px;
  font-weight: 700;
}
.form-card__sub {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 16px;
}
.form-field {
  margin-bottom: 12px;
}
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-field input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fcfdff;
}
.form-field input:focus {
  outline: 2px solid rgba(11, 79, 156, 0.3);
  border-color: var(--color-primary);
}
.form__success {
  margin-top: 8px;
  color: #1a7f4b;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Prices */
.price-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem 0.8rem;
}
.price-card__image-wrap {
  position: relative;
  background: #fff;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
/* Размерная стрелка: линия по центру кадра, подпись под ней */
.price-card__dim-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.price-card__dim-line-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 400 / 20;
  transform: translateY(calc(-50% + 2mm));
  overflow: visible;
  display: block;
}
/* Тонкая чёрная линия; наконечники — отдельные полигоны в разметке */
.price-card__dim-line {
  stroke: #0d0d0d;
  fill: none;
  stroke-width: 1.15;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}
.price-card__dim-chev {
  fill: #0d0d0d;
  stroke: none;
  pointer-events: none;
}
.price-card__dim-txt {
  position: absolute;
  left: 50%;
  top: calc(50% + 0.6rem + 2mm);
  transform: translateX(-50%);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  color: #0a1c2e;
  text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 8px #fff;
  white-space: nowrap;
}
@media (min-width: 500px) {
  .price-card__dim-txt {
    font-size: 1.2rem;
    top: calc(50% + 0.75rem + 2mm);
  }
}
.price-card__img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
}
.price-card__h {
  font-size: 1.1rem;
  margin: 0.6rem 0 8px;
  font-weight: 700;
}
.price-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #3d4450;
  line-height: 1.4;
  flex: 1;
}
.price-card__meta li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}
.price-card__meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.price-card__price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 12px 0 0;
  color: var(--color-primary-2);
}
.price-card__hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 4px 0 0;
  flex: 0;
}
.price-card .btn {
  margin: 12px 0 0;
}

/* О нас: максимальная ширина для двухколоночного ряда (отдельно от остального «1000px») */
#about .container {
  max-width: min(100% - 40px, 1320px);
}
@media (max-width: 879px) {
  #about.block--soft {
    padding: 48px 10px calc(48px - 5mm) 10px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  #about .container {
    max-width: 100%;
  }
  #about .about-text {
    padding: 0.5rem 0.35rem 0.75rem 0.35rem;
  }
  #about .about-text p {
    font-size: 1.02rem;
  }
}

/* О нас: слева фото, справа текст — ряд по высоте max(снимок, контент), без внутреннего скролла */
.about-figure {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #e8edf5;
  min-width: 0;
  line-height: 0;
}
.about-figure__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
/* «О нас»: рамка под фото (cover); 6/5 (1.2) + чуть-чуть к высоте: 1.17 w/h (≈ +2–3мм) */
#about .about-figure {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.17;
  align-self: start;
}
#about .about-figure__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
/* сетка: ячейка с фото не «распирает» minmax */
@media (min-width: 880px) {
  .about-grid .about-figure {
    min-height: 0;
  }
  #about .about-grid .about-figure__img {
    position: static;
  }
}
#about .about-text-col {
  min-width: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
#about .about-text {
  min-height: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  /* справа чуть шире, чем слева, без overflow-скролла */
  padding: 0.6rem 0.65rem 0.8rem 0.55rem;
}
@media (min-width: 880px) {
  #about .about-text {
    /* верх: 0 — «Пару слов о нас» вровень с верхом снимка */
    padding: 0 1.2rem 1.4rem 0.85rem;
  }
  #about .about-text-col {
    padding: 0 0.15rem 0.1rem 0;
    align-self: start;
  }
}
#about .about-text .section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.15;
  color: #f2f5fa;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
#about .about-text p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(230, 236, 244, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
#about .about-text p:last-of-type {
  margin-bottom: 0.5rem;
}
#about .about-text .btn {
  margin: 0.35rem 0 0;
  padding: 0.6rem 1.35rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
#about .about-text .accent-city {
  color: #7ee7df;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
#about .about-text .text-muted {
  color: rgba(196, 210, 230, 0.92);
}
#about .about-text strong {
  color: #fff;
  font-weight: 600;
}
.accent-city {
  color: var(--color-primary);
  font-weight: 700;
}
.text-muted {
  color: #2d3340;
}

/* Gallery: примеры работ в один ряд */
.before-after {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 8px;
  align-items: start;
}
.before-after__item {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.before-after__link {
  display: block;
}
.before-after__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #cfd7e3;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.before-after__link:hover .before-after__img,
.before-after__link:focus-visible .before-after__img {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(12, 48, 88, 0.2);
}
@media (max-width: 879px) {
  /* Мобайл: меньше стык между «Преимущества» и «Комплекс» */
  #advantages.block {
    padding-bottom: 34px;
  }
  #kompleks.block {
    padding-top: 30px;
  }

  /* Галерея: горизонтальный свайп и фото крупнее в пределах экрана */
  #gallery .before-after {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 2px 2px 8px;
    margin-top: 10px;
  }
  #gallery .before-after__item {
    flex: 0 0 min(82vw, 420px);
    scroll-snap-align: center;
  }
  #gallery .before-after__img {
    width: 100%;
    height: auto;
  }
  #gallery .before-after::-webkit-scrollbar {
    height: 6px;
  }
  #gallery .before-after::-webkit-scrollbar-thumb {
    background: rgba(10, 45, 90, 0.3);
    border-radius: 999px;
  }
}

/* City block — белый фон; ширина колонок как в блоке «О нас» */
#rechitsa .container {
  max-width: min(100% - 40px, 1520px);
}
@media (max-width: 879px) {
  #rechitsa.block--city {
    padding: 48px 10px 32px 10px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  #rechitsa .container {
    max-width: 100%;
  }
  #rechitsa .city-content p {
    font-size: 1.02rem;
  }
}
.block--city {
  color: var(--color-text);
  padding: 64px 20px;
  text-align: left;
  background: #fff;
}
.block--city .section-title--inverted {
  color: #00b0a6;
  margin-bottom: 16px;
  text-shadow: none;
  font-weight: 600;
}
.block--city .cities-ribbon {
  margin-top: 20px;
}
.block--city .container > .btn {
  display: flex;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  min-height: 3.15rem;
  box-sizing: border-box;
  margin: 1.5rem auto 0;
  padding: 0.9rem 2.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.2;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: var(--color-primary-2);
  box-shadow: none;
  border: 1px solid #0a2d5a;
  filter: none;
}
.block--city .container > .btn:hover,
.block--city .container > .btn:focus {
  background: rgba(10, 40, 70, 0.05);
  border-color: #0b4f9c;
  color: var(--color-primary-2);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: none;
  filter: none;
}
.block--city .container > .btn:focus-visible {
  outline: 2px solid #0b4f9c;
  outline-offset: 2px;
}
.block--city a {
  color: var(--color-primary);
}
.block--city .cities-ribbon a {
  color: var(--color-primary-2);
}
.block--city .city-content .text-muted {
  color: var(--color-primary);
  font-weight: 600;
}
.block--city .city-content strong {
  color: var(--color-text);
  font-weight: 600;
}
.block--city .city-content p {
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.6;
  text-shadow: none;
  font-size: 0.98rem;
}
@media (min-width: 880px) {
  .block--city .city-content p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  }
}
.block--city .cities-ribbon {
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  margin: 28px 0 0;
  font-weight: 600;
  color: var(--color-text);
}
/* выделение: ведущий город крупнее и в бирюзовом, остальные — в акцентном сине, чуть мельче */
.block--city .cities-ribbon .cities-ribbon__accent {
  color: #00b0a6;
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.block--city .cities-ribbon span:not(.cities-ribbon__accent) {
  color: var(--color-primary);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cities-ribbon__accent {
  font-weight: 800;
}

/* Reviews: шире линия, меньше переносов и — при убранном min-height — меньше высоты */
#reviews .container {
  max-width: min(100% - 40px, 1520px);
}
@media (min-width: 880px) {
  #about .container {
    max-width: min(100% - 40px, 1320px);
  }
  #rechitsa .container,
  #reviews .container {
    max-width: min(100% - 40px, 1000px);
  }
}
@media (max-width: 879px) {
  #reviews.block--light {
    padding-left: 10px;
    padding-right: 10px;
  }
  #reviews .container {
    max-width: 100%;
  }
}
/* Reviews */
.review-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 4px 8px;
  align-items: start;
  margin-top: 12px;
}
@media (min-width: 600px) {
  .review-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 4px 12px;
  }
}
.review-nav {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  padding: 4px 6px;
  border-radius: 8px;
  position: relative;
  top: 0.1em;
}
.review-nav:hover,
.review-nav:focus {
  background: var(--color-bg-soft);
}
.review-quote {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  text-align: center;
}
.review-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #2d3340;
  line-height: 1.5;
  min-height: 0;
  text-align: center;
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd2df;
  border: none;
  padding: 0;
}
.review-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}
.faq__item {
  border: 1px solid #0d8f87;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 100, 92, 0.12);
  overflow: hidden;
}
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  background: #00b0a6;
  color: #fff;
  border: none;
  cursor: pointer;
}
.faq__trigger:hover,
.faq__trigger:focus {
  background: #0a9d91;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  outline: none;
}
.faq__trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.faq__chev {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  transition: transform 0.2s;
}
.faq__item.is-open .faq__chev {
  transform: rotate(45deg);
}
.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.faq__content {
  padding: 14px 18px 18px;
  font-size: 0.95rem;
  color: #3d4450;
  background: #f2faf9;
  border-top: 1px solid rgba(0, 176, 166, 0.2);
}
.faq__content p,
.faq__content ul {
  margin: 0 0 10px;
}
.faq__content ul {
  padding-left: 1.1rem;
}

/* Contacts & footer */
.contacts__line {
  margin: 6px 0;
}
.contacts__line a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contacts__line a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.placeholder {
  color: var(--color-muted);
  text-decoration: underline dotted;
  cursor: help;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.social {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.social:hover,
.social:focus {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}
.social--viber {
  background: #7b519d;
}
.social--tg {
  background: #2aabee;
}

.site-footer {
  padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
  background: #f5f7fb;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 20px;
  }
}
.footer-inner {
  text-align: center;
}
.footer-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 40, 0.55);
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 24px;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 36px;
  height: 36px;
  line-height: 1;
  font-size: 1.5rem;
  color: var(--color-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover,
.modal__close:focus {
  background: #f0f3f8;
  color: #000;
}

/* Gallery lightbox */
.lightbox[hidden] {
  display: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 34, 0.82);
  backdrop-filter: blur(2px);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}
.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 18, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(6, 18, 40, 0.92);
}

/* Смещение к якорям: в js/main.js (чтобы не дублировалось с scroll-padding) */
@media (min-width: 900px) {
  main {
    margin-top: 0;
  }
}
main section[id],
main #conditions {
  scroll-margin-top: 0;
}
@media (max-width: 899px) {
  .header-mobile-sticky {
    display: block;
    position: static;
    width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    pointer-events: none;
  }
  .header-burger {
    position: fixed;
    top: max(0.4rem, calc(env(safe-area-inset-top, 0px) + 0.1rem));
    right: max(0.4rem, calc(env(safe-area-inset-right, 0px) + 0.1rem));
    z-index: 120;
    pointer-events: auto;
  }
  .site-header,
  .header-inner {
    overflow: visible;
  }
  .site-header {
    position: static;
    box-shadow: none;
  }
  .form-card {
    position: static;
  }
  .header-phone {
    font-size: 1.35rem;
    letter-spacing: 0;
  }
  .header-nav {
    display: none;
  }
  .brand__name {
    font-size: 2rem;
  }
}

@media (min-width: 600px) and (max-width: 879px) {
  .two-col--kompleks {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) {
  .block--hero .hero__text {
    max-width: 100%;
  }
}
