/* =========================================================
   Оксана Ксю — премиальная свадебная ведущая
   ========================================================= */

:root {
  --bg: #F9F6F0;          /* слоновая кость — чистый светлый фон */
  --bg-rgb: 249, 246, 240;
  --bg-deep: #F1EDE6;     /* чуть глубже, без желтизны — для чередования секций */
  --cream: #F9F6F0;       /* светлый текст на тёмных блоках */
  --cream-rgb: 249, 246, 240;
  --emerald: #0F5257;
  --emerald-dark: #0A3B3F;
  --amethyst: #4A2E5A;
  --amethyst-dark: #33203F;
  --text: #1A1A1A;
  --text-soft: #55524D;
  --gold: #C9A96E;
  --line: rgba(26, 26, 26, 0.1);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -30px rgba(15, 82, 87, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: var(--emerald); color: var(--cream); }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--emerald);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amethyst);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light { color: var(--gold); }

.section {
  position: relative;
  padding: 130px 0;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section__head .eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section__title {
  font-size: clamp(34px, 4.4vw, 56px);
  margin-bottom: 28px;
}

.section__head .section__title { margin-bottom: 0; }

.section__title--light { color: var(--cream); }
.section__title--light em { color: var(--gold); }

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--emerald);
  color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(15, 82, 87, 0.7);
}
.btn--primary::before { background: var(--emerald-dark); }
.btn--primary:hover { box-shadow: 0 18px 36px -14px rgba(15, 82, 87, 0.85); }

/* Контурная изумрудная — для светлого фона */
.btn--ghost {
  color: var(--emerald);
  border: 1px solid var(--emerald);
  background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(6px);
}
.btn--ghost::before { background: var(--emerald); }
.btn--ghost:hover { color: var(--cream); }

/* Контурная — для тёмного фона, при наведении заливается изумрудом */
.btn--outline-light {
  color: var(--cream);
  border: 1px solid rgba(var(--cream-rgb), 0.45);
}
.btn--outline-light::before { background: var(--emerald); }
.btn--outline-light:hover { border-color: var(--emerald); }

/* ---------- Glassmorphism ---------- */

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* =========================================================
   ШАПКА
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* диагональный градиент: изумрудный → тёмный изумрудный → глубокий синий; текст белый */
  background: linear-gradient(135deg, #0F5257 0%, #0A3B3F 55%, #14285C 100%);
  color: #FFFFFF;
  transition: box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.header.is-scrolled {
  --header-h: 70px;
  box-shadow: 0 12px 30px -18px rgba(10, 59, 63, 0.7);
}

/* Кнопка в шапке: белый контур на изумрудном фоне */
.header .btn--primary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}
.header .btn--primary::before { background: #FFFFFF; }
.header .btn--primary:hover { color: var(--emerald); border-color: #FFFFFF; }

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

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.logo__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
}

.logo__divider { color: #FFFFFF; font-weight: 300; opacity: 0.7; }

.logo__role {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.logo--light .logo__name { color: var(--cream); }
.logo--light .logo__divider { color: var(--gold); opacity: 1; }
.logo--light .logo__role { color: rgba(var(--cream-rgb), 0.7); }

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta-mobile { display: none; }
.header__cta { padding: 13px 26px; font-size: 12px; }

.burger {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: #FFFFFF;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }

.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   ГЛАВНЫЙ ЭКРАН
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
  background: var(--bg); /* слоновая кость, как у всего сайта */
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Контент пропускает клики к canvas, кроме интерактивных элементов */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  pointer-events: none;
}

.hero__inner a,
.hero__inner button { pointer-events: auto; }

.hero__title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 28px;
  color: var(--emerald);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 14px rgba(15, 82, 87, 0.22),
    0 14px 40px rgba(15, 82, 87, 0.18);
}

.hero__title em {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--amethyst);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 14px rgba(74, 46, 90, 0.25),
    0 14px 40px rgba(74, 46, 90, 0.18);
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #3A3631;
  margin-bottom: 44px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__hint {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amethyst);
  opacity: 0.7;
}

.hero__photo {
  position: relative;
  max-width: 440px;
  width: 100%;
  justify-self: end;
}

/* Арка с фотографией ведущей */
.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  isolation: isolate; /* корректное скругление при анимации в Safari */
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  /* рамка в цветах прежней заглушки: изумруд → аметист */
  padding: 14px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(155deg, var(--emerald) 0%, var(--emerald-dark) 45%, var(--amethyst) 100%);
  box-shadow: var(--shadow);
}

/* Окно арки: обрезает приближенное фото, не заходя на цветную рамку */
.hero__arch-photo {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 226px 226px calc(var(--radius-lg) - 14px) calc(var(--radius-lg) - 14px);
}

