/* Студийная полировка — 07.10.2026. Общий слой поверх site-design.css: типографика, состояния, мелкие стыки. */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

::selection { background: #1D58D8; color: #FFFFFF; }

/* Заголовки без висячих слов, абзацы без одиночных строк */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Цифры одинаковой ширины: телефоны, цены, счётчики, номера этапов */
[class*="price"], [class*="count"], [class*="number"], time { font-variant-numeric: tabular-nums; }

/* Единое кольцо фокуса для клавиатуры */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #2F6BDA; outline-offset: 3px; }

/* Физичный отклик при нажатии */
:where(a.ui-control, button.ui-control, button[type="submit"]):active { transform: translateY(1px); transition-duration: 80ms; }

/* Подвал отделён от тёмных секций тонкой линией, а не сливается с ними */
#site-footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* Главная: подбор по фото */
.podbor-card { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); min-height: 452px; border-radius: 14px; overflow: hidden; background: #171B21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(4, 10, 24, 0.9); }
.podbor-media { position: relative; margin: 0; overflow: hidden; background: #0A0E14; }
.podbor-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.04); transform: scale(1.02); transition: transform 1200ms cubic-bezier(.2, .8, .2, 1); }
.podbor-card:hover .podbor-media img { transform: scale(1.06); }
.podbor-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 27, 33, 0) 55%, #171B21 100%), linear-gradient(0deg, rgba(10, 14, 20, 0.7), rgba(10, 14, 20, 0) 35%); }
.podbor-frame { position: absolute; inset: 22% 18% 26% 14%; z-index: 1; pointer-events: none; }
.podbor-frame i { position: absolute; width: 22px; height: 22px; border-color: #8FB5FF; border-style: solid; border-width: 0; }
.podbor-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.podbor-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.podbor-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.podbor-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.podbor-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 181, 255, 0.9), transparent); animation: podbor-scan 3.6s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes podbor-scan { from { transform: translateY(-80px); opacity: .2; } 50% { opacity: 1; } to { transform: translateY(80px); opacity: .2; } }
.podbor-media figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 1; font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.02em; color: rgba(220, 225, 231, 0.72); }
.podbor-body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 44px 44px 40px 8px; }
.podbor-body h3 { margin: 0; font: 600 30px/1.12 'Inter', sans-serif; letter-spacing: -0.012em; color: #FFFFFF; }
.podbor-body p { margin: 0; font-size: 16px; line-height: 1.6; color: #AEB4BB; }
.podbor-cta { align-self: flex-start; height: 52px; padding: 0 22px; display: inline-flex; align-items: center; gap: 12px; border-radius: 4px; background: #1D58D8; color: #FFFFFF; font: 600 16px/1 'Inter', sans-serif; text-decoration: none; transition: background 200ms ease, gap 220ms ease, box-shadow 260ms ease; box-shadow: 0 14px 30px -14px rgba(29, 88, 216, 0.9); }
.podbor-cta:hover { background: #2A67E8; gap: 16px; color: #FFFFFF; }
.podbor-cta svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.podbor-note { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 1.45; color: #8C939A; }
.podbor-note svg { flex: none; fill: none; stroke: #8FB5FF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .podbor-frame::after { animation: none; opacity: .6; }
  .podbor-media img { transition: none; }
}
.podbor-card > sc-if { display: contents; }
.podbor-card > sc-if > div, .podbor-card > div:not(.podbor-body) { grid-column: 1 / -1; padding: 44px; }

/* Главная, первый экран — 07.10.2026: больше веса заголовку, инженерная сетка, подсказка к схеме */
.home-hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(143, 181, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 181, 255, 0.05) 1px, transparent 1px); background-size: 48px 48px; background-position: center center; -webkit-mask-image: radial-gradient(900px 640px at 68% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(900px 640px at 68% 50%, #000 0%, transparent 75%); }
body[data-ui-page="index"] .home-hero[data-screen-label="Первый экран"] h1.home-hero-title { font-size: clamp(56px, 4.6vw, 68px) !important; line-height: 0.96 !important; letter-spacing: -0.028em; }
body[data-ui-page="index"] .home-hero[data-screen-label="Первый экран"] h1 + p.home-hero-lead { font-size: 18px !important; max-width: 460px !important; color: #C3C8CF; }
body[data-ui-page="index"] .home-hero[data-screen-label="Первый экран"] h1 + p + div.home-hero-actions > a { height: 54px !important; font-size: 15px !important; padding-inline: 24px 20px !important; }
.home-hero-hint { position: absolute; z-index: 4; left: 50%; top: calc(100% + 22px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 999px; background: rgba(10, 14, 20, 0.72); box-shadow: inset 0 0 0 1px rgba(143, 181, 255, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.01em; color: #C3C8CF; white-space: nowrap; pointer-events: none; }
.home-hero-hint i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 2px #1D58D8; }
.home-hero-hint i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #8FB5FF; animation: home-hint-ping 2.4s ease-out infinite; }
@keyframes home-hint-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-hero-hint i::after { animation: none; opacity: .5; } }

/* Подсказки поиска */
.ss-box { position: fixed; z-index: 300; max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(23, 25, 28, 0.08), 0 28px 60px -20px rgba(16, 28, 52, 0.35); font: 400 14px/1.4 'Inter', sans-serif; color: #17191C; animation: ss-in 180ms cubic-bezier(.2, .8, .2, 1); }
.ss-box[hidden] { display: none; }
@keyframes ss-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ss-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; }
.ss-item[aria-selected="true"] { background: #EEF2F9; }
.ss-art { grid-row: 1 / 3; align-self: center; font: 500 13px/1.3 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #0B47A8; overflow-wrap: anywhere; }
.ss-name { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ss-meta { font-size: 12px; color: #6B7178; }
.ss-muted { color: #8C939A; font-family: 'Inter', sans-serif; font-size: 12px; }
.ss-box mark { background: #DCE7FB; color: inherit; border-radius: 2px; padding: 0 1px; }
.ss-all { margin-top: 4px; display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid #ECEBE6; border-radius: 0 0 8px 8px; color: #0B47A8; font-weight: 600; text-decoration: none; }
.ss-all[aria-selected="true"] { background: #EEF2F9; }
.ss-count { margin-left: auto; font-weight: 400; font-size: 13px; color: #6B7178; font-variant-numeric: tabular-nums; }
.ss-state, .ss-empty { display: flex; gap: 10px; padding: 16px 14px; color: #4E555D; }
.ss-empty { flex-direction: column; gap: 6px; }
.ss-empty span { font-size: 13px; color: #6B7178; }
.ss-empty a { align-self: flex-start; margin-top: 4px; color: #0B47A8; font-weight: 600; text-decoration: none; }
.ss-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #DCE4F2; border-top-color: #0B47A8; animation: ss-spin 700ms linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ss-box { animation: none; } .ss-spin { animation-duration: 2s; } }

/* Волна точек при загрузке главной */
a[data-hero-pin].pin-intro { animation: pin-intro 620ms cubic-bezier(.2, .9, .25, 1.2) backwards; animation-delay: var(--pin-d, 0ms); }
a[data-hero-pin].pin-intro::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #8FB5FF; opacity: 0; animation: pin-ripple 900ms ease-out; animation-delay: var(--pin-d, 0ms); pointer-events: none; }
@keyframes pin-intro { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes pin-ripple { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.4); } }

/* Летящая точка «добавлено в заявку» */
.cf-dot { position: fixed; z-index: 400; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #1D58D8; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(29, 88, 216, 0.55); pointer-events: none; }

/* Главная, блок «Новые лифты» — 07.10.2026: кадр 3:2 целиком без обрезки, критерии подбора, мягкая смена */
.hl-stage { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hl-media { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #151A21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.hl-layer { position: absolute; inset: 0; overflow: hidden; background: #151A21; }
.hl-layer img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; }
.hl-cap { position: absolute; z-index: 6; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(10, 14, 20, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 11px/1.2 'Inter', sans-serif; color: #C3C8CF; }
.hl-info { display: flex; flex-direction: column; gap: 20px; }
.hl-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.hl-head h3 { margin: 0; font: 600 28px/1.05 'Inter', sans-serif; letter-spacing: -0.015em; color: #FFFFFF; }
.hl-head p { margin: 0; font-size: 15px; line-height: 1.5; color: #AEB4BB; }
.hl-specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hl-specs > div { padding: 14px 16px 0 0; }
.hl-specs > div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hl-specs dt { font: 500 11px/1.3 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB5FF; }
.hl-specs dd { margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: #DCE1E7; }
.hl-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hl-cta { height: 56px; padding: 0 24px 0 28px; display: inline-flex; align-items: center; gap: 16px; border-radius: 4px; background: #1D58D8; color: #FFFFFF; font: 600 16px/1 'Inter', sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(29, 88, 216, 0.9); transition: background 200ms ease, gap 220ms ease; }
.hl-cta:hover { background: #2A67E8; gap: 20px; color: #FFFFFF; }
.hl-cta svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hl-more { padding: 5px 0; font: 600 15px/1 'Inter', sans-serif; color: #DCE1E7; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color 160ms ease, background-size 260ms ease; }
.hl-more:hover { color: #FFFFFF; background-size: 0 1px; background-position: 100% 100%; }
