/* ═══════════════════════════════════════════════════════════
   VIKKIE — стили сайта
   Палитры переключаются атрибутом <html data-palette="...">
   (выбирается в админке: Тексты и контакты → Главная страница)
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #F7F1E8;
  --paper-2: #FFFCF7;
  --ink: #1E1719;
  --muted: #6B5F61;
  --line: rgba(30, 23, 25, .14);

  /* палитра по умолчанию: пудра + бордо */
  --a: #F2A7BF;        /* главный акцент (заливки, леттеринг) */
  --a-soft: #FADDE6;   /* мягкие подложки */
  --a-deep: #7A1E3A;   /* кнопки и акцентный текст */
  --a-2: #EFE2D2;      /* второй цвет (скотч, стикеры) */

  /* Типографика: 2 семейства.
     Playfair Display — логотип, заголовки, курсивные акценты (контрастная антиква).
     Onest — весь читаемый текст, меню, кнопки, подписи (гротеск, сделанный под кириллицу). */
  --f-script: "Playfair Display", Georgia, serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-sans: "Onest", system-ui, sans-serif;

  /* шкала отступов (кратно 8) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --f-mono: var(--f-sans);
  --f-hand: var(--f-serif);

  --shadow: 0 1px 2px rgba(30,23,25,.08), 0 10px 28px -8px rgba(30,23,25,.22);
  --radius: 4px;
  --wrap: 1240px;
}
[data-palette="sage"]      { --a:#F0A9C0; --a-soft:#F9DEE7; --a-deep:#4F6440; --a-2:#C9D6B0; }
[data-palette="raspberry"] { --a:#E2336E; --a-soft:#FBD3E0; --a-deep:#A3123F; --a-2:#FFE6EE; }
[data-palette="coral"]     { --a:#FF7B63; --a-soft:#FFDDD3; --a-deep:#C2381F; --a-2:#FFEBD6; }
[data-palette="lavender"]  { --a:#B9A0F3; --a-soft:#ECE4FF; --a-deep:#5B34B8; --a-2:#F6E9F2; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  /* бумажная фактура */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 17px/1.7 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--a); color: var(--ink); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wordmark { font-family: var(--f-serif); font-style: italic; font-weight: 400; line-height: .9; letter-spacing: -.03em; }
.script { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.hand { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.serif { font-family: var(--f-serif); }
.vlabel {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-sans); font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Шапка ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.logo .wordmark { font-size: 28px; color: var(--a-deep); line-height: 1; }
.logo svg { width: 16px; height: 16px; color: var(--a); }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--f-sans); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--a-soft); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper-2); padding: 12px 16px 18px; border-bottom: 1px solid var(--line); flex-direction: column; }
  .nav.open { display: flex; }
  .site-header .write { display: none; }
}

