/* ==========================================================================
   Мастер на час — Production Landing Page Styles
   Fluid (резиновый) layout · Mobile-first · 320px → 4K
   ========================================================================== */

/* ---------- CSS Variables (fluid) ---------- */
:root {
  --color-graphite: #1A1A1A;
  --color-graphite-soft: #242424;
  --color-graphite-mid: #2E2E2E;
  --color-graphite-light: #3A3A3A;
  --color-orange: #FF6B00;
  --color-orange-hover: #E55F00;
  --color-orange-soft: rgba(255, 107, 0, 0.12);
  --color-gold: #D4AF37;
  --color-gold-soft: rgba(212, 175, 55, 0.15);
  --color-white: #FFFFFF;
  --color-off-white: #F7F7F5;
  --color-gray-100: #F0F0EE;
  --color-gray-200: #E5E5E3;
  --color-gray-400: #9A9A98;
  --color-gray-600: #5C5C5A;
  --color-gray-800: #2A2A28;
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-whatsapp: #25D366;
  --color-telegram: #2AABEE;
  --color-max: #4B5CFF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid radii */
  --radius-sm: clamp(6px, 1vw, 8px);
  --radius-md: clamp(10px, 1.5vw, 12px);
  --radius-lg: clamp(12px, 2vw, 16px);
  --radius-xl: clamp(16px, 2.5vw, 24px);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 4px 24px rgba(255, 107, 0, 0.35);

  /* Fluid layout tokens */
  --header-h: clamp(60px, 10vw, 72px);
  --mobile-bar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 8vw, 100px);
  --gap: clamp(12px, 2.5vw, 24px);
  --card-pad: clamp(18px, 3vw, 28px);

  /* Fluid type scale */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  --fs-md: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.35rem);
  --fs-xl: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --fs-3xl: clamp(1.85rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-stat: clamp(1.35rem, 1.1rem + 1.5vw, 1.85rem);
  --fs-counter: clamp(1.75rem, 1.3rem + 2.2vw, 2.85rem);

  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent horizontal scroll on rubber layouts */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: clip;
  min-width: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Safe areas: notch / home indicator */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Space for mobile sticky bar + home indicator */
@media (max-width: 767px) {
  body {
    padding-bottom: var(--mobile-bar-h);
  }
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

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

/* Long words / phones / emails won't blow the layout */
p,
li,
.form-input,
.review-card__text,
.service-card__list,
.geo__card-text,
.trust-banner__text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Headings: wrap by words only — never mid-letter on mobile */
h1, h2, h3, h4 {
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* SEO-текст (города/округа): не виден на экране, доступен поисковикам */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-accent {
  color: var(--color-orange);
}

.nowrap {
  white-space: nowrap;
}

/* No mid-word / syllable hyphenation */
.no-hyphens {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  word-wrap: normal;
}

.title-dash {
  display: inline-block;
  font-weight: 400;
  font-size: 0.72em;
  opacity: 0.8;
  transform: scaleX(0.55) scaleY(0.65);
  transform-origin: center;
  vertical-align: 0.06em;
  margin: 0 0.02em;
  letter-spacing: -0.08em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  max-width: 100%;
  /* Allow wrap on very narrow screens if needed */
  white-space: normal;
  line-height: 1.25;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.5vw, 18px);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.btn--lg {
  padding: clamp(12px, 2vw, 16px) clamp(18px, 3.5vw, 28px);
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--color-orange-hover);
  box-shadow: 0 6px 28px rgba(255, 107, 0, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__text {
  opacity: 0;
}

.btn.is-loading .btn__loader {
  display: block !important;
  position: absolute;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  height: var(--header-h);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
  padding-top: env(safe-area-inset-top, 0px);
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: var(--header-h);
  gap: clamp(8px, 2vw, 16px);
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 1;
  min-width: 0;
  z-index: 1001;
}

.logo__icon {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1;
  flex-shrink: 0;
}

.logo__text {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: var(--color-white);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__accent {
  color: var(--color-orange);
}

.nav {
  display: none;
}

/* Desktop nav — fluid compact links on mid-width */
@media (min-width: 1100px) {
  .nav {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }

  .nav__link {
    padding: 6px clamp(6px, 0.8vw, 12px);
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.9rem);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Tablet/phone nav overlay */
@media (max-width: 1099px) {
  .nav {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(26, 26, 26, 0.98);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 480px;
  }

  .nav__link {
    display: block;
    padding: clamp(14px, 3vw, 18px) 12px;
    color: var(--color-white);
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  flex-shrink: 0;
  min-width: 0;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  transition: color var(--transition);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-orange);
}

@media (min-width: 768px) {
  .header__phone {
    display: flex;
  }
}

/* Hide phone text on tight tablets, keep icon via span hide */
@media (min-width: 768px) and (max-width: 900px) {
  .header__phone span {
    display: none;
  }
}

.header__cta {
  display: none;
}

@media (min-width: 640px) {
  .header__cta {
    display: inline-flex;
  }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .header__cta {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  z-index: 1001;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1100px) {
  .burger {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 5vw, 48px)) 0 clamp(40px, 6vw, 72px);
  background: var(--color-graphite);
  color: var(--color-white);
  overflow: hidden;
}

/* Photo blended into hero background (no card / no frame) */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-graphite);
}

.hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  /* Subtle scale so edges never show gaps */
  transform: scale(1.02);
  /* Soften slightly so it reads as atmosphere, not a cutout */
  filter: saturate(0.92) contrast(1.05) brightness(0.88);
  pointer-events: none;
  user-select: none;
}

/* Gradient veil: readable text on the left, photo visible on the right */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Left readability panel */
    linear-gradient(
      90deg,
      rgba(26, 26, 26, 0.97) 0%,
      rgba(26, 26, 26, 0.92) 28%,
      rgba(26, 26, 26, 0.72) 48%,
      rgba(26, 26, 26, 0.35) 68%,
      rgba(26, 26, 26, 0.18) 100%
    ),
    /* Bottom fade into next section */
    linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.45) 0%,
      transparent 22%,
      transparent 70%,
      rgba(26, 26, 26, 0.55) 100%
    ),
    /* Soft orange brand glow */
    radial-gradient(ellipse 55% 50% at 75% 45%, rgba(255, 107, 0, 0.12) 0%, transparent 60%);
}

