/* R1 Barbershop — тёмная «люкс»-тема: латунь, бордо, зерно плёнки. */
:root {
  --bg: #0f0e0d; --surface: #191715; --surface-2: #221f1c; --line: rgb(239 230 216 / 12%);
  --text: #efe6d8; --muted: #a59a8a; --brass: #c8a46a; --brass-hi: #e6c88f; --oxblood: #9b2c2c;
  --serif: "Playfair Display", Georgia, serif; --body: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bk-bg: #171513; --bk-surface: #211e1b; --bk-text: var(--text); --bk-muted: var(--muted); --bk-accent: var(--brass);
  --bk-on-accent: #17120a; --bk-font: var(--body); --bk-display: var(--serif); --bk-radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; }

.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1px solid var(--brass); border-radius: 2px;
  background: var(--brass); color: #17120a; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { background: var(--brass-hi); transform: translateY(-2px); box-shadow: 0 10px 30px rgb(200 164 106 / 25%); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: rgb(239 230 216 / 6%); border-color: var(--brass); box-shadow: none; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; }
.link { padding: 0; border: 0; background: none; color: var(--brass); font-weight: 700; cursor: pointer; }
.link:hover { color: var(--brass-hi); }

/* ---------- Шапка ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgb(15 14 13 / 80%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; font: 900 26px/1 var(--serif); }
.logo__one { color: var(--brass); font-style: italic; }
.logo small { margin-left: 8px; font: 700 10px/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: none; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav__links { display: flex; } .nav .btn { margin-left: 0; } }

/* ---------- Первый экран ---------- */
.eyebrow { margin: 0 0 14px; color: var(--brass); font: 700 12px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; }
.hero { position: relative; display: grid; gap: 36px; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px) 56px; overflow: hidden; isolation: isolate; }
.hero__light { position: absolute; z-index: -1; width: 640px; height: 640px; left: var(--mx, 30%); top: var(--my, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(200 164 106 / 18%), transparent 62%); transition: left 0.6s var(--ease), top 0.6s var(--ease); pointer-events: none; }
.hero__title { font: 900 clamp(44px, 10.5vw, 108px)/0.95 var(--serif); letter-spacing: -0.02em; }
.hero__title em { color: var(--brass); font-style: italic; font-weight: 700; }
.hero__lead { max-width: 520px; margin: 24px 0 30px; color: var(--muted); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__text > * { animation: rise 0.9s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: 0.08s; } .hero__text > :nth-child(3) { animation-delay: 0.16s; } .hero__text > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* Табло свободных окон — механические «перелистывающиеся» буквы */
.board { align-self: end; width: 100%; max-width: 420px; padding: 18px; background: #0a0908; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 30px 60px rgb(0 0 0 / 50%); animation: rise 1s 0.3s var(--ease) both; }
.board__head { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font: 700 11px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; }
.board__live { display: flex; align-items: center; gap: 6px; color: #7fd18b; }
.board__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.board__rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.board__row { display: flex; gap: 14px; align-items: center; font: 700 15px/1 var(--mono); }
.flap { display: inline-flex; gap: 2px; }
.flap span { position: relative; display: inline-grid; place-items: center; width: 1.25em; height: 1.7em; background: linear-gradient(#1f1c19 50%, #181614 50%);
  border-radius: 2px; color: var(--brass-hi); text-transform: uppercase; }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.flap span.is-flipping { animation: flip 0.08s linear; }
@keyframes flip { 50% { transform: scaleY(0.2); filter: brightness(1.6); } }
.board__row .flap:last-child span { color: var(--text); }
.board__cta { width: 100%; margin-top: 14px; padding: 12px; border: 1px dashed rgb(200 164 106 / 45%); border-radius: 3px; background: none; color: var(--brass); font-weight: 700; cursor: pointer; transition: background 0.2s; }
.board__cta:hover { background: rgb(200 164 106 / 8%); }

/* Вращающийся барбер-столб */
.pole { position: absolute; right: clamp(10px, 4vw, 60px); top: 50%; display: none; flex-direction: column; align-items: center; transform: translateY(-50%); }
.pole__cap { width: 44px; height: 22px; border-radius: 22px 22px 4px 4px; background: linear-gradient(90deg, #6f5a3a, var(--brass-hi), #6f5a3a); }
.pole__cap:last-child { border-radius: 4px 4px 22px 22px; }
.pole__glass { position: relative; width: 34px; height: 300px; overflow: hidden; border-radius: 3px; box-shadow: inset 8px 0 14px rgb(0 0 0 / 45%), inset -6px 0 12px rgb(255 255 255 / 25%); }
.pole__stripes { position: absolute; inset: -60px 0 0; background: repeating-linear-gradient(-45deg, var(--oxblood) 0 14px, #f3ece0 14px 28px, #213a6b 28px 42px, #f3ece0 42px 56px);
  animation: pole 2.2s linear infinite; }
@keyframes pole { to { transform: translateY(79px); } }
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.4fr 1fr; align-items: end; padding-right: 140px; min-height: calc(100dvh - 65px); }
  .pole { display: flex; }
}

/* ---------- Бегущая строка ---------- */
.ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--surface); }
.ticker__row { display: flex; gap: 28px; width: max-content; animation: ticker 32s linear infinite; font: 700 italic 22px/1 var(--serif); white-space: nowrap; }
.ticker__row span:nth-child(even) { color: var(--brass); font-style: normal; font-size: 14px; align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.section__head { margin-bottom: 40px; }
.section__title { font: 900 clamp(34px, 6vw, 64px)/1 var(--serif); letter-spacing: -0.01em; }

/* Прайс в духе старого меню: имя ..... цена */
.menu { display: grid; gap: 0 56px; }
@media (min-width: 860px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu__col { margin: 0; padding: 0; list-style: none; }
.menu__col button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); text-align: left; cursor: pointer; transition: padding 0.3s var(--ease); }
.menu__col button:hover { padding-left: 10px; }
.menu__col button:hover b { color: var(--brass-hi); }
.menu__name { font: 700 20px/1.25 var(--serif); }
.menu__name small { display: block; margin-top: 4px; color: var(--muted); font: 400 13px/1.4 var(--body); }
.menu__col i { flex: 1; min-width: 20px; border-bottom: 2px dotted rgb(239 230 216 / 22%); transform: translateY(-6px); }
.menu__col b { color: var(--brass); font: 700 17px/1 var(--mono); white-space: nowrap; transition: color 0.2s; }
.menu__note { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* ---------- Подбор стрижки ---------- */
.finder { display: grid; gap: 40px; }
@media (min-width: 900px) { .finder { grid-template-columns: 1fr 1.15fr; align-items: start; } .finder__intro { position: sticky; top: 100px; } }
.finder__intro p:last-child { color: var(--muted); max-width: 440px; margin-top: 18px; }
.finder__card { position: relative; padding: clamp(18px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.finder__card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgb(200 164 106 / 18%); border-radius: 3px; pointer-events: none; }
.q { margin: 0 0 22px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q legend { width: 100%; margin-bottom: 10px; font-weight: 700; }
.q legend span { margin-right: 6px; color: var(--brass); font: 700 12px/1 var(--mono); }
.q label { position: relative; }
.q input { position: absolute; opacity: 0; }
.q label > span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s; font-size: 14px; font-weight: 500; }
.q svg { width: 16px; height: 21px; fill: none; stroke: currentColor; stroke-width: 3; }
.q label:hover > span { border-color: rgb(200 164 106 / 55%); }
.q input:checked + span { background: var(--brass); border-color: var(--brass); color: #17120a; font-weight: 700; }
.q input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.finder__hint { margin: 0; color: var(--muted); font-size: 14px; }
.finder__hint span { color: var(--brass); font-family: var(--mono); }
.result { padding-top: 22px; border-top: 1px dashed var(--line); animation: rise 0.6s var(--ease); }
.result__label { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.result__title { margin: 6px 0 8px; color: var(--brass-hi); font: 900 italic clamp(28px, 4.5vw, 40px)/1.05 var(--serif); }
.result__why { margin: 0 0 18px; color: var(--muted); }

/* ---------- Мастера ---------- */
.team { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 0 clamp(16px, 4vw, 48px) 8px; scrollbar-width: none; }
.barber { flex: 0 0 min(82%, 340px); scroll-snap-align: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  transition: transform 0.35s var(--ease), border-color 0.35s; }
.barber:hover { transform: translateY(-6px); border-color: rgb(200 164 106 / 45%); }
.barber__mono { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 20px; border-radius: 3px;
  background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 45% 30%), #121110 70%); font: 900 italic 96px/1 var(--serif); color: rgb(239 230 216 / 85%); }
.barber h3 { font: 700 26px/1.1 var(--serif); }
.barber__role { margin: 4px 0 10px; color: var(--brass); font-size: 13px; font-weight: 700; }
.barber p:not(.barber__role) { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .team { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* ---------- Ритуал ---------- */
.ritual__steps { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; counter-reset: s; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .ritual__steps { grid-template-columns: repeat(4, 1fr); } }
.ritual__steps li { counter-increment: s; padding: 26px 22px; background: var(--bg); }
.ritual__steps li::before { content: "0" counter(s); display: block; margin-bottom: 26px; color: var(--brass); font: 700 13px/1 var(--mono); }
.ritual__steps b { display: block; margin-bottom: 6px; font: 700 20px/1.2 var(--serif); }
.ritual__steps span { color: var(--muted); font-size: 15px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 16px; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews blockquote { margin: 0; padding: 26px; border-left: 2px solid var(--brass); background: linear-gradient(90deg, rgb(200 164 106 / 7%), transparent); }
.reviews p { margin: 0 0 14px; font: 700 italic 19px/1.4 var(--serif); }
.reviews cite { color: var(--muted); font-style: normal; font-size: 14px; }

/* ---------- Контакты и неоновая вывеска ---------- */
.contacts { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .contacts { grid-template-columns: 1.2fr 1fr; } }
.contacts__line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0; color: var(--muted); }
.contacts__line b { min-width: 80px; color: var(--text); }
.contacts .btn { margin-top: 18px; }
.sign { display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center; border-radius: 50%; border: 1px solid var(--line);
  background: radial-gradient(circle, #1b1513, #0f0e0d 70%); }
.sign span { font: 900 italic 120px/1 var(--serif); color: #ffd9e0; text-shadow: 0 0 6px #ff4d6d, 0 0 20px #ff4d6d, 0 0 50px #c9184a; animation: neon 5s infinite; }
.sign small { margin-top: -60px; font: 700 18px/1 var(--mono); letter-spacing: 0.4em; color: #c8ffe0; text-shadow: 0 0 8px #2ee59d, 0 0 22px #2ee59d; text-transform: uppercase; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.35; } }

.footer { padding: 26px 22px 100px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.fab { position: fixed; z-index: 9; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 54px; border: 0; border-radius: 2px;
  background: var(--brass); color: #17120a; font: 800 16px/1 var(--body); cursor: pointer; box-shadow: 0 14px 34px rgb(0 0 0 / 55%); transition: transform 0.4s var(--ease); }
@media (min-width: 860px) { .fab { display: none; } .footer { padding-bottom: 26px; } }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