/* ── Кнопки и меню «Написать» ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--a-deep); color: var(--paper-2);
  border: 0; border-radius: 999px; padding: 13px 24px;
  font: 600 13px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--a);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--a); }
.btn.small { padding: 10px 16px; font-size: 12px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.write { position: relative; display: inline-block; }
.write-menu {
  position: absolute; z-index: 50; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: var(--paper-2); border-radius: 10px; padding: 8px; box-shadow: var(--shadow);
  display: none; transform: rotate(-1deg);
}
.write.right .write-menu { left: auto; right: 0; }
.write.up .write-menu { top: auto; bottom: calc(100% + 10px); }
.write.open .write-menu { display: block; }
.write-menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.write-menu a:hover { background: var(--a-soft); }
.write-menu a span.mono { margin-left: auto; color: var(--muted); font-size: 10px; }
.write-menu .ico { width: 22px; height: 22px; flex: none; color: var(--a-deep); }

/* ── Декор: полароид, скотч, скрепка, звёзды, кольца ──── */
.polaroid {
  --r: 0deg;
  position: relative; margin: 0; background: var(--paper-2);
  padding: 12px 12px 40px; box-shadow: var(--shadow);
  transform: rotate(var(--r)); transition: transform .3s ease;
}
.polaroid img { width: 100%; height: auto; background: var(--a-soft); }
a.polaroid:hover, .polaroid.hoverable:hover { transform: rotate(0deg) scale(1.02); z-index: 3; }
.tape::before {
  content: ""; position: absolute; z-index: 2; top: -14px; left: 50%;
  width: 96px; height: 28px; transform: translateX(-50%) rotate(-4deg);
  background: color-mix(in srgb, var(--a-2) 75%, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0) ,
    repeating-linear-gradient(180deg, #000 0 4px, transparent 4px 5px);
}
.tape.pink::before { background: color-mix(in srgb, var(--a) 55%, transparent); transform: translateX(-50%) rotate(3deg); }
.tape.corner::before { left: auto; right: -26px; top: 8px; transform: rotate(38deg); }
.clip { position: absolute; z-index: 3; top: -22px; left: 22px; width: 22px; height: 58px; color: #9a9294; }
.star { position: absolute; z-index: 4; color: var(--a); pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.08)); }
.star.deep { color: var(--a-deep); }
.star.spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rings {
  position: relative; height: 46px; display: flex; justify-content: space-around; align-items: center;
  padding-inline: 4%;
}
.rings::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(#cfc8c6, #aaa1a3); opacity: .7; }
.rings span {
  position: relative; width: 16px; height: 46px; border-radius: 10px;
  border: 3.5px solid #b9b1b3; border-left-color: #eeeae8; border-top-color: #e3dedc;
  box-shadow: inset -1px 0 0 rgba(0,0,0,.15), 1px 2px 3px rgba(0,0,0,.15);
}
.rings span::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: rgba(30,23,25,.18); }

/* ── Общие заголовки ─────────────────────────────────── */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.h-big {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; margin: 0;
}
.h-big .script { color: var(--a-deep); }
.h-serif { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
.h-serif em { font-style: italic; color: var(--a-deep); }
.note { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--a-deep); display: inline-block; }
.lead { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.65; color: var(--ink); max-width: 58ch; }
.muted { color: var(--muted); }

/* ── HERO: яркий первый экран ───────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s6) 0 var(--s7);
  background: linear-gradient(180deg, color-mix(in srgb, var(--a-soft) 70%, var(--paper)) 0%, var(--paper) 100%);
}
/* мягкие цветные пятна, медленно плавают */
.hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .75; animation: float 18s ease-in-out infinite alternate; }
.hero .b1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: var(--a); top: -14%; right: -8%; }
.hero .b2 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: var(--a-2); bottom: -18%; left: 18%; animation-duration: 22s; }
.hero .b3 { width: 22vw; height: 22vw; max-width: 300px; max-height: 300px; background: color-mix(in srgb, var(--a-deep) 35%, var(--a)); top: 30%; left: -8%; opacity: .35; animation-duration: 26s; }
@keyframes float { to { transform: translate(4vw, 3vh) scale(1.08); } }

