/* =============================================================
   Fibra — стили сайта. Подробно о выборе — в DESIGN.md.
   Характер: молодой, аккуратный, честный. Настроение: белый бокс,
   чёрная машина со светящимися буквами FIBRA, фиолетовый с баннера студии.
   Сначала стили для телефона (от 360px), ниже — дополнения для экранов шире.
   ============================================================= */

/* Шрифты лежат на сайте (assets/fonts, лицензия OFL), браузер качает только нужный набор букв.
   Dela Gothic One — заголовки и цены, Inter — текст. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dela-gothic-one-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dela-gothic-one-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Белый бокс, чёрный кузов, фиолетовый с баннера студии */
  --c-bg: #f7f6fb;
  --c-bg-alt: #efedf6;
  --c-surface: #ffffff;
  --c-surface-2: #ffffff;
  --c-line: #e3e0ec;
  --c-line-2: #b9b3c7;
  --c-led: #141218;
  --c-accent: #7c3aed;          /* фиолетовый: главная кнопка, переключатель, ракель */
  --c-accent-text: #6d28d9;     /* фиолетовый для текста на белом */
  --c-on-accent: #ffffff;       /* на фиолетовом — белый: контраст 5,7:1 */

  /* Шапка, подвал и карточка цены — чёрные, как кузов. Те же имена использует admin.css */
  --c-dark: #141218;
  --c-dark-2: #1d1a23;
  --c-dark-line: #2f2b37;
  --c-on-dark: #f3f1f7;
  --c-on-dark-muted: #aca5b8;
  --c-text: #141218;
  --c-text-2: #3d3846;
  --c-muted: #615a6c;
  --c-input-bg: #ffffff;
  --c-input-line: #8a8396;
  --c-placeholder: #716a7c;

  --c-error: #c62828;
  --c-error-bg: #fbe9e7;
  --c-error-text: #8e1c1c;
  --c-success: #1e8a5a;
  --c-success-bg: #e3f4ea;

  /* Заглушки [ЗАМЕНИТЬ] */
  --c-stub-bg: #fff3cd;
  --c-stub-text: #7a5300;
  --c-stub-line: #d9a400;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
  --font-mono: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 12px;
  --header-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);   /* чтобы шапка не закрывала заголовок блока */
  color-scheme: light;
  scrollbar-color: #b9b3c7 var(--c-bg);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }

::selection { background: rgba(124, 58, 237, .45); color: var(--c-text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { border: 2px solid var(--c-bg); border-radius: 6px; background: #c9c3d8; }
::-webkit-scrollbar-thumb:hover { background: #868d93; }

h1, h2, h3 { margin: 0; line-height: 1.2; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent-text); text-underline-offset: 3px; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.demo-bar {
  margin: 0;
  padding: 7px 20px;
  background: #141218;
  border-bottom: 1px solid #2f2b37;
  color: #d9c9ff;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--c-led); color: var(--c-on-accent);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.stub-demo { color: var(--c-muted); font-style: italic; }

.stub {
  display: inline-block;
  padding: 0 .45em;
  border: 1px dashed var(--c-stub-line);
  border-radius: 3px;
  background: var(--c-stub-bg);
  color: var(--c-stub-text);
  font-family: var(--font);
  font-size: .82em;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.label {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* Светодиодная полоса: тонкая линия, ярче в середине */
.hero::after, .footer::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 243, 246, .55) 50%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 650; line-height: 1.2; letter-spacing: .01em;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.btn--primary:hover { background: #8b5cf6; box-shadow: 0 0 0 1px var(--c-accent), 0 10px 28px -8px rgba(124, 58, 237, .7); }
.btn--ghost, .btn--outline { border-color: var(--c-line-2); background: transparent; color: var(--c-text); }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--c-accent); color: var(--c-accent-text); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(124, 58, 237, .35);
  color: var(--c-accent-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s;
}
.link:hover { border-color: var(--c-accent); }
.link svg { transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--c-dark-line); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.logo {
  margin-right: auto;
  color: var(--c-on-dark);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo { color: var(--c-accent); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
.logo span { margin-left: .28em; color: var(--c-on-dark); }

.header__phone { display: none; }
.header__cta { display: none; }

.burger {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-line-2); border-radius: var(--radius-sm);
  background: transparent; color: var(--c-on-dark);
  cursor: pointer;
}
.burger .icon--close,
.header.is-open .burger .icon--menu { display: none; }
.header.is-open .burger .icon--close { display: block; }

/* Меню на телефоне — панель под шапкой */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 4px 20px 28px;
  background: var(--c-dark);
  border-bottom: 1px solid var(--c-dark-line);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.header.is-open .nav {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-dark-line);
  color: var(--c-on-dark);
  font-size: 18px; font-weight: 600;
  text-decoration: none;
}
.nav__extra { display: grid; gap: 14px; margin-top: 22px; }
.nav__contact { justify-self: center; padding: 4px 0; color: var(--c-accent-text); font-weight: 600; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 92px 0 0; }

.hero__grid { display: grid; gap: 32px; }
.hero__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(40px, 9.4vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__lead { max-width: 34em; margin-top: 20px; color: var(--c-text-2); font-size: 17.5px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 65%;
  border: 1px solid var(--c-line);
  border-radius: 2px;
}
.hero__photo figcaption { margin-top: 10px; color: var(--c-muted); font-size: 13.5px; }

.facts { margin-top: 36px; padding: 8px 0 28px; border-top: 1px solid var(--c-line); }
.facts__item { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; padding: 10px 0; }
.facts dd { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.facts dt { color: var(--c-muted); font-size: 13.5px; line-height: 1.35; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; }

.section { padding: 72px 0; }
.section--alt { background: var(--c-bg-alt); }
.head { display: grid; gap: 12px; margin-bottom: 32px; }
.head__note { max-width: 34em; color: var(--c-muted); }

.svc-grid { display: grid; gap: 16px; }
.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.svc--main::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 243, 246, .7) 50%, transparent); }
.svc__sub { color: var(--c-accent-text); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.svc__title { margin-top: 8px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.svc--main .svc__title { font-size: clamp(22px, 3vw, 28px); }
.svc__text { max-width: 34em; margin-top: 12px; color: var(--c-text-2); }
.prices { margin: 22px 0 20px; border-top: 1px solid var(--c-line); }
.prices__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.prices__name { color: var(--c-text-2); font-size: 15.5px; }
a.prices__name { border-bottom: 1px dashed rgba(124, 58, 237, .45); color: var(--c-accent-text); text-decoration: none; }
.prices__price { font-family: var(--font-mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.svc__more { align-self: flex-start; margin-top: auto; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery__item--big { grid-column: span 2; }
.gallery__link { display: block; overflow: hidden; border-radius: 2px; background: var(--c-surface); cursor: zoom-in; }
.gallery__link img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(.9);
  transition: filter .4s var(--ease);
}
.gallery__link:hover img, .gallery__link:focus-visible img { filter: brightness(1.06); }   /* как будто включили свет */

.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 56px 12px 64px;
  border: 0;
  background: #060708;
  color: var(--c-text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #060708; }
.lightbox__img { max-width: min(100%, 1280px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 2px; object-fit: contain; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 70px; color: var(--c-muted); font-size: 14px; text-align: center; }
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--c-line-2); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--c-text);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lightbox__btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.lightbox__btn--close { top: 10px; right: 10px; }
.lightbox__btn--prev { left: 10px; bottom: 10px; }
.lightbox__btn--next { right: 10px; bottom: 10px; }

.about { display: grid; gap: 40px; align-items: start; }
.about__photo {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  margin-top: 26px; padding: 24px;
  border: 1px dashed var(--c-line-2); border-radius: var(--radius);
  background: var(--c-surface);
  text-align: center;
}
.about__story { margin-top: 18px; color: var(--c-text-2); }
.about__facts { border-top: 1px solid var(--c-line); }
.about__fact { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.about__fact dt { color: var(--c-led); font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.about__fact dd { color: var(--c-text-2); }

.order { display: grid; gap: 40px; }
.order__lead { max-width: 30em; margin-top: 16px; color: var(--c-text-2); }
.order__steps-title { margin-top: 34px; }
.steps { counter-reset: step; margin-top: 12px; border-top: 1px solid var(--c-line); }
.step { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.step::before { content: counter(step, decimal-leading-zero); grid-row: span 2; padding-top: 2px; color: var(--c-accent-text); font-family: var(--font-mono); font-size: 13px; }
.step__title { font-weight: 600; }
.step__text { color: var(--c-text-2); }
.order__avito { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 26px; color: var(--c-text-2); }

.form-card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.form-card::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 243, 246, .7) 50%, transparent); }
.form__row { display: grid; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field__opt { color: var(--c-muted); font-weight: 400; }
.field__req { color: var(--c-accent-text); }

.input {
  display: block;
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--c-input-line); border-radius: var(--radius-sm);
  background: var(--c-input-bg); color: var(--c-text);
  font-size: 16px; line-height: 1.4;              /* 16px — иначе iPhone увеличивает страницу */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--c-placeholder); }
.input:hover { border-color: #7a8592; }
.input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.input[aria-invalid="true"] { border-color: var(--c-error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 138, 128, .18); }
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e99a5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
select.input option { background: var(--c-surface); color: var(--c-text); }
textarea.input { min-height: 116px; resize: vertical; }

.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.field__error { margin-top: 6px; color: var(--c-error); font-size: 14px; font-weight: 600; }
.field__error:empty { display: none; }
.field__count { margin-top: 6px; margin-left: auto; color: var(--c-muted); font-size: 13px; white-space: nowrap; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--c-accent); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* ловушка для ботов */

.form__status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--error { background: var(--c-error-bg); color: var(--c-error-text); }
.form__note { margin-top: 14px; color: var(--c-muted); font-size: 13.5px; }

.form-success { padding: 28px 0 12px; text-align: center; }
.form-success__icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 18px;
  border: 1px solid rgba(95, 211, 160, .4); border-radius: 50%;
  color: var(--c-success);
}
.form-success__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.form-success__title:focus { outline: none; }
.form-success__text { max-width: 26em; margin: 10px auto 24px; color: var(--c-text-2); }

.faq-layout { display: grid; gap: 24px; }
.faq-layout__head .head__note { margin-top: 12px; }
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 17px; font-weight: 600; line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.faq__q:hover { color: var(--c-accent-text); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {                      /* плюс; при открытии поворачивается в крестик */
  content: "";
  position: absolute; top: 50%; right: 6px;
  width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--c-accent), var(--c-accent)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { max-width: 40em; padding: 0 44px 22px 0; color: var(--c-text-2); }
/* Плавное раскрытие ответа — там, где браузер это умеет; в остальных просто открывается */
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height .3s var(--ease), content-visibility .3s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

.contacts { display: grid; gap: 36px; }
.contacts__address { margin: 18px 0 16px; color: var(--c-led); font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 26px); font-weight: 700; line-height: 1.35; }
.contacts__list { border-top: 1px solid var(--c-line); }
.contacts__list > div { display: grid; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.contacts__list dt { color: var(--c-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contacts__list dd { font-size: 16.5px; }
.metro li { display: flex; align-items: center; gap: 10px; }
.metro li + li { margin-top: 6px; }
.metro__line {                        /* кружок с номером линии, как на схеме метро */
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-line-2); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1;
}
.metro__line--1 { background: #da2128; }
.metro__line--2 { background: #2a9a3c; }
.metro__line--3 { background: #0072ba; }
.metro__line--4 { background: #0099cc; }
.metro__line--5 { background: #8d5b2d; }
.metro__line--6 { background: #f07e24; }
.metro__line--7 { background: #943e90; }
.metro__line--8 { background: #ffcd1c; color: #0b0d10; }
.metro__line--9 { background: #a1a2a3; color: #0b0d10; }
.metro__line--10 { background: #b1d332; color: #0b0d10; }
.metro__line--11 { background: #29b1a6; }
.metro__line--12 { background: #acbfe1; color: #0b0d10; }
.metro__line--13 { background: #2c87c5; }
.metro__line--14 { background: #e4402d; }
.metro__line--15 { background: #de64a1; }
.metro__line--21 { background: #f6a600; color: #0a0a0c; }   /* МЦД-1…МЦД-5 */
.metro__line--22 { background: #df467c; }
.metro__line--23 { background: #ea5b1c; }
.metro__line--24 { background: #3fb17f; }
.metro__line--25 { background: #81bc41; color: #0a0a0c; }
.contacts__note { margin-top: 10px; color: var(--c-muted); font-size: 14px; }
.contacts__tg { margin-top: 12px; }
.contacts__phone { display: inline-block; margin-top: 8px; color: var(--c-text); font-weight: 600; text-decoration: none; }

.footer { position: relative; padding: 48px 0 24px; background: var(--c-dark); color: var(--c-on-dark-muted); font-size: 15px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; }
.footer__grid { display: grid; gap: 32px; }
.footer__about p { max-width: 28em; margin-top: 14px; }
.footer__title { margin-bottom: 12px; color: var(--c-on-dark); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer__list li + li { margin-top: 8px; }
.footer a:not(.logo) { color: var(--c-on-dark); text-decoration: none; transition: color .2s; }
.footer a:not(.logo):hover { color: var(--c-accent-text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--c-dark-line);
  font-size: 14px;
}

.sticky-cta { display: none; }

.page-head { padding: 44px 0 36px; border-bottom: 1px solid var(--c-dark-line); background: var(--c-dark); }
.page-head__title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); font-weight: 700; line-height: 1.25; }
.page-head__meta { margin-top: 10px; color: var(--c-muted); }
.doc { max-width: 800px; padding-block: 40px 72px; }
.doc__note {
  margin-bottom: 28px; padding: 14px 16px;
  border-left: 3px solid var(--c-stub-line);
  background: var(--c-stub-bg); color: var(--c-stub-text);
  font-size: 15px;
}
.doc h2 { margin: 36px 0 12px; font-size: 20px; }
.doc p, .doc li { color: var(--c-text-2); }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0; padding-left: 1.3em; list-style: disc; }
.doc li + li { margin-top: 6px; }

/* На странице 404 цифры светятся контуром, как светодиодная трубка */
.message { padding: 72px 0 104px; text-align: center; }
.message__code {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-led);
  font-family: var(--font-display);
  font-size: clamp(96px, 24vw, 180px); font-weight: 700; line-height: 1;
  text-shadow: 0 0 24px rgba(124, 58, 237, .35);
}
.message__title { margin-top: 18px; font-family: var(--font-display); font-size: clamp(22px, 4vw, 30px); font-weight: 700; }
.message__text { max-width: 30em; margin: 12px auto 28px; color: var(--c-text-2); }

@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0 36px; }
  .facts__item { flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 0; }
  .facts dd { font-size: clamp(18px, 3.4vw, 28px); }
  .about__fact { grid-template-columns: 130px minmax(0, 1fr); gap: 20px; }
}

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .contacts__list > div { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .section { padding: 104px 0; }
  .hero { padding-top: 132px; }
  .head { grid-template-columns: minmax(0, 1fr) minmax(0, 26em); align-items: end; gap: 40px; margin-bottom: 44px; }
  .svc { padding: 30px 28px; }
  .svc--main { padding: 36px 34px; }
  .form-card { padding: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery__item--big { grid-row: span 2; }
  .gallery__item--big .gallery__link { height: 100%; }
  .gallery__item--big .gallery__link img { aspect-ratio: auto; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .lightbox { padding: 64px 90px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__btn--prev { left: 20px; }
  .lightbox__btn--next { right: 20px; }
}

@media (min-width: 900px) {
  .svc-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .svc--main { grid-row: span 2; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .about__facts { margin-top: 62px; }
  .contacts { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
}

@media (min-width: 960px) {
  /* Шапка: меню в строку, бургер не нужен */
  .header__inner { gap: 24px; }
  .logo { margin-right: 8px; }
  .nav {
    position: static;
    margin-right: auto; padding: 0;
    max-height: none; overflow: visible;
    background: none; border: 0;
    visibility: visible; opacity: 1; transform: none;
    transition: none;
  }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { padding: 8px 12px; border: 0; color: var(--c-on-dark-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
  .nav__link:hover { color: var(--c-on-dark); }
  .nav__extra { display: none; }
  .header__phone { display: inline; color: var(--c-on-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .burger { display: none; }

  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; }
  .order { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* На телефоне главная кнопка всегда под рукой: появляется, когда кнопка первого экрана ушла вверх,
   и прячется, когда на экране форма (main.js ставит класс is-on) */
@media (max-width: 767px) {
  .js .sticky-cta {
    position: fixed; z-index: 40;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    min-height: 52px;
    border-radius: var(--radius-sm);
    background: var(--c-accent); color: var(--c-on-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .7);
    text-transform: uppercase; letter-spacing: .06em;
    font-weight: 700; text-decoration: none;
    visibility: hidden; transform: translateY(140%);
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .sticky-cta.is-on { visibility: visible; transform: none; transition: transform .3s var(--ease); }
  .js .footer { padding-bottom: 92px; }
}

/* ---------- Fibra: ракель по заголовку, зона риска, переключатель «Машина новая» ---------- */

.h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; text-transform: none; }
.label { font-family: var(--font); font-weight: 600; letter-spacing: .1em; }
.btn--primary { text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn--primary:hover { background: #8b5cf6; box-shadow: 0 12px 26px -12px rgba(124, 58, 237, .8); }
.btn--ghost:hover { background: #fff; }

.logo { color: var(--c-on-dark); font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: .01em; text-transform: none; }
.logo span { margin-left: .3em; color: #b597ff; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav__contact { color: #b597ff; }
.footer a:not(.logo):hover { color: #b597ff; }

/* Первый экран: белый бокс, вертикальное фото справа */
.hero { padding-top: 56px; }
.hero__grid { position: relative; }
.hero__title {
  position: relative;
  margin-top: 16px;
  font-size: clamp(34px, 6.6vw, 64px); font-weight: 400;
  line-height: 1.1; letter-spacing: -.01em; text-transform: none;
}
/* Буквы до плёнки — светлые; слой поверх «приклеивается» за ракелем и делает их чёрными с бликом */
.hero__ink-base { color: #c9c3d8; }
.hero__ink {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--c-text) 0 46%, #5b3aa8 52%, var(--c-text) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  clip-path: inset(0 0 0 0);
  animation: film-on 1.3s .25s var(--ease) backwards, film-shine 1.6s 1.4s var(--ease) both;
}
.hero__rakel {
  position: absolute; top: -8px; bottom: -8px; left: 0;
  width: 10px;
  border-radius: 5px;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
  opacity: 0;
  animation: rakel 1.3s .25s var(--ease) both;
}
@keyframes film-on { from { clip-path: inset(0 100% 0 0); } }
@keyframes film-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes rakel {
  0%   { left: 0; opacity: 1; }
  85%  { left: calc(100% - 10px); opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
.hero__lead { color: var(--c-text-2); }
.hero__photo { max-width: 420px; justify-self: center; width: 100%; }
.hero__photo img { aspect-ratio: 3 / 4; object-position: 50% 40%; border: 0; border-radius: var(--radius); }
.facts { border-top-color: var(--c-line); }
.facts dd { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.facts__item:first-child dd { color: var(--c-accent-text); }

/* Зона риска + цена */
.section--zone { background: var(--c-bg-alt); }
.zone { display: grid; gap: 32px; align-items: start; }
.zone__lead { max-width: 32em; margin-top: 14px; color: var(--c-text-2); }
.zone__list { display: grid; gap: 8px; margin-top: 24px; }
.zone__list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-surface);
  font-size: 17px; font-weight: 600;
}
.zone__list svg { color: var(--c-accent); }
.zone__extra { border-style: dashed !important; background: transparent !important; color: var(--c-text-2); }
.zone__plus { display: inline-grid; place-items: center; width: 20px; color: var(--c-accent-text); font-size: 20px; font-weight: 700; }
.zone__tag { padding: 2px 10px; border-radius: 999px; background: rgba(124, 58, 237, .1); color: var(--c-accent-text); font-size: 13px; font-weight: 600; }
.zone__agreed { max-width: 34em; margin-top: 18px; color: var(--c-text-2); font-size: 15px; }

/* Карточка цены — чёрная, как кузов на фото, с белыми буквами */
.pc {
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--c-dark);
  color: var(--c-on-dark);
  box-shadow: 0 30px 60px -34px rgba(20, 18, 24, .8);
}
.switch { display: flex; align-items: center; gap: 14px; padding: 4px 0 18px; border-bottom: 1px solid var(--c-dark-line); cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; flex-shrink: 0;
  width: 58px; height: 32px;
  border-radius: 999px;
  background: #3a3542;
  transition: background-color .25s var(--ease);
}
.switch__track::after {
  content: ""; position: absolute; top: 4px; left: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  transition: transform .3s var(--ease);
}
.switch__input:checked + .switch__track { background: var(--c-accent); }
.switch__input:checked + .switch__track::after { transform: translateX(26px); }
.switch__input:focus-visible + .switch__track { outline: 2px solid #b597ff; outline-offset: 3px; }
.switch__text b { display: block; font-size: 18px; }
.switch__hint { color: var(--c-on-dark-muted); font-size: 14px; }

.pc__rows { margin-top: 6px; }
.pc__row { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--c-dark-line); }
.pc__row dt { color: var(--c-on-dark-muted); font-size: 15px; }
.pc__val { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pc__old { font-family: var(--font-display); font-size: clamp(32px, 8vw, 44px); line-height: 1.1; transition: font-size .3s var(--ease), color .3s var(--ease); }
.pc__row--small .pc__old { font-family: var(--font); font-size: 18px; font-weight: 600; }
.pc__new { display: none; color: #c4a8ff; font-family: var(--font-display); font-size: clamp(32px, 8vw, 44px); line-height: 1.1; }
.pc__row--small .pc__new { font-size: 28px; }
.pc__note { display: none; margin-top: 14px; color: #c4a8ff; font-size: 15px; font-weight: 600; }
.pc .btn { margin-top: 22px; }
.pc .stub-demo { color: #cfc9da; }
/* Машина новая: старая цена зачёркивается и мельчает, новая въезжает снизу */
.pc:has(.switch__input:checked) .pc__old { color: var(--c-on-dark-muted); font-family: var(--font); font-size: 18px; font-weight: 500; text-decoration: line-through; }
/* У керамики цена ещё не известна — «уточним у вас» не зачёркиваем */
.pc:has(.switch__input:checked) .pc__row--small .pc__old { text-decoration: none; }
.pc:has(.switch__input:checked) .pc__new { display: inline-block; animation: price-in .45s var(--ease) both; }
.pc:has(.switch__input:checked) .pc__note { display: block; }
@keyframes price-in { from { opacity: 0; transform: translateY(14px); } }

/* Как проходит работа: пять шагов с крупными цифрами */
.flow { display: grid; gap: 10px; margin-top: 28px; }
.flow__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-content: start;
  padding: 18px 18px 18px 14px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.flow__num { grid-row: span 2; color: var(--c-accent); font-family: var(--font-display); font-size: 36px; line-height: 1; }
.flow__title { font-size: 17px; }
.flow__text { color: var(--c-text-2); font-size: 15px; }

.svc { background: var(--c-surface); }
.svc__title { font-weight: 400; }
.prices__price { font-family: var(--font); font-weight: 600; }

/* Фото у студии вертикальные — плитки тоже вертикальные */
.gallery__link img { aspect-ratio: 3 / 4; filter: none; }
.gallery__link:hover img, .gallery__link:focus-visible img { filter: brightness(1.08); }
.about__fact dt { font-weight: 400; }
.about__more { margin-top: 18px; }
.form-card { box-shadow: 0 24px 50px -32px rgba(20, 18, 24, .45); }
.form-success__title, .message__title, .page-head__title { font-weight: 400; }
.faq__q:hover { color: var(--c-accent-text); }

/* Где мы: два адреса */
.metro__note { margin-top: 8px; color: var(--c-muted); font-size: 14px; }
.addr { margin-top: 20px; }
.addr__line { margin-bottom: 8px; font-size: clamp(18px, 2.3vw, 22px); font-weight: 700; line-height: 1.35; }
.addr__src { display: block; color: var(--c-muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.addr__note { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: rgba(124, 58, 237, .08); font-size: 14.5px; }

.sticky-cta { text-transform: none !important; letter-spacing: 0 !important; }

@media (min-width: 560px) {
  .pc { padding: 30px 28px; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero { padding-top: 84px; }
  .about__fact { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .pc { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 8px; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
@media (min-width: 1100px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow__item { grid-template-columns: 1fr; row-gap: 10px; padding: 20px 18px 22px; }
  .flow__num { grid-row: auto; font-size: 44px; }
}

/* Тем, кто попросил систему уменьшить движение, — без анимаций */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
