/* ============================================================
   ФЕНИКС · Слой 5: внутренние страницы
   ============================================================ */

/* Чередование фона: соседние секции не сливаются в одну простыню */
.section.alt { background: var(--bg-800); }

/* ------------------------------------------------------------
   Хлебные крошки
   ------------------------------------------------------------ */

.crumbs { margin-bottom: var(--s-7); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 85;
}
.crumbs li { display: flex; align-items: center; gap: var(--s-3); color: var(--txt-3); }
.crumbs li + li::before {
  content: '';
  width: 12px; height: 1px;
  background: var(--line-hi);
  flex: none;
}
.crumbs a { color: var(--txt-2); transition: color var(--t-fast) var(--e-out); }
.crumbs a:hover { color: var(--fx-orange); }
.crumbs [aria-current] { color: var(--txt-0); }

/* ------------------------------------------------------------
   Шапка внутренней страницы
   ------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding-top: calc(84px + var(--s-10));
  padding-bottom: var(--s-10);
  overflow: hidden;
  background: var(--bg-800);
  border-bottom: 1px solid var(--line);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero > .blueprint { z-index: 1; }

/* Только страницы услуг: под полем искр нужна та же глубокая чернота,
   что на первом экране главной — на --bg-800 искры сереют.
   Модификатор --plate стоит ровно на этих восьми страницах. */
.page-hero--plate { background: var(--bg-900); }

.page-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .4;
}

/* ---- Мерцающее поле искр (страницы услуг) ----
   Три слоя с разными периодами: 4,2 / 5,9 / 7,3 с. Периоды несоизмеримы,
   поэтому рисунок мерцания не зацикливается заметно для глаза.
   Отрицательные задержки стартуют слои в разных фазах. */
.page-hero__bg--sparks .sparks {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}
.sparks--a { background-image: url(/assets/img/bg/sparks-1.webp); animation: spark-blink 4.2s ease-in-out       infinite; }
.sparks--b { background-image: url(/assets/img/bg/sparks-2.webp); animation: spark-blink 5.9s ease-in-out -1.8s infinite; }
.sparks--c { background-image: url(/assets/img/bg/sparks-3.webp); animation: spark-blink 7.3s ease-in-out -3.4s infinite; }

@keyframes spark-blink {
  0%, 100% { opacity: .95; }
  50%      { opacity: .32; }
}

/* Мерцание — украшение, а не смысл: при запросе на спокойный интерфейс
   гасим анимацию и оставляем ровное поле. */
@media (prefers-reduced-motion: reduce) {
  .page-hero__bg--sparks .sparks { animation: none; opacity: .8; }
}
/* Подложка повторяет первый экран главной: тёплое свечение справа,
   затемнение слева под текст, уход в фон страницы книзу. */
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 62% at 72% 46%, rgba(255, 138, 31, .10) 0%, transparent 68%),
    radial-gradient(90% 70% at 20% 40%, rgba(9, 11, 14, .92) 0%, rgba(9, 11, 14, .45) 60%, transparent 100%),
    linear-gradient(180deg, rgba(9, 11, 14, .55) 0%, transparent 34%, var(--bg-900) 97%);
}

.page-hero__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.page-hero--plate .page-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.page-hero__text > .section-head__top { margin-bottom: var(--s-5); }
.page-hero h1 { margin-bottom: var(--s-5); }
.page-hero .lead { max-width: 58ch; }

.page-hero__plate {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 11, 14, .5);
  padding: var(--s-5);
  backdrop-filter: blur(2px);
}

.page-hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-hi);
  aspect-ratio: 16 / 11;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(9,11,14,.82) 100%);
}
.page-hero__media figcaption {
  position: absolute;
  z-index: 2;
  left: var(--s-5); bottom: var(--s-5);
  padding: 6px var(--s-4);
  border-radius: 100px;
  background: rgba(9, 11, 14, .72);
  border: 1px solid var(--line-hi);
  color: var(--txt-1);
  font-size: 10px;
}