.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; min-height: min(78vh, 760px); }
.hero-text { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--paper-2) 70%, transparent); color: var(--ink); }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-deep); box-shadow: 0 0 0 0 var(--a-deep); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-name { position: relative; margin: var(--s3) 0 0; font-size: inherit; font-weight: 400; }
.hero-name .wordmark {
  display: block; color: var(--a-deep); font-size: clamp(92px, 13.5vw, 196px); line-height: .9; margin-left: -.04em;
}
.hero-name .wordmark .ch { display: inline-block; transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .3s; }
.hero-name .wordmark .ch:hover { transform: translateY(-.08em) rotate(-6deg); color: var(--a); }
.hero-name .full {
  display: block; margin-top: var(--s2);
  font-family: var(--f-sans); font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.hero-rot {
  margin: var(--s4) 0 var(--s2); font-family: var(--f-serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15;
}
.hero-rot .word {
  display: inline-block; font-style: italic; color: var(--a-deep);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--a) 60%, transparent) 62%);
  padding: 0 .08em; transition: opacity .35s, transform .35s;
}
.hero-rot .word.out { opacity: 0; transform: translateY(.3em); }
.hero-tagline { max-width: 42ch; margin: 0 0 var(--s4); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* колода полароидов: листается сама, по клику и наклоняется за курсором */
.deck-wrap { position: relative; perspective: 1200px; }
.deck {
  position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5.6; margin-inline: auto;
  transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transform-style: preserve-3d; transition: transform .2s ease-out;
  cursor: pointer;
}
.deck .card {
  position: absolute; inset: 0; margin: 0; padding: 14px 14px 56px; background: var(--paper-2); box-shadow: 0 2px 4px rgba(30,23,25,.08), 0 24px 50px -18px rgba(30,23,25,.45);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s;
  will-change: transform;
}
.deck .card img { width: 100%; height: 100%; object-fit: cover; background: var(--a-soft); pointer-events: none; }
.deck .card .tag {
  position: absolute; left: 18px; bottom: 16px; font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--a-deep);
}
.deck .card .num { position: absolute; right: 18px; bottom: 20px; }
.deck .card[data-pos="0"] { z-index: 5; transform: rotate(-2deg); }
.deck .card[data-pos="1"] { z-index: 4; transform: translate(26px, 14px) rotate(5deg); }
.deck .card[data-pos="2"] { z-index: 3; transform: translate(-24px, 24px) rotate(-8deg); }
.deck .card[data-pos="3"], .deck .card[data-pos="4"], .deck .card[data-pos="5"], .deck .card[data-pos="6"], .deck .card[data-pos="7"] { z-index: 1; transform: translate(0, 30px) rotate(0) scale(.94); opacity: 0; }
.deck .card.fly { z-index: 6; transform: translate(120%, -10%) rotate(18deg); opacity: 0; }
.deck .tape::before { top: -16px; }
.deck-hint { display: flex; justify-content: center; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.deck-hint button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-size: 18px;
  transition: background .2s, color .2s;
}
.deck-hint button:hover { background: var(--ink); color: var(--paper-2); }
.hero .spark { position: absolute; color: var(--a-deep); animation: twinkle 3s ease-in-out infinite; }
.hero .spark svg { width: 100%; height: 100%; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }

@media (max-width: 860px) {
  .hero { padding-top: var(--s4); }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: var(--s5); }
  .deck { width: min(82%, 360px); }
}
@media (prefers-reduced-motion: reduce) { .hero .blob, .hero .spark, .hero-kicker i { animation: none; } }

/* бегущая строка */
.marquee {
  background: var(--a-deep); color: var(--paper-2);
  transform: rotate(-1.2deg); margin: -28px -10px 0; position: relative; z-index: 3; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 40px; padding: 14px 0; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "✶"; font-style: normal; color: var(--a); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* вступление: одна колонка, подпись → заголовок → текст, ровный ритм отступов */
.intro .wrap { max-width: 860px; }
.intro .mono { display: block; margin-bottom: var(--s2); }
.intro .h-serif { max-width: 18ch; }
.intro p { margin: var(--s3) 0 0; }

/* ── Избранное (masonry) ─────────────────────────────── */
.featured-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 54px; }
.masonry { columns: 3 280px; column-gap: 34px; }
.masonry > * { break-inside: avoid; margin-bottom: 42px; display: block; text-decoration: none; }
/* после загрузки фото JS раскладывает их по колонкам без пустот */
.masonry.is-laid { columns: auto; display: flex; gap: 34px; align-items: flex-start; }
.masonry.is-laid > .m-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 42px; }
.masonry.is-laid > .m-col > * { margin: 0; }
.m-fill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 0; padding: 22px; text-align: center; text-decoration: none; color: var(--ink);
  border: 1.5px dashed color-mix(in srgb, var(--a-deep) 35%, transparent); border-radius: 6px;
  background: color-mix(in srgb, var(--a-soft) 55%, transparent);
  transform: rotate(var(--r, 0deg)); transition: background .2s, transform .3s;
}
.m-fill:hover { background: var(--a-soft); transform: rotate(0); }
.m-fill .fill-star { width: 30px; color: var(--a); }
.m-fill .fill-text { font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--a-deep); }
@media (max-height: 1px) { .m-fill { display: none; } }
.polaroid .cat-tag {
  position: absolute; z-index: 3; bottom: 14px; right: 14px; background: var(--a-soft); color: var(--a-deep);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px;
}

