/* Catalogue page: dark gallery of salon demos. */
:root {
  --bg: #0f0e11;
  --surface: #17151a;
  --surface-2: #211e25;
  --ink: #f3f0f6;
  --muted: #a29cab;
  --line: #2c2932;
  --accent: #f0b8a8;
  --accent-ink: #1c1215;
  --display: Unbounded, 'Arial Black', sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.i { width: 18px; height: 18px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- N-Enterprise bar: visible link to the studio's main site ---------- */
.studio-bar { background: var(--surface); color: var(--muted); font: 500 12.5px/1.25 var(--body); border-bottom: 1px solid var(--line); }
.studio-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 34px; padding-block: 3px; }
.studio-bar__link { display: inline-flex; align-items: center; min-height: 28px; color: var(--accent); font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.studio-bar__link::after { content: "\2197"; margin-left: 5px; font-weight: 500; opacity: .8; }
.studio-bar__link:hover, .studio-bar__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.studio-bar__note { opacity: 1; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 20px; text-decoration: none; display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.brand span { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }
.top__in nav { display: flex; gap: 22px; }
.top__in nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.top__in nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .brand span { display: none; } }

/* intro */
.intro { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.intro h1 { font-size: clamp(34px, 5.4vw, 64px); max-width: 16em; }
.intro__lead { font-size: 18px; color: var(--muted); max-width: 40em; }
.intro__facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.intro__facts li { display: flex; flex-direction: column; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 150px; }
.intro__facts b { font-family: var(--display); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.intro__facts span { font-size: 13px; color: var(--muted); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.intro .nx-hero-note { margin-top: -8px; }
@media (max-width: 560px) { .intro__actions .btn { flex: 1 1 100%; } }

/* filters */
.filters { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 28px; }
.filter { display: flex; gap: 16px; align-items: baseline; }
.filter__label { width: 64px; flex: none; font-size: 14px; color: var(--muted); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s;
}
.chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 60%, transparent); }
@media (max-width: 640px) {
  .filter { flex-direction: column; gap: 8px; }
  .filter__chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
}
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 16px; }
.card__shot {
  position: relative; display: block;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.card__desk { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.card__shot:hover .card__desk { transform: scale(1.03); }
.card__mob {
  position: absolute; right: 14px; bottom: 14px;
  width: 28%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border-radius: 14px; border: 3px solid #0b0a0c;
  box-shadow: 0 18px 36px -12px rgb(0 0 0 / .7);
}
.card__open {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgb(15 14 17 / .82); color: #fff;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__open .i { width: 14px; height: 14px; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__title h2 { font-size: 19px; }
.tag { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.card__meta { font-size: 13px; color: var(--muted); }
.card__pitch { font-size: 15px; color: color-mix(in srgb, var(--ink) 82%, transparent); }

/* blocks */
.block { padding-block: 96px 0; display: flex; flex-direction: column; gap: 14px; }
.block > h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature { background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); margin-bottom: 6px; }
.feature h3 { font-size: 17px; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); color: var(--accent); font-size: 14px; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.plan--featured { border-color: var(--accent); }
.plan__badge { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan__price { font-family: var(--display); font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan__days { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan ul li { display: flex; gap: 10px; font-size: 14.5px; }
.plan li .i { color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }
.plans__note { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.cta { margin-block: 110px 0; padding: 56px 40px; border-radius: 24px; background: linear-gradient(135deg, #2a1d22, #17151a 70%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta h2 { font-size: clamp(28px, 3.8vw, 44px); }
.cta p { color: var(--muted); max-width: 40em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 560px) { .cta { padding: 36px 22px; } .cta__actions .btn { flex: 1 1 100%; } }

.foot { margin-top: 80px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 440px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 560px) {
  .intro { padding-block: 40px 28px; }
  .intro__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .intro__facts li { min-width: 0; padding: 10px 12px; }
  .intro__facts b { font-size: 15px; white-space: nowrap; }
  .intro__facts span { font-size: 12px; }
}

/* monthly maintenance + bot tiers */
.block__lead { color: var(--muted); max-width: 44em; margin-top: -8px; margin-bottom: 8px; }
.maint__group { font-size: 18px; margin: 18px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.maint__group span { font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__per { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__lead { font-size: 14.5px; color: color-mix(in srgb, var(--ink) 85%, transparent); margin: 2px 0 10px; }
.maint__terms { list-style: none; margin: 18px 0 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.maint__terms li { display: flex; gap: 10px; font-size: 14.5px; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.maint__terms .i { color: var(--accent); margin-top: 3px; width: 16px; height: 16px; flex: none; }

/* ---------- packages (Phase 5) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans--4 { grid-template-columns: 1fr; } }
.plan__examples { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.plan__examples a { color: var(--ink); text-underline-offset: 3px; }
.plan__examples a:hover { color: var(--accent); }

.card__pkg {
  position: absolute; left: 12px; top: 12px;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgb(15 14 17 / .82); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / .18);
}
.card__pkg--premium, .card__pkg--premium-mini { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card__price { font-size: 13px; color: var(--muted); }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { text-align: left; font-weight: 400; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.compare thead th { font-family: var(--display); font-weight: 500; font-size: 15px; vertical-align: bottom; }
.compare thead th small { display: block; font-family: var(--body); font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.compare .yes { display: inline-grid; place-items: center; color: var(--accent); }
.compare .yes .i { width: 18px; height: 18px; }
.compare .no { color: var(--muted); opacity: .6; }
.compare tbody th:first-child, .compare thead th:first-child { position: sticky; left: 0; background: var(--surface); min-width: 200px; }

/* enterprise-style tier: no public price */
.plan__custom { font-size: 24px; letter-spacing: -0.01em; }
.plan__how-title { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.plan__how { list-style: decimal; margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: color-mix(in srgb, var(--ink) 85%, transparent); }
.plan__cta { margin-top: 16px; align-self: flex-start; }
.plan__how li::marker { color: var(--accent); font-weight: 700; }
.plan__from { font-family: var(--body); font-size: 0.5em; font-weight: 400; color: var(--muted); margin-right: 0.1em; }

/* ---------- price terms: second price line, 3-up terms block, payment split ---------- */
.plan__extra { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: -2px; }
.plan__extra span { font-weight: 400; color: var(--muted); }
.plan__extra + .plan__days { margin-top: 4px; }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .features--3 { grid-template-columns: 1fr; } }
.paysplit { display: flex; gap: 4px; margin-top: auto; padding-top: 14px; max-width: 360px; }
.paysplit span { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.paysplit__a { flex: 5 1 0; background: var(--accent); color: var(--accent-ink); }
.paysplit__b { flex: 3 1 0; background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); color: var(--accent-ink); }
.paysplit__c { flex: 2 1 0; background: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); color: var(--ink); }
.nw { white-space: nowrap; }
/* ---------- terms v3: payment options A/B, prepay gift note, prepay line in plan cards ---------- */
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features--4 { grid-template-columns: 1fr; } }
.feature--accent { position: relative; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.feature__badge { position: absolute; top: 36px; right: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.maint__terms--gift { margin-top: 16px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.maint__terms--gift li { font-size: 16px; color: var(--ink); }
.maint__terms--gift .i { width: 20px; height: 20px; margin-top: 2px; }
.plan__prepay { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.plan__prepay .i { color: var(--accent); width: 16px; height: 16px; margin-top: 1px; }

/* the section links hide below 900 px; the niche bar below the header stays on every width */
@media (max-width: 900px) { .top__in nav { display: none; } }

/* --- «Хочу такой» на карточках, переключатель направлений (ночь 2026-10-17) --- */
.niches { border-bottom: 1px solid var(--line); background: var(--bg); }
.niches__in { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
.niche { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.niche:hover { color: var(--ink); border-color: var(--ink); }
.niche.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.niche--all { margin-right: 6px; }
@media (max-width: 560px) { .niches__in { gap: 6px; } .niche { padding: 0 12px; font-size: 13.5px; } .niche--all { margin-right: 0; } }
.card__want { margin-top: 10px; }
.foot__in p a { color: inherit; text-underline-offset: 3px; }
