/* =====================================================================
   BLACK 13 Barbershop — фирменный стиль по логотипу:
   глубокий черный + теплый «костяной» белый, печатная зернистость,
   сжатая гротеск-типографика (Oswald), потертый акцент (Rubik Dirt).
   ===================================================================== */
:root {
  --black: #000000;
  --ink: #0b0b0b;
  --graphite: #111111;
  --graphite-2: #191919;
  --line: #242424;
  --line-2: #3a3a3a;
  --white: #ffffff;
  --bone: #f2ede4;
  --bone-2: #e4ddd0;
  --paper: #fbf8f2;
  --ink-soft: #57524a;
  --gray: #d6d1c8;
  --gray-2: #a19b91;
  --gray-3: #6b665e;
  --danger: #e5484d;
  --ok: #3ecf8e;
  --warn: #f5b041;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-dirt: "Rubik Dirt", "Oswald", Impact, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* печатная зернистость поверх всего сайта */
body::before { content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; background-image: var(--noise); opacity: .055; }
.admin-body::before, .login-body::before { opacity: .03; }
a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 4px; transition: color .2s, opacity .2s, background .2s, border-color .2s; }
a:hover { color: inherit; opacity: .8; }
img { max-width: 100%; display: block; }
.muted { color: var(--gray-2) !important; }
.light .muted { color: var(--ink-soft) !important; }
.pre-line { white-space: pre-line; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--black); padding: 8px 14px; z-index: 3000; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
main { padding-top: var(--header-h); min-height: 60vh; }
.page-home main { padding-top: 0; }

/* ---------- logo ---------- */
.brand-logo { display: block; height: auto; color: var(--white); overflow: visible; }
.brand-logo .logo-dirt { font-family: var(--font-dirt); }
.brand-logo .logo-sub { font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; }
.logo-header { width: 150px; }
.logo-mobile { width: 140px; }
.logo-footer { width: 220px; }
.logo-login { width: 280px; margin: 0 auto; }
.logo-hero { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 20px 60px rgba(0,0,0,.6)); }
img.brand-logo { max-height: 64px; width: auto; }
@media (max-width: 575px) { .logo-header { width: 124px; } }

/* ---------- buttons ---------- */
.b13-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 2px solid var(--white); border-radius: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; line-height: 1.15; white-space: nowrap;
  background: transparent; color: var(--white);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.b13-btn:hover { opacity: 1; }