.hero__arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
  /* приближаем кадр, чтобы Оксана была крупнее; центр — на ней */
  transform: scale(1.2);
  transform-origin: 57% 45%;
}

/* тонкая золотая линия по центру цветной рамки */
.hero__arch-frame {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 169, 110, 0.7);
  border-radius: 234px 234px calc(var(--radius-lg) - 6px) calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  left: -40px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(var(--cream-rgb), 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text);
  animation: float 6s ease-in-out infinite;
}

.hero__badge-num {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--emerald);
}

.hero__badge-text {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  border-radius: 20px;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--emerald);
  animation: scrollDot 2s var(--ease) infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* =========================================================
   ОБО МНЕ
   ========================================================= */

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

.about__photo { position: relative; }

/* Золотая рамка ровно вокруг фото, с одинаковым отступом со всех сторон */
.about__photo::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 16px);
  opacity: 0.7;
  pointer-events: none;
}

.about__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.about__content p:not(.eyebrow) {
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 560px;
}

.about__content strong { color: var(--amethyst); font-weight: 600; }

.stats {
  display: flex;
  gap: 50px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.stats__item { display: flex; flex-wrap: wrap; align-items: baseline; }

.stats__num,
.stats__plus {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--emerald);
}

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

.stats__label {
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* =========================================================
   МОИ РОЛИ
   ========================================================= */

.roles {
  overflow: hidden;
  background: var(--bg-deep);
}

/* Мягкие изумрудные и аметистовые пятна — за матовым стеклом карточек */
.roles__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(15, 82, 87, 0.22), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(74, 46, 90, 0.2), transparent 42%),
    radial-gradient(circle at 60% 10%, rgba(201, 169, 110, 0.2), transparent 35%);
}

.roles .container { position: relative; }

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