/* Mobile: photo as full atmospheric backdrop, stronger darken for text.
   Badge kept; spacing tightened so stats + captions sit above sticky bar. */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 4px);
    /* Reserve sticky bar height so 500+/1000+/5 лет + captions stay fully visible */
    padding-bottom: calc(var(--mobile-bar-h) + 8px);
  }

  .hero__bg-photo {
    object-position: 65% center;
    filter: saturate(0.85) contrast(1.05) brightness(0.5);
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.82) 0%,
        rgba(26, 26, 26, 0.88) 50%,
        rgba(26, 26, 26, 0.94) 100%
      ),
      radial-gradient(ellipse 80% 50% at 50% 20%, rgba(255, 107, 0, 0.1) 0%, transparent 55%);
  }

  .hero__text {
    max-width: 100% !important;
    width: 100%;
  }

  .hero .badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: clamp(0.72rem, 3vw, 0.8rem);
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.28rem, 6vw, 1.7rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    gap: 0.08em;
    margin-bottom: 8px;
  }

  .hero__title-line--full {
    display: flex;
    width: 100%;
    justify-content: center;
    column-gap: 0.28em;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(1.18rem, 5.8vw, 1.6rem);
  }

  .hero__title .nowrap {
    white-space: nowrap;
  }

  .hero__subtitle {
    font-size: clamp(0.84rem, 3.5vw, 0.95rem);
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .hero__geo-line {
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
    gap: 4px 6px;
    margin-bottom: 8px;
  }

  .hero__ctas {
    flex-direction: column;
    margin-bottom: 12px;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero__stats {
    gap: 8px 10px;
    padding-top: 12px;
  }

  .hero__stat {
    gap: 2px;
  }

  .hero__stat strong {
    font-size: clamp(1.15rem, 5.2vw, 1.4rem);
    line-height: 1.15;
  }

  .hero__stat span {
    font-size: clamp(0.6rem, 2.7vw, 0.7rem);
    line-height: 1.25;
    display: block;
  }

  /* Sections */
  .section {
    padding-block: clamp(36px, 8vw, 56px);
  }

  .section__header {
    margin-bottom: clamp(20px, 5vw, 32px);
    padding-inline: 2px;
  }

  .section__title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  .section__desc {
    font-size: clamp(0.88rem, 3.6vw, 0.98rem);
    line-height: 1.5;
    max-width: 100%;
    padding-inline: 2px;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  /* Cards & grids — single column feel, no overflow */
  .why-us__grid,
  .faq__list {
    gap: 12px;
  }

  .feature-card,
  .review-card {
    padding: clamp(12px, 3.5vw, 16px);
    min-width: 0;
  }

  .feature-card__title {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  }

  /* Portfolio */
  .portfolio-slide {
    aspect-ratio: 4 / 3;
    max-height: min(58vh, 420px);
  }

  .portfolio-slide__caption {
    padding: 28px 14px 14px;
  }

  .portfolio-slide__caption h3 {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  .portfolio-slider__controls {
    margin-top: 14px;
    gap: 10px;
  }

  .portfolio-slider__btn {
    width: 40px;
    height: 40px;
  }

  /* Forms & contacts */
  .contacts__panel,
  .callback-modal__dialog {
    max-width: 100%;
  }

  .contacts__hint,
  .contacts__info {
    padding: 16px;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    font-size: 16px; /* prevent iOS zoom on focus */
    min-height: 48px;
  }

  .btn {
    min-height: 48px;
  }

  /* Footer compact */
  .footer {
    padding: 24px 0 20px;
  }

  /* Prevent accidental horizontal scroll from any child */
  .container,
  .hero__content,
  .section__header,
  .contacts__panel-inner {
    min-width: 0;
    max-width: 100%;
  }

  img,
  video,
  iframe,
  table {
    max-width: 100%;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-width: 0;
}

.hero__text {
  min-width: 0;
  max-width: min(620px, 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2vw, 14px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  margin-bottom: clamp(12px, 2vw, 20px);
  font-size: var(--fs-sm);
  font-weight: 500;
  max-width: 100%;
}

.badge__stars {
  color: var(--color-gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.badge__text {
  color: rgba(255, 255, 255, 0.9);
}

.hero__geo-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(10px, 2vw, 14px);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.hero__geo-line strong {
  color: var(--color-gold);
  font-weight: 600;
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: clamp(12px, 2vw, 16px);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.06em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.hero__title-line {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

/* Title rows: full width, words centered as a line */
.hero__title-line--full {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  column-gap: 0.28em;
  text-align: center;
}

.hero__title-line--full > span {
  flex: 0 0 auto;
}

/* Desktop: normal inline words, still centered */
@media (min-width: 768px) {
  .hero__title-line--full {
    display: block;
    text-align: center;
  }

  .hero__title-line--full > span::after {
    content: " ";
    white-space: pre;
  }

  .hero__title-line--full > span:last-child::after {
    content: none;
  }
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.78);
  max-width: min(520px, 100%);
  margin-bottom: clamp(20px, 4vw, 28px);
  line-height: 1.65;
  /* Override global p { hyphens/overflow-wrap } — wrap only between words */
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
}

.hero__subtitle .no-hyphens {
  display: inline;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  word-wrap: normal;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 12px);
  margin-bottom: clamp(28px, 5vw, 40px);
}

/* Full-width CTAs on narrow phones */
@media (max-width: 420px) {
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  padding-top: clamp(20px, 4vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero__stat strong {
  font-size: var(--fs-stat);
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.section__header {
  text-align: center;
  max-width: min(640px, 100%);
  margin: 0 auto clamp(28px, 5vw, 48px);
  padding-inline: 0;
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-graphite);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.section__header--light .section__title {
  color: var(--color-white);
}

.section__header--light .section__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Services ---------- */
.services {
  background: var(--color-off-white);
}

.services__grid {
  display: grid;
  gap: var(--gap);
  /* Fluid auto-fit: 1 → 2 → 3 → 4 columns without hard jumps */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* ---------- Partner ad banner (ceilings) — desktop base ---------- */
.partner-ad {
  margin-top: clamp(20px, 3.5vw, 32px);
}

.partner-ad__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  min-height: clamp(168px, 22vw, 220px);
  isolation: isolate;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.partner-ad__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.partner-ad__link:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

.partner-ad__media,
.partner-ad__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.partner-ad__img {
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.partner-ad__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(26, 26, 26, 0.92) 0%,
      rgba(26, 26, 26, 0.78) 42%,
      rgba(26, 26, 26, 0.35) 72%,
      rgba(26, 26, 26, 0.2) 100%
    );
  z-index: 1;
}

.partner-ad__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "top copy promo cta";
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  padding: clamp(18px, 2.8vw, 28px) clamp(18px, 3vw, 32px);
  min-height: inherit;
}

.partner-ad__top {
  grid-area: top;
  display: flex;
  align-items: flex-start;
}

.partner-ad__partner-name {
  display: none;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.partner-ad__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-orange), #ff8a33);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
  white-space: nowrap;
}

.partner-ad__copy {
  grid-area: copy;
  min-width: 0;
}

/* Desktop text by default; mobile keeps the previous wording */
.partner-ad__copy-mobile {
  display: none;
}

.partner-ad__copy-desktop {
  display: block;
}

.partner-ad__brand {
  margin: 0 0 4px;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.partner-ad__title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.partner-ad__desc {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.82rem, 0.78rem + 0.25vw, 0.95rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

/* Desktop: brand + title on one line each; desc may wrap once if needed */
@media (min-width: 768px) {
  .partner-ad__brand,
  .partner-ad__title {
    white-space: nowrap;
  }

  .partner-ad__desc {
    white-space: normal;
    max-width: 34rem;
  }

  .partner-ad__copy {
    overflow: hidden;
  }
}

.partner-ad__promo {
  grid-area: promo;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.partner-ad__promo-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.partner-ad__promo-code {
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-gold);
  line-height: 1.2;
}

.partner-ad__promo-off {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.partner-ad__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-graphite);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}

.partner-ad__link:hover .partner-ad__cta {
  background: var(--color-orange);
  color: #fff;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.35);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--color-orange-soft);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  color: var(--color-orange);
  flex-shrink: 0;
}

.service-card__icon--svg svg {
  width: 28px;
  height: 28px;
  display: block;
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-card__list {
  flex: 1;
  margin-bottom: 20px;
}

.service-card__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.45;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-orange);
  transition: gap var(--transition);
}

.service-card__link:hover {
  text-decoration: underline;
}

/* Desktop/tablet: keep spacious service cards (do not inherit phone compact) */
@media (min-width: 768px) {
  .services__grid {
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .service-card {
    padding: var(--card-pad);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .service-card__icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .service-card__icon--svg svg {
    width: 28px;
    height: 28px;
  }

  .service-card__title {
    font-size: var(--fs-lg);
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .service-card__list {
    margin-bottom: 20px;
  }

  .service-card__list li {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 8px;
    padding-left: 16px;
  }

  .service-card__list li::before {
    top: 0.55em;
    width: 6px;
    height: 6px;
  }

  .service-card__link {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ---------- Why Us ---------- */
.why-us {
  background: var(--color-white);
}

.why-us__manifesto {
  max-width: 920px;
  margin: 0 auto clamp(28px, 5vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 107, 0, 0.22);
  border-top: 3px solid var(--color-orange);
  background:
    linear-gradient(165deg, #fffaf5 0%, var(--color-white) 55%);
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 12px 28px rgba(26, 26, 26, 0.08);
  overflow: hidden;
}

.why-us__manifesto-inner {
  padding: clamp(18px, 3.5vw, 28px);
}

.why-us__manifesto-lead {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--color-graphite);
}

.why-us__manifesto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.why-us__manifesto-list li {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
}

.why-us__manifesto-list strong {
  color: var(--color-graphite);
  font-weight: 700;
}

@media (min-width: 720px) {
  .why-us__manifesto-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-us__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature-card {
  padding: var(--card-pad);
  border-radius: var(--radius-lg);
  background: var(--color-off-white);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition),
    transform 0.3s var(--ease-out);
  min-width: 0;
}

.feature-card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-graphite);
  color: var(--color-orange);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  line-height: 1.55;
}

/* ---------- Geo / Service area ---------- */
.geo {
  background: var(--color-white);
}

.geo__content {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-bottom: clamp(20px, 4vw, 32px);
}

.geo__card {
  padding: var(--card-pad);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.geo__card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: var(--shadow-md);
}

.geo__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.geo__card-text {
  font-size: 0.925rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.geo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo__chips li {
  padding: 6px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-graphite);
}

.geo__chips--cities li {
  background: var(--color-orange-soft);
  border-color: transparent;
  color: var(--color-orange-hover);
}

.geo__seo-text {
  max-width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 3.5vw, 28px);
  background: linear-gradient(135deg, #FFF8F0, #F7F7F5);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-orange);
}

.geo__seo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 10px;
}

.geo__seo-text p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.65;
}

.geo__seo-text strong {
  color: var(--color-graphite);
  font-weight: 600;
}

/* ---------- Portfolio slider ---------- */
.portfolio {
  background: var(--color-off-white);
}

.portfolio-slider {
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 16px 40px rgba(26, 26, 26, 0.12);
  border: 1px solid var(--color-gray-200);
  background: var(--color-graphite);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.portfolio-slider__viewport:active {
  cursor: grabbing;
}

.portfolio-slider__track {
  display: flex;
  gap: 0;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
  touch-action: pan-y;
}

.portfolio-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
  aspect-ratio: 16 / 10;
  max-height: min(62vh, 520px);
  overflow: hidden;
  background: var(--color-graphite);
  touch-action: pan-y;
}

.portfolio-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.portfolio-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(36px, 7vw, 56px) clamp(16px, 3vw, 28px) clamp(16px, 3vw, 24px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--color-white);
}

.portfolio-slide__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.portfolio-slide__caption h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.portfolio-slider__btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-graphite);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), opacity var(--transition);
}

.portfolio-slider__btn:hover:not(:disabled) {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: #fffaf5;
}

.portfolio-slider__btn:disabled {
  cursor: default;
}

.portfolio-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: min(100%, 420px);
}

.portfolio-slider__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-gray-200);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.portfolio-slider__dot.is-active {
  background: var(--color-orange);
  transform: scale(1.25);
}

/* legacy portfolio-item tag (unused, keep color token) */
.portfolio-item__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.portfolio-item__caption h3 {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Counters ---------- */
.counters {
  background: var(--color-graphite);
  position: relative;
  overflow: hidden;
}

.counters::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.counters__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}

@media (min-width: 700px) {
  .counters__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.counter-card {
  text-align: center;
  padding: clamp(18px, 3vw, 28px) clamp(10px, 2vw, 16px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  min-width: 0;
}

.counter-card__value {
  font-size: var(--fs-counter);
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.counter-card__label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--color-white);
}

/* Reviews subtitle: one line on desktop, two lines on mobile (see max-width:767) */
.reviews__desc-br {
  display: none;
}

.reviews__desc-line2--mobile {
  display: none;
}

.reviews__desc-line2--desktop {
  display: inline;
}

.reviews__slider {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
  touch-action: pan-y;
}

.review-card {
  flex: 0 0 100%;
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  min-height: clamp(180px, 40vw, 240px);
  min-width: 0;
  max-width: 100%;
  touch-action: pan-y;
}

@media (max-width: 767px) {
  .reviews__slider {
    cursor: grab;
  }

  .reviews__slider:active {
    cursor: grabbing;
  }

  .review-card {
    /* one card per swipe on phones */
    flex: 0 0 100%;
  }
}

@media (min-width: 600px) {
  .review-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 1000px) {
  .review-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-graphite), var(--color-graphite-light));
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.review-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.review-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 2px;
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-card__text {
  font-size: 0.925rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.review-card__text strong {
  color: var(--color-graphite);
  font-weight: 600;
}

.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.reviews__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition);
}

.reviews__btn:hover {
  background: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

.reviews__dots {
  display: flex;
  gap: 8px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-200);
  border: none;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.reviews__dot.is-active {
  background: var(--color-orange);
  transform: scale(1.25);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--color-white);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item[open] {
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.faq__question {
  padding: clamp(14px, 2.5vw, 18px) clamp(14px, 2.5vw, 20px);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-graphite);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-orange-soft);
  color: var(--color-orange);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.faq__item[open] .faq__question::after {
  content: "−";
  background: var(--color-orange);
  color: var(--color-white);
}

.faq__answer {
  padding: 0 20px 18px;
}

.faq__answer p {
  font-size: 0.925rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ---------- Booking ---------- */
.booking {
  background: var(--color-off-white);
}

.booking__layout {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  max-width: min(720px, 100%);
  margin: 0 auto;
  width: 100%;
}

.trust-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 22px);
  background: linear-gradient(135deg, #FFF8F0, #FFFBF5);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-orange);
  min-width: 0;
}

@media (min-width: 480px) {
  .trust-banner {
    flex-direction: row;
    gap: 16px;
  }
}

.trust-banner__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.trust-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 6px;
}

.trust-banner__text {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.55;
}

.booking-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3.5vw, 32px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  position: relative;
  min-width: 0;
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-graphite);
  margin-bottom: 8px;
}

