/* ============================================================
   РемПромЭл — Оренбург. Дизайн-система прототипа
   Палитра: тёплая светлая база + один янтарный акцент
   Шрифты: Barlow (текст) + Oswald (заголовки)
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #14151a;
  --muted: #5b5e68;
  --line: #e5e3dc;
  --accent: #d97b29;
  --accent-ink: #a85c14;
  --accent-soft: #f8ecdd;
  --dark: #14151a;
  --dark-surface: #1e2026;
  --on-dark: #f3f2ee;
  --on-dark-muted: #a7aab3;

  --shadow-sm: 0 1px 2px rgba(20, 21, 26, .04), 0 2px 8px rgba(20, 21, 26, .05);
  --shadow-md: 0 2px 4px rgba(20, 21, 26, .05), 0 16px 40px -12px rgba(20, 21, 26, .18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --font-body: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(217, 123, 41, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Контейнер и секции ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--slim { padding-block: clamp(36px, 5vw, 56px); }
.section--dark { background: var(--dark); color: var(--on-dark); }

/* Заголовок секции с индексом */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.sec-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--accent);
  flex-shrink: 0;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.sec-lead {
  max-width: 64ch;
  color: var(--muted);
  margin-bottom: 36px;
}
.section--dark .sec-lead { color: var(--on-dark-muted); }

/* ---------- Кнопки и чипы ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(217, 123, 41, .55);
}
.btn--accent:hover { background: #c96f1f; }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light-ghost {
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--light-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .8); }

.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { width: 100%; }

/* Чипы тегов */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .01em;
}
.brand__text small { color: var(--muted); font-size: .78rem; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover { background: rgba(20, 21, 26, .05); }
.nav-link.is-active { color: var(--accent-ink); font-weight: 600; }

.caret { width: 11px; height: 11px; flex-shrink: 0; opacity: .55; transition: transform .2s ease; }

.has-sub { position: relative; }
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.has-sub:hover .caret,
.has-sub:focus-within .caret { transform: rotate(180deg); }

.sub-menu li + li { margin-top: 2px; }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: .93rem;
  color: var(--ink);
}
.sub-menu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 600;
}
.city-chip svg { width: 13px; height: 13px; color: var(--accent); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu { display: none; }

@media (max-width: 1180px) {
  .nav-link { padding-inline: 9px; font-size: .9rem; }
}

@media (max-width: 959px) {
  .site-nav,
  .header-actions .city-chip,
  .header-actions .btn { display: none; }
  .burger { display: inline-flex; }

  .mobile-menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .mobile-menu {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .mobile-menu ul { padding: 12px 24px 24px; }
  .mobile-menu a,
  .mobile-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a.is-active { color: var(--accent-ink); font-weight: 600; }
  .mm-sub-label {
    padding: 14px 8px 4px !important;
    border-bottom: 0 !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted) !important;
  }
  .mm-sub a { padding-left: 20px; font-size: .95rem; }
}

/* ---------- Хиро (главная) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 78vh, 760px);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 21, 26, .82) 0%, rgba(20, 21, 26, .55) 48%, rgba(20, 21, 26, .25) 100%);
}
.hero__content { max-width: 640px; padding-block: 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -.015em;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(243, 242, 238, .85);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Хиро-фото для статьи */
.hero--photo { min-height: clamp(460px, 62vh, 620px); align-items: flex-end; }
.hero--photo::after {
  background: linear-gradient(to top, rgba(20, 21, 26, .85) 0%, rgba(20, 21, 26, .45) 55%, rgba(20, 21, 26, .3) 100%);
}

/* ---------- Хлебные крошки и page-hero (светлый вариант) ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  color: var(--on-dark-muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: inherit; transition: color .2s ease; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs .current { color: rgba(243, 242, 238, .9); font-weight: 600; }

.page-hero { padding-block: clamp(48px, 7vw, 80px) clamp(40px, 5vw, 56px); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 24ch;
  margin-bottom: 16px;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Карточки услуг ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e9e7e1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.04); }

.card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.card__title { font-size: 1.08rem; line-height: 1.35; font-weight: 600; }
a.card:hover .card__title,
.card__title a:hover { color: var(--accent-ink); }
.card__text { font-size: .92rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Featured-карточка (широкая) */
.card--featured { grid-column: span 3; flex-direction: row; }
.card--featured .card__img { width: 46%; aspect-ratio: auto; min-height: 280px; }
.card--featured .card__body { padding: 32px; justify-content: center; gap: 14px; }
.card--featured .card__title { font-size: 1.5rem; max-width: 26ch; }
.card--featured .card__text { -webkit-line-clamp: 4; font-size: .98rem; }

/* ---------- Прочий контент статьи (prose) ---------- */
.prose { max-width: 74ch; }
.prose > p + p { margin-top: 1.2em; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.prose h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body { padding-block: clamp(48px, 6vw, 72px); }
.article-section + .article-section { margin-top: clamp(56px, 7vw, 80px); }

.prose figure {
  margin: 32px 0;
}
.prose figcaption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--muted);
}
.img-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #e9e7e1;
}
.img-frame img { width: 100%; }