/* ------------------------------------------------------------
   Чертёжный планшет — авторская графика раздела
   ------------------------------------------------------------ */

.plate { width: 100%; height: auto; display: block; }
.plate * { vector-effect: non-scaling-stroke; }

.plate .pl-grid { stroke: var(--line); stroke-width: 1; opacity: .5; }
.plate .pl-grid-g { opacity: .45; }
.plate .pl-thin { stroke: var(--line-hi); stroke-width: 1; }
.plate .pl-main { stroke: var(--txt-1); stroke-width: 1.6; stroke-linejoin: round; }
.plate .pl-accent { stroke: var(--fx-orange); stroke-width: 1.6; stroke-linecap: round; }
.plate .pl-fill { fill: rgba(255, 138, 31, .07); stroke: none; }
.plate .pl-hatch,
.plate .pl-hatch2,
.plate .pl-dots { stroke: none; }
.plate .pl-hatch-line { stroke: var(--txt-3); stroke-width: 1; fill: none; }
.plate .pl-dot { fill: var(--txt-3); stroke: none; }
.plate .pl-beam { stroke-dasharray: 5 5; }
.plate .pl-crack { stroke-width: 2; }
.plate .pl-text {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-variation-settings: 'wdth' 82;
  fill: var(--txt-2);
  stroke: none;
  letter-spacing: .04em;
}

/* Планшет прорисовывается при появлении — линия «чертится», а не проявляется */
html.js [data-reveal] .plate .pl-main,
html.js [data-reveal] .plate .pl-accent { }

/* ------------------------------------------------------------
   Текстовый блок
   ------------------------------------------------------------ */

.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s-5); }
.prose p { color: var(--txt-1); }
.prose a { color: var(--fx-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   Полоса числовых фактов
   ------------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: var(--s-2); }
.fact b {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  background: var(--fx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact span { font-size: var(--fs-200); color: var(--txt-2); max-width: 30ch; }

/* ------------------------------------------------------------
   Список «что входит»
   ------------------------------------------------------------ */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6) var(--s-7);
}
.check { display: flex; gap: var(--s-4); align-items: flex-start; }
.check__mark {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--fx-grad-soft);
  border: 1px solid var(--line);
  color: var(--fx-orange);
  margin-top: 2px;
}
.check__mark svg { width: 15px; height: 15px; }
.check b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--txt-0);
  margin-bottom: 6px;
  line-height: 1.3;
}
.check p { font-size: var(--fs-200); color: var(--txt-2); line-height: 1.6; }

/* ------------------------------------------------------------
   Нумерованная лента этапов
   ------------------------------------------------------------ */

/* Соединитель рисуем внутри каждого шага, а не одной линией на всю ленту:
   общая линия торчала на 53 px выше первого кружка и висела ниже последнего,
   а оранжевый участок градиента оказывался в пустоте над первым шагом. */
.tl {
  --tl-r: 27px;
  --tl-pad: var(--s-5);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tl__item {
  position: relative;
  display: flex;
  gap: var(--s-6);
  padding-block: var(--tl-pad);
  align-items: flex-start;
}
.tl__item::before {
  content: '';
  position: absolute;
  left: var(--tl-r);
  top: calc(var(--tl-pad) + var(--tl-r));
  height: 100%;
  width: 1px;
  background: var(--line);
}
.tl__item:last-child::before { display: none; }
.tl__item + .tl__item { border-top: 1px solid var(--line); }
.tl__num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: var(--bg-800);
  font-family: var(--ff-mono);
  font-size: 13px;
  font-variation-settings: 'wdth' 85;
  color: var(--txt-2);
  transition: color var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out),
              background-color var(--t-mid) var(--e-out);
}
.section.alt .tl__num { background: var(--bg-800); }
.section:not(.alt) .tl__num { background: var(--bg-900); }
.tl__item:hover .tl__num {
  color: var(--fx-orange);
  border-color: var(--fx-orange);
}
.tl__body b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--txt-0);
  margin-bottom: var(--s-2);
  line-height: 1.25;
}
.tl__body p { color: var(--txt-2); font-size: var(--fs-200); max-width: 76ch; }