.required {
  color: var(--color-orange);
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: clamp(12px, 2vw, 14px) clamp(12px, 2.5vw, 16px);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 16px; /* prevent iOS zoom on focus */
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

.form-input:hover {
  border-color: var(--color-gray-400);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-soft);
}

.form-input.is-invalid {
  border-color: var(--color-error);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C5C5A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

.form-optional {
  font-weight: 500;
  font-size: 0.8em;
  color: var(--color-gray-400);
}

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

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-error);
  min-height: 0;
}

.form-error:empty {
  display: none;
}

/* File drop */
.file-drop {
  position: relative;
  border: 2px dashed var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px) clamp(12px, 3vw, 20px);
  text-align: center;
  background: var(--color-off-white);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  min-width: 0;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--color-orange);
  background: var(--color-orange-soft);
}

.file-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop__icon {
  color: var(--color-orange);
  margin: 0 auto 12px;
}

.file-drop__text {
  font-size: 0.95rem;
  color: var(--color-graphite);
  margin-bottom: 6px;
}

.file-drop__hint {
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-graphite);
}

.file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.file-list__size {
  color: var(--color-gray-400);
  flex-shrink: 0;
}

.file-list__remove {
  color: var(--color-error);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.file-list__remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.form-privacy {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-align: center;
  line-height: 1.45;
}

.form-success {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  z-index: 5;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-gray-600);
  max-width: 320px;
}

