/* ============================================================
   Barber Status — лендинг барбершопа (Дербент)
   Mobile-first. Точки перелома: 600px, 900px, 1100px
   ============================================================ */

/* ============================ Шрифты ============================

   Раньше Oswald и Inter грузились с fonts.googleapis.com. Каждый такой
   запрос отдаёт IP и User-Agent посетителя в Google (США) ещё до того,
   как человек что-либо выбрал, — это трансграничная передача персональных
   данных без согласия. Поэтому шрифты лежат рядом, в assets/fonts/.

   Файлы вариативные: один на все начертания от 400 до 700.
   Подгружаются только нужные диапазоны символов — кириллица и латиница.
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/oswald-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #0b0b0d;
  --bg-alt:    #101013;
  --surface:   #16161b;
  --surface-2: #1d1d23;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  --text:      #f4f3f1;
  --muted:     #9d9da8;
  --dim:       #6f6f7a;

  --gold:      #d8b26a;
  --gold-2:    #f0d79d;
  --gold-dark: #a8813a;
  --green:     #4fb477;
  --red:       #e2685f;

  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 18px 40px -22px rgba(0,0,0,.9);

  --pad: 20px;
  --header-h: 62px;
  --bar-h: calc(70px + env(safe-area-inset-bottom, 0px));

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Oswald', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h); /* место под мобильную панель */
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container--narrow { max-width: 640px; }
.container--doc { max-width: 820px; }
.center { text-align: center; }

/* ============================ Типографика ============================ */

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 7.5vw, 44px);
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  opacity: .7;
}

.section__lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 28px;
  font-size: 15px;
}

.accent { color: var(--gold); }

.note {
  font-size: 13px;
  color: var(--dim);
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
  margin: 18px 0 26px;
}
.note--warn { border-color: var(--gold); color: var(--muted); }
.note a { color: var(--gold); }

/* ============================ Секции ============================ */