/* ------------------------------------------------------------
   Таблица нормативной базы
   ------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-700);
}
.norms { width: 100%; border-collapse: collapse; min-width: 520px; }
.norms th, .norms td {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.norms thead th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 85;
  color: var(--txt-3);
  font-weight: 500;
  background: var(--bg-800);
}
.norms tbody tr:last-child td { border-bottom: none; }
.norms tbody tr { transition: background-color var(--t-fast) var(--e-out); }
.norms tbody tr:hover { background: var(--bg-600); }
.norms td:first-child {
  color: var(--fx-orange);
  white-space: nowrap;
  font-size: 12px;
  font-variation-settings: 'wdth' 85;
}
.norms td:last-child { color: var(--txt-1); font-size: var(--fs-200); }

/* ------------------------------------------------------------
   Сетки карточек
   ------------------------------------------------------------ */

.grid-cards { display: grid; gap: var(--gutter); }
.grid-cards--2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards--3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards--4 { grid-template-columns: repeat(4, 1fr); }
.grid-cards .link { margin-top: auto; padding-top: var(--s-3); }

/* ------------------------------------------------------------
   Карточки услуг с планшетом
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Услуги — бенто
   Семь одинаковых карточек в ряд читались как таблица. Разные размеры
   задают ритм и подсказывают, с чего начинать смотреть.
   ------------------------------------------------------------ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 430px;   /* было 280 — карточки читались мелкими */
  gap: var(--gutter);
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-700);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out);
}
.svc-card:hover { border-color: var(--fx-orange); transform: translateY(-4px); }

/* крупная — на всю ширину, кадр и текст рядом */
.svc-card--wide { grid-column: span 6; }
.svc-card--sm   { grid-column: span 3; }

/* Кадр без единого затемняющего слоя — фотография показана как есть */
.svc-card__media { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.svc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e-out);
}
.svc-card:hover .svc-card__media img { transform: scale(1.05); }

.svc-card__num {
  position: absolute;
  z-index: 2;
  top: var(--s-4); left: var(--s-4);
  padding: 5px var(--s-3);
  border-radius: 100px;
  background: rgba(9, 11, 14, .78);
  border: 1px solid var(--line-hi);
  color: var(--fx-orange);
  font-size: 10px;
}

.svc-card__body {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--bg-700);
  border-top: 1px solid var(--line);
}
.svc-card__body .card__text { color: var(--txt-2); }
.svc-card__body .link { margin-top: var(--s-2); }

/* широкая — кадр слева, текст справа */
.svc-card--wide { flex-direction: row; }
.svc-card--wide .svc-card__media { flex: 1 1 58%; }
.svc-card--wide .svc-card__body {
  flex: 1 1 42%;
  justify-content: center;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 44px);
}
.svc-card--wide .card__title { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.svc-card--tall .card__title { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

/* ------------------------------------------------------------
   Проекты — развёрнутые карточки
   ------------------------------------------------------------ */

.prj-list { display: flex; flex-direction: column; gap: var(--s-8); }
.prj {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
.prj:last-child { border-bottom: none; padding-bottom: 0; }
.prj:nth-child(even) .prj__media { order: 2; }
.prj__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.prj__media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--e-out); }
.prj:hover .prj__media img { transform: scale(1.04); }
.prj__body { display: flex; flex-direction: column; gap: var(--s-3); }
.prj__label { margin-top: var(--s-4); color: var(--txt-3); }
.prj__works { display: flex; flex-direction: column; gap: var(--s-2); }
.prj__works li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--fs-200);
  color: var(--txt-1);
}
.prj__works li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 1px;
  background: var(--fx-orange);
}

