/* ============================================================
   HESPERIA — Свадебное Агентство | Стили
   Палитра: Tilda Original + Premium UI 2026
   Шрифты: Cormorant (заголовки) + Inter (текст)
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────── */
:root {
  --bg-primary: #f2eee5;
  --bg-dark: #1a1a1a;
  --bg-cream: #f8f5ef;
  --bg-white: #ffffff;

  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #888888;
  --text-body: #555555;

  --accent: #7d0f11;
  --accent-hover: #9b1315;
  --accent-light: rgba(125, 15, 17, 0.08);
  --accent-gold: #c9a96e;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.12);

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;

  --font-heading: 'Cormorant', serif;
  --font-body: 'Inter', sans-serif;
  --font-handwriting: 'Marck Script', 'Bad Script', cursive;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-padding: 24px;
}

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0; }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ─── Sections ───────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section--dark .section-title,
.section--dark .section-subtitle {
  color: var(--text-light);
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 50px;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(125, 15, 17, 0.3);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125, 15, 17, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--text-light);
}

.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--ghost:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

/* ─── Header ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.header--scrolled {
  background: rgba(242, 238, 229, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.header--scrolled .header__logo {
  color: var(--text-dark);
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 16px;
  margin-left: auto;
}

.header__nav-link {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  text-align: right;
}

.header--scrolled .header__nav-link {
  color: var(--text-dark);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-smooth);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link:hover {
  color: var(--accent-gold);
}

.header--scrolled .header__nav-link:hover {
  color: var(--accent);
}

.header__phone {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 36px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.header__phone svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}

.header--scrolled .header__phone {
  color: var(--text-dark);
}

.header--scrolled .header__phone svg {
  stroke: var(--accent);
}

.header__phone:hover {
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.header--scrolled .header__phone:hover {
  color: var(--accent);
}

.header__cta {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 24px;
  margin-left: 10px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(125, 15, 17, 0.35);
  transition: all var(--transition-smooth);
}

/* Mobile Menu Burger */
.header__burger {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-light);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              background-color 0.25s ease;
  border-radius: 0;
  transform-origin: center center;
}

.header--scrolled .header__burger span {
  background-color: var(--text-dark);
}

/* When active, the spans form a perfectly centered cross without clipping on edges */
.header__burger.active {
  gap: 0;
}

.header__burger.active span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  background-color: #ffffff !important; /* Always clean bright white over dark mobile overlay */
}

.header__burger.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

.header__burger.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 24px 30px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.12;
  color: var(--text-light);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  text-align: center;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: var(--accent-gold);
}

.mobile-menu__link[href^="tel:"] {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 240px;
  letter-spacing: 0.02em;
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.13s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.17s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.21s; }
.mobile-menu.active .mobile-menu__link:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(7) { transition-delay: 0.29s; }
.mobile-menu.active .mobile-menu__link:nth-child(8) { transition-delay: 0.33s; }
.mobile-menu.active .mobile-menu__link:nth-child(9) { transition-delay: 0.37s; }
.mobile-menu.active .mobile-menu__link:nth-child(10) { transition-delay: 0.41s; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: none !important;
  will-change: auto;
}

.hero__bg--desktop {
  display: block;
  transform: none !important;
}

.hero__bg--mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .hero__bg--desktop {
    display: none !important;
  }
  .hero__bg--mobile {
    display: block !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    transform: none !important;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__description {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll-indicator {
  display: none !important;
}

/* ─── Gallery Strip (4 фото из оригинальной Тильды rec2760163401) ── */
.gallery-strip,
.section--gallery-strip {
  background-color: #0b0a0a !important;
  color: #ffffff !important;
  padding: 100px 0;
  overflow: hidden;
}

.gallery-strip .gallery-strip__tagline {
  color: #ffffff !important;
  margin-bottom: 36px;
}

.gallery-strip__container {
  max-width: 1340px;
}

.gallery-strip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.gallery-strip__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.gallery-strip__swipe-hint {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  white-space: nowrap;
}

.gallery-strip__swipe-hint span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gallery-strip__swipe-hint svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
  animation: hintArrowBounce 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hintArrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.gallery-strip__nav {
  display: none;
}

.gallery-strip__dots {
  display: none;
}

.gallery-strip__viewport,
.gallery-strip__track-wrapper {
  width: 100%;
}

.gallery-strip__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-strip__item {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  height: 440px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  position: relative;
  display: block;
}

.gallery-strip__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(201, 169, 110, 0.3);
  border-color: rgba(201, 169, 110, 0.6);
}

.gallery-strip__img-wrapper,
.gallery-strip__image-box {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  z-index: 1;
}

.gallery-strip__img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.gallery-strip__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}

.gallery-strip__caption {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  z-index: 3;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Desktop Only: Hover effects (Строго только для мыши на больших экранах) */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .gallery-strip__item {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
    border: none;
  }

  .gallery-strip__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
    border: none;
  }

  .gallery-strip__img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .gallery-strip__item:hover .gallery-strip__img {
    transform: scale(1.06);
  }

  .gallery-strip__item-overlay {
    transition: opacity 0.4s ease;
  }

  .gallery-strip__item:hover .gallery-strip__item-overlay {
    opacity: 0.95;
  }

  .gallery-strip__caption {
    transform: translateY(4px);
    transition: transform 0.4s ease;
  }

  .gallery-strip__item:hover .gallery-strip__caption {
    transform: translateY(0);
  }
}