/* Насыщенное матовое стекло: изумруд, аметист, глубокий синий */
.role-card {
  --glass-from: #0F5257;   /* изумрудный */
  --glass-to: #14285C;     /* глубокий синий */
  position: relative;
  overflow: hidden;
  padding: 44px 30px 40px;
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(150deg, var(--glass-from), var(--glass-to));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(20, 40, 92, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

/* Насыщенные непрозрачные градиенты — карточки не бледнеют на светлом фоне */
.role-card:nth-child(2) { --glass-from: #4A2E5A; --glass-to: #14285C; }  /* аметист → синий */
.role-card:nth-child(3) { --glass-from: #14285C; --glass-to: #0F5257; }  /* синий → изумруд */
.role-card:nth-child(4) { --glass-from: #4A2E5A; --glass-to: #0F5257; }  /* аметист → изумруд */

.role-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 70px -30px rgba(74, 46, 90, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.role-card__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
}

.role-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.6);
  color: var(--gold);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

.role-card__icon svg { width: 26px; height: 26px; }
.role-card:hover .role-card__icon { background: var(--gold); color: var(--emerald-dark); }

.role-card__title { font-size: 28px; margin-bottom: 14px; color: #FFFFFF; }

.role-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #FFFFFF;
}

/* =========================================================
   СПЕЦЭФФЕКТЫ
   ========================================================= */

/* Объёмный диагональный градиент: изумруд → фиолетовый → тёмный фиолетовый */
.effects {
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(135deg, #0F5257 0%, #4A2E5A 50%, #2A1B35 100%);
}

.effects__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.effects .eyebrow { color: var(--gold); }
.effects .section__title { color: var(--cream); }
.effects .section__title em { color: var(--gold); }

.effects__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.effects__content { position: sticky; top: calc(var(--header-h) + 40px); }

.effects__content p:not(.eyebrow) { color: rgba(var(--cream-rgb), 0.72); max-width: 460px; }

.effect {
  display: flex;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.12);
  transition: padding-left 0.5s var(--ease);
}

.effect:first-child { border-top: 1px solid rgba(var(--cream-rgb), 0.12); }
.effect:hover { padding-left: 14px; }

.effect__index {
  flex-shrink: 0;
  width: 56px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

.effect__title {
  font-size: 30px;
  margin-bottom: 10px;
  transition: color 0.4s var(--ease);
}

.effect:hover .effect__title { color: var(--gold); }

.effect__text { color: rgba(var(--cream-rgb), 0.72); max-width: 480px; }

/* =========================================================
   ВИДЕО-ПОРТФОЛИО
   ========================================================= */

/* ---------- Карусель (общая для видео и отзывов) ---------- */

.carousel {
  --gap: 28px;
  --per-view: 3;
  position: relative;
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* место для теней карточек, чтобы они не обрезались */
  padding: 20px 4px 50px;
  margin: -20px -4px -30px;
  outline: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.carousel__track:focus-visible { box-shadow: inset 0 0 0 2px rgba(15, 82, 87, 0.3); border-radius: var(--radius); }

.carousel__slide {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  scroll-snap-align: start;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.carousel__btn {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(15, 82, 87, 0.3);
  color: var(--emerald);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.carousel__btn svg { width: 20px; height: 20px; }

.carousel__btn:hover:not(:disabled) {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--cream);
  transform: scale(1.06);
}

.carousel__btn:disabled { opacity: 0.3; cursor: default; }

.carousel__progress {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.carousel__progress span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--amethyst));
  transition: left 0.25s linear, width 0.25s linear;
}

/* ---------- Карусель видео: все ролики в один ряд ---------- */

/* Все слайды одной высоты, а ширину каждого задаёт пропорция видео:
   горизонтальные — широкие, вертикальные — узкие и высокие */
.carousel--video .carousel__track { align-items: center; }

.carousel--video .carousel__slide {
  flex: none;
  height: clamp(260px, 36vw, 470px);
}

.video-card--wide .video-card__video { aspect-ratio: 16 / 9; }
.video-card--tall .video-card__video { aspect-ratio: 9 / 16; }

/* ---------- Видео-карточки: премиальная изумрудная рама ---------- */

.video-card__frame {
  position: relative;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(155deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

/* тонкая золотая линия по центру рамы */
.video-card__frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 169, 110, 0.7);
  border-radius: calc(var(--radius-lg) - 5px);
  pointer-events: none;
}

.video-card__video {
  display: block;
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 12px);
  /* изумрудный фон вместо чёрного экрана, пока видео не загрузилось */
  background: radial-gradient(circle at 50% 40%, #12474B, #071F21);
}

.video-card:hover .video-card__frame {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -30px rgba(15, 82, 87, 0.6);
}

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */

.reviews {
  background:
    radial-gradient(circle at 10% 90%, rgba(74, 46, 90, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(15, 82, 87, 0.08), transparent 40%),
    var(--bg);
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 38px 38px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -40px rgba(74, 46, 90, 0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px -40px rgba(74, 46, 90, 0.6);
}

.review-card__quote {
  position: absolute;
  top: 10px;
  right: 30px;
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 1;
  color: var(--emerald);
  opacity: 0.12;
}

.review-card__stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 20px;
}

.review-card__text {
  flex: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review-card__avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--emerald), var(--amethyst));
}

.review-card__author strong { display: block; font-size: 14px; font-weight: 600; }
.review-card__author span:not(.review-card__avatar) { font-size: 12px; color: var(--text-soft); }

/* =========================================================
   ГАЛЕРЕЯ (gallery.html)
   ========================================================= */

.gallery-page { padding-top: calc(var(--header-h) + 70px); }

/* Сетка фото: 3 колонки на компьютере (15 фото = 5 ровных рядов), 2 на телефоне */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 3 / 2; /* как у фотографий — снимки не обрезаются */
  background: #DCDAD6;  /* серый фон, пока фото загружается */
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -28px rgba(15, 82, 87, 0.45);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

/* =========================================================
   CTA / КОНТАКТЫ
   ========================================================= */

.cta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.22), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(15, 82, 87, 0.8), transparent 50%),
    linear-gradient(135deg, var(--amethyst), var(--amethyst-dark));
}

.cta__inner { max-width: 760px; }
.cta .eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.6; }

.cta__text {
  font-weight: 300;
  font-size: 17px;
  color: rgba(var(--cream-rgb), 0.8);
  margin-bottom: 44px;
}

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

/* =========================================================
   ПОДВАЛ
   ========================================================= */

.footer {
  background: #121212;
  color: rgba(var(--cream-rgb), 0.7);
  padding: 80px 0 30px;
  font-size: 14px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.1);
}

.footer__brand p { margin-top: 18px; max-width: 300px; }

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__col > a {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  transition: color 0.3s;
}

.footer__col > a:hover { color: var(--gold); }

.footer__col > .footer__contact { margin-bottom: 14px; }

.footer__contact-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.45);
}

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

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--cream-rgb), 0.2);
  color: var(--cream);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease);
}

.socials svg { width: 18px; height: 18px; }

.socials a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(var(--cream-rgb), 0.45);
}

.footer__bottom a:hover { color: var(--gold); }

/* =========================================================
   КАСТОМНЫЙ КУРСОР: золотая искра + шлейф
   (включается из JS только на устройствах с мышью)
   ========================================================= */

.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

.cursor.is-visible { opacity: 1; }

