/*
Theme Name: Экспо-рем
Theme URI: https://expo-rem.ru/
Author: DSH
Description: Корпоративная тема группы компаний «Экспо-рем»: главная, направления, о компании, контакты.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: exporem
*/

/* ===========================================================
   ГК «Экспо-рем» — прототип корпоративного сайта
   Палитра: графит + красный (по логотипу), тёплая бумага
   =========================================================== */

:root {
  --red: #c4161c;
  --red-dark: #970f14;
  --red-soft: #f7e8e8;
  --ink: #141518;
  --ink-2: #202227;
  --muted: #6c7078;
  --muted-2: #9a9da3;
  --paper: #f7f6f3;
  --paper-2: #efede7;
  --line: #e1ded6;
  --white: #ffffff;

  --container: 1200px;
  --radius: 18px;
  --radius-sm: 12px;

  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 24px 60px -28px rgba(20, 21, 24, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

html, body { overflow-x: clip; }

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

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

button { font: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- сетка ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  max-width: 100%;
  margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(44px, 5vw, 70px) 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--red { background: var(--red); color: #fff; }

/* ---------- типографика ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: #3c4046;
  max-width: 62ch;
}

.muted { color: var(--muted); }

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  row-gap: 4px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.section--ink .kicker,
.section--red .kicker { color: #fff; }
.section--red .kicker::before { background: #fff; }

.section-head { max-width: 820px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { margin-bottom: 18px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--small { padding: 11px 20px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: gap 0.2s, border-color 0.2s;
}
.link-arrow:hover { gap: 16px; border-color: currentColor; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 88px;
  display: flex;
  align-items: center;
  transition: background 0.25s, box-shadow 0.25s, height 0.25s;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.25s, opacity 0.25s;
}
.site-header.is-stuck {
  height: 72px;
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck::after { opacity: 0; }

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 66px; width: auto; transition: height 0.25s; }
.is-stuck .brand img { height: 54px; }
.brand__text {
  display: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav { margin-inline: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); }
.is-stuck .nav a { color: var(--ink); }
.is-stuck .nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.14); }
.is-stuck .nav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
}
.is-stuck .header-phone { color: var(--ink); }

/* светлая шапка для страниц без фото-героя */
.site-header--light::after { background: var(--line); }
.site-header--light .nav a { color: var(--ink); }
.site-header--light .nav a:hover { background: var(--paper-2); }
.site-header--light .nav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.site-header--light .header-phone { color: var(--ink); }
.site-header--light .burger { border-color: var(--line); }
.site-header--light .burger span { background: var(--ink); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.is-stuck .burger { border-color: var(--line); }
.burger span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}
.is-stuck .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- герой ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 100svh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 150px 0 64px;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  opacity: 0.9;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 16, 18, 0.55) 0%, rgba(15, 16, 18, 0.05) 34%, rgba(15, 16, 18, 0.55) 72%, rgba(15, 16, 18, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 16, 18, 0.86) 0%, rgba(15, 16, 18, 0.42) 46%, rgba(15, 16, 18, 0.1) 72%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  min-width: 0;
  margin-inline: auto;
}
.hero h1 { max-width: 15ch; margin-bottom: 26px; overflow-wrap: break-word; hyphens: auto; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--red); }
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
.hero__foot b { color: #fff; font-weight: 700; }

/* ---------- цифры ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--paper);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label { font-size: 0.85rem; color: var(--muted); max-width: 24ch; }

/* ---------- направления ---------- */

.directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.direction {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.direction::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.direction:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.direction:hover::before { transform: scaleX(1); }
.direction__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.direction h3 { font-size: 1.35rem; }
.direction p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.direction ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  color: #3c4046;
}
.direction li { display: flex; gap: 9px; }
.direction li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--red);
  border-radius: 50%;
}
.direction .link-arrow { margin-top: auto; }

/* ---------- о компании ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split__media--tall img { aspect-ratio: 3 / 4; }

.quote {
  margin: 30px 0 0;
  padding: 24px 0 0 26px;
  border-left: 3px solid var(--red);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.45;
}
.quote footer { margin-top: 12px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.mini-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 26px;
  margin-top: 30px;
}
.mini-fact b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mini-fact span { font-size: 0.84rem; color: var(--muted); }

/* ---------- объекты ---------- */

.object-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.object-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.object-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 16, 18, 0.05) 24%, rgba(15, 16, 18, 0.92) 100%);
}
.object-card:hover img { transform: scale(1.04); }
.object-card__body { padding: clamp(24px, 4vw, 44px); }
.object-card h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin-bottom: 12px; }
.object-card p { color: rgba(255, 255, 255, 0.8); max-width: 52ch; margin-bottom: 18px; }
.object-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- услуги-сетка ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.93rem; }
.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }

.section--ink .feature { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.section--ink .feature p { color: rgba(255, 255, 255, 0.66); }
.section--ink .feature__icon { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  background: var(--paper);
  padding-right: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.08em;
}
.section--ink .step { border-color: rgba(255, 255, 255, 0.14); }
.section--ink .step::before { background: var(--ink); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }
.section--ink .step p { color: rgba(255, 255, 255, 0.62); }

/* ---------- список (галочки) ---------- */

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; font-size: 0.97rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- тарифы ---------- */

.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tariff {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tariff--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.tariff__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-family: var(--font-head); font-weight: 700; }
.tariff--accent .tariff__label { color: #fff; opacity: 0.7; }
.tariff h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.tariff__price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; margin: 12px 0 2px; }
.tariff__price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tariff--accent .tariff__price small { color: rgba(255, 255, 255, 0.6); }
.tariff ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.tariff li { display: flex; gap: 10px; }
.tariff li::before { content: "—"; color: var(--red); flex: 0 0 auto; }
.tariff--accent li::before { color: #fff; }
.tariff .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq__answer { padding: 0 60px 24px 0; color: var(--muted); max-width: 78ch; font-size: 0.95rem; }

/* ---------- форма ---------- */

.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 60px);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.02);
}
.cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cta h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, 0.72); }

.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field select option { color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}
.field--error input,
.field--error textarea { border-color: #ff6b6b; }
.field__error { font-size: 0.75rem; color: #ff9d9d; display: none; }
.field--error .field__error { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }

.form__note { font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }
.form__success {
  display: none;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}
.form--sent .form__success { display: block; }
.form--sent .form__fields { display: none; }

/* ---------- контакты ---------- */

.contacts-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contact-list { display: grid; gap: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.contact-row dt { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; padding-top: 3px; }
.contact-row dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.contact-row dd a:hover { color: var(--red); }
.contact-row small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e5dd;
  min-height: 380px;
}
.map img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__link {
  position: absolute;
  right: 14px;
  bottom: 58px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}
.map__link:hover { color: var(--red); }
.map__link svg { width: 14px; height: 14px; }

/* ---------- крошки и внутренний герой ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); margin-bottom: 26px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: rgba(255, 255, 255, 0.9); }

.page-hero {
  position: relative;
  padding: 200px 0 88px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 16, 18, 0.94) 0%, rgba(15, 16, 18, 0.68) 52%, rgba(15, 16, 18, 0.38) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 22ch; margin-bottom: 20px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.page-hero p { max-width: 62ch; color: rgba(255, 255, 255, 0.8); font-size: clamp(1rem, 1.2vw, 1.12rem); }

/* ---------- таблица реквизитов ---------- */

.props { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.props div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }

/* ---------- подвал ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 75px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 30ch; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- документы ---------- */

.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; letter-spacing: -0.01em; }
.legal p { color: #3c4046; font-size: 0.97rem; }

/* ---------- режим просмотра черновика (?review=1) ---------- */

body.review-mode main > section { position: relative; }

.review-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.hero .review-badge,
.page-hero .review-badge { top: 100px; }

.review-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 21, 24, 0.94);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.review-panel b { color: #fff; font-weight: 700; }
.review-panel a { color: #ffb3b3; text-decoration: underline; margin-left: 6px; }

@media (max-width: 680px) {
  .review-badge { top: 84px; right: 10px; width: 28px; height: 28px; line-height: 28px; font-size: 0.78rem; }
  .review-panel { border-radius: 14px; font-size: 0.72rem; }
}

/* ---------- появление при скролле ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .direction:hover { transform: none; }
  .object-card:hover img { transform: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1360px) {
  .header-phone { display: none; }
}

@media (max-width: 1180px) {
  .nav a { font-size: 0.8rem; padding: 8px 7px; }
  .header-inner { gap: 18px; }
}

@media (max-width: 1024px) {
  .directions, .grid-3, .tariffs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  .split, .cta__grid, .contacts-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .object-card { min-height: 400px; }
  .checks, .props { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    padding: 120px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #fff;
  }
  .nav a[aria-current="page"] { background: none; color: #fff; }
  .is-stuck .nav a { color: #fff; }
  .burger {
    display: block;
    margin-left: auto;
    position: relative;
    z-index: 110;
    border-color: rgba(255, 255, 255, 0.4);
  }
  .header-actions { margin-left: auto; }
  .is-stuck .burger { border-color: rgba(255, 255, 255, 0.4); }
  .nav-open .burger span { background: #fff; }
  .nav-open .is-stuck .burger span { background: #fff; }
  .header-actions .btn { display: none; }
  .site-header { height: 76px; }
  .hero { padding-top: 120px; }
  .page-hero { padding: 150px 0 64px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, .header-inner { width: calc(100% - 36px); }
  .kicker { font-size: 0.6rem; letter-spacing: 0.12em; gap: 8px; }
  .kicker::before { width: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .directions, .grid-2, .grid-3, .tariffs, .form__row, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .props div { grid-template-columns: 1fr; gap: 2px; }
  .brand img { height: 57px; }
  .hero { min-height: auto; padding: 130px 0 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__foot { gap: 10px 26px; font-size: 0.8rem; }
  .quote { font-size: 1rem; }
  .footer-bottom { flex-direction: column; }
}


/* ---------- служебное ---------- */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