/* ── Обо мне (тизер и страница) ───────────────────────── */
.about-card {
  position: relative; background: var(--paper-2); border-radius: 6px; box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
}
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.hi .h-big { font-size: clamp(40px, 6vw, 76px); }
.keys { display: flex; gap: 6px; transform: rotate(-4deg); }
.keys span {
  display: grid; place-items: center; width: clamp(34px, 4.4vw, 50px); aspect-ratio: 1;
  background: #fff; border-radius: 9px; font: 700 clamp(16px, 2vw, 22px)/1 var(--f-sans);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 0 2px 0 #d9d2d0, 0 6px 12px -4px rgba(0,0,0,.25);
  transform: rotate(var(--k, 0deg)) translateY(var(--y, 0));
}
.keys span:nth-child(odd) { background: var(--a-soft); }
.about-text p { margin: 0 0 1em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.facts li {
  font-family: var(--f-sans); font-size: 14px; line-height: 1.4;
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 14px; background: var(--paper);
}
.about-photo { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.about-photo .polaroid { --r: 4deg; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { order: -1; max-width: 300px; } }

/* ── Категории (папки-разделители) ───────────────────── */
.cats-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 60px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.cat {
  position: relative; display: block; text-decoration: none;
  background: var(--paper-2); border-radius: 0 10px 10px 10px; padding: 14px 14px 22px;
  box-shadow: var(--shadow); transition: transform .3s;
}
.cat:nth-child(1) { transform: rotate(-2deg); }
.cat:nth-child(2) { transform: rotate(1.5deg) translateY(40px); }
.cat:nth-child(3) { transform: rotate(-1deg) translateY(-10px); }
.cat:nth-child(4) { transform: rotate(2.5deg) translateY(30px); }
.cat:hover { transform: rotate(0) translateY(-6px); }
.cat .tab {
  position: absolute; top: -30px; left: 0; height: 30px; padding: 6px 16px 0;
  background: var(--paper-2); border-radius: 10px 10px 0 0;
  font-family: var(--f-sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.cat:nth-child(even) .tab { background: var(--a-soft); left: 30%; }
.cat .cover { aspect-ratio: 4/5; overflow: hidden; background: var(--a-soft); }
.cat .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat:hover .cover img { transform: scale(1.05); }
.cat h3 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 18px 0 4px; }
.cat .hand { color: var(--a-deep); font-size: 18px; }
.cat .more { display: block; margin-top: 12px; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(2, 1fr); row-gap: 70px; } .cat:nth-child(n) { transform: rotate(0); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } .cats-head { grid-template-columns: 1fr; } }

/* ── Как проходит съёмка ─────────────────────────────── */
.process { background: var(--a-soft); padding-block: 0 clamp(64px, 8vw, 110px); }
.process .rings { transform: translateY(-23px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.step { position: relative; }
.step .n { font-family: var(--f-sans); font-size: 13px; display: flex; align-items: center; }
.step .n b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); font-weight: 600; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--a-deep) 25%, transparent); }
/* пунктир от номера до следующего номера со стрелкой на конце */
.step .n .link { position: relative; flex: 1; height: 0; margin: 0 -24px 0 10px; border-top: 1.5px dashed color-mix(in srgb, var(--a-deep) 55%, transparent); }
.step .n .link::after { content: ""; position: absolute; right: 0; top: -5.5px; width: 9px; height: 9px; border-top: 1.5px solid var(--a-deep); border-right: 1.5px solid var(--a-deep); transform: rotate(45deg); }
.step h3 { font-family: var(--f-serif); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 14px 0 8px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step .n .link { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── Контакты: объявление с отрывными листочками ─────── */
.contact .wrap { display: grid; place-items: center; }
.flyer {
  position: relative; width: min(100%, 680px); background: var(--a);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px) 0; transform: rotate(-1.5deg);
  box-shadow: 0 2px 3px rgba(0,0,0,.08), 0 24px 40px -18px rgba(30,23,25,.4);
}
.flyer .pin { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 15%, #c9c1c3 40%, #7d7476); box-shadow: 0 3px 4px rgba(0,0,0,.3); }
.flyer h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 10px 0 16px; letter-spacing: -.015em; color: var(--ink); }
.flyer p { max-width: 46ch; margin: 0 0 26px; }
.flyer .btn { background: var(--ink); box-shadow: 3px 3px 0 var(--paper-2); }
.tabs { display: flex; margin: 40px calc(-1 * clamp(24px, 5vw, 56px)) 0; border-top: 2px dashed rgba(30,23,25,.35); }
.tabs a {
  flex: 1; min-width: 0; height: 150px; display: flex; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(30,23,25,.25); text-decoration: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: var(--a); cursor: pointer; transition: background .2s;
}
.tabs a:last-child { border-left: 0; }
.tabs a:hover, .tabs a:focus-visible { background: var(--a-soft); outline: none; }
@media (max-width: 520px) { .tabs a { height: 136px; font-size: 13px; } }

/* ── Подвал ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; }
.site-footer .wordmark { font-size: 34px; color: var(--a-deep); }
.site-footer nav { font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Страница категории ──────────────────────────────── */
.page-head { padding: 50px 0 40px; position: relative; overflow: hidden; }
.crumbs { color: var(--muted); }
.crumbs a { text-decoration: none; }
.page-title { position: relative; margin: 26px 0 10px; }
.page-title h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(48px, 8.5vw, 116px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.page-title .script { display: block; margin: 10px 0 0 clamp(0px, 6vw, 120px); color: var(--a-deep); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; }
.page-desc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 44px; align-items: end; }
.cat-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cat-switch a { text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 7px 15px; font-family: var(--f-sans); font-size: 13px; font-weight: 500; }
.cat-switch a[aria-current="page"], .cat-switch a:hover { background: var(--a); border-color: var(--a); }
@media (max-width: 760px) { .page-desc { grid-template-columns: 1fr; } .cat-switch { justify-content: flex-start; } }
.gallery { padding-bottom: 60px; }
.gallery .polaroid { cursor: zoom-in; border: 0; width: 100%; text-align: left; }
.empty { text-align: center; padding: 60px 0; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(247, 241, 232, .96); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; background: var(--paper-2); padding: 14px 14px 10px; box-shadow: var(--shadow); max-height: 100%; display: flex; flex-direction: column; }
.lightbox img { max-height: calc(100vh - 190px); max-width: min(1100px, calc(100vw - 140px)); width: auto; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-serif); font-style: italic; font-size: 20px; padding-top: 6px; min-height: 30px; }
.lb-btn { position: absolute; background: var(--paper-2); border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--a-soft); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
@media (max-width: 600px) { .lightbox { padding: 70px 10px; } .lightbox img { max-width: calc(100vw - 48px); } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ── Палитры (демо-страница) ─────────────────────────── */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; margin-top: 40px; }
.swatch { background: var(--paper-2); padding: 12px 12px 18px; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .25s; }
.swatch:nth-child(odd) { transform: rotate(-1.5deg); } .swatch:nth-child(even) { transform: rotate(1.5deg); }
.swatch:hover { transform: rotate(0) translateY(-6px); }
.swatch .chip { height: 170px; background: var(--a); position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.swatch .chip .wordmark { font-size: 64px; color: var(--paper-2); }
.swatch .row { display: flex; height: 34px; }
.swatch .row i { flex: 1; }
.swatch h3 { font-family: var(--f-serif); font-weight: 400; font-size: 24px; margin: 14px 0 2px; }

/* загрузка */
[data-loading] { opacity: 0; }
.fade-in { animation: fade .7s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Логотип-микс: каллиграфическая «V» + смелый курсив Playfair ── */
.wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wm-v {
  font-family: "Monsieur La Doulaise", "Playfair Display", cursive; font-style: normal; font-weight: 400;
  font-size: 1.9em; line-height: .5; color: var(--a);
  margin-right: -.26em; position: relative; z-index: 0; transform: translateY(.06em) rotate(-4deg);
  text-shadow: .02em .02em 0 color-mix(in srgb, var(--a-deep) 25%, transparent);
}
.wm-rest { position: relative; z-index: 1; font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--a-deep); letter-spacing: -.035em; }
.hero-name .wordmark { padding-left: .12em; }
.hero-name .wm-v { font-size: 2em; }
.logo .wordmark { font-size: 26px; }
.logo .wm-v { font-size: 2.1em; margin-right: -.3em; }
.site-footer .wm-v { margin-right: -.3em; }
.swatch .chip .wm-rest { color: var(--paper-2); }
.swatch .chip .wm-v { color: var(--a-deep); }.hero-name { margin-top: clamp(40px, 6vw, 72px); }
.hero-name .full { margin-top: clamp(20px, 2.4vw, 32px); }.hero-name .wm-v { transform: translateY(-.04em) rotate(-4deg); }
.hero-name .full { margin-top: clamp(40px, 4.6vw, 64px); }.hero-name .full { margin-top: clamp(14px, 1.6vw, 22px); padding-left: var(--rest-x, 0px); }
/* ── Палитры: «эспрессо» по умолчанию (слоновая кость, шоколад, терракота) ── */
:root, [data-palette="espresso"] {
  --paper: #F5EFE6; --paper-2: #FCF9F4; --ink: #1F1714; --muted: #6E625B; --line: rgba(31,23,20,.14);
  --a: #C0714F; --a-soft: #EADCC9; --a-deep: #4A2A1F; --a-2: #D8C2A3;
}
[data-palette="olive"] { --paper: #F3F0E6; --a: #8C8A4E; --a-soft: #E3E0CC; --a-deep: #3E2E22; --a-2: #CFC6A8; }
[data-palette="powder"] { --paper: #F7F1E8; --a: #F2A7BF; --a-soft: #FADDE6; --a-deep: #7A1E3A; --a-2: #EFE2D2; }
::selection { background: var(--a); color: var(--paper-2); }
.hero .b1 { opacity: .45; }
.hero .b3 { opacity: .25; }

/* ── Серия-коллаж: огромная каллиграфия поверх разбросанных кадров ── */
.spotlight { overflow: hidden; }
.sp-meta { display: flex; justify-content: space-between; gap: var(--s2); color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.sp-stage { position: relative; height: clamp(520px, 62vw, 820px); margin-top: var(--s4); }
.sp-ph { position: absolute; margin: 0; background: var(--paper-2); padding: 8px; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sp-ph img { width: 100%; height: 100%; object-fit: cover; }
.sp-ph:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 6; }
.sp-ph1 { width: 26%; aspect-ratio: 4/5; left: 2%; top: 6%; transform: rotate(-3deg); }
.sp-ph2 { width: 22%; aspect-ratio: 4/5; left: 30%; top: 34%; transform: rotate(2deg); z-index: 2; }
.sp-ph3 { width: 24%; aspect-ratio: 4/5; right: 22%; top: 2%; transform: rotate(-1.5deg); }
.sp-ph4 { width: 20%; aspect-ratio: 4/5; right: 2%; top: 38%; transform: rotate(3deg); z-index: 2; }
.sp-title { position: absolute; inset: 0; margin: 0; z-index: 4; pointer-events: none; font-weight: 400; color: var(--a-deep); mix-blend-mode: multiply; }
.sp-title span { position: absolute; font-family: "Monsieur La Doulaise", "Playfair Display", cursive; line-height: .8; white-space: nowrap; }
.sp-a { font-size: clamp(120px, 20vw, 290px); left: 14%; top: 4%; }
.sp-b { font-size: clamp(120px, 20vw, 290px); right: 6%; bottom: 0; }
.sp-cross { position: absolute; width: 22px; height: 22px; z-index: 5; }
.sp-cross::before, .sp-cross::after { content: ""; position: absolute; background: var(--ink); }
.sp-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; } .sp-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.sp-cross.c1 { left: 0; top: 50%; } .sp-cross.c2 { right: 0; top: 0; } .sp-cross.c3 { left: 56%; bottom: 4%; }
.sp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s4); }
.sp-foot p { margin: 0; max-width: 52ch; color: var(--muted); }
@media (max-width: 760px) {
  .sp-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: 70px 0 60px; }
  .sp-ph { position: relative; inset: auto; width: auto !important; }
  .sp-a { left: 0; top: 0; font-size: 96px; } .sp-b { right: 0; bottom: 0; font-size: 96px; }
}

