/* ============================================================
   ХимЧисть — Editorial Monochrome
   ----------------------------------------------------------------
   Дизайн-система построена по принципам Anthropic frontend-design
   skill: интенциональный выбор, отказ от AI-slop (Inter + фиолет +
   карточки-сетки), сильная типографика, скупой акцент.
   Палитра: тёплый кремовый фон, near-black ink, единственный
   "цвет" — золотой только для ★-звёзд в отзывах.
   ============================================================ */

:root {
  /* Editorial b&w палитра */
  --paper:          #fafaf9;   /* теплый off-white (бумага) */
  --paper-2:        #f4f4f3;   /* чуть глубже */
  --paper-3:        #ebebe9;   /* тонкие сепараторы */
  --paper-card:     #ffffff;   /* белая карточка на фоне бумаги */

  --ink:            #0c0c0c;   /* near-black, основной текст */
  --ink-2:          #1f1f1f;   /* слегка светлее near-black */
  --gray-900:       #292929;
  --gray-700:       #525252;
  --gray-500:       #737373;
  --gray-300:       #d4d4d4;
  --gray-200:       #e5e5e4;
  --gray-100:       #f5f5f4;

  /* Совместимость со старыми именами (всё лезет в b&w) */
  --bg-dark:        var(--ink);
  --bg-dark-2:      var(--ink);
  --bg-dark-3:      var(--gray-900);
  --bg-light:       var(--paper-2);
  --bg-light-2:     var(--paper-3);
  --bg-white:       var(--paper-card);

  --text-on-dark:   var(--paper);
  --text-on-dark-2: var(--gray-300);
  --text-on-light:  var(--ink);
  --text-muted:     var(--gray-700);
  --text-subtle:    var(--gray-500);

  --accent:         var(--ink);
  --accent-dark:    var(--ink);
  --accent-darker:  var(--ink);
  --accent-soft:    rgba(12, 12, 12, 0.06);
  --accent-glow:    rgba(12, 12, 12, 0.28);

  --gold:           #c79a2a;   /* только для ★ в отзывах */

  --border-dark:    #1f1f1f;
  --border-light:   var(--paper-3);

  /* Радиусы */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Тени (в b&w они почти неощутимы — больше используем тонкие линии) */
  --sh-sm:  0 1px 2px rgba(12, 12, 12, 0.05);
  --sh-md:  0 4px 16px rgba(12, 12, 12, 0.07);
  --sh-lg:  0 24px 60px rgba(12, 12, 12, 0.14);
  --sh-glow: 0 12px 28px rgba(12, 12, 12, 0.18);

  /* Типографика */
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  --fs-display: clamp(2.4rem, 1rem + 5.2vw, 4.6rem);
  --fs-h1:      clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  --fs-h3:      1.25rem;
  --fs-body:    1.0625rem;

  /* Контейнер */
  --container: 1200px;

  /* Тайминги */
  --t-fast: 0.15s ease;
  --t-base: 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
  --t-slow: 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.04;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 72;
}
h3, h4 { letter-spacing: -0.025em; font-variation-settings: 'opsz' 32; }
p { margin: 0; }

/* focus visible */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ink); color: var(--paper); }

/* ===== layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ===== buttons ===== */
.btn {
  --btn-bg:    var(--ink);
  --btn-fg:    var(--paper);
  --btn-bd:    var(--ink);
  --btn-bg-h:  var(--paper);
  --btn-fg-h:  var(--ink);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast),
              background var(--t-fast),
              color var(--t-fast),
              border-color var(--t-fast),
              box-shadow var(--t-base);
}
.btn:hover {
  background: var(--btn-bg-h);
  color: var(--btn-fg-h);
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active { transform: translateY(0); box-shadow: 2px 2px 0 var(--ink); }

.btn--primary { /* default — solid black inverts to outlined on hover */ }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  --btn-bg-h: var(--ink);
  --btn-fg-h: var(--paper);
}
/* На светлом фоне hover-фон чёрный → offset-плашка должна быть БЕЛОЙ
   с 1px чёрной рамкой, чтобы читалась как «второй слой» под кнопкой. */
