/* =====================================================================
   DJ Curly — landing styles
   ===================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0d0d0f;
  --card: #141416;
  --card-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --muted: #8d8d94;
  --muted-2: #5f5f66;
  --accent: #8c1f33;
  --accent-hover: #a2263d;
  --accent-bright: #e23d5a;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1280px;
  --radius: 20px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fp-duration: 900ms;
  --reveal-duration: 800ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg.ico { width: 18px; height: 18px; flex: 0 0 auto; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2--center { text-align: center; }
.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 48ch;
}
.lead--center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out),
              border-color .35s var(--ease-out), transform .35s var(--ease-out),
              box-shadow .35s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  line-height: 1;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
  z-index: -1;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(140, 31, 51, 0.8); }
.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--ghost { color: var(--muted); padding-inline: 10px; }
.btn--light { background: #fff; color: #111; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(226, 61, 90, 0.7); }
  .btn--outline:hover { border-color: #fff; color: var(--bg); }
  .btn--outline:hover::after { opacity: 1; transform: scale(1); }
  .btn--ghost:hover { color: #fff; }
  .btn--light:hover { background: #111; color: #fff; transform: translateY(-2px); }
  .btn:hover .arrow { transform: translate(3px, 0); }
  .btn--ghost:hover .arrow { transform: translateY(4px); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color .5s var(--ease-out), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__right { display: flex; align-items: center; gap: 14px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  transition: transform .5s var(--ease-out);
}
.logo__dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}
.logo:hover .logo__dot { transform: rotate(180deg) scale(1.1); }
.logo--sm { font-size: 12px; }

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
}
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: #fff;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
body.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 32px);
  transition: clip-path .7s var(--ease), opacity .4s, visibility .7s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  clip-path: circle(150% at calc(100% - 44px) 32px);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.2;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s;
}
.mobile-menu__nav a span { font-family: var(--font-body); font-size: 12px; color: var(--muted); letter-spacing: .15em; }
body.menu-open .mobile-menu__nav a { transform: none; opacity: 1; }
body.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: .25s; }
body.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .32s; }
body.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .39s; }
body.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .46s; }
.mobile-menu__footer .btn { width: 100%; }

/* ---------- Fullpage ---------- */
.fp {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.fp__track {
  height: 100%;
  will-change: transform;
  transition: transform var(--fp-duration) var(--ease);
}
.fp__track.no-transition { transition: none; }

.fp__section {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.fp__section:nth-child(even) { background: var(--bg-alt); }

.section__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) 24px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
/* содержимое никогда не сжимается — если не влезло, секция прокручивается */
.section__inner > * { flex-shrink: 0; }
.cta > * { flex-shrink: 0; }

/* Section reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--reveal-duration) var(--ease-out),
              transform var(--reveal-duration) var(--ease-out);
  transition-delay: 0ms;
}
.fp__section.is-active [data-reveal] {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 90ms + 260ms);
}
.fp__section.is-active.is-first [data-reveal] {
  transition-delay: calc(var(--i, 0) * 110ms + 200ms);
}

/* ---------- Dots navigation ---------- */
.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dots button {
  position: relative;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: transform .4s var(--ease-out), background-color .4s;
}
.dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-bright);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.dots button:hover::before { background: #fff; }
.dots button.is-active::before { background: var(--accent-bright); transform: scale(1.2); }
.dots button.is-active::after { opacity: 1; transform: scale(1); }
.dots button span {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translate(8px, -50%);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.dots button:hover span { opacity: 1; transform: translate(0, -50%); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: fixed;
  left: var(--gutter);
  bottom: 82px; /* above the marquee strip */
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity .5s, transform .5s var(--ease-out);
}
.scroll-hint__line {
  width: 48px; height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: hint-line 2.2s var(--ease) infinite;
}
@keyframes hint-line {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.scroll-hint.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ---------- Placeholders (photo) ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(135deg, var(--card-2), #0f0f11);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.ph img, .ph video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.ph:hover img, .ph:hover video { transform: scale(1.04); }
.ph:has(img) .ph__label, .ph:has(video) .ph__label { display: none; }

.ph__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  padding: 16px;
  transition: color .4s;
}
.ph__label::before {
  content: "";
  width: 22px; height: 22px;
  background-color: var(--muted-2);
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
          mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
  transition: background-color .4s;
}
.ph__label--video::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3C/svg%3E");
}
.ph:hover { border-color: var(--line-strong); }
.ph:hover .ph__label { color: var(--muted); }
.ph:hover .ph__label::before { background-color: var(--muted); }

.ph__dot {
  position: absolute;
  top: 18px; right: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(226, 61, 90, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 61, 90, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(226, 61, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 61, 90, 0); }
}
.ph__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Hero ---------- */
.section--hero .section__inner.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-bottom: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 3vh, 32px);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 11.5vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 3vh, 32px);
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__sub { color: var(--muted); font-size: clamp(15px, 1.3vw, 19px); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 4vh, 40px); }