/* ── Сотрудничество ── */
.clients .wrap { max-width: 980px; }
.clients .mono { display: block; margin-bottom: var(--s2); }
.cl-list { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.cl-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line); transition: padding .3s, color .3s; }
.cl-list li:hover { padding-left: var(--s2); color: var(--a-deep); }
.cl-name { font-family: var(--f-serif); font-size: clamp(32px, 4.6vw, 60px); line-height: 1; letter-spacing: -.02em; }
.cl-list li:nth-child(even) .cl-name { font-style: italic; }
.cl-note { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .cl-list li { grid-template-columns: 1fr; gap: 6px; } }
/* ════════════════════════════════════════════════════════════
   РЕДАКЦИОННЫЙ СЛОЙ (по референсам): каллиграфия + антиква + моно.
   Тихая палитра: слоновая кость, чернила, один глубокий акцент.
   Без градиентов, цветных пятен и «детских» заливок.
   ════════════════════════════════════════════════════════════ */
:root, [data-palette] {
  --paper: #F2EEE7; --paper-2: #FBF9F5; --ink: #171412; --muted: #7B746C; --line: rgba(23,20,18,.16);
  --a: #8A5A44; --a-soft: #E6DDD0; --a-deep: #3B2219; --a-2: #DCD2C3;
  --f-script: "Monsieur La Doulaise", cursive;
  --f-serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --f-sans: "EB Garamond", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(23,20,18,.06), 0 14px 30px -18px rgba(23,20,18,.35);
}
[data-palette="olive"] { --a: #6F6A3E; --a-deep: #2F2A1C; }
body { background-image: none; font: 400 19px/1.6 var(--f-serif); letter-spacing: .005em; }
::selection { background: var(--ink); color: var(--paper); }
.mono, .nav a, .btn, .cat .tab, .cat-switch a, .facts li, .step .n, .write-menu a span.mono, .cl-note, .crumbs, .hero-name .full {
  font-family: var(--f-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
.mono { font-size: 11px; }
.muted { color: var(--muted); }

/* шапка */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); }
.site-header .wrap { min-height: 72px; }
.nav a { font-size: 11px; padding: 6px 10px; border-radius: 0; }
.nav a:hover, .nav a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 6px; }
.logo svg { display: none; }