/* ------------------------------------------------------------
   Блок связи вместо формы заявки
   Заказчик принимает обращения только звонком и письмом, поэтому
   на месте формы — два действия и справка о режиме работы.
   ------------------------------------------------------------ */

.cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.cta__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-700);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out);
}

/* Градиентная подложка. Все три карточки оформлены одинаково — раньше
   первая была подсвечена, а третья пунктирная, и это читалось как
   «одна из них выделена», хотя курсор ни на чём не стоял. */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: opacity var(--t-mid) var(--e-out), transform 1.1s var(--e-out);
}
.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(9, 11, 14, .55) 0%, rgba(9, 11, 14, .88) 100%);
}

a.cta__card:hover { border-color: var(--fx-orange); transform: translateY(-4px); }
a.cta__card:hover .cta__bg img { opacity: .75; transform: scale(1.05); }

.cta__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: rgba(9, 11, 14, .55);
  border: 1px solid var(--line-hi);
  color: var(--fx-orange);
  margin-bottom: var(--s-2);
  backdrop-filter: blur(6px);
}
.cta__icon svg { width: 22px; height: 22px; }

.cta__label { color: var(--txt-2); }
.cta__value {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: var(--ls-head);
  color: var(--txt-0);
  overflow-wrap: anywhere;
}
.cta__note { font-size: var(--fs-200); color: var(--txt-1); line-height: 1.5; }

.cta__slogan {
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.3;
  color: var(--txt-0);
}

/* ------------------------------------------------------------
   Пустое состояние раздела проектов
   Компания молодая. Вместо выдуманных объектов — размеченные слоты
   в чертёжном языке сайта: видно, что здесь появится.
   ------------------------------------------------------------ */

.empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.empty__slots { display: grid; gap: var(--s-4); }
.empty__slot {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 108px;
  padding: var(--s-5);
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-md);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-color: rgba(22, 27, 35, .4);
}
.empty__slot:nth-child(2) { min-height: 132px; }
.empty__slot .mono { color: var(--txt-3); }

.empty__body { display: flex; flex-direction: column; gap: var(--s-4); }
.empty__body h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.empty__body p { color: var(--txt-2); }
.empty__body .lead { color: var(--txt-1); }
.empty__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); }

/* ------------------------------------------------------------
   Врезка-примечание
   ------------------------------------------------------------ */

.note {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-left: 1px solid var(--fx-orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--fx-grad-soft);
}
/* Иконка преимущества: круглая плитка с фирменным свечением */
.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 209, 25, .22), transparent 62%),
    var(--bg-600);
  border: 1px solid var(--line-hi);
  color: var(--fx-orange);
  margin-bottom: var(--s-2);
  transition: color var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon {
  border-color: var(--fx-orange);
  transform: translateY(-2px) scale(1.04);
}

/* Эмодзи в плитке — крупно и по центру, без обводки иконки */
.icon-tile--emoji {
  font-size: 26px;
  line-height: 1;
  background: var(--fx-grad-soft);
}

.note b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--txt-0);
  margin-bottom: var(--s-2);
}
.note p { color: var(--txt-1); font-size: var(--fs-200); max-width: 74ch; }

/* ------------------------------------------------------------
   Документы
   ------------------------------------------------------------ */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}
.doc-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-700);
  transition: border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.doc-card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.doc-card__body { display: flex; flex-direction: column; gap: var(--s-3); }
.doc-card__sub { color: var(--fx-orange); }
.doc-card__state {
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--txt-3);
}

/* ------------------------------------------------------------
   Новости
   ------------------------------------------------------------ */

.news-item__tag {
  padding: 5px var(--s-3);
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  color: var(--fx-orange);
  font-size: 10px;
  white-space: nowrap;
}