.section { padding: 56px 0; }
.section--tight { padding: 34px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

@media (min-width: 900px) {
  .section { padding: 90px 0; }
  .section--tight { padding: 60px 0; }
}

/* ============================ Кнопки ============================ */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.975); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-dark));
  color: #17130a;
  box-shadow: 0 10px 26px -14px rgba(216,178,106,.9);
}
.btn--gold:hover { box-shadow: 0 14px 30px -12px rgba(216,178,106,.75); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--lg { padding: 15px 26px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.link-btn {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 14px; text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer; padding: 10px;
  width: 100%; margin-top: 6px;
}
.link-btn:hover { color: var(--gold); }

/* ============================ Шапка ============================ */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  background: rgba(11,11,13,.94);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark {
  height: 30px;
  width: auto;
  flex: none;
}
.logo__text {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}
.logo__text b { color: var(--gold); font-weight: 600; }
.logo--sm .logo__text { font-size: 17px; }
.logo--sm .logo__mark { height: 26px; }

.burger {
  width: 42px; height: 42px;
  display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
  margin-right: -8px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  background: rgba(11,11,13,.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 8px var(--pad) 24px;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.nav__link, .nav__phone {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--text);
}
.nav__phone { color: var(--gold); font-family: var(--display); letter-spacing: .06em; }
.nav__cta { margin-top: 16px; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .nav__link, .nav__phone { border: 0; padding: 6px 0; font-size: 14px; color: var(--muted); }
  .nav__link:hover { color: var(--gold); }
  .nav__phone { color: var(--text); font-size: 15px; }
  .nav__cta { margin: 0; }
}

/* ============================ Первый экран ============================ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 44px) 0 46px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  top: -30%; left: 50%;
  width: 130vw; height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(216,178,106,.16), rgba(216,178,106,.04) 42%, transparent 68%);
  z-index: -2;
}
.hero__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg,
    rgba(255,255,255,.028) 0 2px, transparent 2px 22px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 78%);
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(216,178,106,.34);
  background: rgba(216,178,106,.07);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gold-2);
  margin: 0 0 22px;
  line-height: 1.3;
}
.badge svg { width: 15px; height: 15px; flex: none; }

.hero__mark {
  height: clamp(58px, 15vw, 92px);
  width: auto;
  margin: 0 0 22px;
  filter: drop-shadow(0 0 24px rgba(216,178,106,.3));
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 12.5vw, 86px);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.hero__lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 auto; min-width: 165px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 42px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 16px 14px; margin: 0; }
.stat dt {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 4px;
}
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold);
}
.stat__star { font-size: 17px; margin-left: 3px; }
.stat__cur { font-size: 18px; margin-left: 2px; }
.stat p { margin: 3px 0 0; font-size: 12px; color: var(--dim); line-height: 1.35; }

@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 80px) 0 80px; }
  .hero__inner { text-align: center; }          /* без фото симметрия смотрится лучше */
  .hero__mark { margin-inline: auto; }          /* img — блочный, text-align его не центрует */
  .hero__lead { font-size: 18px; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 0 0 auto; }
  .stats { margin-top: 54px; }
}

/* ============================ Преимущества ============================ */

.features {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.feature__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(216,178,106,.1);
  color: var(--gold);
  margin-bottom: 12px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 {
  font-family: var(--display); font-size: 18px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px;
}
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* ============================ Прайс-лист ============================ */

/* без overflow: hidden — иначе перестаёт работать sticky-шапка таблицы */
.price {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  position: sticky;
  top: var(--header-h);
  z-index: 5;
}
.price__head-name,
.price__head-col {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.2;
}
.price__head-col { text-align: right; color: var(--gold); }

.price__group {
  padding: 14px 14px 6px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
}
.price__group:first-child { border-top: 0; }

.price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 14px;
  border-top: 1px dashed rgba(255,255,255,.06);
}
.price__row:first-of-type { border-top: 0; }
.price__name { font-size: 14.5px; line-height: 1.25; }
.price__val {
  text-align: right;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* лента выбора мастера над прайсом (специфичность выше .chips ниже по файлу) */
.chips.chips--scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 -2px 14px;
  scrollbar-width: none;
}
.chips.chips--scroll::-webkit-scrollbar { display: none; }
.chip--sm { flex: 0 0 auto; min-height: 42px; padding: 8px 16px; border-radius: 100px; }

@media (min-width: 600px) {
  .price__head, .price__row { padding-inline: 22px; }
  .price__group { padding-inline: 22px; }
  .price__name { font-size: 16px; }
  .price__val { font-size: 17px; }
  .chips.chips--scroll { flex-wrap: wrap; overflow: visible; }
}

/* ============================ Мастера ============================ */

.masters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.master {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .2s ease, transform .2s ease;
}
.master:hover { border-color: rgba(216,178,106,.42); transform: translateY(-2px); }

.master__avatar {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  color: #17130a;
  background: linear-gradient(140deg, var(--gold-2), var(--gold) 50%, var(--gold-dark));
  margin-bottom: 6px;
}
/* фото вместо буквы: градиент остаётся подложкой на время загрузки */
.master__avatar--photo {
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(216,178,106,.5);
}
.master__name {
  font-family: var(--display); font-size: 19px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; margin: 0;
}
.master__role { font-size: 12px; color: var(--gold); margin: 0 0 14px; letter-spacing: .04em; }
.master__btn { margin-top: auto; width: 100%; padding: 12px 14px; font-size: 12px; min-height: 42px; }

@media (min-width: 600px) { .masters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .masters { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ============================ Форма записи ============================ */

.booking { margin-top: 8px; }

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 14px;
  margin: 0 0 14px;
  min-width: 0; /* иначе fieldset распирает горизонтальные ленты внутри */
}
/* legend капризен к display:flex в части браузеров — держим его блочным */
.step__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 14px;
  width: 100%;
}
.step__num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(216,178,106,.14);
  border: 1px solid rgba(216,178,106,.4);
  color: var(--gold);
  font-size: 13px;
  margin-right: 9px;
  vertical-align: -6px;
}
.step__hint { font-size: 12.5px; color: var(--dim); margin: 12px 0 0; }

@media (min-width: 600px) { .step { padding: 24px 22px; } }

/* --- чипы (мастер / дата / время) --- */

.chips, .times {
  display: grid;
  gap: 8px;
}
.chips--masters { grid-template-columns: repeat(2, 1fr); }
.times { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 480px) {
  .chips--masters { grid-template-columns: repeat(3, 1fr); }
  .times { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 600px) { .times { grid-template-columns: repeat(6, 1fr); } }

.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover:not(:disabled) { border-color: rgba(216,178,106,.55); }
.chip.is-active {
  border-color: var(--gold);
  background: rgba(216,178,106,.14);
  color: var(--gold-2);
}
.chip:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.times__msg {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.btn.is-loading { opacity: .65; pointer-events: none; }

.chip__ava {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-2), var(--gold-dark));
  color: #17130a; font-size: 12px; font-weight: 700;
  flex: none;
}
.chip__ava--photo { object-fit: cover; }
.chip.is-active .chip__ava { background: linear-gradient(140deg, #fff2d6, var(--gold)); }

/* --- даты: горизонтальная лента --- */

.dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.dates::-webkit-scrollbar { height: 4px; }
.dates::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.date {
  flex: 0 0 auto;
  width: 66px;
  min-height: 68px;
  flex-direction: column;
  gap: 1px;
  scroll-snap-align: start;
  padding: 8px 4px;
}
.date__dow { font-size: 11px; color: var(--muted); text-transform: lowercase; }
.date__day { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.date__mon { font-size: 10.5px; color: var(--dim); text-transform: lowercase; }
.date.is-active .date__dow, .date.is-active .date__mon { color: var(--gold-2); }

/* --- услуги --- */

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.tab[aria-selected="true"] {
  background: rgba(216,178,106,.14);
  border-color: var(--gold);
  color: var(--gold-2);
}

.services { display: grid; gap: 6px; }

.service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.service:hover { border-color: rgba(216,178,106,.4); }
.service input { position: absolute; opacity: 0; pointer-events: none; }

.service__box {
  width: 21px; height: 21px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  flex: none;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.service__box svg { width: 13px; height: 13px; opacity: 0; color: #17130a; }
.service input:checked ~ .service__box {
  background: var(--gold);
  border-color: var(--gold);
}
.service input:checked ~ .service__box svg { opacity: 1; }
.service.is-checked { border-color: var(--gold); background: rgba(216,178,106,.09); }
.service input:focus-visible ~ .service__box { outline: 2px solid var(--gold); outline-offset: 2px; }

.service__name { flex: 1; font-size: 14.5px; line-height: 1.3; }
.service__price {
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- поля --- */

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field .opt { text-transform: none; letter-spacing: 0; color: var(--dim); }

.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* не меньше 16px — иначе iOS зумит при фокусе */
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); }

.field__error { display: block; font-size: 12.5px; color: var(--red); margin-top: 6px; min-height: 0; }

/* --- итог --- */

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(216,178,106,.07), transparent 70%), var(--surface);
  padding: 16px;
  margin-bottom: 14px;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.07);
}
.summary__row:last-child { border-bottom: 0; }
.summary__row span { color: var(--muted); flex: none; }
.summary__row b { text-align: right; font-weight: 500; }
.summary__row--total { padding-top: 12px; }
.summary__row--total span { color: var(--text); }
.summary__row--total b {
  font-family: var(--display);
  font-size: 23px;
  color: var(--gold);
  line-height: 1.1;
}

.form__error {
  background: rgba(226,104,95,.12);
  border: 1px solid rgba(226,104,95,.4);
  color: #f0a49d;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 14px;
}

.form__policy {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* --- успех --- */

.success {
  border: 1px solid rgba(216,178,106,.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(216,178,106,.1), transparent 60%), var(--surface);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success__icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(79,180,119,.15);
  border: 1px solid rgba(79,180,119,.5);
  color: var(--green);
}
.success__icon svg { width: 26px; height: 26px; }
.success h3 {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px;
}
.success > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.success__box {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.7;
}
.success__box b { color: var(--gold); font-weight: 500; }
.success .btn { margin-bottom: 9px; }

/* ============================ Отзывы ============================ */

.reviews {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.review blockquote { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.review blockquote::before { content: "«"; color: var(--gold); }
.review blockquote::after { content: "»"; color: var(--gold); }
.review figcaption {
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.review figcaption span { font-size: 11px; color: var(--dim); white-space: nowrap; }

@media (min-width: 600px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ============================ Контакты ============================ */

.contacts { display: grid; gap: 20px; }
.contacts__info { display: grid; gap: 14px; }

.contact { display: flex; gap: 13px; align-items: flex-start; }
.contact__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold);
}
.contact__icon svg { width: 20px; height: 20px; }
.contact h3 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 3px 0 4px; font-weight: 500;
}
.contact p { margin: 0 0 4px; font-size: 15.5px; }
.contact p a:hover { color: var(--gold); }
.contact__link { font-size: 13px; color: var(--gold); }
.contact__link:hover { text-decoration: underline; }
/* Статус работы. Закрыто — приглушённо, открыто — зелёным и с мягким
   свечением точки: это то, что человек ищет глазами в первую очередь. */
#open-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 500;
}
#open-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
#open-status.is-open {
  color: var(--green);
  font-weight: 600;
}
#open-status.is-open .dot {
  box-shadow: 0 0 0 3px rgba(79,180,119,.22), 0 0 10px 1px rgba(79,180,119,.65);
  animation: pulse-open 2.4s ease-in-out infinite;
}

@keyframes pulse-open {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79,180,119,.22), 0 0 10px 1px rgba(79,180,119,.65); }
  50%      { box-shadow: 0 0 0 5px rgba(79,180,119,.10), 0 0 14px 2px rgba(79,180,119,.85); }
}