.b13-btn:active { transform: translateY(1px); }
.b13-btn-primary { background: var(--white); color: var(--black); }
.b13-btn-primary:hover { background: var(--black); color: var(--white); box-shadow: 4px 4px 0 var(--white); transform: translate(-2px, -2px); }
.b13-btn-ghost { border-color: rgba(255,255,255,.35); }
.b13-btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); color: var(--white); }
.b13-btn-dark, .light .b13-btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.b13-btn-dark:hover, .light .b13-btn-primary:hover { background: var(--bone); color: var(--black); box-shadow: 4px 4px 0 var(--black); transform: translate(-2px, -2px); }
.b13-btn-outline-dark { border-color: var(--black); color: var(--black); }
.b13-btn-outline-dark:hover { background: var(--black); color: var(--white); }
.b13-btn-invert { background: var(--black); color: var(--white); border-color: var(--black); }
.b13-btn-danger { border-color: var(--danger); color: #ff8a8d; }
.b13-btn-danger:hover { background: var(--danger); color: #fff; }
.b13-btn-lg { padding: 17px 34px; font-size: 16px; }
.b13-btn-sm { padding: 7px 13px; font-size: 12px; letter-spacing: .1em; }
.b13-btn:disabled, .b13-btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.b13-btn-ghost { border: 2px solid var(--line-2); color: #fff; }
.btn.b13-btn-danger { border: 2px solid var(--danger); }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body:not(.page-home) .site-header { background: rgba(0,0,0,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; }
.main-nav { gap: 32px; }
.main-nav a { text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--white); transition: width .25s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--white); opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; text-decoration: none; font-size: 16px; }
.burger { background: none; border: 2px solid rgba(255,255,255,.4); width: 46px; height: 46px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--white); }
.mobile-nav { background: var(--black) !important; color: var(--white); border-left: 1px solid var(--line) !important; }
.mobile-nav nav a { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.1; padding: 12px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.mobile-phone { display: block; margin: 18px 0 4px; font-family: var(--font-display); font-size: 26px; font-weight: 600; text-decoration: none; }
@media (max-width: 575px) { .site-footer { padding-bottom: 90px !important; } }

/* ---------- flash ---------- */
.flash-stack { position: fixed; right: 16px; top: calc(var(--header-h) + 10px); z-index: 1100; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.flash { background: var(--graphite); color: var(--white); border: 1px solid var(--line-2); border-left: 4px solid var(--white); padding: 12px 40px 12px 14px; position: relative; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: flashIn .3s var(--ease); }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--danger); }
.flash-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: var(--gray); font-size: 20px; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- typography ---------- */
.kicker { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray-2); margin: 0 0 14px; }
.light .kicker { color: var(--ink-soft); }
.section-title, .page-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; }
.section-title { font-size: clamp(40px, 6vw, 84px); margin: 0 0 26px; }
.page-title { font-size: clamp(52px, 9vw, 128px); margin: 0 0 16px; text-wrap: balance; }
.lead-text { font-size: clamp(16px, 1.4vw, 19px); color: var(--gray); max-width: 60ch; }
.light .lead-text { color: var(--ink-soft); }
.link-arrow { font-family: var(--font-display); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section.light { background: var(--bone); color: var(--black); z-index: 1; }
.section.dark-2 { background: var(--graphite); }
/* рваный край светлых секций — как отпечаток на бумаге */
.section.light::before, .section.light::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background-size: 360px 18px; background-repeat: repeat-x; pointer-events: none; }
.section.light::before { top: -17px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18' preserveAspectRatio='none'%3E%3Cpath fill='%23f2ede4' d='M0 18 L0 11 L14 9 L22 13 L37 6 L49 10 L61 4 L77 11 L90 7 L104 12 L118 5 L131 9 L147 3 L160 10 L176 8 L189 13 L203 6 L216 9 L232 4 L245 11 L259 7 L272 12 L287 5 L301 10 L314 6 L330 12 L343 7 L360 11 L360 18 Z'/%3E%3C/svg%3E"); }
.section.light::after { bottom: -17px; transform: scaleY(-1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18' preserveAspectRatio='none'%3E%3Cpath fill='%23f2ede4' d='M0 18 L0 9 L17 12 L29 6 L44 10 L58 5 L70 12 L86 8 L99 13 L113 6 L127 9 L140 4 L156 11 L169 7 L185 12 L198 5 L212 10 L225 6 L241 13 L254 8 L268 11 L283 4 L296 9 L310 7 L323 12 L339 6 L360 10 L360 18 Z'/%3E%3C/svg%3E"); }
.section.light + .section.light::before, .section.light:has(+ .section.light)::after { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 520px at 78% 38%, rgba(255,255,255,.10), transparent 70%),
  radial-gradient(700px 500px at 10% 100%, rgba(255,255,255,.05), transparent 70%),
  var(--black); }
.hero.has-image .hero-bg { background:
  linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 50%, rgba(0,0,0,.35) 100%),
  linear-gradient(0deg, var(--black) 0%, transparent 40%),
  var(--hero-img) center/cover no-repeat; }
.hero-ghost { position: absolute; left: -1vw; bottom: -5vw; font-family: var(--font-dirt); font-size: 25vw; line-height: 1; white-space: nowrap; color: rgba(255,255,255,.025); user-select: none; letter-spacing: -.02em; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 48px; flex: 1; }
.hero-logo { animation: logoIn 1.1s var(--ease) both .15s; }
@keyframes logoIn { from { opacity: 0; transform: translateY(20px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; border: 1px solid var(--line-2); padding: 8px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-3); flex: 0 0 8px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(62,207,142,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(62,207,142,0); } }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(50px, 7.6vw, 118px); line-height: .92; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 24px; max-width: 12ch; text-wrap: balance; }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--gray); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 40px; border-top: 1px solid var(--line-2); }
.hero-facts > div { padding: 20px 16px 0 0; }
.hero-facts dt { font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-2); }
.hero-facts dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; margin: 4px 0 0; }
@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div { padding-bottom: 14px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--white); color: var(--black); overflow: hidden; border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-1.2deg) scale(1.02); margin: -8px 0 8px; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: .04em; padding: 14px 0; }
.marquee i { font-style: normal; margin: 0 28px; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 2px solid var(--black); box-shadow: 12px 12px 0 var(--black); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac { border: 2px solid var(--black); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.ac:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--black); }
.ac b { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; text-transform: uppercase; }
.ac span { color: var(--ink-soft); font-size: 15px; margin-top: 12px; }
.ac-dark { background: var(--black); color: var(--white); }
.ac-dark span { color: var(--gray); }

