/* Пробор — стандарт категории: тёмный барбершоп, латунь, фото мастера. Шрифт — Montserrat (подобран скиллом по макету). */
:root {
  --ground: #0b0b0a;
  --ground-2: #121310;
  --card: #0f1412;
  --ink: #f6f2eb;
  --ink-2: #bfb4a5;
  --ink-3: #a39b8e;
  --brass: #b8955a;
  --brass-hi: #d7b77e;
  --brass-lo: #a8834e;
  --line: rgba(246, 242, 235, .14);
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: #111; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--brass); color: #111; }
.skip:focus { left: 8px; }
svg { flex: none; }

/* ——— Первый экран: доли кадра 2736 × 1536 (утверждённый макет) ——— */
.hero { container-type: inline-size; background: var(--ground); }
.stage { --u: calc(100cqw / 2736); position: relative; aspect-ratio: 2736 / 1536; overflow: hidden; }
.stage > * { position: absolute; margin: 0; }

picture { display: contents; }
.hero-photo { position: absolute; left: 31.1%; top: .85%; width: 68.86%; height: 67.38%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to top, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to top, transparent 0%, #000 16%); mask-composite: intersect; }

.logo { left: 2.78%; top: 1.76%; width: 10.53%; height: 5.14%; display: flex; flex-direction: column; justify-content: center; gap: calc(10 * var(--u)); }
.logo-word { font: 400 calc(44 * var(--u))/.8 'Russo One', var(--sans); text-transform: uppercase; letter-spacing: .32em; margin-right: -.32em; color: #ece6dc; }
.logo-sub { font: 500 calc(13 * var(--u))/1 var(--sans); text-transform: uppercase; letter-spacing: .26em; white-space: nowrap; color: var(--ink-2); }

.nav { left: 20.54%; top: 2.73%; width: 28.33%; height: 2.73%; display: flex; justify-content: space-between; align-items: center; }
.nav a { font: 500 calc(28 * var(--u))/1 var(--sans); color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--brass-hi); }
.address { left: 74.31%; top: 2.73%; height: 2.73%; display: flex; align-items: center; gap: calc(12 * var(--u)); font: 500 calc(30 * var(--u))/1 var(--sans); color: var(--ink); white-space: nowrap; }
.address svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); color: var(--brass); }
.hours { left: 85.82%; top: 2.73%; height: 2.73%; display: flex; align-items: center; font: 400 calc(29 * var(--u))/1 var(--sans); color: var(--ink); white-space: nowrap; }