@media (prefers-reduced-motion: reduce) {
  #open-status.is-open .dot { animation: none; }
}

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .contacts { grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }
  .contacts__info { gap: 22px; }
  .map { height: 420px; }
}

/* ============================ Подвал ============================ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 34px 0 26px;
}
.footer__inner { display: grid; gap: 20px; }
.footer__note { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__links { justify-content: flex-end; }
}

/* ============================ Мобильная панель ============================ */

.mobilebar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11,11,13,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.mobilebar.is-visible { transform: none; }
.mobilebar__btn { flex: 1; }
.mobilebar__call {
  width: 48px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--gold);
}
.mobilebar__call svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .mobilebar { display: none; }
  body { padding-bottom: 0; }
}

/* ============================ Появление при скролле ============================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ============================ Согласие в форме ============================

   Галочка не поставлена заранее и не может быть поставлена заранее:
   согласие по ст. 9 152-ФЗ должно быть конкретным и осознанным, а
   предустановленный чекбокс это требование нарушает.
   ============================================================ */

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.consent input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { border-color: var(--red); }

/* Пока согласие не дано, кнопка отправки выключена — это видно и мышью,
   и с клавиатуры, и скринридером (у кнопки стоит disabled). */
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Ловушка для ботов: поле не видно человеку и не читается скринридером,
   персональных данных не собирает — только отсеивает автозаполнение. */