.btn--ghost:hover {
  box-shadow:
    4px 4px 0 var(--paper),
    4px 4px 0 1px var(--ink);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--paper);
  --btn-bg-h: var(--paper);
  --btn-fg-h: var(--ink);
}
/* На тёмном фоне hover-фон белый → offset должен быть чёрным с 1px БЕЛОЙ
   рамкой, иначе чёрный сольётся с тёмной секцией. */
.btn--ghost-light:hover {
  box-shadow:
    4px 4px 0 var(--ink),
    4px 4px 0 1px var(--paper);
}

.btn--white {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
  --btn-bg-h: transparent;
  --btn-fg-h: var(--paper);
}
.btn--white:hover {
  box-shadow:
    4px 4px 0 var(--ink),
    4px 4px 0 1px var(--paper);
}

/* Любая кнопка внутри тёмной секции/контейнера на hover тоже инвертирует
   offset-плашку: чёрная заливка + 1px белая рамка, чтобы читалось на ink-фоне. */
.section--dark .btn:hover,
.cta-banner .btn:hover,
.service-card--feature .btn:hover,
.services__cta .btn:hover,
.works__cta .btn:hover {
  box-shadow:
    4px 4px 0 var(--ink),
    4px 4px 0 1px var(--paper);
}
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none !important; box-shadow: none !important; }
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== topbar (status: open/closed) ===== */
.topbar {
  background: var(--ink);
  border-bottom: none;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--paper);
  padding: 10px 0;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-500);
  flex: none;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.topbar.is-open .topbar__dot {
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(250, 250, 249, 0.18);
  animation: topbar-pulse 2.4s ease-in-out infinite;
}
.topbar.is-closed .topbar__dot {
  background: var(--gray-500);
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.2);
}
.topbar__text {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar.is-open  .topbar__text { color: var(--paper); }
.topbar.is-closed .topbar__text { color: var(--gray-300); }
.topbar__sep { color: rgba(250, 250, 249, 0.25); }
.topbar__phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--paper);
  border-bottom: 1px solid var(--paper);
  transition: opacity var(--t-fast);
}
.topbar__phone:hover { opacity: 0.7; }
@keyframes topbar-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(250, 250, 249, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(250, 250, 249, 0.04); }
}
@media (max-width: 480px) {
  .topbar { padding: 7px 0; font-size: 0.8rem; }
  .topbar__sep { display: none; }
  .topbar__phone { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar.is-open .topbar__dot { animation: none; }
}

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--paper-3);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 32;
  isolation: isolate;
}
.logo:hover { color: var(--ink); }
.logo__text strong { color: var(--ink); font-weight: 700; }
/* Лого: инлайновый SVG-монограмма «ХЧ» (currentColor) + тонкий
   сепаратор + wordmark «ХимЧисть». Растровое white.ico остаётся
   только в футере. Отрицательный letter-spacing в SVG-text заводит
   правую диагональ Х на букву Ч — настоящая ligature, не AI slop. */
.logo img { display: block; flex: none; }
.logo__mark { display: block; flex: none; color: var(--ink); }
.footer .logo__mark,
.section--dark .logo__mark { color: var(--paper); }
.logo__sep {
  display: inline-block;
  flex: none;
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.25;
  margin: 0 -2px;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
}
.nav a {
  color: var(--gray-700);
  position: relative;
  padding: 8px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* ===== hero ===== */
.hero {
  position: relative;
  padding: 72px 0 108px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__orb--1 {
  width: 520px; height: 520px;
  top: -240px; right: -180px;
  background: radial-gradient(circle, rgba(12, 12, 12, 0.08) 0%, transparent 70%);
}
.hero__orb--2 {
  width: 420px; height: 420px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(12, 12, 12, 0.04) 0%, transparent 70%);
  opacity: 0.6;
}
.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(12, 12, 12, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 12, 12, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero { padding: 96px 0 128px; }
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 32px;
  border: 1px solid var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 12, 12, 0.12);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(12, 12, 12, 0.12); }
  50%      { box-shadow: 0 0 0 6px rgba(12, 12, 12, 0); }
}
.badge--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 700;
  margin-bottom: 18px;
}
/* live-состояния часов работы */
.badge.is-closed { border-color: var(--gray-500); color: var(--gray-700); }
.badge.is-closed .badge__dot {
  background: var(--gray-500);
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.18);
  animation: none;
}

