/* ============================================================
   Светлана Никотина — художественный фотограф, Москва
   Светлая редакторская тема в духе Сета Година и Игоря Манна:
   бумажный фон, воздух, крупный сериф, короткие фразы,
   янтарный и голубой акценты.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #faf6ee;
  --bg-2: #f3ecdd;
  --surface: #ffffff;
  --line: #e7dfcc;
  --line-2: #cfc4a8;
  --text: #1c1712;
  --muted: #6f6350;
  --accent: #9c6d16;      /* латунь */
  --accent-2: #2f7086;    /* глубокий голубой */
  --danger: #b3372a;

  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", system-ui, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 72px;

  /* зависимые тона (переопределяются тёмной темой) */
  --header-bg: rgba(250, 246, 238, 0.82);
  --header-bg-solid: rgba(250, 246, 238, 0.97);
  --menu-bg: rgba(250, 246, 238, 0.96);
  --hero-mid: rgba(250, 246, 238, 0.66);
  --hero-top: rgba(250, 246, 238, 0.5);
  --hero-side: rgba(250, 246, 238, 0.45);
  --shadow-c: rgba(28, 23, 18, 0.35);
  --ghost: rgba(28, 23, 18, 0.08);
  --img-scrim: rgba(28, 23, 18, 0.32);
}

/* ---------- Тёмная тема ---------- */
[data-theme="dark"] {
  --bg: #171310;
  --bg-2: #1e1813;
  --surface: #241d16;
  --line: #372d21;
  --line-2: #4a3d2c;
  --text: #f2e9d8;
  --muted: #a5947d;
  --accent: #d4a24a;
  --accent-2: #8fb8c9;
  --danger: #e0705f;

  --header-bg: rgba(23, 19, 16, 0.82);
  --header-bg-solid: rgba(23, 19, 16, 0.96);
  --menu-bg: rgba(23, 19, 16, 0.92);
  --hero-mid: rgba(23, 19, 16, 0.62);
  --hero-top: rgba(23, 19, 16, 0.55);
  --hero-side: rgba(23, 19, 16, 0.42);
  --shadow-c: rgba(0, 0, 0, 0.55);
  --ghost: rgba(242, 233, 216, 0.07);
  --img-scrim: rgba(23, 19, 16, 0.4);
}

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

html { scroll-behavior: smooth; }

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

body.menu-locked { overflow: hidden; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
fieldset { border: 0; }
em { font-style: normal; }
sup { font-size: 0.55em; }

::selection { background: var(--text); color: var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
html { scrollbar-width: thin; scrollbar-color: var(--line-2) var(--bg); }

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

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), 1520px); margin-inline: auto; }

.section { padding-block: clamp(80px, 12vh, 150px); }
.section-tight { padding-top: clamp(8px, 2vh, 28px); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(44px, 7vw, 84px);
}
.sec-head .sec-label { grid-column: 1 / -1; margin-bottom: 10px; }

.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-label::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.sec-num { color: var(--accent); margin-right: 6px; }

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.sec-title em {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1rem 1.9rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: translateY(0); }

.btn-outline:hover { color: var(--bg); }

.btn-solid { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover { color: var(--bg); border-color: var(--accent); }

.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.7rem; }

.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(6px); }

