/* FS Barbershop · демо. Мир барбершопа: чёрный, белая плитка, хром, красно-синий шест.
   Шкала шрифтов: 13 · 15 · 17 · 22 · заголовок раздела · заголовок страницы. */
:root {
  --ink: #15130f;
  --ink-2: #221f1b;
  --ink-3: #35312c;
  --bone: #efeee9;   /* светлый текст на тёмном */
  --tile: #e4e5e1;   /* холодная плитка: фон блоков */
  --paper: #f5f5f2;
  --white: #ffffff;
  --line: #d4d5d0;   /* только поля ввода */
  --muted: #45474a;
  --muted-dark: #b9b6ae;
  --red: #c8262c;
  --red-dark: #a51d22;
  --blue: #1d3f8f;
  --gold: #e0a43a;
  --chrome: #c9c4ba;
  --radius: 14px;
  --radius-lg: 22px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: max(16px, calc((100vw - 1200px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--body); }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; }
.muted { color: var(--muted); margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-red:disabled { background: #b9bbb6; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--ink-3); color: var(--bone); }
.btn-ghost:hover { background: #4a453f; }
.btn-ghost-dark { background: var(--tile); color: var(--ink); }
.btn-ghost-dark:hover { background: #d6d7d2; }

/* ---------- полоса демо ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 16px; text-align: center;
}
.lang-switch { display: inline-flex; background: rgba(21, 19, 15, .12); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: var(--ink); color: var(--bone);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bone); color: var(--ink); font: 800 15px/1 var(--display); letter-spacing: -0.04em;
  border: 3px solid var(--red);
}
.brand-mark.sm { width: 36px; height: 36px; font-size: 13px; }
.brand-name { font: 700 15px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* ---------- первый экран ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 32px;
  padding: 72px var(--gutter) 88px; background: var(--ink); color: var(--bone);
  position: relative; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  opacity: .3; filter: grayscale(.6) contrast(1.1); pointer-events: none;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero::before { /* затемнение под текстом (scrim над фото) taste-skill-ignore */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 35%, rgba(21, 19, 15, .5) 75%, rgba(21, 19, 15, .3));
}
.hero-band { position: absolute; left: 0; bottom: 0; width: 100%; height: 10px; }
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(40px, 7.6vw, 112px); font-weight: 800; }
.lead { font-size: 22px; line-height: 1.4; color: var(--bone); max-width: 30ch; margin: 36px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 34px 0 0; font-size: 15px; color: var(--muted-dark); }
.rating { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.rating:hover { color: var(--bone); }
.rating-num { font: 700 22px/1 var(--display); color: var(--bone); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5fbf6a; }
.dot.closed { background: var(--muted-dark); }

.hero-art { position: relative; height: 480px; display: grid; place-items: center; }
.pole { display: flex; flex-direction: column; align-items: center; height: 100%; }
.pole-cap { width: 112px; height: 30px; border-radius: 16px; background: var(--chrome); }
.pole-glass { flex: 1; width: 86px; margin: -4px 0; border-radius: 6px; overflow: hidden; position: relative; background: var(--bone); }
.pole-glass svg { position: absolute; left: 0; top: -120px; width: 100%; height: calc(100% + 120px); animation: pole 3.4s linear infinite; }
@keyframes pole { to { transform: translateY(118.55px); } }
.price-tag {
  position: absolute; right: -8px; bottom: 12%; transform: rotate(-6deg);
  background: var(--bone); color: var(--ink); border-radius: var(--radius); padding: 14px 18px 12px; display: grid;
}
.price-tag-label { font-size: 13px; color: var(--muted); }
.price-tag-num { font: 800 40px/1.05 var(--display); letter-spacing: -0.03em; }
.price-tag-cur { font-size: 13px; font-weight: 600; }

/* ---------- секции ---------- */
.services, .book, .reviews, .contacts { padding: 140px var(--gutter); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 680px; }
.section-head .muted { font-size: 17px; }

/* прайс-доска: строки разделены тоном, без линий */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board button {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 6px 28px;
  padding: 22px 24px; background: var(--white); border: 0; border-radius: var(--radius); text-align: left; cursor: pointer;
  transition: background-color .2s, transform .16s var(--ease);
}
.board button:hover { background: var(--tile); }
.board button:active { transform: scale(.99); }
.board .b-name { font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; }
.board .b-note { grid-column: 1; font-size: 15px; color: var(--muted); }
.board .b-min { font-size: 15px; color: var(--muted); white-space: nowrap; }
.board .b-price { font: 700 22px/1 var(--display); white-space: nowrap; }
.board .b-price small { font: 500 15px var(--body); color: var(--muted); }
.board .b-go { grid-column: 2 / 4; grid-row: 2; justify-self: end; font-size: 15px; font-weight: 600; color: var(--red); opacity: 0; transition: opacity .2s; }
.board button:hover .b-go, .board button:focus-visible .b-go { opacity: 1; }

/* галерея */
.gallery { padding: 0 var(--gutter) 140px; }
.mosaic {
  display: grid; gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px;
  grid-template-areas: "fade comb work" "fade comb tools";
}
.ph { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bone); font-size: 15px; font-weight: 600;
}
.ph-fade { grid-area: fade; } .ph-comb { grid-area: comb; } .ph-work { grid-area: work; } .ph-tools { grid-area: tools; }
.ph-fade img { object-position: 40% 45%; }
.ph-tools img { object-position: 50% 30%; }

/* ---------- запись ---------- */
.book { background: var(--tile); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.steps { display: grid; gap: 14px; }
.step { margin: 0; border: 0; background: var(--paper); border-radius: var(--radius-lg); padding: 24px 24px 26px; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 18px; font: 700 22px var(--display); letter-spacing: -0.01em; }
.step legend + * { clear: both; }
.n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bone); font: 700 15px var(--display); }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.chip {
  display: grid; align-content: start; gap: 2px; text-align: left; padding: 15px 16px; border-radius: var(--radius); border: 0; min-width: 0;
  background: var(--white); cursor: pointer; transition: background-color .18s, color .18s, transform .16s var(--ease);
}
.chip:hover { background: #ebece8; }
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.chip-title { font-weight: 600; }
.chips.chips-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip-sub { font-size: 15px; color: var(--muted); }
.chip[aria-pressed="true"] .chip-sub { color: var(--muted-dark); }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day {
  display: grid; place-items: center; gap: 2px; padding: 12px 0; border-radius: var(--radius); border: 0;
  background: var(--white); cursor: pointer; transition: background-color .18s, color .18s, transform .16s var(--ease);
}
.day:hover { background: #ebece8; }
.day:active { transform: scale(.96); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.day-w { font-size: 13px; color: var(--muted); }
.day[aria-pressed="true"] .day-w { color: var(--muted-dark); }
.day-d { font: 700 22px/1 var(--display); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; min-height: 48px; }
.time {
  height: 46px; border-radius: 10px; border: 0; background: var(--white); font-weight: 600;
  cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .18s, color .18s, transform .16s var(--ease);
}
.time:hover:not(:disabled) { background: #ebece8; }
.time:active:not(:disabled) { transform: scale(.95); }
.time[aria-pressed="true"] { background: var(--red); color: var(--white); }
.time:disabled { color: #8d8f8b; background: transparent; cursor: not-allowed; text-decoration: line-through; }
.skeleton { height: 46px; border-radius: 10px; background: var(--white); animation: sk 1.1s ease-in-out infinite alternate; }
@keyframes sk { from { opacity: .45; } to { opacity: 1; } }
.hint { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font: 500 17px var(--body); color: var(--ink); transition: border-color .18s;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; } /* taste-skill-ignore: скрытое поле-ловушка для ботов */

.summary { position: sticky; top: 92px; }
.summary-card, .done { background: var(--ink); color: var(--bone); border-radius: var(--radius-lg); padding: 28px; }
.summary-title { margin: 0 0 20px; font: 700 22px var(--display); }
.summary-list { margin: 0; display: grid; gap: 14px; }
.summary-list div { display: grid; gap: 2px; }
.summary-list dt { font-size: 13px; color: var(--muted-dark); }
.summary-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary-total { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; margin: 22px 0 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink-2); }
.summary-total strong { font: 800 22px var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.error { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(200, 38, 44, .22); color: #ffdede; font-size: 15px; }
.fine { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted-dark); }
.done { text-align: center; animation: pop .4s var(--ease); }
.done:focus { outline: none; }
.done-icon { width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: #5fbf6a; color: var(--ink); }
.done-title { margin: 0; font: 700 22px var(--display); }
.done-when { margin: 6px 0 14px; font-weight: 600; color: var(--gold); }
.done .muted { color: var(--muted-dark); margin-bottom: 20px; }
.done .btn-ghost-dark { background: var(--ink-3); color: var(--bone); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--tile); display: grid; gap: 22px; align-content: space-between; }
.quote:first-child { background: var(--ink); color: var(--bone); }
.quote p { margin: 0; font: 600 22px/1.35 var(--body); }
.quote p::before { content: '«'; } .quote p::after { content: '»'; }
.quote footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--muted); }
.quote footer span:last-child { white-space: nowrap; }
.quote:first-child footer { color: var(--muted-dark); }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; background: var(--ink); color: var(--bone); }
.info { margin: 36px 0; display: grid; gap: 20px; }
.info div { display: grid; gap: 4px; }
.info dt { font-size: 13px; color: var(--muted-dark); }
.info dd { margin: 0; font-size: 22px; font-weight: 600; }
.route { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts .btn-ghost-dark { background: var(--ink-3); color: var(--bone); }
.contacts .btn-ghost-dark:hover { background: #4a453f; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) contrast(1.05); }

.foot { display: flex; align-items: center; gap: 14px; padding: 28px var(--gutter) 36px; background: var(--ink-2); color: var(--muted-dark); font-size: 13px; }
.foot p { margin: 0; }
.credits { margin-top: 6px !important; }
.credits a { color: inherit; }

/* ---------- появление при прокрутке (только если сработал скрипт) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 0; }
  .hero::before { /* scrim, taste-skill-ignore */ background: linear-gradient(180deg, rgba(21, 19, 15, .6), var(--ink) 75%); }
  .hero-art { position: absolute; right: -14px; top: 28px; height: 250px; opacity: .9; z-index: 0; }
  .hero-art .pole-cap { width: 64px; height: 18px; }
  .hero-art .pole-glass { width: 48px; }
  .price-tag { display: none; }
  .hero-copy { z-index: 1; }
  .lead { font-size: 18px; margin: 22px 0 28px; max-width: 24ch; }
  .book-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .quotes { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .services, .book, .reviews, .contacts { padding-top: 88px; padding-bottom: 88px; }
  .gallery { padding-bottom: 88px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; grid-template-areas: "fade fade" "comb work" "comb tools"; }
}
@media (max-width: 560px) {
  .top { gap: 12px; }
  .brand-name { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .step { padding: 20px 16px 22px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chips-services { grid-template-columns: 1fr; }
  .days { gap: 4px; }
  .fields { grid-template-columns: 1fr; }
  /* телефон: название и описание во всю ширину, внизу строка «время · цена» */
  .board button { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; }
  .board .b-name { font-size: 17px; grid-column: 1 / -1; grid-row: 1; }
  .board .b-note { grid-column: 1 / -1; grid-row: 2; }
  .board .b-min { grid-column: 1; grid-row: 3; align-self: baseline; }
  .board .b-price { font-size: 17px; grid-column: 2; grid-row: 3; justify-self: end; }
  .board .b-go { display: none; }
  .quote p { font-size: 17px; }
  .ph figcaption { font-size: 13px; padding: 6px 12px; }
}

@media (max-width: 400px) {
  .chips { grid-template-columns: 1fr; }
  .chips.chips-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .pole-glass svg, .skeleton { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity .3s linear; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