.cursor__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6DD 0%, #E9CC8E 45%, #B08A48 100%);
  box-shadow: 0 0 10px 2px rgba(233, 204, 142, 0.75), 0 0 24px 6px rgba(201, 169, 110, 0.35);
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}

.cursor.is-hover .cursor__dot {
  transform: scale(2.6);
  background: radial-gradient(circle, rgba(255, 246, 221, 0.35) 0%, rgba(201, 169, 110, 0.25) 70%);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.8), 0 0 18px 4px rgba(201, 169, 110, 0.35);
}

.cursor.is-down .cursor__dot { transform: scale(0.7); }
.cursor.is-hover.is-down .cursor__dot { transform: scale(2.1); }

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* =========================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ (fade-in-up)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal { opacity: 1; transform: none; }

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

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1100px) {
  /* 5 пунктов меню + кнопка: чуть ужимаем шапку, чтобы всё поместилось в одну строку */
  .nav { gap: 20px; }
  .nav__link { letter-spacing: 0.06em; }
  .header__cta { padding: 12px 20px; }
  .header .logo__divider, .header .logo__role { display: none; }
  .roles__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner, .effects__inner { gap: 60px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .header__cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 24px;
    background: var(--emerald); /* как шапка — белые ссылки читаются */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }

  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__link {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  }

  .nav.is-open .nav__link { transform: none; opacity: 1; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: 0.05s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: 0.1s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: 0.15s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: 0.2s; }

  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }
  .header .logo__divider, .header .logo__role { display: inline; } /* меню свёрнуто — место есть */

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero__subtitle {
    display: inline-block;
    padding: 0;
    border: none;
  }

  .hero__actions { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero__photo { justify-self: center; max-width: 380px; }
  .hero__badge { left: -20px; }

  .about__inner, .effects__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; margin: 16px auto 0; width: calc(100% - 32px); }
  .about__content .eyebrow { justify-content: flex-start; }
  .effects__content { position: static; }
  .effects__content .eyebrow { justify-content: flex-start; }

  .carousel { --per-view: 2; --gap: 22px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .section, .cta { padding: 90px 0; }
  .section__head { margin-bottom: 48px; }

  .logo__name { font-size: 20px; }
  .logo__role { font-size: 10px; letter-spacing: 0.22em; }

  .hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 80px; }
  .hero__subtitle { font-size: 16px; margin-bottom: 34px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__hint { margin-top: 26px; font-size: 11px; }
  .hero__photo { max-width: 300px; }
  .hero__badge { left: -12px; bottom: 30px; padding: 12px 16px; }
  .hero__arch { padding: 10px; }
  .hero__arch-photo { border-radius: 230px 230px calc(var(--radius-lg) - 10px) calc(var(--radius-lg) - 10px); }
  .hero__arch-frame { inset: 4px; }
  .hero__badge-num { font-size: 30px; }
  .hero__scroll { display: none; }

  .about__photo::before { inset: -10px; border-radius: calc(var(--radius-lg) + 10px); }
  .about__photo { margin: 10px auto 0; width: calc(100% - 20px); }
  .stats { gap: 24px; justify-content: space-between; }
  .stats__num, .stats__plus { font-size: 34px; }
  .stats__label { font-size: 10px; letter-spacing: 0.12em; }

  .roles__grid { grid-template-columns: 1fr; gap: 20px; }

  /* на телефоне видна часть следующей карточки — подсказка, что можно листать */
  .carousel { --per-view: 1.15; --gap: 16px; }
  /* на телефоне горизонтальное видео помещается в экран целиком,
     вертикальное — уже, справа выглядывает следующий ролик */
  .carousel--video .carousel__slide { height: auto; }
  .carousel--video .video-card--wide { width: 88%; }
  .carousel--video .video-card--tall { width: 62%; }
  .video-card__frame { height: auto; }
  .video-card__video { width: 100%; height: auto; }
  .carousel__controls { gap: 16px; }
  .carousel__btn { width: 46px; height: 46px; }

  .role-card { padding: 36px 26px 32px; }

  .effect { gap: 18px; padding: 30px 0; }
  .effect__index { width: 36px; font-size: 18px; }
  .effect__title { font-size: 24px; }
  .effect:hover { padding-left: 0; }

  .review-card { padding: 40px 28px 30px; }
  .review-card__text { font-size: 17px; }

  .cta__actions { flex-direction: column; align-items: stretch; }

  .footer { padding-top: 60px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 380px) {
  .logo__divider, .logo__role,
  .header .logo__divider, .header .logo__role { display: none; }
  .btn { padding: 15px 22px; letter-spacing: 0.1em; }
}