.hero__photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: calc(100vh - var(--header-h) - 150px);
  max-height: calc(100dvh - var(--header-h) - 150px);
  justify-self: end;
  transform-origin: center;
}
.section--hero.is-active .hero__photo:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }

/* Marquee */
.marquee {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Formats ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(24px, 5vh, 56px);
}
.format {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  transition: transform .6s var(--ease-out);
}
.format:hover { transform: translateY(-6px); }
.format__head { display: flex; flex-direction: column; gap: 10px; }
.format__num { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.format__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: -0.01em;
}
.format .ph { aspect-ratio: 1 / 1; width: 100%; margin-top: auto; } /* фото на одной линии, даже если заголовок в две строки */
.format:hover .ph { border-color: rgba(226, 61, 90, 0.45); box-shadow: 0 30px 60px -40px rgba(226, 61, 90, 0.5); }

/* ---------- About (inside gallery head) ---------- */
.gallery__head { align-items: flex-start; }
.gallery__intro { flex: 0 0 auto; }
.gallery__actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.about {
  flex: 0 1 460px;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.about__p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.about__p + .about__p { margin-top: 8px; }
.about__facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.about__facts li { display: flex; align-items: baseline; gap: 8px; }
.about__facts b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.about__facts span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Approach ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.approach__text .lead { margin-top: 16px; }
.approach__list { display: flex; flex-direction: column; }
.approach__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out), border-color .4s;
}
.approach__row:last-child { border-bottom: 1px solid var(--line); }
.approach__row:hover { border-color: var(--line-strong); }
.approach__row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.approach__row dd { color: var(--muted); font-size: 15px; }

.cta {
  margin-top: clamp(28px, 5vh, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.5vw, 34px) clamp(22px, 2.5vw, 36px);
  border-radius: var(--radius);
  background: var(--accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.18), transparent 50%);
  z-index: -1;
  transform: translateX(-20%);
  transition: transform 1.2s var(--ease-out);
}
.cta:hover::before { transform: translateX(10%); }
.cta__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.01em;
}

/* ---------- Gallery ---------- */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.slider {
  position: relative;
  margin-top: clamp(22px, 4vh, 44px);
  /* выпускаем ленту за границы контейнера */
  margin-inline: calc(-1 * var(--gutter));
}
.slider__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  height: clamp(260px, 46vh, 520px);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track.is-dragging .slider__item { pointer-events: none; }
.slider__item {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: var(--ar, 3 / 4);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out),
              opacity var(--reveal-duration) var(--ease-out);
}
.slider__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1s var(--ease-out);
}
.slider__item:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.slider__item:hover img { transform: scale(1.04); }
.slider__item:last-child { margin-right: var(--gutter); }

