/* ==========================================================================
   ООО «Спринг» — таблица стилей
   Порядок: токены → база → компоненты → адаптив → анимации
   Один слой правил, без дублирующих переопределений.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  --ink: #102436;
  --ink-2: #18354c;
  --ink-deep: #0b1b29;
  --yellow: #f7c948;
  --yellow-hi: #ffda62;
  --ice: #eef3f6;
  --paper: #fff;
  --muted: #6b7881;
  --line: #dce4e8;
  --gold-text: #8a6700;
  --radius: 6px;
  --radius-lg: 10px;
  --container: min(1180px, calc(100% - 48px));
  --header-h: 92px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .28s;
  --t-slow: .55s;
  --shadow-sm: 0 6px 18px rgba(16, 36, 54, .07);
  --shadow-md: 0 14px 34px rgba(16, 36, 54, .1);
  --shadow-lg: 0 22px 50px rgba(16, 36, 54, .14);
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* компенсация фиксированной шапки при переходе по якорю */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* страховка от горизонтальной прокрутки на узких экранах */
  overflow-x: clip;
}

/* Блокировка прокрутки при открытом меню / лайтбоксе */
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { text-wrap: balance; }

p, li { overflow-wrap: break-word; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Страховка второго уровня: анимации и декоративные элементы внутри
   контента не должны расширять документ по горизонтали. */
main { overflow-x: clip; }

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

/* --------------------------------------------------------------------------
   3. Появление при прокрутке
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"]  { transform: scale(.955); }

/* Боковой сдвиг допустим только там, где по бокам есть запас.
   На узких экранах блок занимает всю ширину и сдвиг вправо
   расширял документ, давая горизонтальную прокрутку. */
@media (max-width: 1100px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(26px); }
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Пока JS не загрузился — контент виден (защита от «белой страницы») */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. Шапка и навигация
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  z-index: 40;
  top: 0; left: 0;
  width: 100%;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height var(--t) var(--ease);
}

/* Прилипающая шапка внутренних страниц */
.header--inner {
  position: sticky;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header--inner .header__inner { height: 76px; }
.header--inner .header__phone { border-color: var(--line); padding: 9px 16px; }

/* Уплотнение шапки главной после прокрутки */
.header.is-stuck {
  position: fixed;
  background: rgba(16, 36, 54, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(6, 18, 29, .28);
  animation: header-drop .4s var(--ease-out) both;
}
.header.is-stuck .header__inner { height: 72px; }

.header--inner.is-stuck {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(16, 36, 54, .09);
  animation: none;
}

@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Индикатор прочитанного */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: var(--yellow);
  pointer-events: none;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
  min-width: 0;
}
.logo__mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: transform var(--t-slow) var(--ease-out);
}
.logo__mark span:first-child {
  position: absolute;
  left: 8px; top: 8px;
  width: 20px; height: 6px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.logo__mark span:last-child {
  position: absolute;
  left: 8px; bottom: 8px;
  width: 14px;
  border-top: 2px solid currentColor;
}
.logo__text {
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}
.logo__text small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .13em;
}

/* Меню */
.nav { margin-left: auto; }

.nav__panel {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  transition: color var(--t) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t) var(--ease);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
/* Бургер превращается в крестик */
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

.header__phone {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 11px 18px;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    transform var(--t) var(--ease);
}

/* Телефон внутри выехавшего меню (добавляется скриптом) */
.nav__phone {
  display: none;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--yellow);
}

/* Затемнение под мобильным меню */
.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(7, 19, 30, .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.nav__backdrop.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease);
}
/* Бегущий блик */
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease-out);
}
.button span { transition: transform var(--t) var(--ease); }
.button:active { transform: translateY(1px) scale(.99); }

.button--primary {
  background: var(--yellow);
  color: var(--ink);
}
.button--ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: var(--header-h);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: min(620px, calc(100vh - var(--header-h) - 86px));
  padding: 72px 0 90px;
}

.hero__content { min-width: 0; max-width: 620px; }

