/* =========================================================
   «Матвей и его команда» — прототип сайта студии груминга
   Два визуальных варианта: «Свет» (warm) и «Ночь» (night)
   ========================================================= */

/* ---------- Вариант «Свет» — базовый набор токенов ---------- */
:root {
  --ground:   #EDF0EA;
  --surface:  #FFFFFF;
  --surface2: #F7F8F4;
  --raised:   #FFFFFF;
  --ink:      #19241E;
  --ink-soft: #5A6660;
  --ink-mute: #8A948E;
  --accent:   #C96A00;
  --accent-h: #A85800;
  --accent-ink: #FFFFFF;
  --accent-wash: #FBEEDE;
  --moss:     #2F5F4A;
  --moss-wash:#E4EDE7;
  --live:     #C2410C;
  --warn:     #A35A00;
  /* Акцент как цвет текста. По умолчанию тот же, что у заливок, но в
     светлых вариантах ссылку приходится делать темнее: оранжевый на
     серой подложке даёт контраст ниже нормы для мелкого текста,
     а на кнопке он ни при чём — там свой цвет надписи. */
  --accent-text: var(--accent);
  --line:     #D3D9CE;
  --line-soft:#E4E8DF;
  --shadow-1: 0 1px 2px rgba(25,36,30,.06), 0 2px 8px rgba(25,36,30,.05);
  --shadow-2: 0 2px 4px rgba(25,36,30,.06), 0 12px 32px rgba(25,36,30,.10);
  --font-display: 'Bitter', 'Georgia', serif;
  --font-body: 'Commissioner', 'Segoe UI', system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -0.01em;
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;
  --maxw: 1160px;
  --img-filter: none;
  color-scheme: light;
}

/* Системная тёмная тема → стартуем с «Ночи», если явно не выбран «Свет» */
@media (prefers-color-scheme: dark) {
  /* Только когда вариант не выбран вообще. Раньше здесь перечислялись
     исключения — и этот селектор оказывался тяжелее явных вариантов:
     четыре условия против двух. На устройстве с тёмной темой «Дымка»
     и «Камень» молча возвращались к «Ночи», и студия не увидела
     никакой разницы между тремя вариантами. */
  :root:not([data-variant]) {
    --ground:   #12100D;
    --surface:  #1B1815;
    --surface2: #241F1B;
    --raised:   #221E1A;
    --ink:      #F4EFE7;
    --ink-soft: #A79D92;
    --ink-mute: #7C736A;
    --accent:   #FFB23F;
    --accent-h: #FFC46B;
    --accent-ink: #1B1510;
    --accent-wash: #2B2117;
    --moss:     #7FBFA1;
    --moss-wash:#1C2822;
    --live:     #FF6B3D;
    --warn:     #FFB23F;
    --line:     #332C26;
    --line-soft:#272119;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
    --font-display: 'Unbounded', 'Commissioner', sans-serif;
    --display-weight: 500;
    --display-track: -0.02em;
    --img-filter: saturate(.92) contrast(1.02);
    color-scheme: dark;
  }
}

/* Явный выбор варианта побеждает в обе стороны */
:root[data-variant="night"],
:root[data-variant="dymka"],
:root[data-variant="kamen"] {
  --ground:   #12100D;
  --surface:  #1B1815;
  --surface2: #241F1B;
  --raised:   #221E1A;
  --ink:      #F4EFE7;
  --ink-soft: #A79D92;
  --ink-mute: #7C736A;
  --accent:   #FFB23F;
  --accent-h: #FFC46B;
  --accent-ink: #1B1510;
  --accent-wash: #2B2117;
  --moss:     #7FBFA1;
  --moss-wash:#1C2822;
  --live:     #FF6B3D;
  --warn:     #FFB23F;
  --line:     #332C26;
  --line-soft:#272119;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
  --font-display: 'Unbounded', 'Commissioner', sans-serif;
  --display-weight: 500;
  --display-track: -0.02em;
  --img-filter: saturate(.92) contrast(1.02);
  color-scheme: dark;
}
/* Тёплые серые подложки — просьба студии: «подложку не такую тёмную,
   а тепло серую». Меняются только фоновые слои, границы и приглушённый
   текст; всё остальное берётся из общей тёмной палитры выше, чтобы
   варианты не разъезжались между собой при правках. */