.hero__title {
  font-size: var(--fs-display);
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 600;
  font-variation-settings: 'opsz' 96;
}
.accent { color: var(--accent); }
.accent--underline {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.accent--underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.12em;
  background: var(--ink);
  border-radius: 0;
  opacity: 1;
  transform-origin: left center;
  animation: underline-grow 1.1s cubic-bezier(0.65, 0.05, 0.36, 1) 0.35s both;
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--paper-3);
}
.trust-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-row strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 32;
}
.trust-row__stars {
  color: var(--gold) !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body) !important;
}
.trust-row__stars span:last-child {
  color: var(--ink);
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.trust-row span {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.4;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== hero form (карточка-аппликация) ===== */
.hero__form {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 36px 32px;
  border-radius: 4px;
  box-shadow: 12px 12px 0 var(--ink);
  position: relative;
}
.hero__form-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--paper-3); }
.hero__form h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 600;
}
.form__sub {
  color: var(--gray-700);
  font-size: 0.93rem;
}

.form { display: flex; flex-direction: column; gap: 16px; }
.form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form__label {
  font-size: 0.72rem;
  color: var(--gray-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}
.form__label small {
  font-size: 0.85em;
  color: var(--gray-500);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}
.form__label em {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  font-family: var(--font-body);
  width: 100%;
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid var(--gray-300);
  background: var(--paper-card);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form__field input::placeholder { color: var(--gray-500); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  background: var(--paper-card);
  box-shadow: 0 0 0 3px rgba(12, 12, 12, 0.08);
}
.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c0c0c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form__field select option { background: var(--paper-card); color: var(--ink); }

.form__legal {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.5;
}
.form__legal a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.form__legal a:hover {
  border-bottom-color: var(--accent);
}

/* ===== custom combobox ===== */
.combobox {
  position: relative;
}
.combobox__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 2px;
  border: 1px solid var(--gray-300);
  background: var(--paper-card);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.combobox__trigger:hover {
  border-color: var(--ink);
}
.combobox.is-open > .combobox__trigger,
.combobox__trigger:focus-visible {
  outline: 0;
  border-color: var(--ink);
  background: var(--paper-card);
  box-shadow: 0 0 0 3px rgba(12, 12, 12, 0.08);
}
.combobox__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
}
.combobox__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.combobox__label {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.combobox__chevron {
  color: var(--ink);
  transition: transform var(--t-base);
}
.combobox.is-open .combobox__chevron {
  transform: rotate(180deg);
}

.combobox__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  transform-origin: top center;
}
.combobox.is-open .combobox__list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.combobox.combobox--up .combobox__list {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  transform: translateY(8px) scale(0.98);
}
.combobox.combobox--up.is-open .combobox__list {
  transform: translateY(0) scale(1);
}

/* стилизация скролла внутри списка */
.combobox__list::-webkit-scrollbar { width: 6px; }
.combobox__list::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 0;
}
.combobox__list::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

.combobox__option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 38px 11px 10px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
  user-select: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.combobox__option-icon {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--paper-2);
  border: 1px solid var(--gray-200);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.combobox__option-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.combobox__option small {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.combobox__option.is-active {
  background: var(--paper-2);
  color: var(--ink);
}
.combobox__option.is-active .combobox__option-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.combobox__option.is-active small {
  color: var(--ink);
}
.combobox__option.is-selected {
  background: var(--paper-2);
}
.combobox__option.is-selected .combobox__option-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.combobox__option.is-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fafaf9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: center;
  box-shadow: 0 2px 8px rgba(12, 12, 12, 0.4);
}