/* Главная новость: крупный кадр и текст рядом */
.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
}
.news-hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.news-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.news-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,11,14,.12) 0%, rgba(9,11,14,.6) 100%);
}
.news-hero__badge {
  position: absolute;
  z-index: 2;
  top: var(--s-5); left: var(--s-5);
  padding: 6px var(--s-4);
  border-radius: 100px;
  background: var(--fx-grad);
  color: #14100a;
  font-size: 10px;
}
.news-hero__body { display: flex; flex-direction: column; gap: var(--s-4); }
.news-hero__meta { display: flex; align-items: center; gap: var(--s-4); }
.news-hero__meta time { color: var(--txt-2); }
.news-hero h2 { font-size: clamp(1.4rem, 2.1vw, 2rem); }

/* Архив — карточками */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-700);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.news-card:hover { border-color: var(--line-hi); transform: translateY(-4px); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .8;
  transition: transform .9s var(--e-out), opacity var(--t-mid) var(--e-out);
}
.news-card:hover .news-card__media img { transform: scale(1.05); opacity: 1; }
.news-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); }
.news-card__meta { display: flex; align-items: center; gap: var(--s-4); }
.news-card__meta time { color: var(--txt-2); }
.news-card__index {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  z-index: 2;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
}

/* ------------------------------------------------------------
   Аккордеон
   ------------------------------------------------------------ */

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { margin: 0; }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.35;
  color: var(--txt-1);
  transition: color var(--t-fast) var(--e-out);
}
.acc__btn:hover { color: var(--txt-0); }
.acc__btn[aria-expanded="true"] { color: var(--txt-0); }

.acc__sign {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  transition: border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.acc__sign::before, .acc__sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid) var(--e-out), opacity var(--t-fast);
}
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign {
  border-color: var(--fx-orange);
  color: var(--fx-orange);
}
.acc__btn[aria-expanded="true"] .acc__sign::after { opacity: 0; transform: translate(-50%, -50%); }

.acc__panel { overflow: hidden; }
.acc__panel p {
  padding-bottom: var(--s-6);
  max-width: 82ch;
  color: var(--txt-2);
}

/* ------------------------------------------------------------
   Контакты
   ------------------------------------------------------------ */

.ct-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: stretch;
}

/* Телефон — главный элемент страницы, а не строчка в списке */
/* Содержимое прижато к верху: раньше оно центрировалось по высоте
   и висело в середине карточки */
.ct-primary {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--s-4);
  padding: clamp(28px, 3.4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 138, 31, .12) 0%, transparent 62%),
    var(--bg-700);
  overflow: hidden;
}
.ct-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .4;
  mask-image: radial-gradient(90% 90% at 100% 100%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 90% at 100% 100%, #000, transparent 72%);
  pointer-events: none;
}
.ct-primary > * { position: relative; z-index: 1; }
.ct-primary__label { color: var(--txt-3); }
.ct-primary__phone {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--txt-0);
  transition: color var(--t-fast) var(--e-out);
}
.ct-primary__phone:hover { color: var(--fx-orange); }
.ct-primary__note { color: var(--txt-2); font-size: var(--fs-200); max-width: 40ch; }
.ct-primary__row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }

.ct-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 11px var(--s-5);
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  font-size: var(--fs-200);
  color: var(--txt-1);
  transition: border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.ct-chip:hover { border-color: var(--fx-orange); color: var(--fx-orange); }

.ct-side { display: flex; flex-direction: column; gap: var(--gutter); }
.ct-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-700);
}
.ct-block > .mono { color: var(--txt-3); }
.ct-block b {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--txt-0);
  line-height: 1.4;
}
.ct-block__note { font-size: var(--fs-200); color: var(--txt-2); line-height: 1.55; }

/* Режим работы — одной понятной строкой */
.ct-hours__off {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--s-3);
  padding: 7px var(--s-4);
  border: 1px dashed var(--line-hi);
  border-radius: 100px;
  color: var(--fx-orange);
  font-size: var(--fs-200);
}
.ct-hours__off::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

