/* ═══════════════════════════════════════════════
   BARBERSHIP — main.css
   ink · gold · cream — морской премиум
   ═══════════════════════════════════════════════ */

:root {
  --ink: #06090f;
  --ink-2: #0a0f18;
  --ink-3: #101725;
  --gold: #c9a45c;
  --gold-bright: #e8cb8a;
  --gold-dim: rgba(201, 164, 92, .35);
  --cream: #ece3d0;
  --cream-2: #e2d7c0;
  --text: #eae4d6;
  --text-dim: rgba(234, 228, 214, .55);
  --ink-text: #131009;
  --ink-text-dim: rgba(19, 16, 9, .6);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

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

/* ── grain ─────────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ── preloader ─────────────────────────── */
.preloader {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.pre-anchor {
  width: 56px; height: 56px;
  color: var(--gold);
}
.pre-anchor-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.pre-count {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pre-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--text-dim);
}

/* ── cursor ────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 150; }
  .cursor-dot, .cursor-ring {
    position: absolute; top: 0; left: 0;
    border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--gold-bright);
    margin: -3px 0 0 -3px;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--gold-dim);
    margin: -18px 0 0 -18px;
    transition: width .3s var(--ease-out), height .3s var(--ease-out),
                margin .3s var(--ease-out), border-color .3s, background .3s;
  }
  .cursor.is-hover .cursor-ring {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-color: var(--gold);
    background: rgba(201, 164, 92, .08);
  }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ── header ────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  opacity: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.brand-anchor { width: 26px; height: 26px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--text);
}
.header-right { display: flex; align-items: center; gap: 18px; }
.lang {
  display: flex;
  border: 1px solid rgba(234, 228, 214, .18);
  border-radius: 99px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-dim);
  transition: color .25s, background .25s;
}
.lang-btn.is-active { color: var(--ink); background: var(--gold); }

/* ── buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 8px 30px rgba(201, 164, 92, .3); }
.btn-ink { background: var(--ink-text); color: var(--cream); }
.btn-ink:hover { box-shadow: 0 10px 34px rgba(19, 16, 9, .35); }

/* ── hero ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-sea {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 42%, transparent 30%, rgba(6, 9, 15, .72) 100%),
    linear-gradient(to bottom, rgba(6, 9, 15, .5) 0%, transparent 24%, transparent 50%, rgba(6, 9, 15, .82) 80%, var(--ink) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad);
  width: 100%;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(14px, 2.4vh, 26px);
  opacity: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9.6vw, 164px);
  line-height: .95;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--text);
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero-title .hchar {
  display: inline-block;
  transform: translateY(115%);
  background: linear-gradient(180deg, #f4ecd8 20%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: transform;
}
.hero-tag {
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0;
}
.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px var(--pad);
  opacity: 0;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
.hero-coords {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-dim);
}

/* ── manifest ──────────────────────────── */
.manifest {
  position: relative;
  background: var(--ink);
}
.manifest::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42vh;
  background: radial-gradient(ellipse 64% 100% at 50% 0%, rgba(201, 164, 92, .055), transparent 70%);
  pointer-events: none;
}
.manifest-ghost {
  position: absolute; inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ghost-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(140px, 19vw, 330px);
  line-height: 1;
  white-space: nowrap;
  color: rgba(201, 164, 92, .04);
  -webkit-text-stroke: 1px rgba(201, 164, 92, .15);
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.manifest-pin {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vh, 16px);
  padding: 0 var(--pad);
}
.manifest-line {
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 108px);
  line-height: 1.08;
  text-align: center;
  color: var(--text);
}
.manifest-line span {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}
.manifest-line.is-gold { color: var(--gold); }

/* ── chapters (общее) ──────────────────── */
.chapter {
  position: relative;
  padding: clamp(90px, 14vh, 170px) var(--pad);
}
.chapter-head { max-width: 900px; margin-bottom: clamp(44px, 7vh, 80px); }
.chapter-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.chapter-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  color: var(--gold);
}
.chapter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chapter-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 92px);
  line-height: 1.04;
  color: var(--text);
}
.chapter-title .st-line { display: block; overflow: hidden; }
.chapter-title .st-inner { display: inline-block; transform: translateY(112%); will-change: transform; }
.chapter-sub {
  margin-top: 18px;
  max-width: 520px;
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--text-dim);
}

/* ── sense steps ───────────────────────── */
.sense-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(234, 228, 214, .1);
  border: 1px solid rgba(234, 228, 214, .1);
}
.sense-step {
  background: var(--ink);
  padding: clamp(24px, 3vw, 42px);
  transition: background .4s;
}
.sense-step:hover { background: var(--ink-2); }
.sense-step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 34px;
}
.sense-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.sense-step-sub { font-size: 14px; color: var(--text-dim); }