/* ===== sections ===== */
.section {
  padding: 112px 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
}
.section--narrow-pad { padding: 88px 0; }
.section--light {
  background: var(--paper-2);
  color: var(--ink);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section__header {
  margin-bottom: 64px;
  max-width: 760px;
}
.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--ink);
  border-radius: 0;
}
.section--dark .eyebrow { color: var(--gray-300); }
.section--dark .eyebrow::before { background: var(--paper); }

.section__header h2 {
  font-size: var(--fs-h2);
  margin-bottom: 18px;
  color: var(--ink);
}
.section--dark .section__header h2 { color: var(--paper); }
.section__header h2 .accent { color: var(--ink); }
.section--dark .section__header h2 .accent { color: var(--paper); }
.section__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}
.section__header--center .section__lead {
  margin-left: auto;
  margin-right: auto;
}
.section--dark .section__lead { color: var(--text-on-dark-2); }

/* ===== features (Почему мы) ===== */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  padding: 36px 32px;
  border-radius: 4px;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.08);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
}
.feature__icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.feature h3 {
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.feature p {
  color: var(--gray-700);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ===== services ===== */
.services {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  position: relative;
  background: var(--paper-card);
  padding: 36px 32px;
  border-radius: 2px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border: 1px solid var(--paper-3);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 12, 12, 0.08);
  border-color: var(--ink);
}
.service-card--feature {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.service-card--feature h3,
.service-card--feature .service-card__price strong { color: var(--paper); }
.service-card--feature .service-card__price,
.service-card--feature .service-card__price span,
.service-card--feature ul { color: var(--gray-300); }
.service-card--feature ul li::before { background: var(--paper); }
.service-card--feature ul li::after { border-color: var(--ink); }
.service-card--feature .service-card__icon { color: var(--paper); border-color: var(--paper); }
.service-card--feature .tag--popular { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.service-card--feature .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
  --btn-bg-h: transparent;
  --btn-fg-h: var(--paper);
}

.service-card__icon {
  width: 48px; height: 48px;
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.service-card__icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.service-card h3 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 32;
}
/* На выделенной (чёрной) карточке заголовок должен быть кремовым,
   а не ink-чёрным. Повышаем специфичность, чтобы перебить
   .service-card h3, идущее ниже общего правила. */
.service-card.service-card--feature h3 { color: var(--paper); }
.tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  border: 1px solid var(--ink);
}
.tag--popular {
  background: var(--ink);
  color: var(--paper);
}
.service-card__price {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.service-card__price strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 48;
}
.service-card__price span {
  color: var(--gray-500);
  font-size: 0.86rem;
  font-family: var(--font-mono);
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 0.93rem;
  color: var(--gray-700);
}
.service-card ul li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px; height: 14px;
  background: var(--ink);
  border-radius: 50%;
}
.service-card ul li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--paper);
  border-bottom: 1.6px solid var(--paper);
  transform: rotate(-45deg);
}
.service-card .btn {
  margin-top: auto;
  border-radius: 2px;
}

.services__cta {
  margin-top: 56px;
  padding: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--ink);
}
.services__cta p {
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.services__cta .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
  --btn-bg-h: transparent;
  --btn-fg-h: var(--paper);
}