.hero__eyebrow,
.section-head__number {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__eyebrow { color: #dce5eb; }
.hero__eyebrow span {
  display: inline-block;
  width: 28px;
  border-top: 3px solid var(--yellow);
  margin: 0 10px 3px 0;
  transform-origin: left center;
  animation: line-grow 1s var(--ease-out) both;
}
@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__title {
  font-size: clamp(38px, 4.9vw, 68px);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 0 0 26px;
}
.hero__title em { color: var(--yellow); font-style: normal; }

.hero__lead {
  max-width: 520px;
  color: #c4d0d7;
  font-size: clamp(16px, 1.3vw, 18px);
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Визуальный блок — в обычном потоке, без абсолютного позиционирования:
   именно оно раньше приводило к наложению на кнопки и обрезке на планшетах. */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  min-width: 0;
}
.hero__image-wrap {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 2px;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.04);
  transform: scale(1.06);
  animation: hero-zoom 9s var(--ease-out) forwards;
}
@keyframes hero-zoom {
  to { transform: scale(1); }
}

.hero__stat {
  position: absolute;
  left: 0; bottom: 24px;
  background: var(--yellow);
  color: var(--ink);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(6, 18, 29, .3);
}
.hero__stat strong { font-size: clamp(30px, 3vw, 38px); letter-spacing: -.05em; }
.hero__stat span {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__year {
  position: absolute;
  right: 12px; bottom: 8px;
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  letter-spacing: -.08em;
  pointer-events: none;
}

/* Бегущая строка направлений */
.hero__ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .16);
  height: 86px;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero__ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  animation: ticker 32s linear infinite;
}
.hero__ticker:hover .hero__ticker-track { animation-play-state: paused; }
.hero__ticker i {
  flex: 0 0 auto;
  width: 5px; height: 5px;
  background: var(--yellow);
  border-radius: 50%;
}
/* Трек дублируется скриптом, поэтому сдвиг ровно на половину — шов незаметен */
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Появление содержимого первого экрана */
.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__actions,
.hero__visual {
  animation: hero-in .85s var(--ease-out) both;
}
.hero__eyebrow { animation-delay: .05s; }
.hero__title   { animation-delay: .14s; }
.hero__lead    { animation-delay: .24s; }
.hero__actions { animation-delay: .34s; }
.hero__visual  { animation-delay: .2s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   7. Общие секции
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 46px;
}
.section-head__number { align-self: start; color: #7f8b93; margin-bottom: 0; }
.section-head__title {
  margin: 0;
  font-size: clamp(30px, 4.1vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-head__text { margin: 0; color: var(--muted); font-size: 16px; }
.section-head--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* --------------------------------------------------------------------------
   8. Услуги (главная)
   -------------------------------------------------------------------------- */
.services { background: #f7f9fa; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}
/* Жёлтая полоса, выезжающая снизу при наведении */
.service-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease-out);
}
.service-card--featured { background: var(--ink); color: #fff; }
.service-card--cta { background: var(--yellow); }
.service-card--cta .service-card__icon { color: var(--ink); }
.service-card--cta .service-card__text { color: var(--ink); opacity: .72; }

.service-card__index {
  position: absolute;
  right: 26px; top: 24px;
  color: #95a0a8;
  font-size: 12px;
}
.service-card__icon {
  font-size: 40px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 44px;
  transition: transform var(--t-slow) var(--ease-out);
}
.service-card__title {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.service-card__text { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.service-card--featured .service-card__text { color: #b7c5ce; }
.service-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid currentColor;
  padding-top: 16px;
  min-height: 44px;
  opacity: .84;
  transition: opacity var(--t) var(--ease);
}
.service-card__link span { transition: transform var(--t) var(--ease); }

/* --------------------------------------------------------------------------
   9. О компании (главная)
   -------------------------------------------------------------------------- */
.about { background: var(--ink); color: #fff; }

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6%, 80px);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  overflow: hidden;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7);
  transition: transform 1.2s var(--ease-out), filter var(--t-slow) var(--ease);
}
.about__caption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 20px 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.about__content { min-width: 0; }
.about__title {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -.05em;
  margin: 0 0 26px;
}
.about__lead { font-size: clamp(17px, 1.5vw, 19px); color: #ced8de; margin: 0 0 36px; }
.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  padding: 26px 0;
  margin-bottom: 30px;
}
.fact strong {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--yellow);
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.fact span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aebbc4;
}
.about__list { margin: 0; padding: 0; list-style: none; color: #bdc8cf; }
.about__list li { padding: 8px 0 8px 28px; position: relative; }
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px;
  border-top: 2px solid var(--yellow);
  transition: width var(--t) var(--ease);
}
.about__list li:hover::before { width: 18px; }

/* --------------------------------------------------------------------------
   10. Проекты (главная)
   -------------------------------------------------------------------------- */
.projects__quote {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 17px);
  color: var(--muted);
  border-left: 3px solid var(--yellow);
  padding-left: 24px;
}
.projects__quote cite {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 360px;
  overflow: hidden;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 27, 41, .92), rgba(9, 27, 41, .08));
}
.project-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.project-card__overlay {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 48px);
  color: #fff;
}
.project-card__overlay > span {
  display: inline-block;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.project-card__overlay h3 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.project-card__overlay p { margin: 0; color: #c5d0d7; }

/* --------------------------------------------------------------------------
   11. Контактный блок и подвал главной
   -------------------------------------------------------------------------- */
.contact {
  background: var(--yellow);
  color: var(--ink);
  padding: 96px 0 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 8%, 96px);
  padding-bottom: 80px;
}
.contact__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  margin: 0 0 22px;
}
.contact__title {
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.06em;
  margin: 0 0 34px;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 100%;
  transition: gap var(--t) var(--ease), opacity var(--t) var(--ease);
}
.contact__details { padding-top: 30px; min-width: 0; }
.contact__item { padding: 20px 0; border-bottom: 1px solid rgba(16, 36, 54, .24); }
.contact__item > span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
  opacity: .66;
}
.contact__item a,
.contact__item p { display: block; margin: 2px 0; font-size: 16px; font-weight: 700; }
.contact__item a { transition: opacity var(--t) var(--ease); }