/* ── gallery (horizontal) ──────────────── */
.gallery { padding: 0; background: linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 12%, var(--ink-2) 88%, var(--ink) 100%); }
.gallery-pin {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
}
.gallery-head {
  margin: 0;
  padding: clamp(70px, 9vh, 110px) var(--pad) 26px;
}
.g-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--pad);
  will-change: transform;
  width: max-content;
  align-self: center;
}
.g-panel {
  position: relative;
  width: clamp(300px, 62vw, 880px);
  flex-shrink: 0;
}
.g-frame {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  max-height: min(54vh, calc(100vh - 400px));
}
.g-img {
  width: 112%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.06);
}
.g-cap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  margin-top: 18px;
  align-items: baseline;
}
.g-cap-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  color: var(--gold);
}
.g-cap-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
}
.g-cap-sub {
  margin-top: 6px;
  max-width: 460px;
  font-size: 14px;
  color: var(--text-dim);
}
.g-progress {
  margin: 0 var(--pad) clamp(18px, 3vh, 28px);
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(234, 228, 214, .08);
}
body.is-static .g-progress { display: none; }
.g-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── prices ────────────────────────────── */
.prices { background: var(--ink); }
.price-list { border-top: 1px solid rgba(234, 228, 214, .14); }
.price-row {
  border-bottom: 1px solid rgba(234, 228, 214, .14);
}
.price-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3.4vh, 34px) 0;
  text-align: left;
  transition: padding-left .4s var(--ease-out);
}
.price-row:hover .price-head, .price-row.is-open .price-head { padding-left: 14px; }
.price-name-wrap { display: flex; flex-direction: column; gap: 5px; }
.price-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--text);
  transition: color .3s;
}
.price-row:hover .price-name { color: var(--gold-bright); }
.price-teaser { font-size: 14px; color: var(--text-dim); }
.price-value {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 42px);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-detail {
  height: 0;
  overflow: hidden;
}
.price-detail-inner {
  padding: 0 0 30px 14px;
  max-width: 560px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.price-expand {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── crew ──────────────────────────────── */
.crew { background: linear-gradient(to bottom, var(--ink) 0%, var(--ink-2) 16%); }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
}
.crew-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  transform-style: preserve-3d;
  will-change: transform;
}
.crew-card-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.crew-card-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.crew-card:hover .crew-card-frame img { transform: scale(1.05); }
.crew-card-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 15, .85) 0%, transparent 45%);
}
.crew-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
}
.crew-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.2;
}
.crew-card-role {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
}
.crew-card-note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.crew-card.is-join {
  border: 1px dashed var(--gold-dim);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.crew-join-inner { padding: 34px; text-align: center; }
.crew-join-anchor {
  width: 40px; height: 40px;
  margin: 0 auto 20px;
  color: var(--gold);
  opacity: .8;
}
.crew-join-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 26px);
}
.crew-join-role {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
}
.crew-join-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── booking ───────────────────────────── */
.booking {
  position: relative;
  z-index: 2;
  background: var(--cream);
  color: var(--ink-text);
  border-radius: clamp(26px, 4.5vw, 60px) clamp(26px, 4.5vw, 60px) 0 0;
  padding: clamp(100px, 16vh, 190px) var(--pad);
  text-align: center;
}
.booking-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4em;
  text-indent: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.booking-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 88px);
  line-height: 1.06;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink-text);
}
.booking-title .st-line { display: block; overflow: hidden; }
.booking-title .st-inner { display: inline-block; transform: translateY(112%); will-change: transform; }
.booking-actions {
  margin-top: clamp(34px, 5vh, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.booking-cta { padding: 17px 38px; font-size: 14px; }
.booking-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 22px);
  color: var(--ink-text);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.booking-phone:hover { border-color: var(--ink-text); }
.booking-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-text-dim);
}

/* ── footer ────────────────────────────── */
.footer {
  position: relative;
  background: var(--ink);
  padding: clamp(60px, 9vh, 110px) var(--pad) 26px;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
  margin-bottom: clamp(50px, 9vh, 110px);
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-link {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .25s;
  width: fit-content;
}
.footer-link:hover { color: var(--gold-bright); }
.footer-text { font-size: 14.5px; color: var(--text-dim); }
.footer-giant {
  overflow: hidden;
  text-align: center;
  user-select: none;
}
.footer-giant span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.4vw;
  line-height: .9;
  letter-spacing: .01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 92, .4);
  transform: translateY(30%);
  will-change: transform;
  transition: color .6s;
}
.footer-giant:hover span { color: rgba(201, 164, 92, .12); }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 228, 214, .1);
  font-size: 12px;
  color: var(--text-dim);
}

/* ── responsive ────────────────────────── */
@media (max-width: 900px) {
  .sense-steps { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: 1fr; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header { padding: 14px 18px; }
  .brand-word { display: none; }
  .header-right { gap: 10px; }
  .header-cta { padding: 10px 18px; font-size: 12px; }
  .hero-title { font-size: clamp(30px, 9.2vw, 60px); }
  .hero-coords { display: none; }
  .sense-steps { grid-template-columns: 1fr; }
  .g-panel { width: 82vw; }
  .price-detail-inner { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-giant span { font-size: 12.8vw; }
}

/* ── reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero-scroll-line { animation: none; }
  .hero-title .hchar,
  .manifest-line span,
  .chapter-title .st-inner,
  .booking-title .st-inner { transform: none !important; }
  .hero-kicker, .hero-tag, .hero-bottom, .header { opacity: 1 !important; }
}

/* ── header states ─────────────────────── */
.header {
  transition: transform .5s var(--ease-out), background .4s,
              padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(6, 9, 15, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: rgba(234, 228, 214, .07);
}
.header.is-hidden { transform: translateY(-110%); }

/* ── booking overlap ───────────────────── */
.booking { margin-top: -40px; }

/* ── static gallery (mobile / reduced) ─── */
body.is-static .gallery-pin {
  height: auto;
  padding-bottom: clamp(60px, 10vh, 110px);
}
body.is-static .g-track {
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}
body.is-static .g-panel { width: 100%; }
body.is-static .g-img { width: 100%; transform: none; }
