/* ---------- токены ---------- */
:root {
  --ink: #0b1220;
  --ink-2: #101a2d;
  --ink-3: #16233c;
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --surface-3: #e9eefa;
  --text: #0d1728;
  --text-2: #2c3a52;
  --muted: #56657e;
  --muted-2: #5f6d84;
  --line: #e4eaf5;
  --line-2: #d5deee;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-2: #6366f1;
  --brand-tint: #eef1ff;
  --cyan: #0891b2;
  --cyan-2: #22d3ee;
  --accent-grad: linear-gradient(100deg, #4f46e5 0%, #4f7ce8 45%, #0891b2 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 40, .05), 0 8px 20px -16px rgba(13, 23, 40, .35);
  --shadow-md: 0 18px 45px -28px rgba(13, 23, 40, .45);
  --shadow-lg: 0 40px 80px -40px rgba(13, 23, 40, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.6px; line-height: 1.15; }
h1, h2 { text-wrap: balance; }

.site-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text',
    'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-body a { color: var(--brand-600); text-decoration: none; }
.site-body a:hover { color: var(--brand); }
.site-body :focus-visible { outline: 3px solid rgba(99, 102, 241, .55); outline-offset: 3px; border-radius: 6px; }

.site-wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 650; box-shadow: var(--shadow-md); transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- кнопки ---------- */
.btn-site {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 14.5px; font-weight: 650; line-height: 1.2;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(79, 70, 229, .75);
  cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.btn-site:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(79, 70, 229, .8); }
.btn-site:active { transform: translateY(0); }
.btn-site svg { width: 17px; height: 17px; }
.btn-site.secondary {
  background: rgba(255, 255, 255, .07); color: #eaf0ff;
  border-color: rgba(255, 255, 255, .22); box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-site.secondary:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-site.light { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-site.light:hover { color: var(--ink); background: #f7f9ff; }
.btn-site.block { width: 100%; }
/* «a» внутри .site-body красится в цвет ссылок — возвращаем кнопкам их цвет */
.site-body a.btn-site { color: #fff; }
.site-body a.btn-site:hover { color: #fff; }
.site-body a.btn-site.secondary { color: #eaf0ff; }
.site-body a.btn-site.secondary:hover { color: #fff; }
.site-body a.btn-site.light,
.site-body a.btn-site.light:hover { color: var(--ink); }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 15, 27, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-head .inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.site-body .site-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-body .site-brand:hover { color: #fff; }
.site-brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.7); }
.site-brand b { display: block; font-size: 14.6px; font-weight: 700; color: #fff; letter-spacing: .1px; }
.site-brand small { display: block; color: #a2b2ce; font-size: 11.2px; margin-top: 1px; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  color: #c6d1e4; font-size: 14px; font-weight: 500;
  padding: 9px 13px; border-radius: 9px; transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-head .btn-site { padding: 10px 18px; font-size: 13.8px; }
.site-head .head-cta { margin-left: 6px; }
.site-head .head-cta .cta-short { display: none; }
.site-head .head-phone {
  display: inline-flex; align-items: center; gap: 7px; color: #fff;
  font-size: 14px; font-weight: 650; white-space: nowrap;
}
.site-head .head-phone svg { width: 16px; height: 16px; color: var(--cyan-2); }

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-head .head-phone { display: none; }
  .site-head .head-cta { margin-left: auto; }
  .nav-toggle {
    display: block; margin-left: 10px; position: relative;
  }
  .nav-toggle summary {
    list-style: none; cursor: pointer;
    width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary svg { width: 20px; height: 20px; }
  .nav-toggle[open] summary { background: rgba(255, 255, 255, .16); }
  .nav-toggle .menu-panel {
    position: absolute; right: 0; top: 52px; width: 240px;
    background: #111b2e; border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg);
    display: grid; gap: 2px;
  }
  .nav-toggle .menu-panel a {
    color: #dbe4f5; font-size: 14.5px; padding: 10px 12px; border-radius: 9px;
  }
  .nav-toggle .menu-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-toggle .menu-panel .head-phone { display: flex; padding: 10px 12px; }
}

@media (max-width: 640px) {
  .site-head .inner { min-height: 64px; gap: 10px; }
  .site-brand b { font-size: 12.8px; line-height: 1.25; }
  .site-brand small { display: none; }
  .site-brand span { max-width: 150px; }
  .site-brand img { width: 34px; height: 34px; }
  .site-head .head-cta { padding: 9px 13px; font-size: 12.8px; }
  .site-head .head-cta .cta-full { display: none; }
  .site-head .head-cta .cta-short { display: inline; }
  .site-wrap { padding: 0 18px; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(760px 420px at 82% 4%, rgba(34, 211, 238, .22), transparent 62%),
    radial-gradient(680px 420px at 6% -10%, rgba(99, 102, 241, .42), transparent 62%),
    linear-gradient(158deg, #080e1b 0%, #0f1b31 52%, #0a1424 100%);
  padding: 78px 0 88px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 60% 0%, #000 0%, transparent 78%);
}
.hero .site-wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 18px; letter-spacing: -1.4px; }
.hero p.lead { color: #b9c6dd; font-size: clamp(15px, 1.25vw, 17px); max-width: 620px; margin: 0 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #cbd7ec; font-size: 12.4px; font-weight: 600; letter-spacing: .2px;
  margin-bottom: 22px;
  white-space: nowrap;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero { padding: 56px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 560px; width: 100%; }
}

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85);
  aspect-ratio: 4 / 3.1; background: #0d1728;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 12, 22, .78) 100%);
}
.hero-photo .hero-photo-cap, .hero-slide .hero-photo-cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 10px; color: #e8eefc; font-size: 13.4px;
}
.hero-photo .hero-photo-cap b { display: block; font-size: 15px; color: #fff; }

.hero-slider {
  position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3.1;
  border: 1px solid rgba(255, 255, 255, .18); background: #0d1728;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85);
}
.hero-slides { display: flex; height: 100%; transition: transform .6s var(--ease); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0) 42%, rgba(7, 12, 22, .82) 100%);
}
.hero-slide .hero-photo-cap {
  bottom: 46px; left: 22px; right: 66px; z-index: 2; display: block;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .65);
}
.hero-slide .hero-photo-cap span { display: block; }
.hero-slide .hero-photo-cap b { display: block; font-size: 15.6px; line-height: 1.35; margin-bottom: 3px; }
.hero-slide .hero-photo-cap span:not(:has(b)) { font-size: 13.4px; }
.hero-slide .hero-photo-cap .banner-cta { margin-top: 16px; }
.hero-slide .hero-photo-cap .btn-site {
  padding: 10px 18px; font-size: 13.6px; border-radius: 11px;
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, .9);
}
.hero-slide .hero-photo-cap .btn-site svg { width: 16px; height: 16px; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(9, 16, 28, .55); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; cursor: pointer; backdrop-filter: blur(8px);
  opacity: .5; transition: opacity .2s, background .2s, transform .2s;
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover { background: rgba(9, 16, 28, .8); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.hero-slider:hover .slider-btn,
.hero-slider:focus-within .slider-btn { opacity: 1; }
.slider-btn:hover { opacity: 1; }
@media (hover: none) { .slider-btn { opacity: 1; } }

.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.slider-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer;
  transition: width .2s var(--ease), background .2s var(--ease);
}
.slider-dot:hover { background: rgba(255, 255, 255, .75); }
.slider-dot.is-active { width: 20px; border-radius: 999px; background: #fff; }

.hero-panel {
  position: relative; border-radius: 22px; padding: 22px;
  background: linear-gradient(165deg, rgba(29, 43, 70, .92), rgba(13, 22, 38, .94));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .9);
}
.hero-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-panel .panel-head span { font-size: 12.4px; letter-spacing: .12em; text-transform: uppercase; color: #8fa1c0; }
.hero-panel .panel-head .live { display: inline-flex; align-items: center; gap: 7px; color: #7ee2b8; font-size: 12.2px; text-transform: none; letter-spacing: 0; }
.hero-panel .panel-head .live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.sys-row {
  display: flex; align-items: center; gap: 13px; padding: 12px;
  border-radius: 13px; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.sys-row + .sys-row { margin-top: 10px; }
.sys-row .ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(99, 102, 241, .18); color: #a5b4fc;
}
.sys-row .ico svg { width: 23px; height: 23px; }
.sys-row b { display: block; font-size: 14.2px; color: #f1f5ff; font-weight: 600; }
.sys-row > span:nth-child(2) { min-width: 0; }
.sys-row small { display: block; color: #8fa1c0; font-size: 12.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-row .state { margin-left: auto; flex: none; white-space: nowrap; font-size: 11.6px; font-weight: 650; color: #7ee2b8; background: rgba(52, 211, 153, .12); padding: 4px 9px; border-radius: 999px; }

/* ---------- полоса преимуществ ---------- */
.feature-strip { background: #fff; border-bottom: 1px solid var(--line); }
.feature-strip .inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; padding: 10px 0;
}
.feature { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: 14px; }
.feature + .feature { box-shadow: inset 1px 0 0 var(--line); }
.feature .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-600); }
.feature .ico svg { width: 20px; height: 20px; }
.feature b { display: block; font-size: 14px; }
.feature span { color: var(--muted); font-size: 12.8px; }
@media (max-width: 900px) {
  .feature-strip .inner { grid-template-columns: 1fr 1fr; }
  .feature + .feature { box-shadow: none; }
}
@media (max-width: 560px) { .feature-strip .inner { grid-template-columns: 1fr; } }

/* ---------- секции ---------- */
.section { padding: 82px 0; }
.section.tight { padding: 62px 0; }
@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .cta-band { padding-bottom: 56px; }
}
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .eyebrow {
  background: var(--brand-tint); border-color: #dfe5fb; color: var(--brand-600);
  padding: 6px 12px; margin-bottom: 16px; font-size: 12px;
}
.section-head .eyebrow .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.section h2 { font-size: clamp(24px, 2.7vw, 36px); margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 640px; }

/* ---------- услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1050px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-grad); opacity: 0; transition: opacity .18s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd9ee; }
.service-card:hover::before { opacity: 1; }
.service-card .num {
  position: absolute; top: 20px; right: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #b9c4d8;
}
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e6ecff, #ddf0fe);
  border: 1px solid rgba(79, 70, 229, .2);
  color: var(--brand-600); margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 18px -14px rgba(79, 70, 229, .8);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.service-icon svg { width: 32px; height: 32px; }
.service-icon:has(.ico-fire) {
  background: linear-gradient(145deg, #fff3ee, #ffe2d2);
  border-color: rgba(194, 65, 12, .22);
  color: #c2410c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 18px -14px rgba(194, 65, 12, .9);
}
.service-icon:has(.ico-access) {
  background: linear-gradient(145deg, #eef1ff, #e2e7ff);
  border-color: rgba(67, 56, 202, .24);
  color: #4338ca;
}
.service-icon:has(.ico-camera) {
  background: linear-gradient(145deg, #eefcff, #daf5fe);
  border-color: rgba(14, 116, 144, .24);
  color: #0e7490;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 18px -14px rgba(14, 116, 144, .9);
}
.service-icon:has(.ico-energy) {
  background: linear-gradient(145deg, #effdf5, #d8f9e8);
  border-color: rgba(4, 120, 87, .24);
  color: #047857;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 18px -14px rgba(4, 120, 87, .9);
}
.service-card:hover .service-icon {
  background: var(--accent-grad); color: #fff; border-color: transparent;
}
.service-card h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -.3px; }
.service-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.service-card .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 650; color: var(--brand-600);
}
.service-card .more svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.service-card:hover .more svg { transform: translateX(3px); }

/* ---------- объекты ---------- */
.cases { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.case-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-media {
  position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #22304d, #0f1a2c);
  overflow: hidden;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.045); }
.case-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5);
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(34,211,238,.22), transparent 70%),
    linear-gradient(150deg, #1c2a45, #0d1728);
}
.case-placeholder svg { width: 46px; height: 46px; }
.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.case-body h3 { margin: 0; font-size: 17px; }
.case-body p {
  margin: 0; color: var(--muted); font-size: 13.8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-meta { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12.6px; }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 14px; height: 14px; opacity: .8; }
.case-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
/* Один кейс — широкой карточкой, чтобы не висела узкая колонка */
.cases-grid:has(> .case-card:only-child) { grid-template-columns: 1fr; }
.cases-grid:has(> .case-card:only-child) .case-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.cases-grid:has(> .case-card:only-child) .case-media { aspect-ratio: auto; min-height: 300px; height: 100%; }
.cases-grid:has(> .case-card:only-child) .case-body { padding: 34px 34px 30px; justify-content: center; gap: 12px; }
.cases-grid:has(> .case-card:only-child) .case-body h3 { font-size: clamp(21px, 2.1vw, 27px); }
.cases-grid:has(> .case-card:only-child) .case-body p { font-size: 15px; }
.cases-grid:has(> .case-card:only-child) .case-body p { -webkit-line-clamp: 6; }
@media (max-width: 820px) {
  .cases-grid:has(> .case-card:only-child) .case-card { grid-template-columns: 1fr; }
  .cases-grid:has(> .case-card:only-child) .case-media { aspect-ratio: 16 / 10; min-height: 0; }
  .cases-grid:has(> .case-card:only-child) .case-body { padding: 22px 22px 24px; }
}

/* ---------- о компании ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid p { color: var(--text-2); font-size: 15.6px; }
.about-points { display: grid; gap: 12px; }
.about-point {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.about-point .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-600); }
.about-point .ico svg { width: 19px; height: 19px; }
.about-point b { display: block; font-size: 14.6px; margin-bottom: 2px; }
.about-point span { color: var(--muted); font-size: 13.6px; }

/* ---------- CTA полоса ---------- */
.cta-band { padding: 0 0 82px; }
.cta-band .card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 42px 46px; color: #fff; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 88% -20%, rgba(34,211,238,.35), transparent 60%),
              linear-gradient(120deg, #101a2e, #1a2744 60%, #0f1a2e);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); }
.cta-band p { margin: 0; color: #bcc9de; font-size: 15px; }
.cta-band .actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta-band .card { padding: 30px 24px; } .cta-band .actions { margin-left: 0; width: 100%; } }

/* ---------- контакты ---------- */
.contacts { background: var(--surface); border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; gap: 28px; } }

.contact-list { display: grid; gap: 6px; margin-top: 26px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-600); }
.contact-row .ico svg { width: 18px; height: 18px; }
.contact-row .lbl { display: block; color: var(--muted-2); font-size: 12.4px; }
.contact-row a, .contact-row .val { color: var(--text); font-weight: 600; font-size: 15px; }
.contact-row a:hover { color: var(--brand-600); }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-md);
}
.form-card h3 { margin: 0 0 6px; font-size: 20px; }
.form-card .form-hint { color: var(--muted); font-size: 13.6px; margin: 0 0 20px; }

.form-site { display: grid; gap: 14px; }
.form-site label { font-size: 12.6px; color: var(--muted); font-weight: 650; display: block; margin-bottom: 6px; }
.form-site input, .form-site textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font: inherit; font-size: 14.5px; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-site input::placeholder, .form-site textarea::placeholder { color: #9aa7bd; }
.form-site input:focus, .form-site textarea:focus {
  outline: none; border-color: var(--brand-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.form-site textarea { resize: vertical; min-height: 96px; }
.form-site .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form-site .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.6px; color: var(--muted); line-height: 1.5; }
.consent input { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 12.6px; color: var(--muted-2); }
.field-error { color: #b42318; font-size: 12.4px; margin-top: 4px; }

/* ---------- подвал ---------- */
.site-foot { background: #080f1c; color: #93a2bd; padding: 54px 0 26px; font-size: 13.6px; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .site-foot .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-foot .foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.site-foot .foot-brand img { width: 38px; height: 38px; border-radius: 11px; }
.site-foot .foot-brand b { color: #fff; font-size: 14.6px; }
.site-foot .foot-brand small { display: block; color: #7f90ad; font-size: 11.4px; }
.site-foot h2 { color: #dbe4f4; font-size: 12.6px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-foot a { color: #c5d2e6; }
.site-foot a:hover { color: #fff; }
.site-foot .foot-links { display: grid; gap: 9px; }
.site-foot .foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; color: #7183a1; font-size: 12.6px; }

/* ---------- внутренние страницы ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff; padding: 62px 0 58px;
  background:
    radial-gradient(700px 320px at 88% -30%, rgba(34, 211, 238, .22), transparent 62%),
    linear-gradient(150deg, #080e1b, #12203a 70%, #0c1626);
}
.page-head h1 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 40px); }
.page-head p { color: #b9c6dd; margin: 0; max-width: 700px; font-size: 15.6px; }
.breadcrumbs { font-size: 12.8px; color: #93a4c2; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.breadcrumbs a { color: #c5d2e6; }
.breadcrumbs .sep { opacity: .5; }

.service-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } }
.prose {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.prose p { color: var(--text-2); font-size: 15.6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose ul { padding-left: 20px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.aside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); display: grid; gap: 10px;
}
.aside-card h2 { margin: 0 0 6px; font-size: 15.5px; letter-spacing: 0; color: var(--muted); text-transform: uppercase; font-size: 12.2px; letter-spacing: .1em; }
.aside-card .side-link {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; border: 1px solid transparent;
}
.aside-card .side-link:hover { background: var(--surface-2); border-color: var(--line); color: var(--brand-600); }
.aside-card .side-link.is-current { background: var(--brand-tint); color: var(--brand-600); font-weight: 650; }
.aside-card .side-link svg { width: 16px; height: 16px; opacity: .55; }
.aside-sep { height: 1px; background: var(--line); margin: 8px 0; }

.empty-note { color: var(--muted); font-size: 14.6px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.step .n {
  width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-600); font-size: 12.6px; font-weight: 750;
}
.step b { display: block; font-size: 14.2px; }
.step span { color: var(--muted); font-size: 12.8px; }

/* «Спасибо» */
.thanks-wrap { min-height: 56vh; display: grid; place-items: center; padding: 60px 0; }
.thanks-card {
  width: min(620px, 100%); text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px 34px; box-shadow: var(--shadow-md);
}
.thanks-card .ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: #ecfdf5; color: #047857; }
.thanks-card .ico svg { width: 30px; height: 30px; }
.thanks-card h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 10px; }
.thanks-card p { color: var(--muted); margin: 0 0 22px; }

/* Якоря не прячутся под закреплённой шапкой */
.section[id], #services, #cases, #about, #contacts { scroll-margin-top: 92px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .case-card:hover .case-media img, .service-card:hover { transform: none; }
}

/* ---------- страница объекта ---------- */
.case-body h3 a { color: inherit; }
.case-body h3 a:hover { color: var(--brand-600); }
.case-media { display: block; }
.case-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 13.6px; font-weight: 650; color: var(--brand-600);
}
.case-link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.case-card:hover .case-link svg { transform: translateX(3px); }

.case-head-meta { display: flex; align-items: center; gap: 8px; color: #b9c6dd; font-size: 14.6px; }
.case-head-meta svg { width: 15px; height: 15px; opacity: .8; }
.case-head-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

.case-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .case-layout { grid-template-columns: 1fr; gap: 22px; } }

.case-figure {
  position: sticky; top: 96px; overflow: hidden; background: #0d1728;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.case-figure img { width: 100%; height: auto; display: block; }
.case-figure .case-placeholder { position: static; aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .case-figure { position: static; } }

.case-content {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 34px; box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) { .case-content { padding: 22px 20px; } }
.case-content p { color: var(--text-2); font-size: 15.4px; margin: 0 0 14px; }
.case-content p b, .case-list b { color: var(--text); }
.case-h { font-size: 17px; margin: 24px 0 12px; letter-spacing: -.2px; }
.case-h:first-child { margin-top: 0; }
.case-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.case-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 14.8px; }
.case-list li::before {
  content: ''; position: absolute; left: 6px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2);
}
.case-cta { margin: 22px 0 0; }

/* ---------- фильтр по годам ---------- */
.year-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font-size: 13.4px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-600); background: var(--surface); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active:hover { color: #fff; }

.service-layout .steps-title {
  margin: 26px 0 12px; font-size: 12.2px; letter-spacing: .1em; line-height: 1.4;
  text-transform: uppercase; color: var(--muted); font-weight: 650;
}
.service-layout .steps-title + .steps { margin-top: 0; }