/* ---------- masters ---------- */
.grid-masters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.master-card { background: var(--graphite); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.master-card:hover { border-color: var(--white); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--white); }
.master-photo { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--graphite-2); text-decoration: none; }
.master-photo:hover { opacity: 1; }
.master-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.master-card:hover .master-img { transform: scale(1.04); }
.avatar-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; color: var(--white);
  background: radial-gradient(circle at 50% 40%, #2a2a2a 0%, #111 60%, #050505 100%); }
.avatar-ph::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .18; }
.avatar-ph span { font-family: var(--font-dirt); font-size: clamp(110px, 12vw, 170px); line-height: 1; position: relative; z-index: 1; text-transform: uppercase; }
.avatar-ph.sm { width: 52px; height: 52px; flex: 0 0 52px; }
.avatar-ph.sm span { font-size: 26px; }
.master-exp { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--black); padding: 8px 14px; display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; }
.master-exp b { font-size: 22px; letter-spacing: .02em; font-weight: 600; }
.tag-vacation { position: absolute; right: 0; top: 0; background: var(--black); color: var(--white); border: 1px solid var(--white); font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.master-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.master-name { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 0; }
.master-name a { text-decoration: none; }
.master-spec { color: var(--gray-2); font-size: 14px; margin: 0; }
.master-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--gray); margin: 4px 0 12px; flex: 1; align-items: flex-end; }
.master-meta b { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.master-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.master-hero-photo { aspect-ratio: 4/5; border: 2px solid var(--white); box-shadow: 14px 14px 0 rgba(255,255,255,.12); overflow: hidden; }
.master-hero-img { width: 100%; height: 100%; object-fit: cover; }
.master-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0; border: 1px solid var(--line-2); width: fit-content; max-width: 100%; }
.master-facts > div { padding: 14px 22px; border-right: 1px solid var(--line-2); }
.master-facts > div:last-child { border-right: 0; }
.master-facts dt { font-family: var(--font-display); font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-2); }
.master-facts dd { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0; }
.notice-vacation { border: 2px solid var(--white); padding: 14px 18px; margin-bottom: 28px; font-weight: 600; background: var(--graphite); }

