/* Everest Realty — landing tokens (приглушённая палитра) */
:root {
  /* Everest Landing — Mobile App Theme (Prorab App style) */
  --bg: #0C0A18;
  --bg-elevated: #120F22;
  --bg-muted: #1A172D;
  --surface: #201D38;
  
  --text: #F8F9FA;
  --text-muted: #A0A0AB;
  --text-dark: #F8F9FA; /* In dark mode, all text is light */
  --text-dark-muted: #A0A0AB;
  
  /* Акцентные цвета в стиле мобильного приложения */
  --accent: #5C4DFF;
  --accent-deep: #4338CA;
  --accent-dim: rgba(92, 77, 255, 0.15);
  
  --gold: #FFB84D;
  --gold-soft: #E6A030;
  --gold-dim: rgba(255, 184, 77, 0.1);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.05);
  
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif; /* Unified for mobile app feel */
  
  --space-section: clamp(3rem, 8vw, 5rem);
  --container: min(1120px, 92vw);

  /* Buttons (unified) */
  --btn-primary-bg: var(--accent);
  --btn-primary-text: #FFFFFF;
  --btn-primary-shadow: 0 4px 14px rgba(92, 77, 255, 0.3);
  --btn-ghost-border: rgba(255, 255, 255, 0.2);
  --btn-ghost-text: var(--text);
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--surface);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent-deep);
  color: var(--surface);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

/* Shared split layout (zig-zag blocks) */
.split {
  display: grid;
  /* близко к золотому сечению: 1.618 : 1 */
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  grid-template-areas: "media content";
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.split--reverse {
  grid-template-areas: "content media";
}

.split__media {
  grid-area: media;
  min-width: 0;
}

.split__content {
  grid-area: content;
  min-width: 0;
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media";
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 24, 0.85); /* --bg with opacity */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

/* Make logo white in dark theme */
.logo__img {
  display: block;
  height: clamp(32px, 5vw, 40px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.logo:hover .logo__img {
  opacity: 1;
}

.logo__img--footer {
  height: clamp(34px, 5vw, 44px);
  filter: none;
  opacity: 0.95;
}

.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--text-dark);
  text-decoration: none;
}

.header__phone:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

/* Nav */
.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin-inline: auto;
  box-shadow: 0 7px 0 var(--text-dark), 0 -7px 0 var(--text-dark);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__list a svg {
  display: none; /* Hide icons on desktop */
}

.nav__list a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav__toggle {
    display: none; /* Hide toggle, use bottom nav */
  }

  .nav__list {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 15, 34, 0.98); /* --bg-elevated */
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-dark);
    z-index: 100;
  }

  .nav__list li {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .nav__list a svg {
    display: block;
    margin-bottom: 4px;
    width: 22px;
    height: 22px;
  }

  .nav__list a:active, .nav__list a:hover {
    color: var(--accent);
  }

  /* Add some padding to body so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 4.5rem;
  }
  
  .header__phone {
    font-size: 0.85rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5.5rem) 0 var(--space-section);
  color: var(--text);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__grid {
  position: relative;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__accent {
  color: var(--gold);
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-height: min(48vh, 400px);
  background: var(--bg-elevated);
}

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

@media (max-width: 900px) {
  .hero__figure {
    max-height: none;
    aspect-ratio: 16 / 11;
    max-width: 100%;
  }
}

.hero__panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero__panel-foot {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .stat-card + .stat-card {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.stat-card__value-suffix {
  font-size: 0.95em;
  opacity: 0.95;
  margin-right: 0.06em;
}

.stat-card__value-unit {
  font-size: 0.62em;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  margin-left: 0.3em;
  opacity: 0.92;
}

.stat-card__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

/* Полоса со статистикой сразу после первого экрана */
.stats-strip {
  padding: clamp(1.75rem, 4vw, 2.25rem) 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-dark);
}

.stats-strip__inner {
  display: grid;
  gap: 1rem;
}

.stats-strip__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .stats-strip__cards {
    grid-template-columns: 1fr;
  }
}