/* ---------- Contacts ---------- */
.contacts {
  background: var(--color-white);
}

/* NAP: Name · Address · Phone (local SEO) */
.nap {
  display: grid;
  gap: clamp(10px, 2vw, 12px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  max-width: min(900px, 100%);
  margin: 0 auto clamp(20px, 4vw, 32px);
  padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 22px);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-style: normal;
}

.nap__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-400);
  margin-bottom: 4px;
}

.nap__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-graphite);
  line-height: 1.35;
}

.nap__link {
  color: var(--color-orange);
  transition: color var(--transition);
}

.nap__link:hover {
  color: var(--color-orange-hover);
  text-decoration: underline;
}

/* Единый блок: слева «Быстрый ответ», справа компактные ссылки */
.contacts__panel {
  max-width: 960px;
  margin-inline: auto;
  background: var(--color-white);
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 12px 28px rgba(26, 26, 26, 0.1),
    0 0 0 1px rgba(255, 107, 0, 0.06);
  overflow: hidden;
  border-top: 3px solid var(--color-orange);
}

.contacts__panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 800px) {
  .contacts__panel-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
  }

  .contacts__info {
    border-left: 1px solid var(--color-gray-200);
  }
}

.contacts__hint {
  padding: clamp(16px, 2.5vw, 24px);
  background: linear-gradient(165deg, #fffaf5 0%, var(--color-white) 55%);
}

/* Anchor target for mobile CTA «Связаться с мастером» */
#contacts-quick {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
}