/* кнопки: тонкие, без цветных теней */
.btn { background: var(--ink); color: var(--paper-2); box-shadow: none; border-radius: 999px; padding: 14px 26px; font-size: 11px; letter-spacing: .14em; }
.btn:hover { transform: none; box-shadow: none; background: var(--a-deep); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn.small { padding: 10px 18px; }

/* логотип */
.wordmark { color: var(--ink); }
.wm-v { color: var(--ink); text-shadow: none; }
.wm-rest { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ink); letter-spacing: -.02em; }
.logo .wordmark { font-size: 28px; }

/* ── HERO ── */
.hero { background: none; padding: var(--s4) 0 var(--s6); text-align: center; isolation: auto; }
.hero .blob, .hero .spark { display: none; }
.hero .wrap { display: block; min-height: 0; }
.hero-meta { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.hero-meta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.hero-meta .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); animation: pulse 2s infinite; }
.hero-name { margin: clamp(28px, 4vw, 56px) 0 0; display: flex; justify-content: center; }
.hero-name .wordmark { padding: 0; font-size: clamp(84px, 12.5vw, 190px); line-height: 1; }
.hero-name .wm-v { font-size: 2.05em; line-height: .4; margin-right: -.22em; transform: translateY(.08em); }
.hero-name .wordmark .ch:hover { color: var(--a); }
.hero-sub { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--s3); margin: var(--s3) 0 var(--s4); }
.hs-left { text-align: left; font-style: italic; font-size: 20px; }
.hs-mid { font-size: clamp(22px, 2.4vw, 30px); }
.hs-mid .word { font-style: italic; color: var(--a); transition: opacity .35s, transform .35s; display: inline-block; }
.hs-mid .word.out { opacity: 0; transform: translateY(.3em); }
.hs-right { text-align: right; color: var(--muted); }