.stat-card--light {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stat-card--light .stat-card__value {
  color: var(--accent-deep);
}

.stat-card--light .stat-card__label {
  color: var(--text-dark-muted);
}


/* Лозунг + ключевое фото (как отдельный блок на Тильде) */
.slogan-showcase {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  color: var(--text);
  overflow: hidden;
}

.slogan-showcase__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  opacity: 1;
}

.slogan-showcase__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.slogan-showcase .container {
  position: relative;
  z-index: 1;
}

.slogan-showcase__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.slogan-showcase__copy {
  max-width: 560px;
}

.slogan-showcase__photos {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .slogan-showcase__photos {
    grid-template-columns: 1fr;
  }
}

.slogan-showcase__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.slogan-showcase__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: min(45vh, 440px);
}

@media (max-width: 720px) {
  .slogan-showcase__photo img {
    max-height: none;
  }
}

.slogan-showcase__photos:has(.slogan-showcase__photo--single) {
  max-width: 960px;
  grid-template-columns: 1fr;
}

.slogan-showcase__photo--single img {
  max-height: min(55vh, 520px);
}

.slogan-showcase__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.slogan-showcase__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.slogan-showcase__lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.slogan-showcase__note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slogan-showcase__note em {
  color: var(--text);
  font-style: italic;
}

.slogan-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Блок «официальный партнёр застройщиков» */
.partner-banner {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.partner-banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .partner-banner__grid {
    grid-template-columns: 1fr;
  }
}

.partner-banner__text {
  text-align: left;
}

@media (max-width: 860px) {
  .partner-banner__text {
    text-align: center;
  }
}

.partner-banner__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 16px 48px rgba(26, 34, 48, 0.1);
  background: var(--bg-muted);
}

.partner-banner__figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  object-fit: cover;
  max-height: min(52vh, 380px);
}

@media (max-width: 860px) {
  .partner-banner__figure img {
    max-height: min(45vh, 320px);
  }
}

.partner-banner__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.partner-banner__line--sub {
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--text-dark-muted);
}

.partner-banner__em {
  font-style: italic;
  color: var(--gold-soft);
  text-shadow: 0 0 40px rgba(184, 168, 146, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--btn-primary-shadow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(47, 58, 55, 0.28);
  filter: brightness(0.98);
}

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

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--btn-ghost-border) 55%, var(--btn-ghost-text));
  filter: brightness(0.98);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--text);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn--outline-light:hover {
  border-color: rgba(228, 230, 235, 0.55);
  color: var(--text);
}

/* Dark surfaces: unify ghost button tokens */
.hero,
.slogan-showcase,
.contact-cta,
.section--dark {
  --btn-ghost-border: rgba(228, 230, 235, 0.42);
  --btn-ghost-text: var(--text);
}

.btn--small {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

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

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: var(--bg);
  color: var(--text);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

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

.section__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

.section__lead--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

.highlight-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  box-shadow: 0 12px 40px rgba(26, 34, 48, 0.06);
}

.highlight-box__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.highlight-box p {
  margin: 0;
  color: var(--text-dark-muted);
}

.about-head {
  margin-bottom: 0;
}

.about-experts {
  margin-top: 3rem;
}

.about-head .section__lead {
  margin-bottom: 0;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0;
  max-width: 540px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .about-photos {
    grid-template-columns: 1fr;
  }
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  aspect-ratio: 5 / 6;
  background: var(--bg-muted);
}

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

.about-photo--crop-bottom img {
  /* “Обрезать снизу на треть” → фиксируем верх кадра */
  object-position: center top;
  transform: scale(1.28);
  transform-origin: center top;
}

.about-photo--crop-top img {
  /* “Обрезать сверху на треть” → фиксируем низ кадра */
  object-position: center bottom;
  transform: scale(1.28);
  transform-origin: center bottom;
}

.about-highlight {
  max-width: none;
  margin-inline: 0;
}

/* About section: make layout compact and consistent */
#about .split__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#about .highlight-box {
  margin-top: 0;
}

/* Experts */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.expert-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.expert-card__n {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}

/* Cases — блок до/после как на Тильде */
.case-visual-strip {
  margin: 2rem auto 2.5rem;
  max-width: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.case-visual-strip__intro {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dark-muted);
}