.btn-ai { border-color: var(--accent-2); color: var(--accent-2); }
.btn-ai::before { background: var(--accent-2); }
.btn-ai:hover { color: #fff; border-color: var(--accent-2); }
.btn-ai.btn-solid { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ai.btn-solid::before { background: var(--text); }
.btn-ai.btn-solid:hover { border-color: var(--text); color: var(--bg); }

/* ---------- Global overlays ---------- */
.noise { display: none; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
html.js .page-transition { transform: scaleY(1); }
html.js .page-transition.is-hidden { transform: scaleY(0); }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1300;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.cursor { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.is-scrolled {
  background: var(--header-bg-solid);
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand sup { color: var(--accent); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav-links { display: flex; gap: clamp(18px, 3vw, 42px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }

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

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1100;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%) translateY(-4px);
  transition: transform 0.35s var(--ease);
}
.burger span:nth-child(2) { transform: translate(-50%, -50%) translateY(4px); }
.burger.is-open span { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--menu-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu ul li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 0.1s);
}
.mobile-menu.is-open ul li { opacity: 1; transform: none; }

.mobile-menu ul a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8.5vw, 4rem);
  text-transform: uppercase;
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu ul a:hover { color: var(--accent); padding-left: 12px; }
.mm-num { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }

.mm-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8vh;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.mm-footer a:hover { color: var(--accent); }

/* ============================================================
   КАДРЫ: чистая рамка + тёплый плейсхолдер-подложка
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ph-ratio, 4 / 5);
  background: linear-gradient(150deg, #efe7d4, #e2d5ba);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s var(--ease);
}
.work-card:hover .ph,
.m-link:hover .ph {
  border-color: var(--line-2);
  box-shadow: 0 30px 50px -35px var(--shadow-c);
}

.ph-inner { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.work-card:hover .ph-inner,
.m-link:hover .ph-inner { transform: scale(1.03); }

.ph-grid { display: none; }

.ph-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 25% 18%, rgba(156, 109, 22, 0.10), transparent 62%),
    radial-gradient(55% 45% at 80% 85%, rgba(47, 112, 134, 0.08), transparent 62%);
}

.ph-scan { display: none; }

.ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-icon { display: none; }

.ph-code {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 6;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(28, 23, 18, 0.55);
}

.ph-hud { display: none; }
.rec { display: none; }

.ph-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: var(--img-scrim);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.ph-overlay span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease);
}
.m-link:hover .ph-overlay { opacity: 1; }
.m-link:hover .ph-overlay span { transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(36px, 6vh, 72px);
}

.hero-bg { position: absolute; inset: -25% 0 0 0; z-index: 1; will-change: transform; }

.ph-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(to top, var(--bg) 10%, var(--hero-mid) 32%, transparent 60%),
    linear-gradient(to bottom, var(--hero-top), transparent 38%),
    linear-gradient(to right, var(--hero-side), transparent 45%);
}

.hero-side {
  position: absolute;
  right: 26px; top: 50%;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-content { position: relative; z-index: 3; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1.15rem;
  margin-bottom: clamp(20px, 3vh, 36px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  from { transform: scale(0.55); opacity: 1; }
  to { transform: scale(1.9); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8.6vw, 8rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.ht-line { display: block; overflow: hidden; padding-block: 0.04em; }
.ht-outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.ht-accent { color: var(--accent); }

.split .char {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: charIn 0.8s var(--ease) forwards;
  animation-delay: calc(var(--ci) * 0.035s + 0.3s);
}
@keyframes charIn { to { transform: translateY(0); opacity: 1; } }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(28px, 4vh, 52px);
}
.hero-desc { max-width: 460px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.hero-scroll:hover { color: var(--accent); }
.scroll-line {
  position: relative;
  width: 1px; height: 56px;
  background: var(--line-2);
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ============================================================
   ИЗБРАННЫЕ РАБОТЫ
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.work-card { display: block; }
.f1 { grid-column: 1 / 7; }
.f2 { grid-column: 8 / 13; margin-top: 18%; }
.f3 { grid-column: 3 / 11; margin-top: 2rem; }

.work-meta { margin-top: 18px; }
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  transition: color 0.35s;
}
.work-card:hover .work-meta h3,
.m-link:hover .work-meta h3 { color: var(--accent); }
.work-meta p {
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */
.marquee-section { margin-top: clamp(20px, 4vh, 40px); }
.marquee {
  overflow: hidden;
  padding-block: clamp(16px, 2.4vw, 28px);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-right: clamp(28px, 4vw, 60px);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
}
.marquee-group i { font-style: normal; font-size: 0.5em; color: var(--accent); }
.marquee-group i:nth-of-type(even) { color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ЦИФРЫ
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.stat { border-top: 2px solid var(--text); padding-top: clamp(16px, 2vw, 24px); }
.stat-line { display: flex; align-items: baseline; font-family: var(--font-display); }
.stat-num { font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; }
.stat-suffix { font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--accent); margin-left: 4px; }
.stat-label {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   HERO ВНУТРЕННИХ СТРАНИЦ
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 12vh, 120px)) 0 clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-ghost);
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 19rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost);
  pointer-events: none;
  user-select: none;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.filter-btn {
  padding: 0.72rem 1.35rem;
  background: transparent;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter-btn sup { color: var(--accent); margin-left: 5px; font-weight: 700; }
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.filter-btn.is-active sup { color: var(--bg); }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: start;
}
.masonry-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-item { margin: 0; }
.m-link {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.m-item.is-hidden { display: none; }
.m-item.pop { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.m-link { display: block; }
.m-item .work-meta { margin-top: 16px; }

/* ============================================================
   ОБО МНЕ
   ============================================================ */
.manifesto { max-width: 940px; }
.manifesto .sec-label { margin-bottom: clamp(28px, 4vh, 44px); }
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  margin-bottom: 0.9em;
}
.manifesto-text .accent { color: var(--accent); }
.manifesto-text .accent-2 { color: var(--accent-2); }
.manifesto-sub { max-width: 620px; color: var(--muted); font-size: 1rem; line-height: 1.85; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.bio-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.bio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  padding: 3px;
  background: var(--surface);
}
.bio-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.bio-role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.bio-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  margin: clamp(24px, 4vh, 40px) 0 20px;
}
.bio-text { color: var(--muted); max-width: 560px; margin-bottom: 16px; line-height: 1.85; }