:root[data-variant="dymka"] {
  --ground:   #2A2724;
  --surface:  #332F2B;
  --surface2: #3B3733;
  --raised:   #38342F;
  --ink-soft: #B5ADA3;
  --ink-mute: #8E857B;
  --line:     #474139;
  --line-soft:#3A342D;
}
:root[data-variant="kamen"] {
  --ground:   #3E3A35;
  --surface:  #474340;
  --surface2: #504B46;
  --raised:   #4C4742;
  --ink-soft: #D0C9C0;
  --ink-mute: #B3ABA1;
  --line:     #5C554C;
  --line-soft:#4A443D;
}
/* «Лён» — светлый вариант: тёплая серая подложка вместо белого.
   Текст и акценты берутся из светлой палитры в начале файла. */
:root[data-variant="lyon"] {
  --accent:   #A85800;
  --accent-h: #8F4A00;
  --accent-text: #8F4A00;
  --ink-soft: #4C5A54;
  --ink-mute: #59625C;
  --ground:   #DEDAD3;
  --surface:  #EDEAE4;
  --surface2: #E6E2DB;
  --raised:   #E9E6E0;
  --line:     #C8C2B8;
  --line-soft:#D8D3CA;
  color-scheme: light;
}
:root[data-variant="warm"] { color-scheme: light; }

/* ---------- Базис ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; filter: var(--img-filter); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.14rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .13em;
  font-weight: 600; color: var(--ink-mute);
}
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.hide { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .94rem; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-h); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--surface2); }
.btn-quiet { color: var(--accent-text); padding: 8px 0; }
.btn-quiet:hover { color: var(--accent-h); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Чипы и бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .86rem; font-weight: 500;
  transition: border-color .14s, background .14s, color .14s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"], .chip.on {
  background: var(--ink); color: var(--ground); border-color: var(--ink);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  background: var(--moss-wash); color: var(--moss);
}
.badge-accent { background: var(--accent-wash); color: var(--accent); }
.badge-live {
  background: var(--live); color: #fff; text-transform: uppercase; letter-spacing: .1em;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line);
}
.brand-name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1rem; line-height: 1.05; letter-spacing: var(--display-track);
}
.brand-sub { font-size: .68rem; color: var(--ink-mute); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 11px; border-radius: var(--r-md); font-size: .88rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; transition: color .14s, background .14s;
}
.nav a:hover { color: var(--ink); background: var(--surface2); }
.nav a.active { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--shadow-1); }
.topbar-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* переключатель варианта */
.vswitch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.vswitch button {
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; color: var(--ink-mute);
  transition: background .16s, color .16s;
}
.vswitch button.on { background: var(--ink); color: var(--ground); }