/* Таблицы в тексте статьи */
.table-wrap { overflow-x: auto; margin: 28px 0; }
.prose .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.prose .data-table th,
.prose .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.prose .data-table th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}
.prose .data-table tr:last-child td { border-bottom: none; }

/* Полоса статистики */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--accent-ink);
}
.stat__label { font-weight: 600; }
.stat__text { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .sec-head h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }

.cta-card {
  margin-top: 28px;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-md);
  padding: 24px;
}
.cta-card p { font-size: .95rem; color: var(--on-dark-muted); margin-bottom: 16px; }
.cta-card a.phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}
.cta-card a.phone:hover { color: var(--accent); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform .25s ease, background-color .25s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-body { padding: 0 4px 22px; }
.faq-body p { color: var(--muted); margin-bottom: .8em; }

/* ---------- CTA-полоса (тёмная) ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.cta-band p { color: var(--on-dark-muted); max-width: 46ch; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: #fff;
}
.cta-band .phone:hover { color: var(--accent); }

/* ---------- Похожие материалы ---------- */
.related-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
}
.related-side { display: grid; gap: 24px; align-content: start; }
.card--compact .card__img { aspect-ratio: 16 / 8; }

/* ---------- Партнёры ---------- */
.partners { padding-block: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.partners__label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.partners__row img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .25s ease, opacity .25s ease;
}
.partners__row a:hover img { filter: none; opacity: 1; }

/* ---------- Прайс (строки) ---------- */
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.price-row__price { display: flex; flex-direction: column; }
.price-row__from { font-size: .85rem; color: var(--muted); }
.price-row__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}
.price-row h3 { font-size: 1.25rem; margin-bottom: 10px; }
.price-row ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.price-row li { position: relative; padding-left: 18px; font-size: .93rem; color: var(--muted); }
.price-row li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 2px;
  background: var(--accent);
}

/* ---------- Главная: о нас ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.quote-block {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.quote-block p { font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.quote-sign { display: flex; align-items: center; gap: 12px; }
.quote-sign img { height: 34px; width: auto; opacity: .8; }
.quote-sign span { font-size: .9rem; color: var(--muted); }

/* ---------- Главная: этапы ---------- */
.stages-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.stages-aside { position: sticky; top: calc(var(--header-h) + 24px); }

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.stages-list .step:last-child { border-bottom: 1px solid var(--line); }
.step__icon {
  width: 58px; height: 58px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.step__icon img { width: 34px; height: 34px; object-fit: contain; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step__goal { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.step ul { display: grid; gap: 4px; }
.step li { position: relative; padding-left: 16px; font-size: .92rem; color: var(--muted); }
.step li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 6px; height: 2px;
  background: var(--accent);
}

/* ---------- Главная: причины + диаграмма ---------- */
.reasons-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.reasons-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.reasons-list .reason-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}
.reasons-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.reasons-list p { font-size: .93rem; color: var(--muted); margin: 0; }

.donut-wrap {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-top: 40px;
}
.donut {
  position: relative;
  width: 210px;
  height: 210px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 45%, var(--ink) 45% 80%, #9aa0ab 80% 100%);
}
.donut::before {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--surface);
}
.donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.donut__center b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.donut__center span { font-size: .78rem; color: var(--muted); }

.legend { display: grid; gap: 14px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.sw-1 { background: var(--accent); }
.sw-2 { background: var(--ink); }
.sw-3 { background: #9aa0ab; }
.donut-note { margin-top: 20px; font-size: .9rem; color: var(--muted); text-align: center; }
.legend .pct { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* ---------- О нас (страница) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.about-nav a {
  display: block;
  padding: 10px 14px;
  border-left: 2px solid var(--line);
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.about-nav a:hover { color: var(--ink); border-left-color: var(--accent); }

.about-block + .about-block { margin-top: 44px; }
.about-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.photo-pair .img-frame img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Шаги (мини) */
.steps-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-mini { border-top: 2px solid var(--line); padding-top: 18px; transition: border-color .25s ease; }
.step-mini:hover { border-top-color: var(--accent); }
.step-mini__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.step-mini h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-mini p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Статистика (тёмная) */
.stats-dark-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.stat-dark { display: flex; align-items: center; gap: 24px; }
.stat-dark + .stat-dark { margin-top: 32px; }
.stat-dark img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r-md); flex-shrink: 0; }
.stat-dark__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
}
.stat-dark h3 { font-size: 1.15rem; margin-bottom: 6px; }
.stat-dark p { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }

/* Таймлайн */
.timeline { position: relative; padding-left: 32px; max-width: 720px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--accent);
}
.timeline .year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--accent-ink);
}
.timeline h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 60ch; }