/* ---------- price ---------- */
.price-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.ptab { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border: 2px solid var(--black); background: transparent; color: var(--black); cursor: pointer; transition: background .2s, color .2s; }
.ptab:hover { background: var(--bone-2); }
.ptab.active { background: var(--black); color: var(--white); }
.price-grid { column-count: 2; column-gap: clamp(32px, 6vw, 88px); }
@media (max-width: 991px) { .price-grid { column-count: 1; } }
.price-cat { break-inside: avoid; margin-bottom: 44px; }
.price-cat-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 3px solid var(--black); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.price-row[hidden] { display: none; }
.pr-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); text-transform: uppercase; line-height: 1.2; }
.pr-name small { display: block; font-family: var(--font-body); text-transform: none; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.pr-dots { flex: 1; border-bottom: 2px dotted rgba(0,0,0,.35); transform: translateY(-5px); min-width: 20px; }
.pr-val { white-space: nowrap; text-align: right; }
.pr-val a, .pr-val > span { text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.pr-val b { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.9vw, 24px); }
.pr-val small { font-size: 13px; color: var(--ink-soft); }
.pr-val a:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.price-row:hover .pr-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.price-note { margin: 0; color: var(--ink-soft); font-size: 14px; }
.price-list-solo { max-width: 860px; }
.section:not(.light) .price-row { border-bottom-color: var(--line); }
.section:not(.light) .pr-dots { border-bottom-color: var(--line-2); }

/* ---------- portfolio ---------- */
.grid-portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.pf-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--graphite); display: block; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pf-item:hover { opacity: 1; }
.pf-item:hover img { transform: scale(1.05); }
.pf-cap { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--white); color: var(--black); font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.filter-chips, .reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid var(--line-2); padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--gray); background: transparent; border-radius: 0; font-family: var(--font-body); }
.chip.active, .chip:hover { border-color: var(--white); color: var(--white); opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox-cap { color: var(--gray); margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: none; border: 1px solid var(--line-2); color: var(--white); width: 48px; height: 48px; font-size: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ---------- reviews ---------- */
.stars { color: rgba(255,255,255,.25); letter-spacing: 2px; }
.stars .on { color: var(--white); }
.light .stars { color: rgba(0,0,0,.2); }
.light .stars .on { color: var(--black); }
.stars-lg { font-size: 28px; }
.rating-summary { margin-bottom: 30px; font-size: 18px; }
.rating-summary b { font-family: var(--font-display); font-size: 28px; }
.grid-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 20px; }
.grid-reviews.one-col { grid-template-columns: 1fr; }
.review-card { border: 1px solid var(--line); padding: 28px; background: var(--graphite); display: flex; flex-direction: column; gap: 14px; }
.light .review-card { background: var(--paper); border: 2px solid var(--black); }
.review-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-2); }
.light .review-top { color: var(--ink-soft); }
.review-text { margin: 0; font-size: 17px; white-space: pre-line; flex: 1; }
.review-author { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.ra-av { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--black); font-weight: 600; }
.light .ra-av { background: var(--black); color: var(--white); }
.review-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.review-photos img { width: 72px; height: 72px; object-fit: cover; }
.empty-reviews { border: 2px dashed currentColor; padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.empty-reviews p { margin: 0; font-size: 19px; max-width: 52ch; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; color: var(--line-2); cursor: pointer; transition: color .15s; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--white); }
.star-input input:focus-visible + label { outline: 2px solid var(--white); }

/* ---------- instagram band ---------- */
.insta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: clamp(60px, 9vw, 120px) 16px; text-decoration: none; background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s, color .35s; }
.insta-band:hover { background: var(--white); color: var(--black); opacity: 1; }
.insta-small { font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: 14px; opacity: .7; }
.insta-big { font-family: var(--font-dirt); font-size: clamp(30px, 7.5vw, 110px); line-height: 1.05; word-break: break-all; }
.insta-go { font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase; font-size: 15px; border-bottom: 2px solid currentColor; }