.burger { display: none; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ---------- Полоса «что это за прототип» ---------- */
.pitchbar {
  background: var(--ink); color: var(--ground);
  font-size: .82rem;
}
.pitchbar-in { display: flex; align-items: center; gap: 14px; padding: 9px 0; flex-wrap: wrap; }
.pitchbar b { color: var(--accent); }
.pitchbar a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .stack { gap: 8px; }
.section-head .spacer { flex: 1; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- Главный экран ---------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  border-bottom: 3px solid var(--accent-wash);
}
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 24px 0 26px; }
.hero-meta .k { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--display-weight); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* блок подбора по породе в герое */
.finder {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  overflow: hidden;
}
.finder-head {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
}
.finder-body { padding: 18px 22px 22px; }
.seg { display: inline-flex; background: var(--surface2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button {
  padding: 7px 16px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600;
  color: var(--ink-soft);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.ac-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.ac-list button {
  display: flex; width: 100%; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
}
.ac-list button:last-child { border-bottom: 0; }
.ac-list button:hover, .ac-list button.cursor { background: var(--accent-wash); }

.breed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* результат подбора */
.quote { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.quote-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.quote-row:last-of-type { border-bottom: 0; }
.quote-row .nm { font-weight: 600; font-size: .94rem; }
.quote-row .ct { font-size: .78rem; color: var(--ink-mute); }
.quote-row .pr { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.quote-row .dr { font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Полоса доверия ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-cell { padding: 26px 20px; border-left: 1px solid var(--line-soft); }
.trust-cell:first-child { border-left: 0; }
.trust-cell .k { font-family: var(--font-display); font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1; }
.trust-cell .l { font-size: .84rem; color: var(--ink-soft); margin-top: 7px; }

/* ---------- Блок трансляции ---------- */
.trust-band { background: var(--ink); color: var(--ground); padding: 60px 0; }
.trust-band h2, .trust-band .lead { color: var(--ground); }
.trust-band .lead { color: color-mix(in srgb, var(--ground) 72%, transparent); }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.cam {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: #000;
}
.cam img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.cam-tag {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.cam-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff; font-size: .8rem; display: flex; justify-content: space-between; gap: 8px;
}

/* ---------- Список услуг ---------- */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.svc-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.svc-cat-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 20px; background: var(--surface2); border-bottom: 1px solid var(--line-soft);
}
.svc-cat-head h3 { font-size: 1rem; }
.svc-cat-head .n { font-size: .8rem; color: var(--ink-mute); }
.svc-cat-head .note { font-size: .82rem; color: var(--ink-soft); margin-left: auto; }
.svc-row {
  display: grid; grid-template-columns: 1fr 92px 112px 120px; gap: 16px; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid var(--line-soft);
}
.svc-row:last-child { border-bottom: 0; }
.svc-row:hover { background: var(--surface2); }
.svc-row .nm { font-weight: 500; font-size: .95rem; }
.svc-row .dr, .svc-row .pr { font-variant-numeric: tabular-nums; }
.svc-row .dr { font-size: .88rem; color: var(--ink-soft); }
.svc-row .pr { font-family: var(--font-display); font-size: 1.02rem; text-align: right; }
.svc-row .pr small { font-family: var(--font-body); font-weight: 500; color: var(--ink-mute); font-size: .74rem; display: block; }
.svc-row .act { text-align: right; }

/* ---------- Карточки команды ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
/* Общее фото команды вертикальное, 4:5. Во всю ширину оно превращается
   в полотно на два экрана, поэтому ширина ограничена, а не кадр обрезан:
   композицию выбирал тот, кто снимал. */
.team-photo { display: block; width: 100%; max-width: 440px; margin: 26px 0 0; border-radius: var(--r-lg); border: 1px solid var(--line); }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.member-photo { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.member-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.member-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: var(--display-weight); }
.member-post { font-size: .82rem; color: var(--ink-soft); }
.member-rate { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-variant-numeric: tabular-nums; margin-top: auto; }
.member-loves { display: flex; flex-wrap: wrap; gap: 5px; }
.tagx { font-size: .72rem; padding: 3px 8px; border-radius: var(--r-sm); background: var(--surface2); color: var(--ink-soft); border: 1px solid var(--line-soft); }

/* ---------- Галерея ---------- */
.gal { columns: 4; column-gap: 14px; }
.gal a { display: block; margin-bottom: 14px; border-radius: var(--r-md); overflow: hidden; break-inside: avoid; position: relative; }
.gal img { width: 100%; transition: transform .35s ease; }
.gal a:hover img { transform: scale(1.03); }
.gal .who {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.62); color: #fff; font-size: .72rem; opacity: 0; transition: opacity .2s;
}
.gal a:hover .who { opacity: 1; }

/* ---------- Отзывы ---------- */
.rev-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.rev-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 86px; }
.rev-big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hist { display: grid; gap: 6px; margin-top: 16px; }
.hist-row { display: grid; grid-template-columns: 26px 1fr 34px; gap: 8px; align-items: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.hist-bar { height: 7px; border-radius: var(--r-pill); background: var(--surface2); overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--accent); }
.rev-list { display: flex; flex-direction: column; gap: 0; }
.rev {
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  display: grid; gap: 10px;
}
.rev:first-child { padding-top: 0; }
.rev-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-who { font-weight: 600; }
.rev-svc { font-size: .84rem; color: var(--ink-soft); }
.rev-txt { max-width: 68ch; }
.stars { color: var(--accent); letter-spacing: .1em; font-size: .9rem; }
.stars .off { color: var(--line); }

/* ---------- Шаги записи ---------- */
.book-layout { display: grid; grid-template-columns: 1fr 336px; gap: 36px; align-items: start; }
.steps { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.step-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface2); border: 1px solid var(--line-soft);
  font-size: .82rem; font-weight: 600; color: var(--ink-mute);
}
.step-pill .i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--surface); font-size: .7rem;
}
.step-pill.on { background: var(--surface); border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow-1); }
.step-pill.on .i { background: var(--accent); color: var(--accent-ink); }
.step-pill.done { color: var(--moss); border-color: var(--moss-wash); background: var(--moss-wash); }
.step-pill.done .i { background: var(--moss); color: var(--surface); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick {
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface2); text-align: left; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .14s, background .14s;
}
.pick:hover { border-color: var(--accent); background: var(--surface); }
.pick.on { border-color: var(--accent); background: var(--accent-wash); }
.pick .t { font-weight: 600; font-size: .92rem; }
.pick .s { font-size: .78rem; color: var(--ink-soft); }

