/* ============================================================
   РСДС — управляющая компания
   Дизайн-система: белое пространство, крупная типографика,
   фирменный синий #3166AF — единственный хроматический акцент.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --brand: #3166af;
  --brand-deep: #1b3e77;
  --brand-ink: #0b1c38;
  --brand-mid: #16336b;
  --brand-light: #6d9be0;
  --brand-pale: #eaf1fa;

  --ink: #101828;
  --gray: #475467;
  --quiet: #667085;
  --hairline: #e4e7ec;
  --canvas: #f5f7fa;
  --paper: #ffffff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.014em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }

::selection { background: rgba(49, 102, 175, 0.18); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Прогресс прокрутки ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 0 3px 3px 0;
  transition: width 0.08s linear;
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}
.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  transition: color 0.45s var(--ease), transform 0.3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  color: #fff;
  transition: color 0.45s var(--ease), transform 0.6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }

.nav-desktop {
  display: flex;
  gap: 8px;
}
.nav-desktop a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-desktop a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-desktop a.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); }

.header-side { display: flex; align-items: center; gap: 18px; }
.header-tel {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-tel:hover { color: #fff; }

.burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s var(--ease);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease),
    background 0.45s var(--ease);
}
.burger:hover { background: rgba(255, 255, 255, 0.22); }

/* Шапка в «светлом» состоянии (после прокрутки или на внутренних страницах) */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.07);
}
.site-header.is-solid .brand { color: var(--ink); }
.site-header.is-solid .brand-mark { color: var(--brand); }
.site-header.is-solid .nav-desktop a { color: var(--gray); }
.site-header.is-solid .nav-desktop a:hover { color: var(--ink); background: rgba(16, 24, 40, 0.06); }
.site-header.is-solid .nav-desktop a.is-active { color: var(--brand); background: var(--brand-pale); }
.site-header.is-solid .header-tel { color: var(--ink); }
.site-header.is-solid .burger { background: rgba(16, 24, 40, 0.06); }
.site-header.is-solid .burger span { background: var(--ink); }
.site-header.is-solid .burger:hover { background: rgba(16, 24, 40, 0.12); }