/* ===== pricing list (клининг) ===== */
.pricing {
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  padding: 40px 36px;
  margin-bottom: 32px;
}
.pricing__title {
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.pricing__sub {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 720px;
}
.pricing__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--paper-3);
  transition: background var(--t-fast);
}
.pricing__list li:last-child { border-bottom: none; }
.pricing__list li:hover {
  background: var(--paper-2);
}
.pricing__name {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
}
.pricing__value {
  color: var(--gray-700);
  font-size: 0.88rem;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.pricing__value strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 32;
}
.pricing__btn {
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: var(--font-body);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.pricing__btn:hover {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 600px) {
  .pricing { padding: 24px 20px; }
  .pricing__list li {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .pricing__btn {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
  }
}

/* ===== extra cards (запахи, окна) ===== */
.extras {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.extra-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  padding: 28px;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.extra-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(12, 12, 12, 0.08);
}
.extra-card__icon {
  width: 48px; height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex: none;
  padding-bottom: 8px;
}
.extra-card__icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.extra-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.extra-card p {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}
.extra-card__price {
  font-size: 0.92rem !important;
  color: var(--gray-700) !important;
  margin: 0 !important;
  font-family: var(--font-mono);
}
.extra-card__price strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 32;
}
.extra-card__price span {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.extra-card .btn {
  padding: 12px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .extra-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .extra-card .btn {
    grid-column: 1 / -1;
  }
}

/* ===== works (до/после) ===== */
.works {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.work {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.10);
  border-color: var(--ink);
}
.work__photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e2e8f0;
  cursor: zoom-in;
}
.work__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.work:hover .work__photo img,
.work__photo:focus-visible img {
  transform: scale(1.04);
}
.work__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.78);
  color: var(--paper);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 250, 249, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  pointer-events: none;
}
.work:hover .work__zoom,
.work__photo:focus-visible .work__zoom {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .work__zoom { opacity: 1; transform: none; }
}
.work__label {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 2;
  line-height: 1;
}
.work__label--before {
  left: 14px;
  background: rgba(250, 250, 249, 0.92);
  color: var(--ink);
  border: 1px solid rgba(250, 250, 249, 0.6);
}
.work__label--after {
  right: 14px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 4px 12px rgba(12, 12, 12, 0.25);
}
.work__divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 14px rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}
.work__divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0c0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}
.work__body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work__body h3 {
  font-size: 1.1rem;
  color: var(--text-on-light);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.work__body p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.works__cta {
  margin-top: 56px;
  padding: 36px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.works__cta p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.works__cta .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
  --btn-bg-h: transparent;
  --btn-fg-h: var(--paper);
}
@media (max-width: 600px) {
  .works__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ===== steps ===== */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}
.step {
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  padding: 36px 32px;
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(12, 12, 12, 0.08);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  -webkit-background-clip: unset;
          background-clip: unset;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 0.16em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-300);
  display: block;
}
.step h3 {
  color: var(--ink);
  font-size: 1.32rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.step p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== testimonials ===== */
.testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 32px;
}
.testimonial {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.testimonial::before {
  content: '“';
  position: absolute;
  top: -30px;
  right: 18px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 9rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.10);
  border-color: var(--ink);
  color: inherit;
}
.testimonial:hover .testimonial__more {
  color: var(--ink);
  gap: 10px;
}
.testimonial__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  flex: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial__meta strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}
.testimonial__source {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.testimonial__stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.65;
  font-style: normal;
  position: relative;
  z-index: 1;
}
.testimonial__more {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--paper-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--t-fast), gap var(--t-fast);
}

/* ===== 2gis widget ===== */
.widget-2gis {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  min-height: 600px;
}
.widget-2gis iframe { display: block; width: 100%; }
.reviews__cta {
  margin-top: 36px;
  text-align: center;
}

/* ===== faq ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq__item[open] { border-color: var(--ink); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--t-fast);
  letter-spacing: -0.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0c0c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--t-base);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item:hover summary {
  background: var(--paper-2);
}
.faq__body {
  padding: 0 28px 26px;
  color: var(--gray-700);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ===== cta-banner ===== */
.cta-banner {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 250, 249, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 250, 249, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  color: var(--paper);
  font-size: var(--fs-h2);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}
.cta-banner p {
  color: var(--gray-300);
  font-size: 1.05rem;
}
.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== contacts ===== */
.contacts {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .contacts { grid-template-columns: 1fr 1.2fr; }
}
.contacts__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 2.8vw, 2.8rem);
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 72;
}
.contacts__phone:hover { opacity: 0.7; color: var(--paper); }
.contacts__hours {
  color: var(--gray-300);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(250, 250, 249, 0.18);
  animation: pulse-dot 2.4s infinite;
}
.contacts__address {
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contacts__address strong { color: var(--paper); font-family: var(--font-display); font-weight: 600; }
.muted { color: var(--gray-500); font-size: 0.92rem; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid rgba(250, 250, 249, 0.25);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}

.contacts__legal a {
  color: var(--paper);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-500);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.contacts__map {
  min-height: 380px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--gray-900);
  border: 1px solid var(--gray-900);
  box-shadow: none;
}