.master-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.mp { display: flex; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface2); text-align: left; }
.mp:hover { border-color: var(--accent); }
.mp.on { border-color: var(--accent); background: var(--accent-wash); }
.mp img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mp .t { font-weight: 600; font-size: .88rem; }
.mp .s { font-size: .74rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day {
  flex-shrink: 0; width: 66px; padding: 10px 0; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface2); text-align: center;
}
.day:hover { border-color: var(--accent); }
.day.on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.day .wd { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.day .dd { font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.day.full { opacity: .35; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.slot {
  padding: 9px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface2); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem;
}
.slot:hover { border-color: var(--accent); }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot[disabled] { opacity: .3; text-decoration: line-through; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 86px; overflow: hidden; }
.summary-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); background: var(--surface2); }
.summary-body { padding: 18px 20px; display: grid; gap: 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.sum-line .l { color: var(--ink-soft); }
.sum-line .v { font-weight: 600; text-align: right; }
.sum-total { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total .v { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.summary-foot { padding: 0 20px 20px; display: grid; gap: 10px; }

.len-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.len { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface2); text-align: center; }
.len.on { border-color: var(--accent); background: var(--accent-wash); }
.len .mm { font-family: var(--font-display); font-size: 1.1rem; }
.len .d { font-size: .76rem; color: var(--ink-soft); }

.confirm-card {
  background: var(--surface); border: 1px solid var(--moss); border-radius: var(--r-lg);
  padding: 32px; text-align: center; max-width: 560px; margin: 0 auto;
}
.confirm-code {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; margin: 14px 0;
}

/* ---------- Кабинет / паспорт питомца ---------- */
.pass-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.pass-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 86px; }
.pass-hero { padding: 22px; background: var(--accent-wash); display: grid; gap: 4px; }
.pass-name { font-family: var(--font-display); font-size: 1.5rem; }
.pass-rows { padding: 18px 22px 22px; display: grid; gap: 11px; }
.pass-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.pass-row .l { color: var(--ink-soft); }
.pass-row .v { font-weight: 600; }

.tl { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.tl-date { font-size: .84rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl-body { display: grid; gap: 9px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 320px; }
.ba figure { margin: 0; }
.ba img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; width: 100%; }
.ba figcaption { font-size: .72rem; color: var(--ink-mute); margin-top: 4px; text-transform: uppercase; letter-spacing: .07em; }

.bonus-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface2); overflow: hidden; margin: 10px 0 6px; }
.bonus-bar i { display: block; height: 100%; background: var(--moss); }

/* ---------- Сертификаты / абонементы ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan-price { font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.plan ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; font-size: .88rem; color: var(--ink-soft); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li::before { content: '—'; color: var(--accent); }
.plan .btn { margin-top: auto; }

.gift {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
}
.gift-preview {
  border-radius: var(--r-md); padding: 26px; color: #fff; min-height: 220px;
  background: linear-gradient(140deg, #1e2b24, #3b2a16 60%, #6b3f12);
  display: flex; flex-direction: column; justify-content: space-between;
}
.gift-preview .amt { font-family: var(--font-display); font-size: 2.2rem; font-variant-numeric: tabular-nums; }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line-soft); }
.post {
  padding: 22px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
  display: grid; gap: 9px; align-content: start; text-align: left;
}
.post:hover { background: var(--surface); }
.post h3 { font-size: 1.06rem; }
.post .m { display: flex; gap: 10px; font-size: .76rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  padding: 17px 0; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 18px; color: var(--ink-soft); max-width: 72ch; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-shell { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface2); aspect-ratio: 4/3; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-pin-label {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, 0);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 9px 13px; box-shadow: var(--shadow-2); font-size: .84rem; font-weight: 600;
  white-space: nowrap;
}

/* ---------- Вакансии ---------- */
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.kv .k { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kv .l { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-family: var(--font-body); font-weight: 600; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-mute); }