@media (min-width: 768px) {
  #contacts-quick {
    scroll-margin-top: calc(var(--header-h) + 16px);
  }
}

.contacts__hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-orange-soft);
  color: var(--color-graphite);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.contacts__hint-title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-graphite);
  letter-spacing: -0.02em;
}

.contacts__hint-text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-gray-600);
}

.contacts__hint-lead {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-graphite);
}

.contacts__hint-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts__hint-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-gray-600);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
}

.contacts__hint-icon {
  flex-shrink: 0;
  width: 1.25em;
  text-align: center;
  line-height: 1.4;
  font-size: 0.95em;
}

.contacts__hint-footer {
  margin: 0;
  padding: 9px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-graphite);
  background: var(--color-orange-soft);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-sm);
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--color-off-white);
}

.contacts__info-title {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
  min-width: 0;
}

a.contact-card:hover {
  border-color: rgba(255, 107, 0, 0.45);
  background: #fffaf5;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06);
}

.contact-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-graphite);
  color: var(--color-orange);
  overflow: hidden;
}

.contact-card__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Мессенджеры: одинаковый размер и стиль app-icon */
.contact-card__icon--brand {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.contact-card__icon--brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-card--whatsapp .contact-card__icon,
.contact-card--telegram .contact-card__icon,
.contact-card--max .contact-card__icon {
  background: transparent;
}

.mobile-bar__brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-card--phone .contact-card__icon {
  background: var(--color-orange-soft);
  color: var(--color-orange);
}

.contact-card--hours .contact-card__icon {
  background: rgba(26, 26, 26, 0.06);
  color: var(--color-gray-600);
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.contact-card__label {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--color-gray-400);
  margin-bottom: 0;
}

.contact-card__value {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-graphite);
  overflow-wrap: anywhere;
}