/* ---------- contacts ---------- */
.contact-phone { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1; text-decoration: none; margin-bottom: 28px; }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: 14px 18px; margin-bottom: 28px; font-size: 17px; }
.contact-list dt { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-2); padding-top: 4px; }
.light .contact-list dt { color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 500; }
.open-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border: 1.5px solid currentColor; font-size: 13px; font-weight: 600; }
.open-badge.on::before { content: "● "; color: #1f9d63; }
.map-wrap { height: 100%; min-height: 380px; border: 2px solid var(--black); box-shadow: 12px 12px 0 var(--black); background: var(--bone-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.socials a { width: 48px; height: 48px; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.socials a:hover { background: var(--white); color: var(--black); border-color: var(--white); opacity: 1; }
.light .socials a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.socials svg { width: 22px; height: 22px; }
.socials .social-text { width: auto; padding: 0 14px; font-weight: 700; font-size: 13px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 28px; background: var(--black); position: relative; overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-big { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(42px, 7vw, 100px); line-height: .92; margin: 0; }
.f-title { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gray-2); margin-bottom: 16px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-list a { text-decoration: none; }
.f-strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.f-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--gray-2); font-size: 13px; }
.f-bottom a { color: var(--gray-2); }

/* ---------- page head (внутренние страницы) ---------- */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-head::after { content: "13"; position: absolute; right: -2vw; top: -4vw; font-family: var(--font-dirt); font-size: clamp(200px, 30vw, 420px); line-height: 1; color: rgba(255,255,255,.04); pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }

/* ---------- cards & forms ---------- */
.b13-card { background: var(--graphite); border: 1px solid var(--line); padding: clamp(20px, 3vw, 34px); }
.card-title-lg { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; margin: 0 0 18px; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 20px); } }
.form-label { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.form-control, .form-select { background-color: var(--ink); border: 1px solid var(--line-2); color: var(--white); border-radius: 0; padding: 12px 14px; font-size: 16px; }
.form-control:focus, .form-select:focus { background-color: var(--ink); color: var(--white); border-color: var(--white); box-shadow: 0 0 0 1px var(--white); }
.form-control::placeholder { color: var(--gray-3); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d6d1c8' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-control[readonly] { color: var(--gray); }
input[type="date"], input[type="time"] { color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray); cursor: pointer; }
.check input { margin-top: 3px; accent-color: #fff; width: 18px; height: 18px; flex: 0 0 18px; }

/* ---------- booking ---------- */
.bk-step { border: 1px solid var(--line); background: var(--graphite); padding: clamp(18px, 3vw, 30px); margin-bottom: 16px; transition: opacity .3s; }
.bk-step.is-locked { opacity: .3; pointer-events: none; }
.bk-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; text-transform: uppercase; margin: 0 0 18px; display: flex; gap: 14px; align-items: baseline; }
.bk-title span { font-family: var(--font-dirt); color: var(--gray-3); font-size: 26px; font-weight: 400; }
.bk-masters, .bk-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.bk-master, .bk-service { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--black); color: var(--white); border: 1px solid var(--line-2); padding: 12px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; border-radius: 0; }
.bk-master img { width: 52px; height: 52px; object-fit: cover; }
.bk-master-text { display: flex; flex-direction: column; min-width: 0; }
.bk-master b { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.bk-service b { font-weight: 600; }
.bk-master small, .bk-service small { color: var(--gray-2); display: block; }
.bk-notice { font-style: normal; font-size: 11px; color: var(--warn); }
.bk-service { justify-content: space-between; }
.bk-price { font-family: var(--font-display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.bk-master:hover, .bk-service:hover { border-color: var(--gray); }
.bk-master.active, .bk-service.active { background: var(--white); color: var(--black); border-color: var(--white); }
.bk-master.active small, .bk-service.active small { color: var(--ink-soft); }
.bk-master.active .avatar-ph { background: var(--black); }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.bk-day { flex: 0 0 66px; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--black); border: 1px solid var(--line-2); color: var(--white); cursor: pointer; border-radius: 0; }
.bk-day b { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.bk-day small { font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .08em; }
.bk-day:disabled { opacity: .25; cursor: not-allowed; }
.bk-day.active { background: var(--white); color: var(--black); border-color: var(--white); }
.bk-day.active small { color: var(--black); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(84px, 100%), 1fr)); gap: 8px; }
.bk-slot { padding: 11px 6px; background: var(--black); border: 1px solid var(--line-2); color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .04em; cursor: pointer; border-radius: 0; font-variant-numeric: tabular-nums; }
.bk-slot:hover { border-color: var(--white); }
.bk-slot.active { background: var(--white); color: var(--black); }
.bk-loading { color: var(--gray-2); }
.bk-summary { border: 2px solid var(--white); }
.bk-summary dl, .done-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 22px; }
.bk-summary dt, .done-list dt { color: var(--gray-2); font-weight: 500; font-size: 14px; }
.bk-summary dd, .done-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-price { font-family: var(--font-display); font-size: 28px; }
.bk-error { border-left: 3px solid var(--danger); background: rgba(229,72,77,.1); padding: 10px 12px; margin-bottom: 14px; font-weight: 600; }
.done-mark { width: 80px; height: 80px; margin: 0 auto 18px; border: 2px solid var(--white); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.done-list { text-align: left; max-width: 480px; margin: 24px auto; }
.manage-link { max-width: 520px; margin: 0 auto; }
.b13-hr { border-color: var(--line-2); opacity: 1; margin: 28px 0; }

/* ---------- badges (сайт и админка) ---------- */
.badge-st, .badge-pay { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.st-pending { color: var(--warn); border-color: var(--warn); }
.st-confirmed { color: var(--white); border-color: var(--white); }
.st-arrived { color: #7cc7ff; border-color: #7cc7ff; }
.st-completed { color: var(--ok); border-color: var(--ok); }
.st-no_show { color: #ff9f43; border-color: #ff9f43; }
.st-cancelled { color: var(--gray-3); border-color: var(--gray-3); text-decoration: line-through; }
.pay-paid { color: var(--ok); border-color: var(--ok); }
.pay-partial { color: var(--warn); border-color: var(--warn); }
.pay-unpaid { color: var(--gray-2); border-color: var(--line-2); }
.pay-refunded { color: #ff8a8d; border-color: #ff8a8d; }

/* ---------- misc ---------- */
.pager { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); text-decoration: none; padding: 0 10px; font-family: var(--font-display); }
.pager a.active { background: var(--white); color: var(--black); }
.error-page { padding: 120px 0; text-align: center; }
.error-code { font-family: var(--font-dirt); font-size: clamp(120px, 26vw, 280px); line-height: 1; }
.prose { max-width: 820px; }
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(800px 500px at 50% 0%, #1c1c1c, #000 70%); }
.login-wrap { width: 100%; max-width: 440px; padding: 24px 16px; }
.login-logo { display: block; margin-bottom: 28px; text-decoration: none; }
.b13-modal { background: var(--graphite); color: var(--white); border: 1px solid var(--line-2); border-radius: 0; }
.b13-modal .modal-header, .b13-modal .modal-footer { border-color: var(--line); }
.b13-modal .modal-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 20px; }

/* появление при прокрутке (только если работает JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Кроссплатформенность: iOS Safari, Android Chrome, Samsung Internet, десктоп
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { -webkit-tap-highlight-color: transparent; }
.hero { min-height: min(100vh, 980px); min-height: min(100svh, 980px); }
.site-header.scrolled, body:not(.page-home) .site-header { -webkit-backdrop-filter: blur(10px); }
.section-title, .page-title, .hero-title, .master-name, .footer-big { overflow-wrap: break-word; }

/* iOS увеличивает страницу при фокусе на поле с шрифтом < 16px — не даем */
@media (max-width: 991.98px) {
  .form-control, .form-select, .form-control-sm, .form-select-sm, textarea, input, select { font-size: 16px !important; }
}
/* поля даты/времени в iOS без значения схлопываются по высоте */
input[type="date"].form-control, input[type="time"].form-control { min-height: 48px; -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }

/* Сенсорные экраны: эффекты «при наведении» не залипают, кнопки удобного размера (≥ 44px) */
@media (hover: none) {
  .master-card:hover, .ac:hover, .b13-btn-primary:hover, .b13-btn-dark:hover, .light .b13-btn-primary:hover { transform: none; box-shadow: none; }
  .b13-btn-primary:hover { background: var(--white); color: var(--black); }
  .b13-btn-dark:hover, .light .b13-btn-primary:hover { background: var(--black); color: var(--white); }
  .master-card:hover .master-img, .pf-item:hover img { transform: none; }
  .insta-band:hover { background: var(--black); color: var(--white); }
  .svc-row:hover, .price-row:hover .pr-name { padding-left: 0; padding-right: 0; text-decoration: none; }
}
@media (pointer: coarse) {
  .b13-btn { min-height: 46px; }
  .b13-btn-sm { min-height: 40px; padding: 9px 14px; }
  .chip, .ptab { min-height: 42px; display: inline-flex; align-items: center; }
  .bk-slot { padding: 13px 6px; }
  .check input { width: 22px; height: 22px; flex-basis: 22px; }
}

/* Телефоны */
@media (max-width: 575.98px) {
  :root { --header-h: 64px; }
  .container-xl { padding-left: 16px; padding-right: 16px; }
  .section { padding: 64px 0; }
  .hero-actions .b13-btn, .master-hero .b13-btn-lg { width: 100%; }
  .hero-facts dd { font-size: 30px; }
  .page-title { font-size: clamp(40px, 12vw, 56px); }
  .section-title { font-size: clamp(34px, 10vw, 48px); }
  .section-head { margin-bottom: 28px; }
  .about-cards { gap: 10px; }
  .ac { min-height: 140px; padding: 18px; }
  .ac b { font-size: 26px; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { margin-bottom: 10px; }
  .map-wrap { box-shadow: 6px 6px 0 var(--black); min-height: 300px; }
  .map-wrap iframe { min-height: 300px; }
  .price-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .price-tabs::-webkit-scrollbar { display: none; }
  .ptab { flex: 0 0 auto; }
  .price-row { flex-wrap: wrap; }
  .pr-dots { display: none; }
  .pr-name { flex: 1 1 60%; }
  .master-facts { width: 100%; }
  .master-facts > div { flex: 1 1 50%; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .footer-cta { padding-bottom: 36px; margin-bottom: 36px; }
  .b13-card { padding: 18px; }
  .bk-step { padding: 16px; }
  .bk-masters, .bk-services { grid-template-columns: 1fr; }
  .bk-summary dl { font-size: 15px; }
  .flash-stack { left: 12px; right: 12px; max-width: none; }
}

@media (max-width: 575.98px) {
  .grid-portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pf-cap { font-size: 11px; padding: 4px 8px; }
  .master-photo { aspect-ratio: 1 / 1; }
  .master-img { object-position: center top; }
  .avatar-ph span { font-size: 110px; }
  .grid-masters { gap: 16px; }
  .review-card { padding: 20px; }
}

.marquee-wrap { overflow: hidden; padding: 14px 0; margin: -14px 0; position: relative; z-index: 2; }

/* ---------- кнопка «Завершить» (зеленая рамка, как «Отменить») ---------- */
.b13-btn-success { background: transparent; border-color: var(--ok); color: #6fe3ad; }
.b13-btn-success:hover { background: var(--ok); color: #04130b; border-color: var(--ok); }

/* ---------- плавающая кнопка записи на телефоне ----------
   Появляется только после прокрутки за кнопки первого экрана и прячется у блока записи в подвале,
   чтобы не дублировать видимые кнопки и не перекрывать контент. */
.sticky-book { display: none; }
@media (max-width: 575.98px) {
  .sticky-book {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; z-index: 45;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 54px; padding: 0 18px;
    background: var(--white); color: var(--black); border: 2px solid var(--black);
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.55);
    transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .sticky-book::after { content: "→"; font-size: 18px; }
  .sticky-book.show { transform: none; opacity: 1; pointer-events: auto; }
  .sticky-book:hover, .sticky-book:active { color: var(--black); opacity: 1; }
  .no-sticky .sticky-book { display: none; }
}