.footer {
  min-height: 92px;
  padding: 20px 0;
  border-top: 1px solid rgba(16, 36, 54, .24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer .logo { transform: scale(.86); transform-origin: left center; }
.footer p { margin: 0; }
.footer a:not(.logo) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   12. Внутренние страницы: шапка раздела и раскладка
   -------------------------------------------------------------------------- */
.page-hero {
  background: #f7f9fa;
  color: var(--ink);
  padding: 68px 0 62px;
  border-bottom: 1px solid var(--line);
}
.page-hero__crumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #84919a;
  margin-bottom: 18px;
}
.page-hero__crumb a { color: var(--gold-text); transition: opacity var(--t) var(--ease); }
.page-hero__title {
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.05em;
  margin: 0;
  max-width: 900px;
}
.page-hero__lead {
  font-size: clamp(16px, 1.4vw, 17px);
  color: #65737c;
  max-width: 760px;
  margin: 20px 0 0;
}

.page-content { padding: 72px 0 96px; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(0, 240px);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}

.page-aside { min-width: 0; }
.page-aside__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0 0 16px;
}
.page-aside__links { display: flex; flex-direction: column; }
.page-aside__links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--t) var(--ease), padding-left var(--t) var(--ease);
}

.rich-text { font-size: 17px; line-height: 1.78; color: #50606a; min-width: 0; }
.rich-text p { margin: 0 0 24px; }
.rich-text h2 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 48px 0 18px;
}
.rich-text h2:first-child { margin-top: 0; }
.rich-text a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .pull-stat {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 38px 0;
    }
}