.trap {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================ Cookie-баннер ============================ */

.cookie {
  position: fixed;
  inset: auto 0 0;
  z-index: 120;
  padding: var(--pad) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -18px 40px -22px rgba(0,0,0,.9);
}
.cookie[hidden] { display: none; }

/* Баннер не перекрывает контент: сайт читается и пока выбор не сделан. */
body.has-cookie-banner { padding-bottom: 200px; }

.cookie__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.cookie__text { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.cookie__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { flex: 1 1 auto; justify-content: center; font-size: 13.5px; padding: 12px 18px; }

.cookie__options { display: grid; gap: 12px; margin: 4px 0 0; }

/* display у классов выше по силе, чем display:none из атрибута hidden,
   поэтому скрытие приходится назначать явно — иначе панель настроек
   раскрыта с самого начала. */
.cookie__options[hidden], .cookie__actions [hidden] { display: none; }
.cookie__option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.cookie__option input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold);
}
.cookie__option input[disabled] { opacity: .6; }
.cookie__option b { display: block; font-size: 13.5px; color: var(--text); }
.cookie__option span { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.5; }

@media (min-width: 900px) {
  .cookie__inner { grid-template-columns: 1fr auto; align-items: center; }
  .cookie__options { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .cookie__options[hidden] { display: none; }
  .cookie__actions { grid-column: auto; }
  body.has-cookie-banner { padding-bottom: 140px; }
}

/* ============================ Заглушка карты ============================

   Виджет Яндекс.Карт ставит свои cookie, поэтому до согласия вместо него
   показывается заглушка, а iframe появляется только по клику.
   ============================================================ */

.map__stub {
  width: 100%; height: 100%;
  display: grid; place-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.map__stub p { margin: 0; font-size: 13px; color: var(--dim); line-height: 1.5; max-width: 34ch; }

/* ============================ Страницы документов ============================ */

.doc { padding: calc(var(--header-h) + 34px) 0 60px; }
.doc__meta {
  font-size: 12.5px; color: var(--dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 28px;
}
.doc__meta b { color: var(--muted); font-weight: 600; }

.doc__draft {
  border: 1px solid rgba(226,104,95,.4);
  background: rgba(226,104,95,.1);
  color: #f0a49d;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.doc h2 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .01em;
  margin: 34px 0 12px;
  color: var(--text);
}
.doc h3 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.doc p, .doc li { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.doc dl { margin: 10px 0; }
.doc dt { font-size: 13px; color: var(--dim); margin-top: 10px; }
.doc dd { margin: 2px 0 0; font-size: 14.5px; color: var(--text); }

.doc__table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.doc__table th, .doc__table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.doc__table th { color: var(--text); font-weight: 600; background: var(--surface); }
.doc__scroll { overflow-x: auto; }

.doc__todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(216,178,106,.16);
  border: 1px solid rgba(216,178,106,.4);
  color: var(--gold-2);
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.doc__back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.doc__back:hover { color: var(--gold); }

/* ============================ Реквизиты в подвале ============================ */

.footer__legal { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.footer__legal b { color: var(--muted); font-weight: 500; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-top: 10px; }
.footer__docs a, .footer__docs button { color: var(--muted); }
.footer__docs a:hover, .footer__docs button:hover { color: var(--gold); }
.footer__docs button {
  background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