/* лента кадров */
.strip { position: relative; }
.strip-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-item { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; text-decoration: none; text-align: left; }
.strip-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: filter .5s; filter: saturate(.9); }
.strip-item:hover img { filter: saturate(1.05); }
.strip-item span { display: block; margin-top: 10px; color: var(--muted); }
.strip-btn { position: absolute; top: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper-2); cursor: pointer; font-size: 18px; transition: background .2s, color .2s; }
.strip-btn:hover { background: var(--ink); color: var(--paper-2); }
.strip-btn.prev { left: -24px; } .strip-btn.next { right: -24px; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); text-align: left; }
.hero-foot .hero-tagline { margin: 0; max-width: 46ch; font-size: 19px; color: var(--ink); }
@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; gap: 6px; } .hs-left, .hs-right { text-align: center; }
  .strip-item { flex-basis: 72%; }
  .strip-btn { display: none; }
}

/* бегущая строка: тонкая, чернилами */
.marquee { background: none; color: var(--ink); border-block: 1px solid var(--ink); transform: none; margin: 0; }
.marquee-track span { font-family: var(--f-serif); font-style: italic; }
.marquee-track span::after { content: "·"; color: var(--muted); }

/* заголовки */
.h-big, .h-serif, .flyer h2, .page-title h1, .cat h3, .step h3, .cl-name { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.015em; }
.h-big .script, .h-serif em, .italic-accent { font-style: italic; color: var(--a-deep); }
.note { font-family: var(--f-serif); font-style: italic; color: var(--muted); }
.lead { font-size: clamp(19px, 1.6vw, 21px); }