/* Подложка в информативных блоках контактов — та же семья, что у карточек связи */
.ct-primary, .ct-block { position: relative; isolation: isolate; overflow: hidden; }
.ct-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}
.ct-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ct-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(9, 11, 14, .58) 0%, rgba(9, 11, 14, .9) 100%);
}
/* Правило поднимает содержимое над подложкой. Раньше оно било и по самой
   .ct-bg — та получала position:relative, выпадала в поток и рисовалась
   видимым прямоугольником над текстом. */
.ct-primary::after { z-index: 0; }
.ct-primary > *:not(.ct-bg) { position: relative; z-index: 1; }
.ct-primary > .ct-bg, .ct-block > .ct-bg { position: absolute; z-index: -1; }

/* Карточка маршрута — блок «Как добраться» был голым списком */
.ct-route {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255, 138, 31, .1) 0%, transparent 60%),
    var(--bg-700);
}
.ct-route__head { display: flex; align-items: center; gap: var(--s-4); }
.ct-route__pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  /* Значок заказчика — оранжевый контур на тёмном. Прежние оранжевый круг
     и тёмный штрих убраны: рисунок должен читаться сам по себе. */
  color: var(--fx-orange);
}
.ct-route__pin svg { width: 44px; height: 44px; }
.ct-route__head b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--txt-0);
  line-height: 1.3;
}
.ct-route__head .mono { color: var(--txt-3); }
.ct-route__foot { padding-top: var(--s-5); border-top: 1px solid var(--line); }

/* Схема проезда */
.ct-map {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.ct-map__frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-900);
  line-height: 0;
}
.ct-map__frame iframe { display: block; width: 100%; height: 440px; border: 0; }

.ct-steps { display: flex; flex-direction: column; gap: var(--s-5); }
.ct-steps li { display: flex; gap: var(--s-4); align-items: flex-start; }
.ct-steps .mono { color: var(--fx-orange); padding-top: 2px; }
.ct-steps p { font-size: var(--fs-200); color: var(--txt-1); line-height: 1.6; }
.ct-map__note { margin-top: var(--s-6); color: var(--txt-3); line-height: 1.7; }

/* ------------------------------------------------------------
   Правовая страница
   ------------------------------------------------------------ */

.legal { max-width: 78ch; display: flex; flex-direction: column; gap: var(--s-9); }
.legal__block h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  font-size: var(--fs-500);
  margin-bottom: var(--s-5);
}
.legal__block h2 .index { flex: none; }

/* ------------------------------------------------------------
   Адаптив
   ------------------------------------------------------------ */

@media (max-width: 1200px) {
  .grid-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .page-hero--plate .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__plate { max-width: 520px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 400px; }
  .svc-card, .svc-card--wide, .svc-card--tall, .svc-card--sm {
    grid-column: span 2; grid-row: auto;
  }
  .svc-card--wide { flex-direction: column; }
  .svc-card--wide .svc-card__body {
    border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start;
  }
  .prj { grid-template-columns: 1fr; }
  .prj:nth-child(even) .prj__media { order: 0; }
  .ct-main, .ct-map, .news-hero, .empty { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr 1fr; }
  .cta__card--info { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: 1fr; }
  .grid-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; gap: var(--s-4); }
  .news-item__meta { flex-direction: row; align-items: center; gap: var(--s-4); }
}

@media (max-width: 760px) {
  .page-hero { padding-top: calc(68px + var(--s-9)); }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(360px, auto); }
  .svc-card, .svc-card--wide, .svc-card--tall, .svc-card--sm { grid-column: span 1; }
  .checks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: var(--s-6); }
  .grid-cards--2, .grid-cards--3, .grid-cards--4 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 90px 1fr; gap: var(--s-5); }
  .ct-map__frame iframe { height: 320px; }
  .cta { grid-template-columns: 1fr; }
  .cta__card--info { grid-column: auto; }
  .ct-map__tag { left: var(--s-4); bottom: var(--s-4); padding: var(--s-3) var(--s-4); }
  .tl__item { gap: var(--s-4); }
  .tl__num { width: 44px; height: 44px; font-size: 11px; }
  .tl::before { left: 22px; }
}