/* Mobile & Tablet Slider (Никакого увеличения при клике/нажатии — чистый, отзывчивый слайдер) */
@media screen and (max-width: 900px) {
  .section--gallery-strip {
    padding: 60px 0 30px;
  }

  .gallery-strip__swipe-hint {
    display: flex;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .gallery-strip__swipe-hint span {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .gallery-strip__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .gallery-strip__header {
    padding: 0 var(--container-padding);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .gallery-strip__tagline {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #ffffff;
    display: inline-block;
    margin: 0 !important;
  }

  .gallery-strip__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .gallery-strip__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
  }

  .gallery-strip__btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
  }

  .gallery-strip__btn:active {
    background: rgba(201, 169, 110, 0.25);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(0.94);
  }

  .gallery-strip__viewport,
  .gallery-strip__track-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 0 16px;
    cursor: grab;
    padding: 6px 0 12px;
  }

  .gallery-strip__viewport:active,
  .gallery-strip__track-wrapper:active {
    cursor: grabbing;
  }

  .gallery-strip__viewport::-webkit-scrollbar,
  .gallery-strip__track-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .gallery-strip__track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 10px var(--container-padding) 20px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Карточка на мобильном: идеальный размер под листание */
  .gallery-strip__item,
  .gallery-strip__item:hover,
  .gallery-strip__item:active,
  .gallery-strip__item:focus {
    flex: 0 0 80vw;
    max-width: 320px;
    height: 420px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    user-select: none;
    -webkit-user-select: none;
    transform: none !important;
    transition: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* Картинка внутри: полностью растянута */
  .gallery-strip__img,
  .gallery-strip__item:hover .gallery-strip__img,
  .gallery-strip__item:active .gallery-strip__img,
  .gallery-strip__item:focus .gallery-strip__img {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .gallery-strip__caption,
  .gallery-strip__item:hover .gallery-strip__caption {
    transform: none !important;
    transition: none !important;
  }

  .gallery-strip__item-overlay,
  .gallery-strip__item:hover .gallery-strip__item-overlay {
    opacity: 0.8 !important;
    transition: none !important;
  }

  .gallery-strip__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 var(--container-padding);
  }

  .gallery-strip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .gallery-strip__dot--active {
    width: 26px;
    border-radius: 10px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
  }
}

/* ─── Manifesto (О нас / Из оригинальной Тильды) ──────── */
.section--manifesto {
  background-color: var(--bg-primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.manifesto-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.manifesto-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.35;
}

.manifesto-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.manifesto-media {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto-card {
  position: absolute;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s ease;
}

.manifesto-card--primary {
  width: 78%;
  height: 420px;
  left: 0;
  top: 0;
  z-index: 1;
}

.manifesto-card--accent {
  width: 58%;
  height: 320px;
  right: 0;
  bottom: 0;
  z-index: 2;
  border: 4px solid var(--bg-primary);
}

.manifesto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.manifesto-card:hover .manifesto-img {
  transform: scale(1.05);
}

/* ─── Services (Interactive Fan Deck / Веер — Обновлённый) ── */
.services-fan-wrapper {
  position: relative;
  width: 100%;
  padding: 30px 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-fan-deck {
  position: relative;
  width: 100%;
  max-width: 1240px;
  height: 530px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Individual card in the fan */
.service-fan-card {
  position: absolute;
  width: 285px;
  height: 495px;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  transform-origin: 50% 120%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

/* ─── Desktop: Gothic Expanding Portals (Готический створчатый алтарь) ─── */
@media screen and (min-width: 992px) {
  .services-fan-wrapper {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 0 60px;
  }

  .services-fan-deck {
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 16px;
  }

  .service-fan-card {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: 100%;
    flex: 1;
    min-width: 0;
    transform: none !important;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: flex 0.65s cubic-bezier(0.25, 1, 0.3, 1),
                box-shadow 0.5s ease,
                border-color 0.45s ease,
                opacity 0.45s ease;
  }

  /* Карточка внутри створки */
  .service-fan-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #110e0e;
    border: 1px solid rgba(201, 169, 110, 0.28);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
  }

  /* Полноразмерное фоновое изображение створки */
  .service-fan-card__image-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #110e0e;
    border-radius: 0;
  }

  .service-fan-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.85);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease;
    will-change: transform, filter;
  }

  /* Готическая вуаль-градиент с глубоким винным и черным свечением */
  .service-fan-card__overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgba(10, 8, 8, 0.55) 0%,
      rgba(26, 10, 12, 0.2) 32%,
      rgba(14, 10, 10, 0.72) 65%,
      rgba(8, 6, 6, 0.97) 100%
    );
    transition: opacity 0.5s ease;
  }

  /* Верхний бейдж и медальон с римскими цифрами */
  .service-fan-card__badges {
    position: absolute;
    top: 22px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
    pointer-events: none;
  }

  .service-fan-card__number {
    font-family: var(--font-heading);
    font-size: 0;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(18, 14, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 110, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.45s ease;
    flex-shrink: 0;
  }

  .service-fan-card[data-index="0"] .service-fan-card__number::before { content: "I"; font-size: 1.25rem; }
  .service-fan-card[data-index="1"] .service-fan-card__number::before { content: "II"; font-size: 1.18rem; }
  .service-fan-card[data-index="2"] .service-fan-card__number::before { content: "III"; font-size: 1.18rem; }
  .service-fan-card[data-index="3"] .service-fan-card__number::before { content: "IV"; font-size: 1.25rem; }

  .service-fan-card__tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: rgba(18, 14, 14, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    white-space: nowrap;
  }

  /* Содержимое внизу створки */
  .service-fan-card__body {
    position: relative;
    z-index: 4;
    padding: 28px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 0;
  }

  .service-fan-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
  }

  .service-fan-card__description {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(14px);
    transition: opacity 0.45s ease,
                max-height 0.55s ease,
                transform 0.45s ease,
                margin 0.45s ease;
  }

  .service-fan-card__footer {
    padding-top: 0;
    margin-top: 0;
    border-top: 1px solid rgba(201, 169, 110, 0.3);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity 0.4s ease,
                max-height 0.45s ease,
                transform 0.4s ease,
                padding 0.4s ease,
                margin 0.4s ease;
  }

  .service-fan-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(201, 169, 110, 0.45);
    box-shadow: 0 4px 16px rgba(125, 15, 17, 0.4);
    transition: all 0.35s ease;
    cursor: pointer;
  }

  .service-fan-card__btn svg {
    stroke: #ffffff;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
  }

  .service-fan-card__btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(125, 15, 17, 0.6);
  }

  .service-fan-card__btn:hover svg {
    transform: translateX(4px);
  }

  /* Состояние покоя: первая створка приоткрыта как приглашение */
  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] {
    flex: 2.8;
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__inner {
    border-color: rgba(201, 169, 110, 0.65);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(125, 15, 17, 0.2);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__image {
    filter: brightness(0.82) saturate(1.05);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__title {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.35);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__description {
    opacity: 1;
    max-height: 130px;
    margin-top: 14px;
    margin-bottom: 16px;
    transform: translateY(0);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__footer {
    opacity: 1;
    max-height: 60px;
    padding-top: 14px;
    margin-top: 4px;
    transform: translateY(0);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__number {
    border-color: var(--accent-gold);
    color: #ffffff;
    background: rgba(125, 15, 17, 0.88);
  }

  .services-fan-deck:not(:hover) .service-fan-card[data-index="0"] .service-fan-card__tag {
    border-color: rgba(201, 169, 110, 0.55);
    color: var(--accent-gold);
  }

  /* При наведении на блок: соседние створки сужаются */
  .services-fan-deck:hover .service-fan-card {
    flex: 0.85;
    opacity: 0.78;
  }

  /* Активная наведённая створка раскрывается */
  .services-fan-deck:hover .service-fan-card:hover {
    flex: 3.5;
    opacity: 1;
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__inner {
    border-color: rgba(201, 169, 110, 0.8);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(125, 15, 17, 0.28);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__image {
    transform: scale(1.06);
    filter: brightness(0.86) saturate(1.1);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__number {
    border-color: var(--accent-gold);
    background: rgba(125, 15, 17, 0.92);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(125, 15, 17, 0.5);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__tag {
    border-color: rgba(201, 169, 110, 0.7);
    color: var(--accent-gold);
    background: rgba(20, 14, 14, 0.9);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__title {
    color: var(--accent-gold);
    text-shadow: 0 0 24px rgba(201, 169, 110, 0.45);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__description {
    opacity: 1;
    max-height: 130px;
    margin-top: 14px;
    margin-bottom: 16px;
    transform: translateY(0);
  }

  .services-fan-deck:hover .service-fan-card:hover .service-fan-card__footer {
    opacity: 1;
    max-height: 60px;
    padding-top: 14px;
    margin-top: 4px;
    transform: translateY(0);
  }
}

/* Card Visual Design */
.service-fan-card__inner {
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  border: 1px solid rgba(125, 15, 17, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-fan-card:hover .service-fan-card__inner {
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(125, 15, 17, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-fan-card__image-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-cream);
  pointer-events: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.service-fan-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-fan-card:hover .service-fan-card__image {
  transform: scale(1.06);
}

.service-fan-card__overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.service-fan-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.service-fan-card__number {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-fan-card__tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(125, 15, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(125, 15, 17, 0.22);
}

.service-fan-card__body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-fan-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.25;
}

.service-fan-card__description {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-fan-card__footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.service-fan-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-fan-card__btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  transition: transform 0.2s ease;
}

.service-fan-card:hover .service-fan-card__btn {
  gap: 12px;
  color: var(--accent-hover);
}

.service-fan-card:hover .service-fan-card__btn svg {
  transform: translateX(4px);
}

/* ─── Steps (Этапы работы с нами / Из оригинальной Тильды) ── */
.section--steps {
  background-color: #ede8e0;
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-white);
  border-radius: 0;
  padding: 34px 28px;
  border: 1px solid rgba(125, 15, 17, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.step-card:last-child {
  grid-column: span 3;
  background: linear-gradient(135deg, #ffffff 0%, #faf6f0 100%);
  border-color: var(--accent);
}

.step-card__header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.step-card__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.step-card__description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Tablet & Mobile Layout for Fan Deck */
@media screen and (max-width: 991px) {
  .services-fan-wrapper {
    padding: 20px 0 40px;
  }

  .services-fan-deck {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .service-fan-card {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    transform-origin: center;
  }

  .service-fan-card:hover {
    transform: translateY(-6px) !important;
  }

  .service-fan-card__body {
    padding: 18px 16px;
  }

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

  .step-card:last-child {
    grid-column: span 2;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manifesto-media {
    min-height: 380px;
  }
}

@media screen and (max-width: 600px) {
  .services-fan-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card:last-child {
    grid-column: span 1;
  }
}

/* Tablet & Mobile Layout for Fan Deck */
@media screen and (max-width: 991px) {
  .services-fan-wrapper {
    padding: 20px 0 40px;
    perspective: none;
  }

  .services-fan-deck {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .service-fan-card {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    transform-origin: center;
  }

  .service-fan-card:hover {
    transform: translateY(-6px) !important;
  }

  .service-fan-card__body {
    padding: 20px 18px;
  }
}

@media screen and (max-width: 580px) {
  .services-fan-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─── Stats ──────────────────────────────────────────── */
.stats-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Portfolio ──────────────────────────────────────── */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.portfolio-tab {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
}

.portfolio-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portfolio-tab.active {
  background-color: var(--accent);
  color: var(--text-light);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}

.portfolio-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  border-radius: 16px;
  padding: 4px;
}

/* ─── Stack Layers (Tactile Physical Photo Deck) ─── */
.portfolio-card__stack {
  position: absolute;
  inset: 4px;
  border-radius: 16px;
  background: #ede6d8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              box-shadow 0.35s ease;
}

.portfolio-card__stack--back {
  z-index: 1;
  background: #ded7cb;
  transform: rotate(2.4deg) translate(8px, -6px);
  opacity: 0.75;
}

.portfolio-card__stack--mid {
  z-index: 2;
  background: #e9e3d6;
  transform: rotate(1.2deg) translate(4px, -3px);
  opacity: 0.9;
}

.portfolio-card:hover .portfolio-card__stack--back {
  transform: rotate(3.6deg) translate(14px, -10px);
  opacity: 1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.portfolio-card:hover .portfolio-card__stack--mid {
  transform: rotate(1.8deg) translate(7px, -5px);
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* ─── Main Card Body ─── */
.portfolio-card__main {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card__main {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.portfolio-card__slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}

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

.portfolio-card__slides::-webkit-scrollbar {
  display: none;
}

.portfolio-card__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

.portfolio-card__slide .portfolio-card__image,
.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.portfolio-card:hover .portfolio-card__slide .portfolio-card__image,
.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.06);
}

/* ─── Album Progress Dots ─── */
.portfolio-card__dots {
  position: absolute;
  top: 56px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 6;
  padding: 4px 8px;
  background: rgba(18, 16, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.portfolio-card__dot {
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.portfolio-card__dot.active {
  background: var(--accent-gold);
  width: 26px;
}

/* ─── Top Bar: Explicit Album Badges ─── */
.portfolio-card__top-bar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.portfolio-card__album-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(18, 16, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.portfolio-card__album-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

.portfolio-card__category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

/* ─── Overlay & Bottom Details ─── */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(14, 12, 10, 0.65) 68%,
    rgba(14, 12, 10, 0.94) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 4;
  pointer-events: none;
  transition: background 0.4s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(14, 12, 10, 0.72) 65%,
    rgba(14, 12, 10, 0.97) 100%
  );
}

.portfolio-card__content {
  display: flex;
  flex-direction: column;
}

.portfolio-card__series-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.portfolio-card__footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.portfolio-card__date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.portfolio-card__open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.portfolio-card__open-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card__open-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(125, 15, 17, 0.4);
}

.portfolio-card:hover .portfolio-card__open-btn svg {
  transform: translateX(4px);
}

/* ─── Portfolio Pagination & Page Controls ─────────── */
.portfolio-pagination {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  user-select: none;
}

.portfolio-pagination__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-pagination__counter {
  font-weight: 500;
  color: var(--text-dark);
}

.portfolio-pagination__page-label {
  color: var(--accent-gold);
  font-weight: 600;
  padding-left: 16px;
  border-left: 1px solid var(--border-medium);
}

.portfolio-pagination__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.portfolio-pagination__btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.portfolio-pagination__btn--prev:hover:not(:disabled) svg {
  transform: translateX(-3px);
}

.portfolio-pagination__btn--next:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.portfolio-pagination__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.portfolio-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.portfolio-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-pagination__page {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.portfolio-pagination__page:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.portfolio-pagination__page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(125, 15, 17, 0.3);
  transform: none;
}

/* ─── Pricing ────────────────────────────────────────── */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  user-select: none;
}

.pricing-card__header:hover {
  background-color: var(--accent-light);
}

.pricing-card__header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
}

.pricing-card__badge {
  padding: 4px 12px;
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.pricing-card__header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-card__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.pricing-card__toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  transition: transform var(--transition-smooth);
}

.pricing-card.open .pricing-card__toggle svg {
  transform: rotate(180deg);
}

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

.pricing-card.open .pricing-card__body {
  max-height: 600px;
}

.pricing-card__body-inner {
  padding: 0 32px 28px;
  border-top: 1px solid var(--border-light);
}

.pricing-card__description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 20px 0 16px;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card__cta {
  margin-top: 20px;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 32px;
  font-style: italic;
}

/* ─── Video ──────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
}

.video-wrapper__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrapper__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.video-wrapper:hover .video-wrapper__overlay {
  background: rgba(0, 0, 0, 0.4);
}

.video-wrapper__play {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-wrapper:hover .video-wrapper__play {
  transform: scale(1.1);
  background: var(--text-light);
}

.video-wrapper__play svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  margin-left: 4px;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Reviews ────────────────────────────────────────── */
.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card {
  min-width: 100%;
  padding: 0 16px;
}

.review-card__inner {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.review-card__stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.review-card__text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 32px;
}

.review-card__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.review-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.review-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.reviews-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: var(--bg-white);
}

.reviews-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.reviews-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.reviews-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 0;
}

/* ─── FAQ ────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  gap: 16px;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
  stroke: var(--accent);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

/* ─── Contact Form ───────────────────────────────────── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-required {
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 2px;
}

/* ─── Contact Section & Dark Form Elements ─── */
.section--dark .form-group__label,
#contact .form-group__label {
  color: #f7f4ee; /* Светлый благородный оттенок слоновой кости — 100% контраст и читаемость */
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section--dark .section-subtitle,
#contact .section-subtitle {
  color: rgba(247, 244, 238, 0.85);
  font-size: 1.05rem;
}

.section--dark .form-privacy,
#contact .form-privacy {
  color: rgba(247, 244, 238, 0.85);
  font-size: 0.85rem;
  line-height: 1.6;
}

.section--dark .form-privacy label,
#contact .form-privacy label {
  color: rgba(247, 244, 238, 0.85);
  cursor: pointer;
}

.section--dark .form-privacy a,
#contact .form-privacy a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.section--dark .form-privacy a:hover,
#contact .form-privacy a:hover {
  color: #ffffff;
}

.section--dark .form-group__input,
.section--dark .form-group__textarea,
#contact .form-group__input,
#contact .form-group__textarea {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section--dark .form-group__input:focus,
.section--dark .form-group__textarea:focus,
#contact .form-group__input:focus,
#contact .form-group__textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.3);
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: var(--text-muted);
}

.form-group__input:focus,
.form-group__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
}

.form-success.show {
  display: block;
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success__text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background-color: var(--bg-dark);
  padding: 80px 0 40px;
  color: var(--text-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer__brand-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer__disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  max-width: 500px;
  text-align: right;
}

/* ─── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-smooth);
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-medium);
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  z-index: 10;
}

.modal__close:hover {
  background: var(--accent);
  color: var(--text-light);
}

.modal__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ─── Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  z-index: 20010;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ─── Cookie Banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 32px;
  z-index: 4000;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__text a {
  color: var(--text-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__accept {
  padding: 10px 28px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-banner__accept:hover {
  background: var(--accent-hover);
}

.cookie-banner__reject {
  padding: 10px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-banner__reject:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-light);
}

/* ─── Back to Top ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
}

/* ─── Floating Socials ───────────────────────────────── */
.floating-socials {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  position: relative;
  text-decoration: none;
}

.floating-social-btn:hover {
  transform: scale(1.1);
}

.floating-social-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.floating-social-btn--telegram {
  background: #0088cc;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.floating-social-btn--max {
  display: none !important;
  background: #4f59f6;
  box-shadow: 0 4px 16px rgba(79, 89, 246, 0.4);
}

.floating-social-btn--vk {
  background: #0077ff;
  box-shadow: 0 4px 16px rgba(0, 119, 255, 0.4);
}

.floating-social-btn--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 4px 16px rgba(214, 36, 159, 0.4);
}

.floating-social-btn--youtube {
  background: #ff0000;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

.floating-max-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.floating-social-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text-light);
}

.floating-social-btn__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: floatPing 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.floating-social-btn--whatsapp .floating-social-btn__ping {
  background: rgba(37, 211, 102, 0.6);
  animation-delay: 0s;
}

.floating-social-btn--telegram .floating-social-btn__ping {
  background: rgba(0, 136, 204, 0.6);
  animation-delay: 1s;
}

.floating-social-btn--max .floating-social-btn__ping {
  background: rgba(79, 89, 246, 0.6);
  animation-delay: 2s;
}

/* Device display visibility for floating elements */
.floating-device--both {
  display: flex !important;
}

.floating-device--desktop {
  display: flex !important;
}

.floating-device--mobile {
  display: none !important;
}

.floating-device--none {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .floating-device--desktop {
    display: none !important;
  }
  .floating-device--mobile {
    display: flex !important;
  }
}

@keyframes floatPing {
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Reveal Animation (GSAP) ────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .section { padding: 70px 0; }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-card__top-bar {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .portfolio-card__album-badge {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 6px;
  }

  .portfolio-card__dots {
    top: 48px;
    left: 14px;
    padding: 3px 6px;
    gap: 4px;
  }

  .portfolio-card__dot {
    width: 14px;
    height: 2px;
  }

  .portfolio-card__dot.active {
    width: 22px;
  }

  .portfolio-card__album-badge svg {
    width: 14px;
    height: 14px;
  }

  .portfolio-card__category-tag {
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .portfolio-card__overlay {
    padding: 20px 16px 16px;
  }

  .portfolio-card__title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .portfolio-card__footer-row {
    padding-top: 10px;
    gap: 8px;
  }

  .portfolio-card__date {
    font-size: 0.8rem;
  }

  .portfolio-card__open-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .portfolio-pagination {
    margin-top: 36px;
    gap: 14px;
  }

  .portfolio-pagination__info {
    font-size: 0.75rem;
    gap: 10px;
    flex-wrap: wrap;
  }

  .portfolio-pagination__page-label {
    padding-left: 10px;
  }

  .portfolio-pagination__btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .portfolio-pagination__page {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .review-card__inner {
    padding: 32px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__disclaimer {
    text-align: center;
  }

  .modal {
    padding: 32px 24px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pricing-card__header-right {
    width: 100%;
    justify-content: space-between;
  }

  .floating-socials {
    bottom: 16px;
    left: 16px;
  }

  .floating-social-btn {
    width: 44px;
    height: 44px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero__title {
    letter-spacing: 0.08em;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.85rem;
  }

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

/* ─── Accessibility ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__scroll-indicator { animation: none; }
  .floating-social-btn__ping { animation: none; display: none; }
}

/* ─── Focus Styles ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Film Grain Texture (Аналоговая свадебная фото-фактура) ─── */
.film-grain-overlay {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background-image: url('../assets/images/film-grain.png');
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.052; /* Идеальный баланс: тонкий, кинематографичный пленочный шум без потери резкости */
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: filmGrainJitter 0.9s steps(5) infinite;
}

@keyframes filmGrainJitter {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-10px, 8px, 0); }
  40% { transform: translate3d(8px, -10px, 0); }
  60% { transform: translate3d(-6px, -6px, 0); }
  80% { transform: translate3d(10px, 10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .film-grain-overlay {
    animation: none !important;
  }
}

/* ============================================================
   NEW CLIENT BLOCKS 2026 (PHILOSOPHY, 5 PORTFOLIO, 7 STEPS,
   4 SCENARIOS FLIP, TEAM, CONSULTATION FORM, FINAL CONTACTS)
   ============================================================ */

.font-handwriting {
  font-family: var(--font-handwriting) !important;
  font-style: italic;
}

/* ─── Блок 3: Философия агентства («Hesperia - сад, полный магии») ─── */
/* ─── Блок 3: Философия агентства (Сад магии — Асимметричный Zero Block) ── */
.section--philosophy {
  padding: 100px 0 110px;
  background-color: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.philosophy-container {
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}

.philosophy-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.96fr 1.08fr;
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  row-gap: 32px;
  align-items: start;
  position: relative;
}

/* Верхний блок: Заголовок и вводный текст */
.philosophy-intro-box {
  grid-column: 1 / 3;
  grid-row: 1;
  padding-right: 30px;
  margin-bottom: 6px;
}

.philosophy-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.philosophy-intro-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.68;
  color: #2c2927;
  padding-left: 64px;
  white-space: pre-line;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Левая фотография (сад, пара под кружевом) */
.philosophy-photo-box--left {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.philosophy-photo-box--left .philosophy-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-photo-box--left:hover .philosophy-img {
  transform: scale(1.03);
}

/* Центральный концептуальный блок: сдвинут вправо внахлёст на 2-ю фотку */
.philosophy-concept-box {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  position: relative;
  z-index: 10;
  margin-left: 50px;
  margin-right: -150px;
  padding-top: 20px;
}

.philosophy-divider {
  width: 180px;
  height: 1.5px;
  background-color: rgba(125, 15, 17, 0.4);
  margin-bottom: 28px;
}

.philosophy-concept-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 3.8vw, 3.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 22px;
  white-space: pre-line;
  text-shadow: 0 0 14px rgba(242, 238, 229, 0.85);
}

.philosophy-concept-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.68;
  color: #2c2927;
  white-space: pre-line;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(242, 238, 229, 0.85);
}

/* Правая высокая фотография (невеста в кружеве со свечами) */
.philosophy-photo-box--right {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  margin-top: 10px;
  height: calc(100% - 10px);
  min-height: 680px;
}

.philosophy-photo-box--right .philosophy-img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-photo-box--right:hover .philosophy-img {
  transform: scale(1.03);
}

/* ─── Блок 4: Портфолио наших свадеб (5 альбомов) ─────────── */
.section--portfolio-modern {
  padding: 90px 0 100px;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.portfolio-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
}

.portfolio-subtitle-bold {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-left: 10px;
}

.portfolio-carousel-nav {
  display: flex;
  gap: 12px;
}

.portfolio-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.portfolio-nav-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.portfolio-carousel-container {
  position: relative;
  overflow: visible;
  width: 100%;
}

.portfolio-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.portfolio-album-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  aspect-ratio: 3 / 4.4;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  background-color: #1a1a1a;
}

.portfolio-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-album-card:hover img {
  transform: scale(1.06);
}

.portfolio-album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px;
  transition: background 0.3s ease;
}

.portfolio-album-card:hover .portfolio-album-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.85) 100%);
}

.portfolio-album-couple {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ─── Блок 5: Этапы работы с нами (7 шагов + Гонорар) ──────── */
.section--steps-modern {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.steps-modern-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
}

.steps-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 50px;
}

.steps-photo-card {
  position: relative;
  width: 100%;
  height: 540px;
  min-height: 500px;
  max-height: 580px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e0d8;
}

.steps-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center !important;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-photo-card:hover img {
  transform: scale(1.025);
}

.step-card-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.step-card-item:last-child {
  margin-bottom: 0;
}

.step-circle-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 3px;
}

.step-content-body {
  flex: 1;
}

.step-item-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.step-item-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-body);
  white-space: pre-line;
}

.steps-fee-container {
  margin-top: 60px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 20px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.steps-fee-badge-box {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 0;
  border: none;
}

.steps-fee-description {
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Блок 6: Готовые сценарии вашей свадьбы (4 тарифа с флипом) ── */
.section--scenarios-modern {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.scenarios-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.scenarios-grid-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.scenario-flip-card {
  perspective: 1200px;
  -webkit-perspective: 1200px;
  min-height: 520px;
  position: relative;
  cursor: pointer;
}

.scenario-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.scenario-flip-card.is-flipped .scenario-flip-card__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.scenario-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scenario-card-face,
.scenario-card-face * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.scenario-card-face--front {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease 0.35s, visibility 0s linear 0s;
}

.scenario-flip-card.is-flipped .scenario-card-face--front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 0.1s, visibility 0s linear 0.35s;
}

.scenario-card-photo-box {
  position: relative;
  height: 330px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scenario-card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scenario-flip-card:hover .scenario-card-photo-box img {
  transform: scale(1.04);
}

.scenario-pill-btn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scenario-pill-btn:hover {
  background: #ffffff;
  color: var(--accent);
  transform: translateX(-50%) translateY(-2px);
}

.scenario-pill-btns-row {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 1;
  padding: 0 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.scenario-pill-btns-row .scenario-pill-btn {
  position: static;
  transform: none;
  padding: 8px 18px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.scenario-pill-btns-row .scenario-pill-btn:hover {
  transform: translateY(-2px);
}

.scenario-pill-btns-row .scenario-pill-btn--photo {
  background: rgba(18, 16, 15, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.scenario-pill-btns-row .scenario-pill-btn--photo:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.scenario-card-meta {
  padding: 22px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scenario-card-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.scenario-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.scenario-card-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.scenario-card-face--back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  background: #181615;
  color: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201, 169, 110, 0.35);
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 0.1s, visibility 0s linear 0.35s;
}

.scenario-flip-card.is-flipped .scenario-card-face--back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease 0.35s, visibility 0s linear 0s;
}

.scenario-back-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s ease;
  z-index: 5;
}

.scenario-back-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: scale(1.08);
}

.scenario-back-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-align: center;
  cursor: pointer;
}

.scenario-back-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  text-align: center;
  cursor: pointer;
}

.scenario-includes-ul {
  list-style: none;
  padding: 0 4px 0 0;
  margin: 0 0 16px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.6) rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.scenario-includes-ul::-webkit-scrollbar {
  width: 5px;
}

.scenario-includes-ul::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.scenario-includes-ul::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.6);
  border-radius: 4px;
}

.scenario-includes-ul::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

.scenario-includes-ul li {
  position: relative;
  padding-left: 18px;
}

.scenario-includes-ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.scenario-back-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.scenario-back-cta {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.scenario-back-cta:hover {
  background: var(--accent-hover);
}

.scenario-back-flip {
  padding: 9px 12px;
  font-size: 0.82rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scenario-back-flip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ─── Блок 7: Команда Hespería ────────────────────────────── */
.section--team-modern {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.team-block-team {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 70px;
}

.team-block-team__photo-box {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(0, 0, 0, 0.12));
}

.team-block-team__photo-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.team-block-team__text-box {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-body);
}

.team-block-founder {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 50px;
}

.team-block-founder__photo-box {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md, 0 10px 25px rgba(0, 0, 0, 0.08));
  max-width: 360px;
}

.team-block-founder__photo-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.team-block-founder__text-box {
  display: flex;
  flex-direction: column;
}

.team-intro-dropcap {
  float: left;
  font-family: var(--font-heading);
  font-size: 4.8rem;
  line-height: 0.75;
  padding-right: 14px;
  padding-top: 6px;
  color: var(--accent);
  font-weight: 500;
}

.team-intro-p {
  margin-bottom: 20px;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-body);
}

.team-sub-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.team-sub-description {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-body);
}

.team-handwritten-banner {
  text-align: center;
  margin-top: 60px;
  font-family: var(--font-handwriting);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--accent);
  transform: rotate(-1.5deg);
  text-shadow: 0 2px 10px rgba(125, 15, 17, 0.08);
  line-height: 1.35;
}

/* ─── Блок 8: Форма «Какой будет ваша свадьба? Давайте обсудим!» ── */
.section--consultation-modern {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.consultation-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.consultation-script-subtitle {
  font-family: var(--font-handwriting);
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 40px;
}

.consultation-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.consultation-fields-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.consult-field-item {
  display: flex;
  flex-direction: column;
}

.consult-field-label {
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.consult-underlined-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #1a1a1a;
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-dark);
  outline: none;
  transition: border-bottom-color 0.3s ease;
}

.consult-underlined-input:focus {
  border-bottom-color: var(--accent);
}

.consult-submit-button {
  background: #111e28;
  color: #ffffff;
  border: none;
  padding: 14px 44px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 12px;
  clip-path: polygon(0 4px, 4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}

.consult-submit-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 30, 40, 0.25);
}

.consult-photo-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
}

.consult-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Блок 9: Контакты / Финал (HESPERÍA WEDDINGS) ────────── */
.section--contacts-final {
  padding: 90px 0 60px;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.contacts-final-brand {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contacts-final-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contacts-final-email {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--text-dark);
  text-decoration: underline;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.contacts-final-email:hover {
  color: var(--accent);
}

.contacts-final-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.contacts-final-phone:hover {
  color: var(--accent-hover);
}

.contacts-final-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.contacts-social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contacts-social-circle svg {
  width: 20px;
  height: 20px;
}

.contacts-social-circle img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contacts-social-circle:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(125, 15, 17, 0.25);
}

/* ─── Footer Partner Badge (МосШарик) ─────────────────────── */
.contacts-final-partner-section {
  margin: 36px auto 38px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts-partner-label-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

.contacts-partner-label-divider::before,
.contacts-partner-label-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.45), transparent);
}