.map-placeholder {
  height: 100%;
  min-height: clamp(220px, 50vw, 320px);
  background:
    linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 50%, #1a2520 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder__icon {
  color: var(--color-orange);
  margin-bottom: 12px;
  opacity: 0.9;
}

.map-placeholder__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
}

.map-placeholder__text {
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.map-placeholder__coords {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.map-placeholder__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.map-placeholder__hint a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-placeholder__hint a:hover {
  color: var(--color-orange);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-graphite);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0 20px;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  line-height: 1.3;
}

.footer__brand .logo {
  justify-content: center;
  margin: 0;
}

.footer__tagline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
}

.footer__geo {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.25;
}

.footer__geo a {
  color: var(--color-orange);
  font-weight: 600;
}

.footer__geo a:hover {
  text-decoration: underline;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__seo-links {
  padding-top: 2px;
  line-height: 1.2;
}

.footer__seo-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 6px;
  line-height: 1.2;
}

.footer__keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__keywords li {
  font-size: 0.65rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.4);
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer__seo-title {
    font-size: 0.6rem;
    margin-bottom: 4px;
  }

  .footer__keywords {
    gap: 2px 3px;
  }

  .footer__keywords li {
    font-size: 0.58rem;
    padding: 0 5px;
    line-height: 1.35;
  }
}

.footer__nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-orange);
}