/* Before/After вертикальный ползунок */
.before-after {
  --reveal: 0%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-muted);
  min-height: 440px;
}

.before-after__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Показываем AFTER слева направо по проценту */
.before-after__img--after {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.before-after__labels {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.before-after__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--text-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: var(--reveal);
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 10px 22px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.before-after__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.before-after__handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg, rgba(37, 42, 51, 0.5) 0 0) left 3px center / 3px 12px no-repeat,
    linear-gradient(90deg, rgba(37, 42, 51, 0.5) 0 0) right 3px center / 3px 12px no-repeat;
  opacity: 1;
}

.before-after__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 3;
  opacity: 0;
  cursor: ew-resize;
}

/* Убираем дефолтный вид range, но оставляем управление */
.before-after__slider {
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 720px) {
  .before-after {
    min-height: 320px;
  }
}

.case-visual-strip__pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .case-visual-strip__pairs {
    grid-template-columns: 1fr;
  }
}

.case-photo {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--surface);
}

.case-photo__cap {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  background: rgba(255, 255, 255, 0.9);
}

.case-photo img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: bottom;
}

@media (max-width: 720px) {
  .case-photo img {
    max-height: none;
  }
}

/* Services */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

.service-block {
  position: relative;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.service-block:hover,
.service-block:focus-within {
  border-color: color-mix(in srgb, var(--btn-primary-bg) 55%, var(--border));
  box-shadow: 0 18px 46px rgba(47, 110, 99, 0.22);
  transform: translateY(-2px);
}

.service-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Кнопка “Позвонить” — появляется при наведении, закреплена снизу справа */
.service-block .btn--outline-light {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-bg);
}

.service-block:hover .btn--outline-light,
.service-block:focus-within .btn--outline-light {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 12px 30px rgba(47, 110, 99, 0.3);
}

/* На тач-устройствах hover нет — показываем всегда */
@media (hover: none), (pointer: coarse) {
  .service-block .btn--outline-light {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Чтобы контент не наезжал на кнопку */
.service-block__list,
.service-block__intro {
  padding-bottom: 3.25rem;
}

.service-block__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.service-block__intro {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-block__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-block__list li + li {
  margin-top: 0.35rem;
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.case-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(26, 34, 48, 0.06);
}

.case-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.case-card p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text-dark-muted);
}

.case-card__result {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
  font-weight: 600;
  color: var(--accent-deep) !important;
}

/* Final contact CTA (объединение CTA + контактов) */
.contact-cta {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: var(--bg);
  color: var(--text);
}

.contact-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.75rem, 5vw, 3.25rem);
  align-items: center;
}

@media (max-width: 900px) {
  .contact-cta__inner {
    grid-template-columns: 1fr;
  }
}

.contact-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700;
}

.contact-cta__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-cta__card {
  background: rgba(12, 10, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
}

.contact-cta__label {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-cta__text {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.contact-cta__text a {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.contact-cta__text a:hover {
  text-decoration: underline;
}

.contact-cta__muted {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field--checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.field--checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.field--checkbox label {
  font-weight: 500;
  font-size: 0.82rem;
}

.form-success {
  padding: 2rem 1rem;
  text-align: center;
}

.form-success__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

/* Modal */
.modal {
  width: min(560px, 92vw);
  border: none;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
}

.modal::backdrop {
  background: rgba(12, 15, 20, 0.65);
  backdrop-filter: blur(6px);
}

.modal__inner {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-dark);
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dark);
}

.modal__close:hover {
  background: rgba(243, 244, 246, 0.9);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.modal__body {
  padding: 1.25rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, #16132b 0%, #0f0d1f 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__tag {
  margin: 0.25rem 0 0;
  opacity: 0.75;
}

.footer__legal {
  text-align: right;
}

.footer__legal p {
  margin: 0 0 0.65rem;
}

.footer__legal strong {
  color: #fff;
}

@media (max-width: 640px) {
  .footer__legal {
    text-align: left;
  }
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__copy {
  margin: 0;
  opacity: 0.55;
  font-size: 0.8rem;
}