/* ---------- Мобильное меню ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: linear-gradient(160deg, var(--brand-ink) 0%, var(--brand-mid) 70%, var(--brand-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-inner {
  text-align: center;
  padding: 40px;
  max-height: 100svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-title {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 34px;
}
.menu-links { list-style: none; margin: 0 0 44px; padding: 0; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: inline-block;
  color: #fff;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  padding: 6px 0;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease), color 0.3s var(--ease);
}
.menu-overlay.is-open .menu-links a { transform: translateY(0); }
.menu-overlay.is-open .menu-links li:nth-child(1) a { transition-delay: 0.08s; }
.menu-overlay.is-open .menu-links li:nth-child(2) a { transition-delay: 0.16s; }
.menu-overlay.is-open .menu-links li:nth-child(3) a { transition-delay: 0.24s; }
.menu-links a:hover { color: var(--brand-light); }
.menu-contacts {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease) 0.34s, transform 0.6s var(--ease) 0.34s;
}
.menu-overlay.is-open .menu-contacts { opacity: 1; transform: none; }
.menu-contacts a { color: #fff; font-size: 20px; font-weight: 600; }
.menu-contacts p { color: rgba(255, 255, 255, 0.55); font-size: 15px; margin: 10px 0 0; }
.menu-close {
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 34px;
  border-radius: 100px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.4s, background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.menu-overlay.is-open .menu-close { opacity: 1; }
.menu-close:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

body.menu-locked { overflow: hidden; }

/* ---------- Hero (главная) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, var(--brand-ink) 0%, var(--brand-mid) 58%, var(--brand-deep) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 40px) 28px 120px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob.b1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(109, 155, 224, 0.75), transparent 65%);
  top: -180px; right: -120px;
  animation: drift1 16s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(49, 102, 175, 0.9), transparent 65%);
  bottom: -160px; left: -140px;
  animation: drift2 20s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(122, 170, 235, 0.5), transparent 65%);
  top: 30%; left: 18%;
  animation: drift3 24s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 60px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -50px) scale(1.08); } }
@keyframes drift3 { from { transform: translate(0, 0); } to { transform: translate(90px, 40px); } }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  will-change: transform;
}

.hero-logo {
  width: clamp(110px, 16vw, 170px);
  margin: 0 auto 8px;
  color: #fff;
  filter: drop-shadow(0 18px 45px rgba(4, 12, 28, 0.45));
}
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-logo .piece { fill: currentColor; opacity: 0; }
body.ready .hero-logo .piece {
  animation: pieceIn 0.9s var(--ease) forwards;
}
body.ready .hero-logo .piece:nth-child(1) { animation-delay: 0.15s; }
body.ready .hero-logo .piece:nth-child(2) { animation-delay: 0.32s; }
body.ready .hero-logo .piece:nth-child(3) { animation-delay: 0.5s; }
@keyframes pieceIn {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.ready .hero-logo { animation: heroFloat 7s ease-in-out 1.6s infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(18px);
}
body.ready .hero-eyebrow { animation: riseIn 0.9s var(--ease) 0.55s forwards; }

.hero-title {
  margin: 6px 0 0;
  font-size: clamp(72px, 15vw, 168px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 55%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(26px);
}
body.ready .hero-title { animation: riseIn 1s var(--ease) 0.7s forwards; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-services {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-services li { opacity: 0; transform: translateY(26px); }
body.ready .hero-services li:nth-child(1) { animation: riseIn 0.9s var(--ease) 0.95s forwards; }
body.ready .hero-services li:nth-child(2) { animation: riseIn 0.9s var(--ease) 1.1s forwards; }
body.ready .hero-services li:nth-child(3) { animation: riseIn 0.9s var(--ease) 1.25s forwards; }

.hero-services a {
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100%;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  text-align: left;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease),
    border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.hero-services a:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 50px rgba(4, 12, 28, 0.35);
}
.hero-services .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-light);
}
.hero-services .label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-services .arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  opacity: 0.55;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.hero-services a:hover .arrow { transform: translate(3px, 3px); opacity: 1; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  z-index: 2;
  opacity: 0;
}
body.ready .hero-scroll { animation: riseIn 1s var(--ease) 1.6s forwards; }
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Reveal-анимации при прокрутке ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }

[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="left"].in-view,
[data-reveal="right"].in-view { transform: none; }

[data-reveal="zoom"] { transform: scale(0.93) translateY(20px); }
[data-reveal="zoom"].in-view { transform: none; }

/* ---------- Секции-спотлайты ---------- */
.spotlight {
  position: relative;
  padding: 110px 0;
}
.spotlight.alt { background: var(--canvas); }

.spotlight .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.spotlight.rev .inner { direction: rtl; }
.spotlight.rev .inner > * { direction: ltr; }

.spotlight .media {
  position: relative;
}
.spotlight .media::before {
  content: attr(data-num);
  position: absolute;
  top: -66px;
  left: -14px;
  font-size: clamp(110px, 12vw, 168px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(49, 102, 175, 0.22);
  z-index: 0;
  pointer-events: none;
}
.spotlight .media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 32px 70px -22px rgba(11, 28, 56, 0.35);
  z-index: 1;
}
.spotlight .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}
.spotlight .media:hover img { transform: scale(1.09); }
.spotlight .media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(215deg, rgba(49, 102, 175, 0.16), transparent 45%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.spotlight h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 22px;
}
.spotlight p { color: var(--gray); margin: 0 0 30px; font-size: 18px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  box-shadow: 0 10px 26px -10px rgba(49, 102, 175, 0.65);
}
.btn:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -12px rgba(49, 102, 175, 0.75);
}
.btn .arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px rgba(49, 102, 175, 0.4);
}
.btn.ghost:hover {
  background: var(--brand-pale);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1.5px rgba(49, 102, 175, 0.65);
  transform: translateY(-3px);
}

/* ---------- Объекты ---------- */
.objects {
  padding: 120px 0 130px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(49, 102, 175, 0.06), transparent 60%),
    var(--paper);
}
.objects .head { max-width: 760px; margin-bottom: 64px; }
.objects h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 22px; }
.objects .head p { color: var(--gray); font-size: 18px; margin: 0; }

.objects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.object-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.object-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 70px -26px rgba(11, 28, 56, 0.3);
  border-color: rgba(49, 102, 175, 0.35);
}
.object-card .photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.object-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.object-card:hover .photo img { transform: scale(1.07); }
.object-card .body { padding: 28px 30px 32px; }
.object-card .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-pale);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.object-card h3 { font-size: 24px; margin-bottom: 10px; }
.object-card .addr {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--quiet);
  font-size: 16px;
  margin: 0;
}
.object-card .addr svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--brand); }

