:root {
  --milk: #f2ece3;
  --milk-2: #e9e2d6;
  --milk-3: #ddd4c6;
  --graphite: #262628;
  --graphite-2: #313134;
  --graphite-3: #3d3d41;
  --ink: #232325;
  --ink-muted: #6f6a63;
  --light: #f2ece3;
  --light-muted: #a9a39a;
  --line-dark: rgba(35, 35, 37, .14);
  --line-light: rgba(242, 236, 227, .16);
  --photo-bg: #2d2d30;
  --radius: 22px;
  --container: 1200px;
  --font-head: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--graphite); color: var(--milk); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; display: inline-flex; align-items: center; gap: .55em; }
.eyebrow::before, .eyebrow::after { content: "·"; font-size: 1.4em; line-height: 1; }
.nowrap { white-space: nowrap; }
.h2 { font-size: clamp(30px, 4.6vw, 58px); text-transform: uppercase; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; }
.center { text-align: center; margin-top: 48px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--dark { background: var(--graphite); color: var(--milk); }
.btn--dark::after { background: var(--graphite-3); }
.btn--milk { background: var(--milk); color: var(--graphite); }
.btn--milk::after { background: #fff; }
.btn--line { border-color: var(--line-dark); color: var(--ink); }
.btn--line::after { background: var(--milk-3); }
.btn--line-light { border-color: var(--line-light); color: var(--light); }
.btn--line-light::after { background: var(--graphite-3); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--lg { min-height: 62px; padding: 0 40px; font-size: 17px; }

/* Шапка */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.header.is-scrolled { background: rgba(242, 236, 227, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.header__logo img { width: 148px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) { text-decoration: none; font-size: 15px; position: relative; }
.nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__list a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle, .nav__book { display: none; }

/* Первый экран */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 130px 0 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(60% 70% at 78% 45%, #fbf8f3 0%, rgba(251, 248, 243, 0) 70%), var(--milk); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(48px, 8.4vw, 124px); font-weight: 600; text-transform: uppercase; line-height: .95; margin-bottom: 28px; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.outline { color: #b8afa2; }
.hero__lead { font-size: 18px; color: var(--ink-muted); max-width: 470px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__photos { display: grid; height: min(72vh, 660px); max-width: 520px; width: 100%; justify-self: end; }
.hero__card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .9s var(--ease); }
.hero__card:hover img { transform: scale(1.04); }
.hero__card figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 10px 14px; border-radius: 14px;
  background: rgba(242, 236, 227, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink-muted); font-size: 12px; line-height: 1.3; }
.hero__card figcaption span span, .hero__card figcaption > span:not(.hero__who) { display: block; font: 500 15px/1.2 var(--font-head); color: var(--ink); }
.hero__card--main figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; }
.hero__card--main figcaption .btn { flex: none; }
.hero__facts { display: flex; gap: 56px; list-style: none; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero__facts strong { display: block; font: 500 30px/1 var(--font-head); white-space: nowrap; }
.hero__facts span { font-size: 13px; color: var(--ink-muted); }
.hero__scroll { position: absolute; right: 24px; bottom: 34px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 54px; background: var(--line-dark); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* Бегущая строка */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); padding: 22px 0; background: var(--milk); }
.marquee__track { display: flex; gap: 36px; width: max-content; font: 500 clamp(22px, 3vw, 40px)/1 var(--font-head); text-transform: uppercase; white-space: nowrap; will-change: transform; }
.marquee__track span:nth-child(4n+3) { color: #b8afa2; }
.marquee__track i { font-style: normal; color: var(--ink-muted); }

/* Секции */
.section { position: relative; padding: 130px 0; }
.section--dark { background: var(--graphite); color: var(--light); }
.section--dark .eyebrow, .section--dark .muted { color: var(--light-muted); }
.section--milk2 { background: var(--milk-2); }
.section__head { max-width: 760px; margin-bottom: 56px; }
/* «Шторка»: тёмные секции раскрываются при прокрутке */
.curtain { clip-path: inset(0 0 0 0 round 0); }
.js-motion .curtain { clip-path: inset(0 4% 0 4% round 40px); }

/* О клубе */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about__photo { border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); aspect-ratio: 4/5; }
.about__photo img { width: 100%; height: 112%; object-fit: cover; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 34px; }
.perks li { border: 1px solid var(--line-light); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--light-muted); }

/* Прайс */
.price { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); counter-reset: p; }
.price__item { counter-increment: p; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--line-dark); position: relative; transition: padding .4s var(--ease); }
.price__item::before { content: counter(p, decimal-leading-zero); font: 400 13px/1 var(--font-head); color: var(--ink-muted); }
.price__item::after { content: ""; position: absolute; inset: 0; background: var(--graphite); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.price { position: relative; z-index: 0; }
.price__item:hover { color: var(--light); padding-left: 20px; }
.price__item:hover::after { transform: scaleY(1); }
.price__item:hover p, .price__item:hover::before { color: var(--light-muted); }
.price__item h3 { font-size: clamp(18px, 2vw, 24px); text-transform: uppercase; margin-bottom: 6px; }
.price__item p { margin: 0; color: var(--ink-muted); font-size: 15px; transition: color .3s; }
.price__value { font: 500 clamp(18px, 2vw, 24px)/1 var(--font-head); white-space: nowrap; }

/* Мастера */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.master { border-radius: var(--radius); overflow: hidden; background: var(--graphite-2); border: 1px solid var(--line-light); display: flex; flex-direction: column; }
.master__photo { aspect-ratio: 4/5; background: var(--photo-bg); overflow: hidden; }
.master__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .9s var(--ease); }
.master:hover .master__photo img { transform: scale(1.05); }
.master__book { margin: 16px 16px 0; width: auto; }
.master__body { padding: 30px; }
.master__body h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 2px; }
.master blockquote { margin: 18px 0 24px; padding-left: 16px; border-left: 1px solid var(--light-muted); color: var(--light); font-style: italic; }
.master cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--light-muted); }