.contacts-partner-label-divider span {
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

.contacts-partner-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacts-partner-link:hover {
  transform: translateY(-3px);
}

.contacts-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 60px;
  padding: 8px 24px 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contacts-partner-link:hover .contacts-partner-badge {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 10px 28px rgba(125, 15, 17, 0.12);
}

.contacts-partner-logo-box {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.contacts-partner-link:hover .contacts-partner-logo-box {
  transform: scale(1.08) rotate(3deg);
}

.contacts-partner-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-partner-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-partner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-partner-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  line-height: 1.1;
}

.contacts-partner-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(125, 15, 17, 0.08);
  padding: 3px 9px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(125, 15, 17, 0.15);
}

.contacts-partner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.contacts-final-copyright {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contacts-final-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
}

.contacts-final-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contacts-final-legal a:hover {
  color: var(--accent);
}

/* ─── Responsive adjustments for the new blocks ──────────── */
@media screen and (max-width: 1024px) {
  .scenarios-grid-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .portfolio-carousel-nav {
    display: none !important;
  }
}

@media screen and (max-width: 900px) {
  .section--philosophy {
    padding: 60px 0 70px;
  }

  .philosophy-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .philosophy-intro-box {
    padding-right: 0;
    margin-bottom: 0;
  }

  .philosophy-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    margin-bottom: 16px;
  }

  .philosophy-intro-text {
    padding-left: 0;
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .philosophy-photo-box--left {
    order: 2;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .philosophy-photo-box--left .philosophy-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
  }

  .philosophy-concept-box {
    order: 3;
    margin-left: 0;
    margin-right: 0;
    padding-top: 10px;
  }

  .philosophy-divider {
    width: 100px;
    margin-bottom: 18px;
  }

  .philosophy-concept-title {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    margin-bottom: 14px;
  }

  .philosophy-concept-text {
    font-size: 1.18rem;
    line-height: 1.6;
  }

  .philosophy-photo-box--right {
    order: 4;
    width: 100%;
    margin-top: 8px;
    height: auto;
    min-height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .philosophy-photo-box--right .philosophy-img {
    width: 100%;
    height: 440px;
    min-height: auto;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  
  .portfolio-header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-carousel-nav {
    display: none !important;
  }
  
  .portfolio-carousel-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }
  
  .portfolio-album-card {
    flex: none;
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  
  .steps-split-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }
  
  .steps-split-row--bottom .steps-photo-card,
  .steps-split-row + .steps-split-row .steps-photo-card {
    order: -1;
  }
  
  .steps-photo-card {
    height: 400px;
    min-height: 350px;
    max-height: 440px;
  }
  
  .scenarios-grid-deck {
    grid-template-columns: 1fr;
  }
  
  .team-block-team {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .team-block-founder {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }

  .team-block-founder__photo-box {
    max-width: 100%;
  }
  
  .consultation-content-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .consultation-content-grid .consult-photo-wrapper {
    order: -1;
  }
}

/* ─── Hero CTA Button (Cormorant Garamond bold uppercase pill) ── */
.hero__btn-cta {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 16px 48px !important;
  border-radius: 50px !important;
  background-color: var(--accent) !important;
  color: #ffffff !important;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(125, 15, 17, 0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__btn-cta:hover {
  background-color: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(125, 15, 17, 0.42);
}

/* ─── Block 2 Gallery Strip Titles ─────────────────────────── */
.gallery-strip__heading-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.gallery-strip__title-main {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b5b5b !important;
  line-height: 1.15;
  margin: 0;
}

.gallery-strip__title-script {
  font-family: var(--font-handwriting);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  color: rgb(125, 15, 17) !important;
  line-height: 1;
  margin-left: 24px;
  transform: rotate(-2deg);
}

/* ─── Block 6 Scenarios Header Script ───────────────────────── */
.scenarios-header-script {
  font-family: var(--font-handwriting);
  font-size: 1.25em;
  margin-left: 10px;
  color: var(--accent);
  font-weight: 400;
  display: inline-block;
}

/* ─── Album Gallery Modal (Полноразмерная галерея альбома) ─── */
.album-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overscroll-behavior: contain;
}

.album-gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.album-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.album-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1300px;
  height: 88vh;
  max-height: 88vh;
  background: var(--bg-primary, #f7f5f0);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-gallery-modal.active .album-gallery-modal__dialog {
  transform: translateY(0) scale(1);
}

.album-gallery-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.album-gallery-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.album-gallery-modal__badge {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.album-gallery-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0.06em;
}

.album-gallery-modal__count {
  font-size: 0.88rem;
  color: var(--text-muted, #777);
}

.album-gallery-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.album-gallery-modal__close svg {
  width: 22px;
  height: 22px;
}

.album-gallery-modal__close:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.album-gallery-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(88vh - 90px);
  padding: 32px 36px 40px;
  overflow-y: scroll !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.album-gallery-modal__body::-webkit-scrollbar {
  width: 8px;
}

.album-gallery-modal__body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.album-gallery-modal__body::-webkit-scrollbar-thumb {
  background: rgba(125, 15, 17, 0.3);
  border-radius: 4px;
}

.album-gallery-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 15, 17, 0.6);
}

.album-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.album-gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #e8e4dc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.album-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-gallery-item:hover img {
  transform: scale(1.05);
}

.album-gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(125, 15, 17, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-gallery-item:hover .album-gallery-item__overlay {
  opacity: 1;
}

.album-gallery-zoom-icon {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.album-gallery-item:hover .album-gallery-zoom-icon {
  transform: scale(1);
}

@media (max-width: 768px) {
  .album-gallery-modal__dialog {
    width: 96vw;
    height: 92vh;
    max-height: 92vh;
  }
  .album-gallery-modal__header {
    padding: 16px 20px;
  }
  .album-gallery-modal__body {
    height: calc(92vh - 75px);
    padding: 20px 16px 24px;
  }
  .album-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .album-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .steps-photo-card {
    height: 320px;
    min-height: 280px;
    max-height: 360px;
  }
}