.footer__bottom {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.footer__bottom p {
  margin: 0;
}

.footer__note {
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Mobile Sticky Bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: var(--mobile-bar-h);
  background: var(--color-graphite);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 0 clamp(4px, 1.5vw, 8px);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: max(clamp(4px, 1.5vw, 8px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(4px, 1.5vw, 8px), env(safe-area-inset-right, 0px));
}

@media (max-width: 767px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

.mobile-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.62rem, 2.5vw, 0.72rem);
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
  margin: 4px 1px;
  min-height: 52px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bar__btn svg {
  width: clamp(18px, 5vw, 22px);
  height: clamp(18px, 5vw, 22px);
  flex-shrink: 0;
}

.mobile-bar__btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-bar__btn--call {
  color: var(--color-orange);
}

.mobile-bar__btn--wa {
  color: var(--color-whatsapp);
}

.mobile-bar__btn--tg {
  color: var(--color-telegram);
}

.mobile-bar__btn--max {
  color: var(--color-max);
}

/* ---------- Fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children slightly via delay utility if needed */
.services__grid .fade-in:nth-child(1) { transition-delay: 0s; }
.services__grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services__grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services__grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.why-us__grid .fade-in:nth-child(1) { transition-delay: 0s; }
.why-us__grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.why-us__grid .fade-in:nth-child(3) { transition-delay: 0.12s; }
.why-us__grid .fade-in:nth-child(4) { transition-delay: 0.18s; }
.why-us__grid .fade-in:nth-child(5) { transition-delay: 0.24s; }
.why-us__grid .fade-in:nth-child(6) { transition-delay: 0.3s; }
.why-us__grid .fade-in:nth-child(7) { transition-delay: 0.36s; }
.why-us__grid .fade-in:nth-child(8) { transition-delay: 0.42s; }

/* ---------- Ultra-wide screens ---------- */
@media (min-width: 1400px) {
  :root {
    --container: 1200px;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 28px;
  }
}

/* ---------- Very small phones (320–360) ---------- */
@media (max-width: 360px) {
  :root {
    --gutter: 14px;
  }

  .header__cta {
    display: none !important;
  }

  .logo__text {
    font-size: 0.9rem;
  }

  .hero__stats {
    gap: 6px;
  }
}

/* ---------- Hover only on fine pointers (desktop) ---------- */
@media (hover: none) {
  .service-card:hover,
  .feature-card:hover,
  .portfolio-item:hover .portfolio-item__img {
    transform: none;
  }

  .portfolio-item:hover .portfolio-item__img {
    transform: none;
  }
}

/* ---------- Mobile polish (final cascade — wins over earlier rules) ---------- */
@media (max-width: 767px) {
  .hero {
    min-height: auto !important;
    padding-bottom: calc(var(--mobile-bar-h) + 8px) !important;
  }

  .hero__text {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero__title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.28rem, 6vw, 1.7rem) !important;
    line-height: 1.18 !important;
  }

  .hero__title-line--full {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(1.18rem, 5.8vw, 1.6rem) !important;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  /* Above the fold: no fade shift under the sticky bar */
  .hero .fade-in {
    opacity: 1;
    transform: none;
  }

  .section__title,
  .section__desc {
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Partner ceilings banner — compact mobile layout */
  .partner-ad {
    margin-top: 14px;
  }

  .partner-ad__copy-desktop {
    display: none;
  }

  .partner-ad__copy-mobile {
    display: block;
  }

  .partner-ad__link {
    min-height: 0;
    border-radius: 14px;
  }

  .partner-ad__shade {
    background:
      linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.18) 0%,
        rgba(26, 26, 26, 0.22) 22%,
        rgba(26, 26, 26, 0.72) 55%,
        rgba(26, 26, 26, 0.94) 100%
      );
  }

  .partner-ad__img {
    object-fit: cover;
    object-position: center 20%;
  }

  .partner-ad__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    /* Space under top bar so ceiling + track lights stay visible */
    padding: 56px 14px 16px;
    min-height: 0;
  }

  .partner-ad__top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
  }

  .partner-ad__partner-name {
    display: block;
    margin: 0;
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: right;
    white-space: nowrap;
  }

  .partner-ad__badge {
    padding: 5px 10px;
    font-size: 0.66rem;
    pointer-events: auto;
  }

  .partner-ad__title {
    margin-bottom: 4px;
    font-size: 1.05rem;
    line-height: 1.22;
  }

  .partner-ad__desc {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .partner-ad__promo {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px 8px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .partner-ad__promo-label {
    font-size: 0.58rem;
  }

  .partner-ad__promo-code {
    font-size: 0.88rem;
  }

  .partner-ad__promo-off {
    margin-left: auto;
    font-size: 0.78rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--color-orange);
  }

  .partner-ad__cta {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 999px;
  }

  .partner-ad__cta svg {
    width: 14px;
    height: 14px;
  }

  /* Reviews subtitle: two lines on mobile only */
  .reviews__desc-br {
    display: block;
  }

  .reviews__desc-line2--desktop {
    display: none;
  }

  .reviews__desc-line2--mobile {
    display: inline;
  }

  .reviews__desc {
    line-height: 1.35;
  }

  /*
   * Feature cards («Почему мы») — horizontal compact layout on phones only:
   * icon left, title + text right so all copy fits beside the icon.
   */
  .feature-card {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: start !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  }

  .feature-card__icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .feature-card__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .feature-card__title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
  }

  .feature-card__text {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  /*
   * Services cards — COMPACT only on phones (≤767px).
   * Desktop keeps base .service-card styles above.
   */
  .services__grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .service-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  }

  .service-card__icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
  }

  .service-card__icon--svg svg {
    width: 18px !important;
    height: 18px !important;
  }

  .service-card__title {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
  }

  .service-card__list {
    margin-bottom: 6px !important;
  }

  .service-card__list li {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1px !important;
    padding-left: 12px !important;
  }

  .service-card__list li::before {
    top: 0.35em !important;
    width: 4px !important;
    height: 4px !important;
  }

  .service-card__link {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  .reviews__track {
    /* swipe/scroll friendly on small screens */
    -webkit-overflow-scrolling: touch;
  }

  .footer__inner {
    gap: 12px;
  }
}