/* Галерея */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery button { all: unset; display: block; width: 100%; margin-bottom: 16px; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--photo-bg); break-inside: avoid; }
.gallery button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.35); }
.gallery button:hover img { transform: scale(1.05); filter: none; }

/* Запись */
.booking { padding: 140px 0; overflow: hidden; }
.booking__box { max-width: 680px; text-align: center; }
.booking .h2 { font-size: clamp(34px, 5.4vw, 66px); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px auto 36px; display: inline-block; text-align: left; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; padding: 9px 0; font-size: 17px; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); font: 400 14px/1 var(--font-head); }
.booking__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }

/* Отзывы */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.rating__value { font: 500 46px/1 var(--font-head); }
.rating__stars { letter-spacing: 3px; font-size: 18px; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #fbf8f3; border: 1px solid var(--line-dark); border-radius: var(--radius); transition: transform .5s var(--ease), box-shadow .5s; }
.review:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -30px rgba(38,38,40,.35); }
.review__stars { letter-spacing: 2px; font-size: 13px; }
.review blockquote { margin: 0; flex: 1; font-size: 16px; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.review figcaption small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--milk); font: 500 14px/1 var(--font-head); }

/* Вопросы */
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; position: relative; font: 500 18px/1.3 var(--font-head); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--font-head); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-muted); padding-bottom: 20px; margin: 0; }

/* Контакты */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: stretch; }
.contacts address { font-style: normal; }
.contacts dl { margin: 0 0 30px; display: grid; gap: 4px 0; }
.contacts dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--light-muted); margin-top: 20px; }
.contacts dd { margin: 0; font-size: 18px; }
.contacts dd a { text-decoration: none; }
.contacts__book { margin: 0 0 24px; padding-top: 26px; border-top: 1px solid var(--line-light); }
.contacts__book .steps { margin: 0; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light); min-height: 440px; background: var(--graphite-2); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(1) contrast(1.05); }

/* Подвал */
.footer { background: var(--graphite); color: var(--light-muted); border-top: 1px solid var(--line-light); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { width: 140px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; color: var(--light); }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(38,38,40,.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: min(90vw, 900px); width: auto; border-radius: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--milk); font-size: 40px; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn, .gallery img, .master__photo img, .review, .price__item, .price__item::after { transition: none; }
  .hero__scroll span::after { animation: none; }
  .js-motion .curtain { clip-path: none; }
}

/* Адаптив */
@media (max-width: 1024px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 44px; }
}
@media (max-width: 860px) {
  .header__inner { height: 64px; display: grid; grid-template-columns: 44px 1fr 44px; gap: 12px; }
  .header__logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .header__logo img { width: 124px; }
  .nav { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; }
  .header__cta { display: none; }
  .nav__toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: none; border: 1px solid var(--line-dark); border-radius: 12px; cursor: pointer; }
  .nav__toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__list { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: rgba(242,236,227,.98); border-bottom: 1px solid var(--line-dark); transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .nav__list.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav__list li { width: 100%; }
  .nav__list a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); text-align: center; }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__book { display: block; padding-top: 18px; }
  .nav__book .btn { width: 100%; }
  .header.is-hidden { transform: none; }

  /* Первый экран: текст по центру, ниже фото основателя и барберов */
  .hero { min-height: 0; padding: 100px 0 40px; justify-content: flex-start; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__photos { height: auto; aspect-ratio: 4 / 5; max-width: 420px; margin: 40px auto 0; justify-self: center; }
  .hero__card figcaption { left: 8px; right: 8px; bottom: 8px; font-size: 11px; }
  .hero__card figcaption span span { font-size: 13px; }
  .hero__text { text-align: center; }
  .hero__title { font-size: clamp(42px, 13vw, 72px); }
  .hero__lead { margin: 0 auto; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__facts { justify-content: center; gap: 28px; text-align: center; margin-top: 36px; }
  .hero__scroll { display: none; }

  .section { padding: 90px 0; }
  .section__head, .about__text, .master__body, .contacts__info, .footer__inner { text-align: center; }
  .section__head { margin-left: auto; margin-right: auto; }
  .rating { justify-content: center; }
  .about__grid, .contacts { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .perks { justify-content: center; }
  .team { grid-template-columns: 1fr; }
  .master blockquote { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .booking { padding: 100px 0; }
  .contacts dl { justify-items: center; }
  .contacts__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn, .booking__actions .btn, .contacts__actions .btn, .about__text .btn, .center .btn, .master__body .btn { width: 100%; max-width: 360px; }
  .master__book { margin: 14px 14px 0; }
  .footer__inner { flex-direction: column; justify-content: center; }
  .js-motion .curtain { clip-path: inset(0 3% 0 3% round 24px); }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .reviews { grid-template-columns: 1fr; }
  /* Ровная сетка 2×N, чтобы последний ряд не уходил в один столбец */
  .gallery { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery button { margin-bottom: 0; aspect-ratio: 4/5; }
  .gallery img { height: 100%; object-fit: cover; object-position: center top; }
  .footer .nowrap { display: block; margin-top: 4px; }
  .footer__sep { display: none; }
  .hero__facts strong { font-size: 24px; }
  .price__item { grid-template-columns: 34px 1fr; gap: 6px 14px; padding: 22px 4px; }
  .price__value { grid-column: 2; }
}