/* ---------- Каталог (частотники) ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-card__img {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.product-card__img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.product-brand { font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: var(--accent-ink); text-transform: uppercase; }
.product-card__body h3 { font-size: 1.02rem; line-height: 1.4; font-weight: 600; }

.product-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.link-quiet { font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: var(--accent-ink); }

details.model-list { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.model-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.model-list summary::-webkit-details-marker { display: none; }
.model-list summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: transform .25s ease;
}
.model-list[open] summary::after { transform: rotate(45deg); }
.model-list__body p { font-size: .8rem; line-height: 1.65; color: var(--muted); margin: 0 0 12px; max-height: 160px; overflow-y: auto; padding-right: 8px; }
.model-note { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.link-accent { display: inline-block; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: background-color .2s ease, color .2s ease; }
.link-accent:hover { background: var(--accent-soft); }

/* ---------- Умный поиск ---------- */
.search-card {
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
}
.search-row { display: flex; gap: 12px; }
.search-card form > label { display: block; font-weight: 600; margin-bottom: 10px; }
.input, .select, textarea.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 123, 41, .18);
}
.search-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }

.examples { max-width: 760px; margin-top: 40px; }
.examples h3 { font-size: 1.15rem; margin-bottom: 18px; }
.example-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.query-chip {
  font-weight: 700;
  font-size: .9rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.example-list p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Гарантия (документ) ---------- */
.doc-section + .doc-section { margin-top: 44px; }
.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.doc-section ol { counter-reset: clause; display: grid; gap: 12px; }
.doc-section li { position: relative; padding-left: 44px; color: var(--muted); }
.doc-section li::before {
  counter-increment: clause;
  content: counter(clause, decimal-leading-zero);
  position: absolute;
  left: 0; top: .1em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-ink);
}
.doc-section > p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Футер ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr .8fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px) 40px;
}

.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.footer-brand strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; display: block; line-height: 1.2; }
.footer-brand small { color: var(--on-dark-muted); font-size: .78rem; }

.site-footer p { color: var(--on-dark-muted); font-size: .93rem; }

.footer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer address { font-style: normal; color: var(--on-dark-muted); font-size: .93rem; line-height: 1.7; }

.hours li, .contacts li { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .93rem; }
.hours span { color: var(--on-dark-muted); }
.contacts a { color: var(--on-dark); transition: color .2s ease; }
.contacts a:hover { color: var(--accent); }

.contact-form label { display: block; margin-bottom: 14px; font-size: .85rem; font-weight: 600; color: var(--on-dark-muted); }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  background: var(--dark-surface);
  color: var(--on-dark);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(167, 170, 179, .6); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 123, 41, .25);
}
.contact-form textarea { resize: vertical; min-height: 84px; }

.checkbox-label { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 500 !important; color: var(--on-dark-muted) !important; }
.checkbox-label input { width: auto !important; margin: 0 !important; accent-color: var(--accent); }

.form-note { font-size: .82rem !important; color: var(--accent) !important; margin-top: 12px; }


.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--on-dark-muted); font-size: .93rem; transition: color .2s ease; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal span { font-size: .85rem; color: var(--on-dark-muted); cursor: default; opacity: .7; }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #c96f1f; }

/* ---------- Появление секций ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .services-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid, .about-split, .reasons-split, .stages-grid, .faq-grid, .related-grid, .stats-dark-grid { grid-template-columns: 1fr; }
  .stages-aside, .faq-aside, .about-nav { position: static; }
  .steps-mini { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .donut-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .services-grid, .catalog-grid, .photo-pair, .search-filters { grid-template-columns: 1fr; }
  .card--featured { grid-column: span 1; flex-direction: column; }
  .card--featured .card__img { width: 100%; min-height: 220px; aspect-ratio: 16 / 9; }
  .stats-strip { grid-template-columns: 1fr; gap: 20px; }
  .price-row { grid-template-columns: 1fr; gap: 14px; }
  .price-row ul { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .step__icon { width: 48px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .example-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Пагинация ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 44px; }
.page-info { font-size: .9rem; color: var(--muted); margin-right: 12px; }
.pagination a,
.pagination .cur {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding-inline: 10px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: .9rem;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.pagination .cur { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pagination .dots { color: var(--muted); padding-inline: 4px; }

/* ---------- Карточки кейсов (портфолио) ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e9e7e1; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; flex: 1; }
.case-card h3 { font-size: 1.1rem; line-height: 1.4; }
.case-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--line); }
.case-lists h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.case-lists li { position: relative; padding-left: 14px; font-size: .87rem; line-height: 1.55; color: var(--muted); margin-bottom: 4px; }
.case-lists li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 2px; background: var(--accent); }

/* ---------- Прочее ---------- */
.footer-grid > div > .footer-title:not(:first-child) { margin-top: 24px; }
.search-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.subhead { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 12px; }
.about-split > figure, .reasons-split > figure { margin: 0; }

@media (max-width: 900px) {
  .cases-grid, .case-lists { grid-template-columns: 1fr; }
}