/* ===== footer ===== */
.footer {
  background: var(--ink);
  color: var(--gray-300);
  padding: 48px 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--gray-900);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer .logo { font-size: 1.1rem; color: var(--paper); }
.footer .logo__text strong { color: var(--paper); }
.footer__tagline {
  color: var(--gray-500);
  margin-top: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.footer__col { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; }
.footer p { margin: 0; line-height: 1.7; }
.footer a { color: var(--gray-300); }
.footer a:hover { color: var(--paper); }
.footer__legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 249, 0.08);
}
.footer__legal p {
  color: var(--gray-500);
  font-size: 0.74rem;
  line-height: 1.6;
  max-width: 880px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.footer__legal-links {
  margin-top: 12px;
}
.footer__legal-links a {
  color: var(--gray-300);
  border-bottom: 1px dashed rgba(250, 250, 249, 0.18);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer__legal-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.footer__credits {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gray-700);
}
.footer__credits a {
  color: var(--gray-300);
  border-bottom: 1px solid rgba(250, 250, 249, 0.22);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer__credits a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ===== floating phone (на всех экранах) ===== */
.floating-phone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(12, 12, 12, 0.32), 0 0 0 0 rgba(12, 12, 12, 0.4);
  animation: pulse-phone 2.4s infinite ease-out;
  transition: transform var(--t-base), background var(--t-fast), color var(--t-fast);
}
@media (min-width: 1280px) {
  .floating-phone {
    bottom: 32px;
    right: 32px;
    width: 64px; height: 64px;
  }
}
.floating-phone:hover {
  background: var(--paper);
  color: var(--ink);
  transform: scale(1.06);
  border: 1px solid var(--ink);
}
@keyframes pulse-phone {
  0%   { box-shadow: 0 12px 28px rgba(12, 12, 12, 0.32), 0 0 0 0 rgba(12, 12, 12, 0.4); }
  70%  { box-shadow: 0 12px 28px rgba(12, 12, 12, 0.32), 0 0 0 18px rgba(12, 12, 12, 0); }
  100% { box-shadow: 0 12px 28px rgba(12, 12, 12, 0.32), 0 0 0 0 rgba(12, 12, 12, 0); }
}

/* ===== scroll-to-top ===== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 39;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.10);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast), color var(--t-fast);
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--ink);
  color: var(--paper);
}
@media (min-width: 1280px) {
  .scroll-top {
    right: 32px;
    bottom: 108px;          /* 32 + 64 + 12 */
    width: 64px;
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity var(--t-fast); }
}