.headline { left: 2.89%; top: 20.25%; width: 42%; font: 700 calc(91 * var(--u))/1.13 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.subline { left: 2.89%; top: 42.71%; height: 3.13%; display: flex; align-items: center; font: 400 calc(38 * var(--u))/1 var(--sans); color: var(--ink-2); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(22 * var(--u)); border-radius: calc(6 * var(--u)); font: 600 calc(30 * var(--u))/1 var(--sans); transition: transform .2s, background .2s, border-color .2s; }
.btn svg { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
.btn--brass { color: #110d07; background: linear-gradient(100deg, var(--brass-lo) 0%, var(--brass-hi) 48%, var(--brass) 100%);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0,0,0,.45), inset 0 1px 0 rgba(255,240,210,.35); }
.btn--brass:hover { filter: brightness(1.06); }
.btn--ghost { color: var(--ink); border: calc(2 * var(--u)) solid rgba(215,183,126,.55); background: rgba(9,10,9,.35); }
.btn--ghost:hover { border-color: var(--brass-hi); }
.cta-book { left: 3%; top: 49.48%; width: 18.06%; height: 7.88%; justify-content: space-between; padding: 0 calc(66 * var(--u)) 0 calc(74 * var(--u)); }
.cta-telegram { left: 22.33%; top: 49.48%; width: 19.3%; height: 7.88%; }

.side-list { padding-left: calc(28 * var(--u)) !important; border-left: calc(2 * var(--u)) solid rgba(246,242,235,.22); left: 90.4%; top: 12.63%; width: 6.36%; list-style: none; padding: 0; display: grid; gap: calc(22 * var(--u)); font: 400 calc(26 * var(--u))/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.side-list::after { content: ''; width: calc(56 * var(--u)); height: calc(2 * var(--u)); background: var(--ink-3); margin-top: calc(6 * var(--u)); }

/* карточки услуг: часть первого экрана */
.cards { left: 3.03%; top: 67.25%; width: 93.94%; height: 25.78%; list-style: none; padding: 0; }
.card { position: absolute; top: 0; width: 24.004%; height: 100%; overflow: hidden; border-radius: calc(12 * var(--u));
  background: var(--card); border: calc(2 * var(--u)) solid rgba(246,242,235,.12); }
.card--haircut { left: 0; }
.card--beard { left: 25.37%; }
.card--shave { left: 50.71%; }
.card--father-son { left: 75.99%; }
.card > * { position: absolute; margin: 0; }
.card img { position: absolute; right: 0; top: 0; width: 55.6%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
.card--beard img { width: 49%; }
.card--shave img { width: 51%; }
.card--father-son img { width: 53%; }
.card-title { left: 7.45%; top: 14.6%; font: 600 calc(33 * var(--u))/1.15 var(--sans); color: var(--ink); }
.card-title::after { content: ''; display: block; width: calc(70 * var(--u)); height: calc(2 * var(--u)); margin-top: calc(26 * var(--u)); background: var(--brass); opacity: .7; }
.card-desc { left: 7.45%; top: 41.4%; width: 44%; font: 400 calc(21 * var(--u))/1.55 var(--sans); color: rgba(241,239,234,.86); }
.card-price { left: 7.45%; top: 73.6%; font: 500 calc(37 * var(--u))/1 var(--sans); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.card-arrow { left: 82%; top: 71.5%; width: calc(85 * var(--u)); height: calc(85 * var(--u)); display: grid; place-items: center; border-radius: 50%;
  border: calc(3 * var(--u)) solid var(--brass); color: var(--ink); background: rgba(8,8,7,.82); transition: background .2s, color .2s; }
.card-arrow svg { width: 44%; height: 44%; stroke-width: 2; }
.card-arrow:hover { background: var(--brass); color: #17130d; }
.card--beard .card-desc { width: 38%; }
.card--father-son .card-desc { width: 31%; }

/* ——— Ниже первого экрана: аккуратный стандарт ——— */
main { padding: 0 clamp(16px, 2.9vw, 52px) clamp(64px, 7vw, 120px); max-width: 1500px; margin: 0 auto; }
.sec { padding-top: clamp(72px, 8vw, 132px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 6%; align-items: end; margin-bottom: clamp(28px, 3.2vw, 52px); }
.sec-head h2, .club h2 { margin: 0; font: 700 clamp(34px, 3.6vw, 56px)/1.08 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.sec-head p { margin: 0; max-width: 46ch; font: 400 clamp(16px, 1.15vw, 18px)/1.6 var(--sans); color: var(--ink-2); }


.price-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 6%; }
.price-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pl-name { font: 500 18px/1.3 var(--sans); }
.pl-time { font: 400 14px/1 var(--sans); color: var(--ink-3); }
.price-list b { font: 600 18px/1 var(--sans); color: var(--brass-hi); font-variant-numeric: tabular-nums; min-width: 6.2em; text-align: right; white-space: nowrap; }

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team li { display: grid; gap: 6px; padding: 24px 0 0; border-top: 1px solid var(--brass); }
.team a { margin-top: 10px; font: 500 15px/1 var(--sans); color: var(--brass-hi); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(215,183,126,.4); }
.team a:hover { color: var(--ink); }
.team b { font: 600 22px/1.2 var(--sans); }
.team span { font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.team small { font: 400 13px/1.5 var(--sans); color: var(--ink-3); }

.menus { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.menus h3 { margin: 0 0 8px; font: 600 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--brass-hi); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 17px/1.3 var(--sans); }
.menu-list li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(246,242,235,.18); }
.menu-list b { order: 2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.club { display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 3.4vw, 56px); border-radius: 16px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(184,149,90,.22), transparent 55%), var(--card); border: 1px solid rgba(184,149,90,.35); }
.club p { margin: 14px 0 0; max-width: 52ch; color: var(--ink-2); }
.club-price { margin: 0; display: grid; gap: 4px; text-align: right; }
.club-price b { font: 700 clamp(36px, 3.4vw, 52px)/1 var(--sans); color: var(--brass-hi); letter-spacing: -.02em; white-space: nowrap; }
.club-price span { font: 400 14px/1 var(--sans); color: var(--ink-3); }
.club-cta { padding: 20px 34px; font-size: 17px; gap: 14px; }

.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: clamp(24px, 3vw, 48px); border-radius: 16px; background: var(--card); border: 1px solid rgba(246,242,235,.1); }
.form label { display: grid; gap: 8px; font: 500 14px/1 var(--sans); color: var(--ink-2); }
.form select, .form input { width: 100%; height: 56px; padding: 0 18px; border-radius: 8px; border: 1px solid rgba(246,242,235,.18); background: #0b0d0c; color: var(--ink); font: 400 16px/1 var(--sans); transition: border-color .2s; }
.form select { appearance: none; padding-right: 44px; background: #0b0d0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d7b77e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center / 12px auto; }
.form select:hover, .form input:hover { border-color: rgba(215,183,126,.6); }
.form input::placeholder { color: var(--ink-3); }
.form .btn { align-self: end; height: 56px; border: 0; cursor: pointer; font-size: 17px; }
.form-alt { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-2); }
.form-alt a, .contacts a { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(215,183,126,.4); }
.form-done { grid-column: 1 / -1; margin: 0; padding: 16px 20px; border-radius: 8px; background: rgba(184,149,90,.14); border: 1px solid rgba(184,149,90,.4); }
.form-done[hidden] { display: none; }

.contacts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contacts div { padding-top: 20px; border-top: 1px solid var(--line); }
.contacts dt { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); }
.contacts dd { margin: 12px 0 0; font: 500 17px/1.5 var(--sans); }

.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 36px clamp(16px, 2.9vw, 52px); border-top: 1px solid var(--line); font: 400 14px/1.5 var(--sans); color: var(--ink-3); }
.foot-logo { font: 400 20px/1 'Russo One', var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--ink); }
.foot-credit { margin-left: auto; }

input, select { caret-color: var(--brass-hi); }
.rhythm { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6%; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; }
.rhythm-day { margin: 0; font: 400 clamp(20px, 1.7vw, 28px)/1.55 var(--sans); color: var(--ink-2); max-width: 40ch; }
.rhythm-day span { color: var(--ink); font-weight: 600; }
.gift { padding: 28px; border-radius: 14px; border: 1px solid rgba(184,149,90,.4); background: radial-gradient(140% 120% at 0% 0%, rgba(184,149,90,.16), transparent 60%), var(--card); }
.gift h3 { margin: 0 0 10px; font: 600 22px/1.2 var(--sans); }
.gift p { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.gift-cta { display: inline-block; margin-top: 18px; font: 600 15px/1 var(--sans); color: var(--brass-hi); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(215,183,126,.45); }
.sticky { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 32px; padding: 12px clamp(16px, 2.9vw, 52px);
  background: rgba(11,11,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease-drawer), visibility 0s .4s; }
.sticky.is-on { transform: none; visibility: visible; transition: transform .4s var(--ease-drawer); }
.sticky-logo { font: 400 18px/1 'Russo One', var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.sticky-nav { display: flex; gap: 24px; font: 500 15px/1 var(--sans); color: var(--ink-2); }
.sticky-nav a:hover { color: var(--ink); }
.sticky-cta { margin-left: auto; height: 44px; padding: 0 24px; font-size: 15px; }
html { scrollbar-color: #3a3328 var(--ground); }

/* ——— Движение (скиллы Эмиля Ковальски, см. ../docs/анимации.md) ——— */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-card { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.05); } }
/* С1: первый экран читается по порядку — заголовок, адрес, кнопки */
.headline { animation: rise .6s var(--ease-out) .1s backwards; }
.subline { animation: rise .6s var(--ease-out) .17s backwards; }
.cta-book { animation: rise .6s var(--ease-out) .24s backwards; }
.cta-telegram { animation: rise .6s var(--ease-out) .31s backwards; }
/* С2: фото мастера оседает на место */
.hero-photo { animation: settle 1.4s var(--ease-out) backwards; transform-origin: 60% 40%; }
/* С3: карточки услуг — каскадом после первого экрана */
.card { animation: rise-card .5s var(--ease-out) backwards; }
.card--haircut { animation-delay: .4s; } .card--beard { animation-delay: .46s; } .card--shave { animation-delay: .52s; } .card--father-son { animation-delay: .58s; }
/* С5: отклик на нажатие и стрелка, которая подаётся вперёд */
.btn, .form .btn { transition: transform .16s var(--ease-out), filter .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.card-arrow svg { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-arrow svg, .card-arrow:hover svg { transform: translateX(3px); } }
.form-done { transition: opacity .26s var(--ease-out), transform .26s var(--ease-out); }
@starting-style { .form-done { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  @keyframes fade { from { opacity: 0; } }
  .headline, .subline, .cta-book, .cta-telegram, .card, .hero-photo { animation-name: fade; animation-duration: .3s; }
  .card { animation-delay: .1s !important; }
  .btn:active { transform: none; }
  .sticky, .sticky.is-on { transition: visibility 0s, opacity .2s; }
  .sticky { opacity: 0; transform: none; } .sticky.is-on { opacity: 1; }
  @media (hover: hover) and (pointer: fine) { .card:hover .card-arrow svg, .card-arrow:hover svg { transform: none; } }
  @starting-style { .form-done { opacity: 0; transform: none; } }
}

/* ——— Телефон ——— */
@media (max-width: 760px) {
  .hero { container-type: normal; }
  .stage { --u: .5px; aspect-ratio: auto; display: grid; grid-template-columns: 16px 1fr 16px; overflow: visible; padding-bottom: 8px; }
  .stage > * { position: static; inset: auto; grid-column: 2; }
  .hero-photo { position: static; grid-column: 1 / -1; grid-row: 1 / 6; width: 100%; height: 100%; object-position: 62% 30%; opacity: .55;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%); mask-image: linear-gradient(to top, transparent 0%, #000 30%); mask-composite: add; -webkit-mask-composite: source-over; }
  .logo { grid-row: 1; width: auto; height: auto; padding-top: 18px; z-index: 1; }
  .logo-word { font-size: 26px; } .logo-sub { font-size: 11px; letter-spacing: .14em; }
  .nav, .address, .hours, .side-list { display: none; }
  .headline { grid-row: 2; width: auto; margin-top: 150px; font-size: 38px; line-height: 1.12; z-index: 1; }
  .subline { grid-row: 3; height: auto; margin-top: 14px; font-size: 16px; white-space: normal; z-index: 1; }
  .cta-book, .cta-telegram { width: auto; height: 56px; font-size: 17px; z-index: 1; }
  .cta-book { grid-row: 4; margin-top: 26px; padding: 0 22px 0 26px; }
  .cta-telegram { grid-row: 5; margin-top: 12px; }
  .btn svg { width: 20px; height: 20px; }
  .cards { grid-row: 6; position: relative; width: auto; height: auto; display: grid; gap: 12px; margin-top: 40px; }
  .card { position: relative; left: auto !important; width: auto; height: 168px; border-radius: 12px; }
  .card-title { font-size: 19px; top: 18px; left: 18px; }
  .card-title::after { width: 34px; margin-top: 12px; height: 1px; }
  .card-desc { font-size: 13px; top: 70px; left: 18px; width: 48% !important; }
  .card-price { font-size: 20px; top: auto; bottom: 18px; left: 18px; }
  .card-arrow { width: 42px; height: 42px; left: auto; right: 14px; top: auto; bottom: 14px; border-width: 1px; }
  main { padding-left: 16px; padding-right: 16px; }
  .sec-head, .menus, .club, .form { grid-template-columns: 1fr; }
  .rhythm { grid-template-columns: 1fr; gap: 28px; }
  .sticky-nav { gap: 14px; font-size: 13px; }
  .sticky-nav a:nth-child(n+3) { display: none; }
  .sticky-logo { display: none; }
  .sticky { gap: 12px; }
  .nav { display: none; }
  .price-list { columns: 1; }
  .team, .contacts { grid-template-columns: 1fr; }
  .club-price { text-align: left; }
  .foot-credit { margin-left: 0; }
}

@media (max-width: 760px) { .headline br { display: none; } .headline { text-wrap: balance; } }

.hero { overflow-x: clip; }

/* Оболочка стартера (С3): строка реквизитов и документов в подвале — отдельной строкой */
.foot-legal { flex-basis: 100%; margin: 0; }