.pull-stat__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.pull-stat__item strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pull-stat__item span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Новости
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.news-card--featured {
  grid-column: span 2;
  min-height: 360px;
  color: #fff;
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  background: var(--ink);
}
.news-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 36, 54, .96), rgba(16, 36, 54, .25)),
    url('/assets/industry.jpg') center / cover;
  transition: transform 1.4s var(--ease-out);
}
.news-card > * { position: relative; }
.news-card__date {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a969e;
}
.news-card--featured .news-card__date { color: var(--yellow); }
.news-card__title {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.22;
  letter-spacing: -.03em;
  margin: 20px 0 14px;
}
.news-card--featured .news-card__title {
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 600px;
}
.news-card__text { margin: 0 0 20px; color: var(--muted); }
.news-card--featured .news-card__text { color: #d7e0e5; }
.news-card__link {
  margin-top: auto;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.article-lead {
  font-size: clamp(19px, 2vw, 22px) !important;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 700;
  max-width: 760px;
}
.article-panel {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 38px;
}
.article-panel p { font-size: 18px; color: var(--ink); margin: 0; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  min-height: 44px;
  font-weight: 800;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   14. Услуги: список и подробная страница
   -------------------------------------------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.service-tile__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.service-tile__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.service-tile__title {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.28;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}
.service-tile__text { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.service-tile__link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 2px solid var(--yellow);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

.service-detail__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 38px;
}
.service-callout {
  margin-top: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.service-callout p { margin: 0 0 18px; color: #d1dce2; }
.service-callout a {
  display: inline-block;
  color: var(--yellow);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  transition: transform var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   15. Фотогалерея и лайтбокс
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.gallery-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eef1;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out), filter var(--t) var(--ease);
}
.gallery-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(5, 20, 31, .88));
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 20, 31, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.lightbox--open { opacity: 1; visibility: visible; }
.lightbox__image {
  max-width: min(900px, 92vw);
  max-height: 80vh;
  border-radius: 4px;
  transform: scale(.94);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.lightbox--open .lightbox__image { transform: scale(1); opacity: 1; }
.lightbox__caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 20px;
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.lightbox__close {
  position: absolute;
  right: 16px; top: 12px;
  width: 48px; height: 48px;
  color: #fff;
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   16. Документация
   -------------------------------------------------------------------------- */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.document-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: #fff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.document-card > a:first-child { overflow: hidden; border-radius: 6px; }
.document-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 1px solid #eef1f2;
  transition: transform .7s var(--ease-out);
}
.document-card__title {
  font-size: 14px;
  line-height: 1.35;
  margin: 14px 4px 8px;
  /* важно: без этого длинные названия распирали колонку сетки */
  overflow-wrap: anywhere;
}
.document-card__open {
  font-size: 12px;
  color: var(--gold-text);
  font-weight: 800;
  margin: auto 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  align-self: flex-start;
  transition: gap var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   17. Страница контактов
   -------------------------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 48px);
}
.contact-card {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  min-width: 0;
}
.contact-card__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .64;
  margin: 22px 0 7px;
}
.contact-card__label:first-child { margin-top: 0; }
.contact-card a,
.contact-card p {
  display: block;
  margin: 3px 0;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-card a { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-content: start;
}
.contact-form__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact-form__field--wide { grid-column: span 2; }
.contact-form label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px; /* не даём iOS увеличивать масштаб при фокусе */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fa;
  padding: 14px;
  min-width: 0;
  width: 100%;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(247, 201, 72, .3);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  grid-column: span 2;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 17px;
  min-height: 52px;
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.contact-form button:active { transform: translateY(1px); }

.map {
  width: 100%;
  height: clamp(280px, 45vw, 400px);
  border: 0;
  border-radius: var(--radius-lg);
  margin-top: 48px;
  filter: grayscale(.35);
  transition: filter var(--t-slow) var(--ease);
}
.map:hover { filter: grayscale(0); }

/* --------------------------------------------------------------------------
   18. Подвал внутренних страниц
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: #fff;
  padding: 48px 0 28px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 40px;
}
.site-footer__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8fa0aa;
  margin-bottom: 14px;
}
.site-footer__links { display: flex; flex-direction: column; font-size: 14px; }
.site-footer__links a {
  padding: 7px 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: #91a0aa;
  font-size: 12px;
}
.site-footer__bottom a { min-height: 34px; display: inline-flex; align-items: center; }

/* --------------------------------------------------------------------------
   19. Кнопка «наверх»
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 50;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition:
    opacity var(--t) var(--ease),
    visibility var(--t),
    transform var(--t) var(--ease),
    background var(--t) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------------------
   20. Наведение — только там, где есть настоящий курсор.
       На тач-экранах :hover «залипает» после тапа, поэтому изолируем.
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--yellow); }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }

  .logo:hover .logo__mark { transform: rotate(180deg); }

  .header__phone:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    transform: translateY(-1px);
  }

  .button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .button:hover::before { transform: translateX(120%); }
  .button--primary:hover { background: var(--yellow-hi); }
  .button--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
  .button:hover span { transform: translate(3px, -3px); }

  .service-card:hover { z-index: 1; transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-card__icon { transform: translateY(-4px) scale(1.12); }
  .service-card:hover .service-card__link { opacity: 1; }
  .service-card:hover .service-card__link span { transform: translate(4px, -4px); }

  .about__photo:hover img { transform: scale(1.04); filter: saturate(.95); }

  .project-card:hover .project-card__image { transform: scale(1.05); }

  .contact__mail:hover { gap: 34px; }
  .contact__item a:hover { opacity: .68; }

  .page-aside__links a:hover { color: var(--gold-text); padding-left: 6px; }

  .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .news-card--featured:hover::before { transform: scale(1.05); }
  .news-card__link:hover { gap: 14px; color: var(--gold-text); }
  .news-card--featured .news-card__link:hover { color: var(--yellow); }
  .article-back:hover { gap: 16px; color: var(--gold-text); }

  .pull-stat__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

  .service-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .service-tile:hover .service-tile__image { transform: scale(1.06); }
  .service-tile__link:hover { gap: 14px; color: var(--gold-text); }
  .service-callout a:hover { transform: translateX(4px); }

  .gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .gallery-card:hover img { transform: scale(1.08); }
  .gallery-card:hover span { opacity: 1; transform: translateY(0); }

  .lightbox__close:hover { transform: rotate(90deg); color: var(--yellow); }

  .document-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .document-card:hover .document-card__image { transform: scale(1.03); }
  .document-card__open:hover { gap: 10px; }

  .contact-card a:hover { opacity: .7; transform: translateX(2px); }

  .contact-form button:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

  .site-footer__links a:hover { color: var(--yellow); transform: translateX(3px); }
  .site-footer__bottom a:hover { color: var(--yellow); }

  .page-hero__crumb a:hover { opacity: .7; }

  .to-top:hover { background: var(--ink-2); transform: translateY(-3px); }

  .footer a:not(.logo):hover { opacity: .7; transform: translateY(-2px); }
}

/* Подписи в галерее на тач-экранах видны всегда — hover там недоступен */
@media (hover: none) {
  .gallery-card span {
    opacity: 1;
    transform: none;
    padding: 24px 8px 8px;
  }
}

/* --------------------------------------------------------------------------
   21. Адаптив
   -------------------------------------------------------------------------- */

/* ≤1200px — сужаем боковую колонку внутренних страниц */
@media (max-width: 1200px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ≤1024px — планшеты */
@media (max-width: 1024px) {
  :root { --container: min(100% - 40px, 960px); }

  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-aside {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__grid .logo { grid-column: span 2; }

  .hero__inner { gap: 32px; padding: 56px 0 72px; }
  .hero__visual, .hero__image-wrap { min-height: 360px; }
  .section { padding: 80px 0; }
  .about__photo { aspect-ratio: 1 / 1; }
  .about__inner { align-items: start; }
}

/* ≤900px — мобильное меню, одноколоночные блоки */
@media (max-width: 900px) {
  :root { --container: min(100% - 32px, 720px); --header-h: 78px; }

  .header__inner { height: var(--header-h); }
  .header--inner .header__inner { height: var(--header-h); }
  .header.is-stuck .header__inner { height: 66px; }

  .header__phone { display: none; }
  .nav__toggle { display: block; }
  .nav__phone { display: block; }

  /* Выезжающая панель. Тёмный фон и светлый текст — на любой странице,
     раньше на внутренних страницах в диапазоне 700–900px текст оставался
     тёмным и меню было нечитаемым. */
  .nav__panel {
    position: fixed;
    z-index: 45;
    top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    background: var(--ink);
    color: #fff;
    padding: calc(var(--header-h) + 16px) 26px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -20px 0 44px rgba(6, 18, 29, .35);
    /* Панель «раскрывается» шторкой справа налево.
       Сдвиг за правый край (translateX(100%)) здесь не годится: скрытая
       панель растягивала документ и давала горизонтальную прокрутку. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path .4s var(--ease-out), visibility .4s;
  }
  .nav--open .nav__panel { clip-path: inset(0 0 0 0); visibility: visible; }

  .nav__panel .nav__link {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    transform: translateX(16px);
  }
  /* Пункты проявляются каскадом */
  .nav--open .nav__panel .nav__link {
    animation: nav-item .4s var(--ease-out) forwards;
  }
  .nav--open .nav__panel .nav__link:nth-child(1) { animation-delay: .10s; }
  .nav--open .nav__panel .nav__link:nth-child(2) { animation-delay: .16s; }
  .nav--open .nav__panel .nav__link:nth-child(3) { animation-delay: .22s; }
  .nav--open .nav__panel .nav__link:nth-child(4) { animation-delay: .28s; }
  .nav--open .nav__panel .nav__link:nth-child(5) { animation-delay: .34s; }
  .nav--open .nav__phone { animation: nav-item .4s var(--ease-out) .4s forwards; opacity: 0; }

  @keyframes nav-item {
    to { opacity: 1; transform: translateX(0); }
  }

  /* Первый экран — одна колонка, картинка следует за кнопками в потоке */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 44px 0 64px;
    min-height: 0;
  }
  .hero__content { max-width: none; }
  .hero__lead { max-width: none; }
  .hero__visual { min-height: 0; }
  .hero__image-wrap { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__stat { bottom: 0; padding: 18px 22px; }
  .hero__ticker { height: 70px; }

  .section { padding: 72px 0; }
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 36px;
  }
  .section-head__text { grid-column: auto; }
  .section-head--row { grid-template-columns: minmax(0, 1fr); }
  .projects__quote { max-width: 600px; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about__photo { aspect-ratio: 16 / 10; max-height: 430px; }
  .contact { padding-top: 80px; }
  .contact__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact__details { padding-top: 0; }
  .project-card { aspect-ratio: auto; min-height: 420px; }
}

/* ≤700px — крупные телефоны */
@media (max-width: 700px) {
  .page-hero { padding: 44px 0 42px; }
  .page-content { padding: 48px 0 72px; }
  .section { padding: 60px 0; }

  .news-grid, .service-list { grid-template-columns: minmax(0, 1fr); }
  .news-card--featured { grid-column: auto; min-height: 330px; }
  .pull-stat { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-form__field--wide,
  .contact-form button { grid-column: auto; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-footer__grid .logo { grid-column: auto; }

  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; padding: 28px 24px; }
  .service-card__icon { margin-bottom: 30px; }

  .about__facts { gap: 12px; }
  .project-card { min-height: 380px; }
  .hero__year { font-size: 64px; right: 8px; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* ≤520px — телефоны */
@media (max-width: 520px) {
  :root { --container: calc(100% - 28px); }

  .logo__text { font-size: 18px; }

  /* Кнопки во всю ширину — но с сохранением отступов контейнера */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .button { width: 100%; }

  .hero__stat { padding: 16px 18px; gap: 12px; }
  .hero__stat span { font-size: 11px; }
  .hero__year { display: none; }
  .hero__ticker { height: 62px; }

  .about__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fact span { font-size: 9px; letter-spacing: .04em; }

  .project-card { min-height: 340px; }
  .article-panel, .service-callout { padding: 24px; }
  .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .document-card__title { font-size: 13px; }
  .footer { padding: 22px 0; }
  .footer .logo { width: 100%; }
}

/* ≤380px — узкие телефоны: раньше здесь появлялась горизонтальная прокрутка */
@media (max-width: 380px) {
  :root { --container: calc(100% - 20px); }
  .gallery-grid { gap: 6px; }
  .documents-grid { gap: 8px; }
  .document-card { padding: 8px; }
  .document-card__title { font-size: 12px; margin: 10px 2px 6px; }
  .service-card { padding: 24px 18px; }
  .news-card { padding: 20px; }
  .contact-card { padding: 22px; }
}

/* ≤340px — совсем узкие экраны, две колонки документов уже нечитаемы */
@media (max-width: 340px) {
  .documents-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Горизонтальная ориентация невысоких экранов */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__inner { min-height: 0; padding: 40px 0 48px; }
  .nav__panel { padding-top: calc(var(--header-h) + 8px); }
}

/* --------------------------------------------------------------------------
   22. Уважение к системной настройке «уменьшить движение».
       Блок последний — чтобы гарантированно перекрывать всё выше.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__image { transform: none; }
  .nav__panel .nav__link { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .nav, .to-top, .lightbox, .map, .hero__ticker { display: none !important; }
  body { color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Блоки, перенесённые со старого сайта ---------- */
.about__more {
  margin: 22px 0 0;
  color: #bdc8cf;
  line-height: 1.65;
}
.about__link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
  color: #fff;
  border-bottom: 2px solid var(--yellow);
  text-decoration: none;
}
.about__link:hover { color: var(--yellow); }

.reviews { background: var(--ice); }
.section-head__text a { color: var(--ink); font-weight: 700; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--yellow);
  box-shadow: var(--shadow-sm);
}
.review-card blockquote {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}
.review-card figcaption strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}
.review-card figcaption span { font-size: 13px; color: var(--muted); }

.gallery-grid--article {
  margin: 28px 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.news-card__title a, .service-tile__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover, .service-tile__title a:hover { color: var(--gold-text); }
.rich-text ul { padding-left: 1.2em; }
.rich-text h4 { margin: 1.6em 0 .6em; }