/* ===== modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.42);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 14px 14px 0 var(--ink);
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  color: var(--ink);
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal__close:hover {
  background: var(--ink);
  color: var(--paper);
}
.modal__body {
  padding: 40px 36px 32px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.modal__body h2 {
  font-size: 1.7rem;
  color: var(--ink);
  margin: 16px 0 12px;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-weight: 600;
}
.modal__body > p {
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* "Или позвонить сразу" под формой */
.modal__alt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-3);
  position: relative;
  text-align: center;
}
.modal__alt-divider {
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-card);
  padding: 0 12px;
  font-size: 0.74rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
  background: var(--paper-card);
}
.modal__call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal__call-link:hover {
  background: var(--ink);
  color: var(--paper);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  animation: fadeIn 0.25s ease;
  cursor: zoom-out;
}
.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 96vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lightbox-pop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 56px);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #0c0c0c;
}
.lightbox__caption {
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 0 12px;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.lightbox__close:hover {
  background: transparent;
  color: var(--paper);
  transform: scale(1.05);
}
@keyframes lightbox-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__image { max-height: calc(94vh - 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop,
  .lightbox__figure { animation: none; }
}

/* ===== reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* лёгкая последовательная задержка для соседей в одной сетке */
.services .service-card.reveal,
.features .feature.reveal,
.steps .step.reveal,
.testimonials .testimonial.reveal,
.extras .extra-card.reveal,
.works .work.reveal {
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.works .work:nth-child(2) { --reveal-i: 1; }
.works .work:nth-child(3) { --reveal-i: 2; }
.works .work:nth-child(4) { --reveal-i: 0; }
.works .work:nth-child(5) { --reveal-i: 1; }
.works .work:nth-child(6) { --reveal-i: 2; }
.works .work:nth-child(7) { --reveal-i: 0; }
.works .work:nth-child(8) { --reveal-i: 1; }
.works .work:nth-child(9) { --reveal-i: 2; }
.services .service-card:nth-child(2) { --reveal-i: 1; }
.services .service-card:nth-child(3) { --reveal-i: 2; }
.services .service-card:nth-child(4) { --reveal-i: 3; }
.services .service-card:nth-child(5) { --reveal-i: 4; }
.services .service-card:nth-child(6) { --reveal-i: 5; }
.features .feature:nth-child(2)  { --reveal-i: 1; }
.features .feature:nth-child(3)  { --reveal-i: 2; }
.features .feature:nth-child(4)  { --reveal-i: 3; }
.steps .step:nth-child(2)        { --reveal-i: 1; }
.steps .step:nth-child(3)        { --reveal-i: 2; }
.steps .step:nth-child(4)        { --reveal-i: 3; }
.testimonials .testimonial:nth-child(2) { --reveal-i: 1; }
.testimonials .testimonial:nth-child(3) { --reveal-i: 2; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .accent--underline::after { animation: none; }
}

/* ===== mobile tweaks ===== */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section--narrow-pad { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .hero__form { padding: 28px 22px; }
  .modal__body { padding: 32px 24px 24px; }
  .services__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-banner__inner { padding: 40px 20px; flex-direction: column; align-items: flex-start; }
  .cta-banner__buttons { width: 100%; }
  .cta-banner__buttons .btn { flex: 1; }
  .footer__col { text-align: left; }
}

/* ===== thanks page ===== */
.thanks {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  background: var(--paper);
}
.thanks__inner {
  max-width: 620px;
  width: 100%;
  text-align: center;
}
.thanks__check {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.18);
  animation: thanksCheck 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
}
.thanks__check::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
  animation: thanksRing 1.6s 0.4s ease-out infinite;
}
@keyframes thanksCheck {
  from { opacity: 0; transform: scale(0.5); }
  60%  { transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes thanksRing {
  from { opacity: 0.55; transform: scale(0.95); }
  to   { opacity: 0;    transform: scale(1.5); }
}
.thanks h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.1rem);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-weight: 600;
}
.thanks__lead {
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.thanks__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 0 0 44px;
}
.thanks__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  padding: 22px 26px;
  border-radius: 2px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.thanks__steps li:hover {
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(12, 12, 12, 0.06);
}
.thanks__step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.thanks__steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.thanks__steps p {
  color: var(--gray-700);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}
.thanks__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.thanks__legal {
  color: var(--gray-500);
  font-size: 0.88rem;
}
.thanks__legal a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

/* ===== legal / privacy page ===== */
.legal-page {
  min-height: calc(100vh - 76px);
  padding: 56px 0 80px;
  background: var(--paper);
}
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-size: 0.86rem;
  margin-bottom: 32px;
  transition: color var(--t-fast);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal__back:hover { color: var(--ink); }
.legal h1 {
  color: var(--ink);
  font-size: clamp(2rem, 1.2rem + 2vw, 2.6rem);
  margin-bottom: 8px;
  letter-spacing: -0.035em;
  font-family: var(--font-display);
  font-weight: 600;
}
.legal__updated {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.legal h2 {
  color: var(--ink);
  font-size: 1.32rem;
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}
.legal p + p { margin-top: 12px; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0;
}
.legal ul li { margin-bottom: 6px; }
.legal ul li::marker { color: var(--ink); }
.legal a:not(.btn):not(.legal__back) {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  transition: opacity var(--t-fast);
}
.legal a:not(.btn):not(.legal__back):hover { opacity: 0.7; }
.legal__contacts {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--paper-card);
  border: 1px solid var(--paper-3);
  border-radius: 2px;
}
.legal__contacts strong { color: var(--ink); font-family: var(--font-display); }
.legal__cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .legal-page { padding: 32px 0 60px; }
  .legal h1 { font-size: 1.6rem; }
  .legal__contacts { padding: 18px 20px; }
}