.facts { margin-top: clamp(28px, 4vh, 44px); border-top: 1.5px solid var(--text); }
.fact {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact-k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.signature {
  margin-top: clamp(28px, 4vh, 44px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --- Мастерская --- */
.specs-panel {
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.specs-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.specs-dots { display: flex; gap: 7px; }
.specs-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.specs-dots span:first-child { background: var(--accent); }
.specs-title { font-size: 0.78rem; color: var(--muted); }
.specs-live {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.specs-group h4 {
  padding: 22px 22px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.spec-row {
  display: grid;
  grid-template-columns: 46px 210px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  transition: background 0.3s;
}
.spec-row:hover { background: var(--bg-2); }
.spec-row:first-child { border-top: 0; }
.spec-main { display: contents; }
.spec-i { font-size: 0.72rem; color: var(--muted); }
.spec-k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-v { font-family: var(--font-display); font-weight: 500; }
.spec-s {
  justify-self: end;
  padding: 4px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.st-ok { color: var(--accent); border-color: var(--accent); }
.st-lic { color: var(--accent-2); border-color: var(--accent-2); }
.st-sec { color: var(--accent-2); border-color: var(--accent-2); }
.st-stb { color: var(--muted); }

/* ============================================================
   НАПРАВЛЕНИЯ: КАРУСЕЛЬ
   ============================================================ */
.dir-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.dir-nav { display: flex; gap: 12px; }
.dir-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.dir-btn:hover { background: var(--text); color: var(--bg); }

.dir-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.dir-track::-webkit-scrollbar { display: none; }
.dir-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.dir-card {
  flex: 0 0 min(400px, 86vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s var(--ease);
}
.dir-card:hover {
  border-color: var(--text);
  box-shadow: 0 30px 50px -35px var(--shadow-c);
}

.dc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dc-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-tag-hot { color: var(--accent); }
.dc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}
.dc-title {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
}
.dc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.dc-price span { font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--muted); }

.dc-list { margin: 18px 0 24px; flex: 1; }
.dc-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dir-dots { display: flex; gap: 9px; justify-content: center; margin-top: 2px; }
.dir-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: all 0.3s;
}
.dir-dot.is-active { background: var(--text); transform: scale(1.3); }

/* --- ИИ-версия направления --- */
.ai-strip {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  border: 1.5px solid rgba(47, 112, 134, 0.35);
  border-radius: var(--radius);
  background: rgba(47, 112, 134, 0.05);
}
.ai-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ai-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.ai-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent-2); white-space: nowrap; }
.ai-note { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

.pricing-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.pricing-note strong { color: var(--text); font-weight: 600; }

/* ============================================================
   ИИ-ГЕНЕРАЦИЯ: СЕКЦИЯ
   ============================================================ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.ai-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: 20px;
}
.ai-explain .accent-2 { color: var(--accent-2); }
.ai-text { color: var(--muted); margin-bottom: 14px; line-height: 1.85; max-width: 540px; }
.ai-text strong { color: var(--text); font-weight: 600; }
.ai-points { margin: 18px 0 30px; }
.ai-points li { padding: 9px 0; font-size: 0.95rem; }

.ai-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
  counter-reset: af;
}
.ai-flow-step {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}
.ai-flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 26px 46px -32px var(--shadow-c);
}
.af-num {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.af-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.af-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
/* стрелка между шагами */
.ai-flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 1.1rem;
  color: var(--accent-2);
  background: var(--bg);
  width: 14px;
  text-align: center;
}

/* янтарный вариант — живая съёмка (4 шага) */
.ai-flow.live { grid-template-columns: repeat(4, 1fr); }
.ai-flow.live .af-num { background: var(--accent); }
.ai-flow.live .ai-flow-step:not(:last-child)::after { color: var(--accent); }
.ai-flow.live .ai-flow-step:hover { border-color: var(--accent); }

/* — блок «когда выбирать ИИ-версию» — */
.ai-why {
  border: 1.5px solid rgba(47, 112, 134, 0.35);
  border-radius: var(--radius);
  background: rgba(47, 112, 134, 0.05);
  padding: clamp(24px, 2.6vw, 36px);
}
.ai-why-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.ai-why-text { font-size: 0.98rem; line-height: 1.8; margin-bottom: 16px; }
.ai-why-text strong { color: var(--text); font-weight: 600; }
.ai-why-note { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   ГЛАВНАЯ: ДВА ПУТИ К СКАЗКЕ
   ============================================================ */
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  position: relative;
  isolation: isolate;
  display: block;
  padding: clamp(28px, 3vw, 46px);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.path-card:hover {
  box-shadow: 0 30px 50px -35px var(--shadow-c);
}

.path-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.path-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  margin: 22px 0 14px;
}
.path-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }
.path-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 26px; max-width: 440px; }
.path-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.path-ai { border-color: var(--accent-2); }
.path-ai .path-tag { color: var(--accent-2); border-color: var(--accent-2); }
.path-ai .path-price, .path-ai .path-link { color: var(--accent-2); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.contact-mail {
  position: relative;
  display: inline-block;
  margin-top: clamp(22px, 4vh, 36px);
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.1vw, 2.6rem);
  transition: color 0.35s;
  word-break: break-all;
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact-mail:hover { color: var(--accent); }
.contact-mail:hover::after { transform: scaleX(1); transform-origin: left; }

.info-rows { margin-top: clamp(28px, 4vh, 44px); border-top: 1.5px solid var(--text); }
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.info-row .k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.info-row .v { color: var(--text); }
.info-row .v a:hover { color: var(--accent); }

.socials-label { margin-top: clamp(36px, 5vh, 56px); margin-bottom: 10px; }
.socials-big li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  transition: color 0.35s, padding-left 0.35s var(--ease);
}
.socials-big li a:hover { color: var(--accent); padding-left: 14px; }
.s-i { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; }
.s-note { font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; text-transform: none; }
.s-arrow { margin-left: auto; font-size: 0.75em; color: var(--accent); transition: transform 0.35s var(--ease); }
.socials-big li a:hover .s-arrow { transform: translate(6px, -6px); }
.socials-hint { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }

/* --- Форма --- */
.contact-form {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
}
.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-status { display: flex; align-items: center; gap: 9px; color: var(--accent); }

.field { position: relative; margin-bottom: 30px; }
.field label,
.chips-field legend {
  display: block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder,
.field textarea::placeholder { color: #b3a78d; }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }

.field.is-error input,
.field.is-error textarea { border-bottom-color: var(--danger); }
.field.is-error::after {
  content: "Обязательное поле";
  position: absolute;
  top: 0; right: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.62rem 1.15rem;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}
.chip:hover span { color: var(--text); border-color: var(--text); }
.chip input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-submit { width: 100%; padding: 1.15rem; }
.btn-submit.is-sent { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.form-note { margin-top: 18px; font-size: 0.8rem; color: var(--muted); transition: color 0.3s; }
.form-note.is-success { color: var(--accent); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  margin-top: clamp(80px, 12vh, 140px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-cta { padding-block: clamp(70px, 10vw, 120px) clamp(44px, 6vw, 70px); }
.footer-cta .sec-label { margin-bottom: 26px; }

.big-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.2vw, 5.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.4s;
}
.big-link:hover { color: var(--accent); }
.big-arrow { color: var(--accent); transition: transform 0.4s var(--ease); }
.big-link:hover .big-arrow { transform: translateX(0.18em); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-block: 56px;
  border-top: 1px solid var(--line);
}
.footer-col h4 {
  margin-bottom: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-col h4::before { content: "/ "; color: var(--accent); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-col ul a:hover { color: var(--accent); transform: translateX(4px); }
.footer-col ul a small { display: block; color: #a3937a; font-size: 0.74rem; }
.footer-brand p { max-width: 300px; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

.footer-meta p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}
#localTime { font-family: var(--font-display); color: var(--text); letter-spacing: 0.06em; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.to-top {
  padding: 0.62rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}
.to-top:hover { background: var(--text); color: var(--bg); }

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
}
.theme-toggle:hover { background: var(--text); color: var(--bg); }
[data-theme="dark"] .tt-moon { display: none; }
html:not([data-theme="dark"]) .tt-sun { display: none; }
html[data-sound="off"] .st-on { display: none; }
html:not([data-sound="off"]) .st-off { display: none; }

/* select в форме */
.field select {
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c6d16' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color 0.3s;
}
.field select:focus { border-bottom-color: var(--accent); }
.field select option { background: var(--bg); color: var(--text); }

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: none;
  background: rgba(23, 19, 16, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; place-items: center; }
.lb-stage { position: relative; width: min(1080px, 92vw); }
.lb-img-wrap {
  display: grid;
  place-items: center;
  min-height: 40vh;
}
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.lb-img.is-loading { opacity: 0; }
.lb-cap { text-align: center; margin-top: 18px; }
.lb-cap h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: #f2e9d8;
}
.lb-cap p {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.6);
}
.lb-close, .lb-arrow {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 233, 216, 0.5);
  background: rgba(23, 19, 16, 0.55);
  color: #f2e9d8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lb-close:hover, .lb-arrow:hover { background: var(--accent); border-color: var(--accent); color: #1c1712; }
.lb-close { top: 22px; right: 22px; width: 52px; height: 52px; font-size: 1.1rem; z-index: 9998; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 58px; height: 58px; font-size: 1.25rem; z-index: 9999; }
.lb-arrow.lb-prev { left: 22px; }
.lb-arrow.lb-next { right: 22px; }
.lb-counter {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(242, 233, 216, 0.55);
}
@media (max-width: 640px) {
  .lb-arrow { width: 44px; height: 44px; }
  .lb-arrow.lb-prev { left: 10px; }
  .lb-arrow.lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; width: 44px; height: 44px; }
}

/* ============================================================
   COOKIE-ПЛАШКА
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1400;
  width: min(92vw, 720px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px -30px var(--shadow-c);
}
.cookie-banner.is-visible { display: flex; animation: cookieIn 0.5s var(--ease) both; }
@keyframes cookieIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-text { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner .btn { flex: none; }

/* ============================================================
   СОГЛАСИЕ С ПОЛИТИКОЙ (форма)
   ============================================================ */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -6px 0 26px;
  cursor: pointer;
  user-select: none;
}
.privacy-check input { position: absolute; opacity: 0; pointer-events: none; }
.pc-box {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: all 0.25s;
}
.pc-box::after {
  content: "✓";
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.privacy-check input:checked + .pc-box { background: var(--text); border-color: var(--text); }
.privacy-check input:checked + .pc-box::after { opacity: 1; }
.privacy-check input:focus-visible + .pc-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-text { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.pc-text a { color: var(--accent); text-decoration: underline; }
.privacy-check.is-error .pc-box { border-color: var(--danger); }
.privacy-check.is-error .pc-text { color: var(--danger); }

.footer-legal { display: flex; align-items: center; gap: 22px; }
.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   СТРАНИЦА ПОЛИТИКИ
   ============================================================ */
.privacy-body { max-width: 820px; }
.privacy-block { margin-bottom: clamp(40px, 6vw, 64px); }
.privacy-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 16px;
}
.privacy-block h2 .sec-num { font-size: 0.8em; margin-right: 10px; }
.privacy-block p { color: var(--muted); line-height: 1.85; margin-bottom: 12px; }
.privacy-block p a, .privacy-block li a { color: var(--accent); }
.privacy-block ul { margin-bottom: 12px; }
.privacy-block li { padding: 7px 0; color: var(--text); font-size: 0.98rem; line-height: 1.7; }
.privacy-block strong { color: var(--text); font-weight: 600; }

/* ============================================================
   ЭФФЕКТЫ: вспышка затвора, киноплёнка, диафрагма, сплиты
   ============================================================ */

/* вспышка при переходе по ссылке */
.shutter-flash {
  position: fixed;
  inset: 0;
  z-index: 2900;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}
.shutter-flash.go { animation: flashGo 0.5s ease-out both; }
@keyframes flashGo {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* киноплёнка по краям экрана — «проматывается» при скролле */
.film-strip {
  position: fixed;
  top: -160px; bottom: -160px;
  width: 30px;
  z-index: 900;
  pointer-events: none;
  display: none;
  background-color: #12100d;
  background-image:
    linear-gradient(rgba(242, 233, 216, 0.85), rgba(242, 233, 216, 0.85)),
    linear-gradient(rgba(242, 233, 216, 0.25), rgba(242, 233, 216, 0.25));
  background-size: 14px 10px, 30px 2px;
  background-repeat: repeat-y;
  background-position: 8px 0, 0 70px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.65);
}
.film-strip-l { left: 0; }
.film-strip-r { right: 0; }
@media (min-width: 1160px) {
  .film-strip { display: block; }
}

/* вращающаяся диафрагма — оптическая иллюзия в hero внутренних страниц */
.aperture {
  position: absolute;
  right: -6%;
  top: 50%;
  width: clamp(340px, 40vw, 620px);
  height: auto;
  transform: translateY(-50%);
  color: var(--muted);
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}
.ap-spin {
  transform-origin: 100px 100px;
  animation: apSpin 48s linear infinite;
}
@keyframes apSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* реверс-строка жанров */
.marquee--rev .marquee-track {
  animation-direction: reverse;
  animation-duration: 36s;
}
.marquee--rev .marquee-group { font-size: clamp(1.1rem, 2.6vw, 1.9rem); opacity: 0.85; }

/* пословный сплит заголовков */
.sec-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.sec-title .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.75s var(--ease);
  transition-delay: calc(var(--wi) * 0.07s);
}
html.js .sec-title.is-visible .wi,
html.js [data-reveal].is-visible .sec-title .wi { transform: translateY(0); }
html.js [data-reveal].split-words { transform: none; }

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .hero-side { display: none; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-actions .btn { display: none; }

  .featured-grid { display: block; }
  .work-card { margin-bottom: clamp(40px, 6vw, 64px); }
  .f1, .f2, .f3 { margin-top: 0; }

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

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

  .ai-grid { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .ai-flow { grid-template-columns: 1fr; }
  .ai-flow.live { grid-template-columns: repeat(2, 1fr); }
  .ai-flow-step:not(:last-child)::after { display: none; }

  .contact-layout { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 440px; }

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

@media (max-width: 700px) {
  .spec-row { grid-template-columns: 36px 1fr auto; gap: 14px; }
  .spec-main { display: block; }
  .spec-k { margin-bottom: 3px; }
  .spec-v { font-size: 0.88rem; }
}

@media (max-width: 640px) {
  .masonry { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .fact, .info-row { grid-template-columns: 110px 1fr; }
  .page-hero::before { font-size: 34vw; }
  .specs-head { flex-wrap: wrap; }
  .specs-live { margin-left: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .cursor { display: none; }
}