/* ---------- Модальное окно галереи ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88);
  display: grid; place-items: center; padding: 32px;
}
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: var(--r-md); }
.lightbox-close { position: absolute; right: 22px; top: 18px; color: #fff; font-size: 1.6rem; padding: 8px 14px; }

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-layout, .pass-layout, .rev-layout { grid-template-columns: 1fr; }
  .summary, .rev-stat, .pass-card { position: static; }
  .gift { grid-template-columns: 1fr; }
  .gal { columns: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* шапка должна уложиться в 360 px: бренд сжимается, подпись уходит */
  .topbar-in { gap: 12px; height: 60px; }
  .brand { min-width: 0; flex-shrink: 1; gap: 9px; }
  .brand > .stack { min-width: 0; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .burger { margin-left: auto; flex-shrink: 0; }
  .topbar-cta { flex-shrink: 0; }
  .topbar-cta .btn { padding: 8px 14px; }
  .nav { display: none; }
  .nav.open {
    display: grid; position: absolute; left: 0; right: 0; top: 66px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px; gap: 2px; box-shadow: var(--shadow-2); max-height: 70vh; overflow-y: auto;
  }
  .burger { display: block; margin-left: auto; }
  .topbar-cta .vswitch { display: none; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(3) { border-left: 0; }
  .trust-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .svc-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .svc-row .dr { grid-column: 1; font-size: .8rem; }
  .svc-row .pr { text-align: left; grid-column: 2; grid-row: 1; }
  .svc-row .act { grid-column: 2; text-align: right; }
  .gal { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Сайт: то, чего не было в прототипе
   ========================================================= */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.page-title { margin: 10px 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h3 { font-size: 1rem; }

.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

.filters { display: flex; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; align-items: center; }
.seg a {
  padding: 7px 16px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600;
  color: var(--ink-soft);
}
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.ac-list a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
}
.ac-list a:last-child { border-bottom: 0; }
.ac-list a:hover, .ac-list a.cursor { background: var(--accent-wash); }

.breed-group { margin-top: 24px; }
.breed-group .eyebrow { margin-bottom: 10px; }
.chip-price { color: var(--ink-mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip.on .chip-price { color: inherit; opacity: .7; }
.chip-static { cursor: default; }
.chip-static:hover { border-color: var(--line); }

.rev-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-photos a { display: block; width: 96px; height: 96px; border-radius: var(--r-md); overflow: hidden; }
.rev-photos img { width: 100%; height: 100%; object-fit: cover; }

.hist-row.on span:first-child { color: var(--accent); font-weight: 700; }
.hist-row:hover span:first-child { color: var(--accent); }

.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; margin-top: 28px; align-items: center; }
.band-photo { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band-quotes { display: grid; gap: 22px; }
.band-quotes blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--accent); }
.band-quotes p { font-size: 1.04rem; color: var(--ground); max-width: 60ch; }
.band-quotes footer { margin-top: 8px; font-size: .84rem; color: color-mix(in srgb, var(--ground) 60%, transparent); }

.gal-5 { columns: 5; }

.master-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.master-photo { border-radius: var(--r-lg); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.map-frame { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1040px) {
  .band-grid, .master-grid { grid-template-columns: 1fr; }
  .gal-5 { columns: 3; }
}
@media (max-width: 760px) {
  .gal-5 { columns: 2; }
  .filters .seg { overflow-x: auto; max-width: 100%; }
}

.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--accent); }

.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin: 0 auto;
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: .86rem; color: var(--ink-soft);
}
.cookie-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-note .btn { flex-shrink: 0; }

.policy { max-width: 72ch; }
.policy h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.policy p, .policy li { color: var(--ink-soft); }
.policy ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.policy .fill { background: var(--accent-wash); color: var(--accent); padding: 0 4px; border-radius: 3px; }

/* Переключатель оформления — только на пробном сайте, пока студия выбирает */
.review-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 140;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px;
  background: var(--ink); color: var(--ground);
  border-radius: var(--r-pill); box-shadow: var(--shadow-2);
  font-size: .82rem; font-weight: 600;
}
.review-bar-label { opacity: .65; margin-right: 6px; }
.review-bar a { padding: 6px 14px; border-radius: var(--r-pill); color: var(--ground); }
.review-bar a.on { background: var(--accent); color: var(--accent-ink); }
.review-bar a:not(.on):hover { background: color-mix(in srgb, var(--ground) 14%, transparent); }