/* ---------- Футер ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(170deg, var(--brand-ink) 0%, #12294f 60%, var(--brand-deep) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 110px 0 46px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 155, 224, 0.28), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.site-footer h2 {
  color: #fff;
  font-size: clamp(36px, 4.6vw, 58px);
  margin-bottom: 20px;
}
.site-footer .lead {
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.contact-form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-form .field { position: relative; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 9px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 18px;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-light);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(109, 155, 224, 0.18);
}
.contact-form .submit-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .btn { box-shadow: 0 14px 32px -12px rgba(4, 12, 28, 0.6); }
.form-note {
  font-size: 15px;
  color: var(--brand-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.form-note.show { opacity: 1; transform: none; }

.footer-contacts { display: grid; gap: 26px; }
.footer-contacts .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-contacts .icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--brand-light);
}
.footer-contacts .icon svg { width: 20px; height: 20px; }
.footer-contacts .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 4px;
}
.footer-contacts .value {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}
.footer-contacts a.value { display: inline-block; font-weight: 600; }
.footer-contacts a.value:hover { color: var(--brand-light); }

.footer-bottom {
  margin-top: 84px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.footer-bottom .foot-brand svg { width: 30px; height: 30px; fill: var(--brand-light); }
.footer-bottom p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(26px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(49, 102, 175, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s var(--ease), background 0.3s var(--ease);
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Внутренние страницы: шапка-баннер ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(165deg, var(--brand-ink) 0%, var(--brand-mid) 62%, var(--brand-deep) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 90px) 0 96px;
  overflow: hidden;
}
.page-hero .hero-grid-lines { opacity: 0.85; }
.page-hero .blob { opacity: 0.4; }
.page-hero .inner { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--brand-light); }
.page-hero .eyebrow::before { background: var(--brand-light); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.03em;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
}
body.ready .page-hero h1 { animation: riseIn 0.9s var(--ease) 0.25s forwards; }
.page-hero .sub {
  margin: 20px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.66);
  max-width: 640px;
  opacity: 0;
  transform: translateY(20px);
}
body.ready .page-hero .sub { animation: riseIn 0.9s var(--ease) 0.42s forwards; }

/* ---------- Страница услуг ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.subnav .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav .inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--quiet);
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--brand); border-color: var(--brand); }

.service-block { padding: 110px 0 30px; }
.service-block:last-of-type { padding-bottom: 120px; }
.service-block .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.service-head {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 26px;
}
.service-head .index {
  flex: 0 0 auto;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(49, 102, 175, 0.35);
  letter-spacing: -0.03em;
}
.service-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  padding-top: 6px;
}
.service-intro {
  color: var(--gray);
  font-size: 19px;
  max-width: 860px;
  margin: 0 0 44px;
}

.check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check-grid li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.55;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.check-grid li:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(49, 102, 175, 0.35);
  box-shadow: 0 20px 42px -20px rgba(11, 28, 56, 0.25);
}
.check-grid .tick {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-grid .tick svg { width: 12px; height: 12px; }

.service-sub {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 44px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.service-divider {
  max-width: var(--wrap);
  margin: 80px auto 0;
  padding: 0 28px;
}
.service-divider hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* ---------- Страница контактов ---------- */
.contacts-section { padding: 100px 0 120px; }
.contacts-section .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.contacts-section h2 { font-size: clamp(30px, 3.8vw, 48px); margin-bottom: 18px; }
.contacts-section .lead { color: var(--gray); font-size: 18px; margin: 0 0 46px; max-width: 720px; }

.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}
.transport-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.transport-card:hover {
  transform: translateY(-6px);
  border-color: rgba(49, 102, 175, 0.35);
  box-shadow: 0 24px 48px -22px rgba(11, 28, 56, 0.28);
}
.transport-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-pale);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.transport-card .icon svg { width: 22px; height: 22px; }
.transport-card .value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
}
.transport-card .desc { margin: 0; font-size: 15px; color: var(--quiet); line-height: 1.5; }