/* ---------- Callback modal ---------- */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.callback-modal[hidden] {
  display: none !important;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
}

.callback-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: clamp(20px, 4vw, 28px);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-top: 3px solid var(--color-orange);
  box-shadow:
    0 8px 16px rgba(26, 26, 26, 0.08),
    0 24px 48px rgba(26, 26, 26, 0.18);
  animation: callbackIn 0.28s ease;
}

@keyframes callbackIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.callback-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-off-white);
  color: var(--color-gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.callback-modal__close:hover {
  background: var(--color-orange-soft);
  color: var(--color-graphite);
}

.callback-modal__header {
  margin-bottom: 18px;
  padding-right: 28px;
}

.callback-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--color-orange-soft);
  font-size: 1.25rem;
}

.callback-modal__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-graphite);
}

.callback-modal__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-gray-600);
}

.callback-form .form-group {
  margin-bottom: 14px;
}

.callback-form__note {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-graphite);
  background: var(--color-orange-soft);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-md);
}

/* Способ связи: перезвонить / мессенджер */
.callback-choice {
  border: none;
  margin: 0 0 14px;
  padding: 0;
  min-width: 0;
}

.callback-choice legend {
  margin-bottom: 8px;
  padding: 0;
}

.callback-choice__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.callback-choice__item {
  display: block;
  cursor: pointer;
  margin: 0;
}

.callback-choice__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.callback-choice__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 8px;
  text-align: center;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
}

.callback-choice__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.callback-choice__text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-graphite);
  line-height: 1.25;
}

.callback-choice__item input:checked + .callback-choice__box {
  border-color: var(--color-orange);
  background: #fffaf5;
  box-shadow: 0 0 0 3px var(--color-orange-soft);
}

.callback-choice__item:hover .callback-choice__box {
  border-color: rgba(255, 107, 0, 0.4);
}

/* Мессенджеры */
.callback-messengers {
  border: none;
  margin: 0 0 14px;
  padding: 12px;
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
}

.callback-messengers[hidden] {
  display: none !important;
}

.callback-messengers legend {
  margin-bottom: 8px;
  padding: 0;
}

.callback-messengers__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callback-check {
  display: block;
  cursor: pointer;
  margin: 0;
}

.callback-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.callback-check__ui {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-graphite);
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
}

.callback-check__ui img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.callback-check input:checked + .callback-check__ui {
  border-color: var(--color-orange);
  background: #fffaf5;
  box-shadow: 0 0 0 2px var(--color-orange-soft);
}

.callback-check:hover .callback-check__ui {
  border-color: rgba(255, 107, 0, 0.4);
}

.callback-messengers .form-hint {
  margin-top: 8px;
  margin-bottom: 0;
}

.callback-form .form-success {
  margin-top: 16px;
}

body.callback-open {
  overflow: hidden;
}

/* ---------- Reduced motion ---------- */
@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;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .header,
  .mobile-bar,
  .burger,
  .hero__ctas,
  .booking-form {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
  }

  .section {
    padding: 24px 0;
  }
}