.slider__nav { display: flex; gap: 8px; }
.slider__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--text);
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.slider__btn svg { width: 18px; height: 18px; }
.slider__btn:hover { background: #fff; color: var(--bg); border-color: #fff; }
.slider__btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox__figure {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  transform: scale(.92);
  transition: transform .5s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
  transition: opacity .25s;
}
.lightbox__img.is-switching { opacity: 0; }
.lightbox__close, .lightbox__arrow {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10,10,11,.6);
  color: #fff;
  display: grid; place-items: center;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.lightbox__close svg, .lightbox__arrow svg { width: 20px; height: 20px; }
.lightbox__close:hover, .lightbox__arrow:hover { background: #fff; color: var(--bg); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }
.lightbox__arrow:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
}

/* ---------- Feedback modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal__card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
  transform: translateY(20px) scale(.97);
  transition: transform .5s var(--ease-out);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background-color .3s, color .3s;
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover { background: #fff; color: var(--bg); }
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  padding-right: 44px;
}
.modal__direct {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  font-size: 12px;
  transition: border-color .3s;
}
.modal__direct span { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.modal__direct strong { font-weight: 600; color: #fff; }
.modal__direct:hover { border-color: #fff; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form__field input, .form__field textarea {
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: var(--muted-2); }
.form__field input:focus, .form__field textarea:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(226, 61, 90, 0.18);
}
.form__field.is-invalid input { border-color: var(--accent-bright); }
.form__submit { width: 100%; }
.form__submit:disabled { opacity: .6; pointer-events: none; }
.form__error { font-size: 12px; color: var(--accent-bright); }
.form__note { font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.form__success h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.form__success p { color: var(--muted); font-size: 14px; }

/* ---------- Contacts ---------- */
.section__inner.contacts {
  align-items: center;
  text-align: center;
  padding-bottom: 96px;
}
.contacts .h2 { font-size: clamp(34px, 5vw, 72px); }
.contacts .lead { margin-top: 18px; }
.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 44px);
}

.footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer__tagline { text-align: center; }
.footer__copy { text-align: right; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .section--hero .section__inner.hero { grid-template-columns: 1fr 0.9fr; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__right .btn { display: none; }
  .dots { display: none; }
  .scroll-hint { display: none; }

  /* On small screens a section may be taller than the viewport —
     let it scroll inside itself; JS switches to the next screen at the edge. */
  .fp__section { overflow-y: auto; }
  .section__inner { justify-content: flex-start; padding-top: calc(var(--header-h) + 16px); padding-bottom: 16px; }
  .h2 { font-size: clamp(28px, 8.2vw, 40px); }
  .label { margin-bottom: 12px; }
  .lead { font-size: 15px; }

  .section--hero .section__inner.hero {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .hero__title { font-size: clamp(64px, 19vw, 120px); }
  .hero__photo { max-height: none; aspect-ratio: 3 / 2; justify-self: stretch; }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn--ghost { display: none; }

  .formats { grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 20px; }
  .format { gap: 10px; padding-top: 10px; }
  .format__head { gap: 6px; }
  .format__num { font-size: 10px; }
  .format__title { font-size: 14px; }
  .format .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }

  .approach__text .lead { display: none; }
  .approach__row { grid-template-columns: 1fr; gap: 3px; padding: 9px 0; }
  .approach__row dd { line-height: 1.4; }
  .approach__row dt { font-size: 14px; }
  .approach__row dd { font-size: 14px; line-height: 1.45; }
  .cta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; padding: 18px; }
  .cta__text { font-size: 17px; }
  .cta .btn { width: 100%; height: 46px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery__head { gap: 14px; }
  .gallery__actions { margin-top: 12px; }
  .about { flex-basis: auto; padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .about__title { font-size: 14px; margin-bottom: 6px; }
  .about__p { font-size: 13px; line-height: 1.45; }
  .about__p + .about__p { margin-top: 6px; }
  .about__facts { margin-top: 10px; padding-top: 10px; gap: 6px 18px; }
  .about__facts b { font-size: 17px; }
  .about__facts span { font-size: 9px; }
  .slider { margin-top: 16px; }
  .slider__track { height: clamp(180px, 30vh, 360px); scroll-snap-type: x mandatory; }
  .slider__item { border-radius: var(--radius-sm); }
  .slider__nav { display: none; }

  .contacts__actions { flex-direction: column; width: 100%; }
  .contacts__actions .btn { width: 100%; }
  .section__inner.contacts { padding-bottom: 24px; }

  .footer {
    position: static;
    grid-template-columns: 1fr;
    text-align: left;
    gap: 6px;
    padding: 18px var(--gutter) 24px;
  }
  .footer__tagline, .footer__copy { text-align: left; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(56px, 20vw, 90px); }
  .modal__card { padding: 22px 18px; }
  .lightbox__arrow { width: 40px; height: 40px; }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --fp-duration: 10ms; --reveal-duration: 10ms; }
  .marquee__track, .scroll-hint__line::after, .ph__dot { animation: none; }
  [data-reveal] { transition-delay: 0ms !important; }
}