/* полароиды тише */
.polaroid { padding: 10px 10px 34px; }
.tape::before, .tape.pink::before { background: color-mix(in srgb, var(--a-2) 70%, transparent); }
.clip, .star { display: none; }
.polaroid .cat-tag { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); font-family: var(--f-mono); }
.m-fill { border-color: var(--line); background: none; }
.m-fill .fill-text { color: var(--ink); font-family: var(--f-serif); }

/* блоки, которые были розовыми */
.process { background: var(--paper-2); border-block: 1px solid var(--line); }
.process .rings { display: none; }
.step .n b { background: none; box-shadow: 0 0 0 1px var(--ink); }
.step .n .link { border-top-color: var(--muted); }
.step .n .link::after { border-color: var(--muted); }
.flyer { background: var(--paper-2); transform: none; border: 1px solid var(--ink); box-shadow: none; }
.flyer .pin { display: none; }
.flyer .btn { background: var(--ink); box-shadow: none; }
.tabs { border-top-color: var(--line); }
.tabs a { background: var(--paper-2); border-left-color: var(--line); }
.tabs a:hover { background: var(--ink); color: var(--paper-2); }
.about-card { box-shadow: none; border: 1px solid var(--line); background: var(--paper-2); }
.keys span, .keys span:nth-child(odd) { background: var(--paper-2); box-shadow: 0 0 0 1px var(--ink); font-family: var(--f-mono); font-weight: 400; }
.cat { box-shadow: none; border: 1px solid var(--line); }
.cat .tab, .cat:nth-child(even) .tab { background: var(--paper-2); border: 1px solid var(--line); border-bottom: 0; }
.cat .hand { color: var(--muted); font-family: var(--f-serif); font-style: italic; }
.cat-switch a[aria-current="page"], .cat-switch a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.page-title .script { color: var(--muted); font-family: var(--f-serif); font-style: italic; }
.write-menu { transform: none; border: 1px solid var(--line); box-shadow: var(--shadow); }
.write-menu a:hover { background: var(--a-soft); }
.write-menu .ico { color: var(--ink); }

/* серия-коллаж: тонкая чёрная каллиграфия, как в «Out of Office» */
.sp-title { color: var(--ink); mix-blend-mode: normal; }
.sp-ph { padding: 0; box-shadow: none; }
/* «Vikkie» и под ним «фотограф» */
.hero-role { margin: clamp(10px, 1.4vw, 18px) 0 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--ink); }
.hero-shoot { margin: var(--s3) 0 var(--s5); font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.hero-shoot .word { font-style: italic; color: var(--a); display: inline-block; transition: opacity .35s, transform .35s; }
.hero-shoot .word.out { opacity: 0; transform: translateY(.3em); }
.hero-name { margin-top: clamp(40px, 5vw, 72px); }
.strip-item img { object-position: 62% 62%; }