.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 70px -28px rgba(11, 28, 56, 0.3);
}
.map-card .map-links {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}
.map-card .map-links a { color: #eee; font-size: 12px; }
.map-card iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

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

/* Большие мониторы (1680px и шире) */
@media (min-width: 1680px) {
  :root { --wrap: 1320px; }
  body { font-size: 18px; }
  .hero-services { max-width: 1040px; }
}

/* Ноутбуки и планшеты в альбомной ориентации */
@media (max-width: 1024px) {
  .hero-services { grid-template-columns: 1fr; max-width: 560px; }
  .hero-services a { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 18px 22px; }
  .hero-services .label { flex: 1; }
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Планшет портретный: крупные секции в одну колонку */
@media (max-width: 900px) {
  .spotlight .inner { grid-template-columns: 1fr; gap: 44px; }
  .spotlight.rev .inner { direction: ltr; }
  .spotlight { padding: 84px 0; }
  .spotlight .media { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { padding: 76px 0 20px; }
  .page-hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .objects { padding: 96px 0 104px; }
}

/* Бургер вместо навигации на узких экранах */
@media (max-width: 759px) {
  .nav-desktop { display: none; }
  .header-tel { display: none; }
  .burger { display: flex; }
}

/* Крупные телефоны и узкие планшеты */
@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .objects-grid { grid-template-columns: 1fr; }
}

/* Телефоны */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .header-inner, .spotlight .inner, .service-block .inner,
  .contacts-section .inner, .subnav .inner { padding-left: 20px; padding-right: 20px; }
  .header-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .hero { padding: calc(var(--header-h) + 24px) 20px 100px; }
  .hero-services { margin-top: 40px; }
  .blob { filter: blur(60px); opacity: 0.45; }
  .blob.b3 { display: none; }
  .contact-form .fields { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }
  .objects { padding: 84px 0 90px; }
  .object-card .body { padding: 22px 22px 26px; }
  .site-footer { padding-top: 84px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .map-card iframe { height: 380px; }
  .to-top { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .spotlight .media::before { font-size: 92px; top: -44px; left: -6px; }
  .service-head { gap: 16px; }
  .service-head .index { font-size: 48px; }
  .service-intro { font-size: 17px; }
  .subnav a { padding: 14px 13px; font-size: 14px; }
  .menu-links a { font-size: 32px; }
}

/* Компактные телефоны (iPhone SE, 320–380px) */
@media (max-width: 380px) {
  .wrap, .header-inner, .spotlight .inner, .service-block .inner,
  .contacts-section .inner, .subnav .inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: 62px; }
  .hero-logo { width: 96px; }
  .hero-eyebrow { letter-spacing: 0.3em; font-size: 13px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-services a { padding: 15px 16px; gap: 14px; }
  .hero-services .label { font-size: 15px; }
  .check-grid li { padding: 15px 16px; font-size: 15px; }
  .transport-card { padding: 20px; }
  .transport-card .value { font-size: 26px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; }
  .map-card iframe { height: 300px; }
  .menu-links a { font-size: 28px; }
}

/* Телефон в альбомной ориентации / низкие окна */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 30px) 24px 72px; }
  .hero-logo { width: 84px; margin-bottom: 4px; }
  .hero-title { font-size: clamp(44px, 14vh, 76px); }
  .hero-eyebrow { margin-top: 8px; letter-spacing: 0.3em; }
  .hero-services { grid-template-columns: repeat(3, 1fr); max-width: 880px; margin-top: 32px; }
  .hero-services a { flex-direction: column; align-items: stretch; gap: 16px; padding: 14px 16px; }
  .hero-services .label { font-size: 15px; }
  .hero-scroll { display: none; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 52px; }
  .menu-inner { padding: 24px; }
  .menu-title { margin-bottom: 14px; }
  .menu-links { margin-bottom: 18px; }
  .menu-links a { font-size: 26px; padding: 2px 0; }
  .menu-close { margin-top: 16px; padding: 9px 26px; }
}

/* Сенсорные устройства: убираем «залипающие» hover-эффекты */
@media (hover: none) {
  .hero-services a:hover,
  .object-card:hover,
  .check-grid li:hover,
  .transport-card:hover,
  .btn:hover,
  .brand:hover { transform: none; }
  .spotlight .media:hover img { transform: scale(1.02); }
  .object-card:hover .photo img { transform: none; }
  .object-card:hover { box-shadow: none; border-color: var(--hairline); }
}

/* ---------- Доступность: отключение анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-logo .piece, .hero-eyebrow, .hero-title, .hero-services li,
  .hero-scroll, .page-hero h1, .page-hero .sub { opacity: 1; transform: none; }
}