/* ============================================================
   VPN-подсказка возле соцсетей в контактах
   ============================================================ */
.social { position: relative; }
.social__hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: auto;
  border: 1px solid currentColor;
  opacity: 0.45;
  line-height: 1;
  align-self: center;
}
.contacts__vpn-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 12px 14px;
  background: rgba(250, 250, 249, 0.04);
  border-left: 2px solid rgba(250, 250, 249, 0.25);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-300);
}
.contacts__vpn-note svg { flex: none; margin-top: 2px; opacity: 0.6; }

/* ============================================================
   Режим для слабовидящих — кнопка / тост / панель / темы
   ============================================================ */
.a11y-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0;
}
.a11y-fab:hover,
.a11y-fab:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.a11y-toast {
  position: fixed;
  left: 24px;
  bottom: 84px;
  z-index: 91;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
  padding-right: 44px;                /* место под absolute-крестик */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 400px;
  max-width: calc(100vw - 48px);
  box-shadow: 6px 6px 0 rgba(12, 12, 12, 0.18);
  animation: a11y-toast-in 320ms cubic-bezier(.22,.61,.36,1);
}
/* Обязательно: иначе display:grid выше перебивает дефолтный
   [hidden] { display: none } браузера, и атрибут hidden не работает. */
.a11y-toast[hidden] { display: none; }
@keyframes a11y-toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a11y-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--paper);
  flex: none;
}
.a11y-toast__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.a11y-toast__body p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--gray-300);
  line-height: 1.4;
}
.a11y-toast__btn {
  background: var(--paper);
  color: var(--ink);
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 120ms;
}
.a11y-toast__btn:hover { background: var(--gray-300); }
.a11y-toast__close {
  position: absolute;                 /* всегда в правом верхнем углу,
                                         не уезжает при росте контента */
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--paper);
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 120ms;
}
.a11y-toast__close:hover { opacity: 1; }

/* В крупных режимах «Включить» переезжает на отдельный ряд,
   чтобы не подпирать крестик и не вылезать за границу 400px. */
html.a11y-font-large .a11y-toast,
html.a11y-font-xlarge .a11y-toast {
  grid-template-columns: auto 1fr;
}
html.a11y-font-large .a11y-toast__btn,
html.a11y-font-xlarge .a11y-toast__btn {
  grid-column: 1 / -1;
}

.a11y-panel__dialog { max-width: 520px; }
.a11y-panel__sub {
  color: var(--gray-700);
  font-size: 0.88rem;
  margin: -8px 0 16px;
}
.a11y-group { margin: 0 0 22px; }
.a11y-group__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.a11y-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.a11y-option {
  background: var(--paper);
  border: 1px solid var(--gray-300);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
  text-align: center;
  line-height: 1.2;
}
.a11y-option:hover { border-color: var(--ink); }
.a11y-option.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.a11y-reset { margin-top: 8px; }

/* === Модификаторы режима ===
   Классы вешаются на <html>, а не на <body>, чтобы rem-юниты
   (а у нас на rem завязано почти всё) тоже отмасштабировались. */
html.a11y-font-large  { font-size: 20px; }   /* ×1.25 от 16px */
html.a11y-font-xlarge { font-size: 26px; }   /* ×1.625 от 16px */

@media (max-width: 560px) {
  .a11y-fab { left: 14px; bottom: 80px; width: 44px; height: 44px; }
  .a11y-toast {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 130px;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }
  .a11y-toast__btn { grid-column: 1 / 3; }
  .a11y-toast__close { position: absolute; top: 8px; right: 8px; }
}
