/* Balkon — сайт. Цвета и шрифт — как в приложении (Balkon/Core/Theme/Palette.swift). */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/assets/fonts/Manrope-Regular.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/assets/fonts/Manrope-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/assets/fonts/Manrope-Bold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/assets/fonts/Manrope-ExtraBold.ttf) format("truetype"); }

:root {
    --bg: #F5F6F8;
    --surface: #FFFFFF;
    --fill: #EEF1F5;
    --text: #18202E;
    --text-2: #5C636E;
    --border: #E8EBEF;
    --brand: #0A46C3;
    --brand-deep: #07338F;
    --accent: #2563EB;
    --accent-ink: #2563EB;
    --accent-soft: #D8E3FB;
    --roof: #F8702A;
    --roof-ink: #B5470D;
    --green: #0B7A3E;
    --green-soft: #DCF2E5;
    --danger: #D62828;
    --danger-soft: #FCE4E4;
    --navy: #1A2B4C;
    --on-dark: #FFFFFF;
    --shadow: 0 12px 32px rgba(18, 32, 64, 0.08);
    --radius: 20px;
    --page: 1120px;
    --gutter: 20px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A1222;
        --surface: #121C30;
        --fill: #1B2842;
        --text: #E8EEF9;
        --text-2: #95A3BC;
        --border: #23324F;
        --accent-ink: #8AB4FF;
        --roof-ink: #F8702A;
        --accent-soft: #1A2F5E;
        --green: #3CC27A;
        --green-soft: #12301F;
        --danger: #FF6B6B;
        --danger-soft: #3A1A1F;
        --navy: #121C30;
        --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        color-scheme: dark;
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

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

/* MARK: Кнопки */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 14px;
    font: 700 16px/1 Manrope, sans-serif; border: 0; cursor: pointer; text-decoration: none !important;
    transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1D54D6; }
.btn-ghost { background: var(--fill); color: var(--text); }
.btn-light { background: #fff; color: var(--brand); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-width: 172px; height: 56px; padding: 0 18px 0 14px; border-radius: 14px;
    background: #0B1220; color: #fff; text-decoration: none !important;
    font: 800 17px/1.1 Manrope, sans-serif; border: 1px solid rgba(255, 255, 255, .12);
}
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font-size: 11px; font-weight: 600; opacity: .72; letter-spacing: .01em; }
.store-btn.is-soon { opacity: .9; cursor: default; }
.store-btn.is-soon small::after { content: ""; }
/* «Узнать о запуске» — единственная рабочая кнопка, пока приложения нет в магазинах. */
.store-btn.is-launch { background: #fff; color: var(--brand); border-color: rgba(10, 70, 195, .22); }
.store-btn.is-launch small { opacity: .85; }
.store-btn.is-launch:hover { background: #EEF3FF; }
.store-buttons.is-compact .store-btn { min-width: 0; height: 48px; font-size: 15px; }

/* MARK: Шапка */

.site-header { position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: inherit; text-decoration: none !important; letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav a { color: inherit; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: none; }

.site-header.is-on-brand { color: #fff; }
.site-header.is-plain { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header.is-plain .container { height: 64px; }

/* MARK: Первый экран */

.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(80, 140, 255, .45), transparent 60%),
        var(--brand);
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    padding-top: 40px; padding-bottom: 96px;
}
.hero-cities { margin-bottom: 18px; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .82); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: #FFB48A; }
.hero-lead { margin-top: 20px; font-size: 19px; line-height: 1.55; max-width: 540px; color: rgba(255, 255, 255, .86); }
.hero .store-buttons { margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* Телефон с экраном приложения — нарисован вёрсткой, без картинок. */
.phone {
    position: relative; width: 300px; height: 612px; padding: 10px; border-radius: 52px;
    background: #0B1220; box-shadow: 0 40px 80px rgba(3, 14, 40, .45), inset 0 0 0 1.5px #2A3448;
}
.phone-screen {
    position: relative; height: 100%; border-radius: 42px; overflow: hidden;
    background: #F5F6F8; color: #18202E; font-size: 12px;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 26px; font-weight: 700; font-size: 13px; }
.ph-island { width: 88px; height: 26px; border-radius: 20px; background: #0B1220; }
.ph-icons { width: 40px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #18202E 0 62%, transparent 62% 70%, #18202E 70%); opacity: .85; }
.ph-head { padding: 4px 14px 10px; }
.ph-city { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.ph-filter { width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ph-seg { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding: 3px; border-radius: 11px; background: #ECEEF2; font-weight: 700; font-size: 11px; text-align: center; }
.ph-seg span { padding: 6px 0; border-radius: 8px; color: #5C636E; }
.ph-seg .is-on { background: #fff; color: #18202E; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ph-chips { display: flex; gap: 6px; margin-top: 10px; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.ph-chips span { padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #E8EBEF; font-weight: 700; font-size: 11px; }
.ph-chips .is-on { background: #D8E3FB; border-color: #2563EB; color: #2563EB; }
.ph-card { margin: 0 14px 12px; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(18, 32, 64, .06); }
.ph-photo { position: relative; height: 128px; overflow: hidden; }
.ph-photo::before { content: ""; position: absolute; left: 14%; top: 14%; width: 30%; height: 50%; border-radius: 6px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 5px rgba(255, 255, 255, .25); }
.ph-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: rgba(0, 0, 0, .08); }
.tone-1 { background: linear-gradient(160deg, #F4DDBF, #D6A877); }
.tone-2 { background: linear-gradient(160deg, #CFE0F2, #8EAED3); }
.tone-3 { background: linear-gradient(160deg, #E3E7D3, #A9B98A); }
.ph-sofa { position: absolute; right: 12%; bottom: 18%; width: 44%; height: 22%; border-radius: 8px 8px 4px 4px; background: rgba(26, 43, 76, .55); z-index: 1; }
.ph-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 8px; border-radius: 8px; background: #0B7A3E; color: #fff; font-weight: 800; font-size: 10px; }
.ph-heart { position: absolute; right: 10px; top: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #FF3B5C; }
.ph-info { padding: 10px 12px 12px; display: grid; gap: 2px; }
.ph-info b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.ph-info b small { font-size: 11px; font-weight: 600; color: #5C636E; }
.ph-info span { color: #5C636E; font-weight: 600; font-size: 11.5px; }
.ph-toggle {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    padding: 10px 18px; border-radius: 999px; background: #1A2B4C; color: #fff; font-weight: 800; font-size: 12px;
    display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 20px rgba(26, 43, 76, .35);
}

.float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .97); color: #18202E; border-radius: 18px; padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(3, 14, 40, .3); font-size: 13px; font-weight: 600; line-height: 1.35;
}
.float b { display: block; font-weight: 800; }
.float-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-note { top: -22px; left: -72px; white-space: nowrap; }
.float-note .float-icon { background: var(--roof); color: #fff; }
.float-translate { bottom: 120px; right: -36px; }
.float-translate .float-icon { background: #D8E3FB; color: #2563EB; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Волна-крыша внизу первого экрана */
.hero-roof { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; color: var(--bg); }
.hero-roof svg { width: 100%; height: 100%; display: block; }

/* MARK: Секции */

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--roof-ink); margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-lead { margin-top: 14px; font-size: 18px; color: var(--text-2); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -8px; }
.point { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.point .icon-box { background: var(--accent-soft); color: var(--accent-ink); }
.point b { display: block; font-weight: 800; }
.point span { color: var(--text-2); font-size: 15px; }

.icon-box { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.feature .icon-box { margin-bottom: 22px; }
.feature h3 { font-size: 20px; font-weight: 800; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.feature.is-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--surface); }
.feature.is-full { grid-column: 1 / -1; }
.mini-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-doc { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.mini-doc b { display: block; color: var(--text); font-size: 15px; }
.mini-doc-page { flex: none; width: 40px; height: 50px; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 6px; background: var(--surface); border: 1px solid var(--border); font-size: 10px; font-weight: 800; color: var(--danger); box-shadow: inset 0 10px 0 -6px var(--fill), inset 0 18px 0 -14px var(--fill); }
.ib-blue { background: var(--accent-soft); color: var(--accent-ink); }
.ib-green { background: var(--green-soft); color: var(--green); }
.ib-orange { background: #FFE6D8; color: #C4500F; }
@media (prefers-color-scheme: dark) { .ib-orange { background: #3A2414; color: #FFA36E; } }

/* Мини-карточка «условия» внутри широкой фичи */
.mini-conds { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); }
.mini-conds div { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.mini-conds .is-good { color: var(--green); }
.mini-conds .chip-on { align-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 700; font-size: 13.5px; width: max-content; }

/* Тёмная полоса про безопасность */
.safety { background: var(--navy); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (prefers-color-scheme: dark) { .safety { border: 1px solid var(--border); } }
.safety h2 { color: #fff; }
.safety .kicker { color: var(--roof); }
.safety .section-lead { color: rgba(255, 255, 255, .78); }
.safety-list { display: grid; gap: 14px; }
.safety-item { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.safety-item .icon-box { background: rgba(255, 255, 255, .1); color: #FFB48A; width: 40px; height: 40px; }
.safety-item b { display: block; font-weight: 800; }
.safety-item span { font-size: 15px; color: rgba(255, 255, 255, .75); }

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.step::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* Для хозяев */
.owners { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: 44px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.owners ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.owners li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.owners li .icon { color: var(--green); }
.owners-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.owners-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.owners-note { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.owners-card { padding: 24px; border-radius: 22px; background: linear-gradient(160deg, #FFF1E8, #FFE0CC); color: #5A2A0C; }
@media (prefers-color-scheme: dark) { .owners-card { background: linear-gradient(160deg, #2E1D12, #3A2414); color: #FFD9C2; } }
.owners-card b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.owners-card span { font-weight: 600; font-size: 15px; opacity: .85; }

/* Вопросы */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--text-2); }
.faq details a { font-weight: 700; }

/* Последний призыв */
.cta-band {
    position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 64px 24px;
    background: radial-gradient(600px 300px at 50% 0%, rgba(80, 140, 255, .5), transparent 70%), var(--brand);
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin: 14px auto 0; max-width: 520px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.cta-band .store-buttons { justify-content: center; margin-top: 30px; }

/* Подвал */
.site-footer { padding: 48px 0 40px; color: var(--text-2); font-size: 14.5px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .logo { color: var(--text); font-size: 18px; }
.site-footer .logo img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); }

/* MARK: Страница объявления */

.listing-page { padding: 24px 0 120px; }
.listing { display: grid; gap: 28px; }

.gallery { position: relative; border-radius: 24px; overflow: hidden; background: var(--fill); }
.gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    height: min(62vh, 540px);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-empty { flex: 1; display: grid; place-items: center; color: var(--text-2); }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .92); color: #18202E; display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.gallery-nav.is-prev { left: 14px; }
.gallery-nav.is-next { right: 14px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-count {
    position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 10px;
    background: rgba(20, 23, 26, .72); color: #fff; font-weight: 700; font-size: 13px;
}

.listing-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.listing-main { min-width: 0; }

.notice { padding: 14px 16px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-weight: 700; margin-bottom: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px; background: var(--fill); font-weight: 700; font-size: 13px; color: var(--text-2); }
.badge.is-green { background: var(--green); color: #fff; }
.badge.is-closed { background: var(--danger); color: #fff; }
.listing-price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.listing-price span { font-size: 18px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.listing-title { margin-top: 8px; font-size: 22px; font-weight: 700; }
.listing-place { margin-top: 10px; display: flex; gap: 6px; align-items: center; color: var(--text-2); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.tile { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--accent-ink); }
.tile div { display: grid; min-width: 0; }
.tile-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tile-value { font-size: 15px; font-weight: 800; color: var(--text); }

.block { margin-top: 34px; }
.block h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.conds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cond { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.cond .icon { color: var(--text-2); }
.cond.is-good .icon { color: var(--green); }
.cond.is-bad .icon { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }
.desc { white-space: pre-line; color: var(--text-2); font-size: 16px; }
.desc-note { display: flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.listing-meta { margin-top: 32px; font-size: 14px; color: var(--text-2); }

.listing-side { position: sticky; top: 24px; }
.contact-card { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-lock { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.contact-card h2 { font-size: 21px; font-weight: 800; }
.contact-card p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.contact-card .store-buttons { margin-top: 20px; flex-direction: column; }
.contact-card .store-btn { width: 100%; }
.open-app { display: block; margin-top: 16px; text-align: center; font-weight: 700; font-size: 14.5px; }

.sticky-cta { display: none; }

.missing { max-width: 520px; margin: 48px auto; text-align: center; display: grid; justify-items: center; gap: 16px; }
.missing-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--fill); color: var(--text-2); }
.missing h1 { font-size: 30px; font-weight: 800; }
.missing p { color: var(--text-2); }
.missing .store-buttons { justify-content: center; margin-top: 8px; }

.skeleton { border-radius: 24px; background: linear-gradient(90deg, var(--fill), var(--surface), var(--fill)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* MARK: Тексты (политика, условия) */

.legal { max-width: 760px; padding: 48px var(--gutter) 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.legal .updated { margin-top: 10px; color: var(--text-2); }
.legal h2 { margin-top: 36px; font-size: 21px; font-weight: 800; }
.legal p, .legal li { margin-top: 12px; color: var(--text-2); }
.legal ul { padding-left: 22px; margin: 0; }
.legal mark { background: #FFE6D8; color: #7A2E05; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .legal mark { background: #3A2414; color: #FFB48A; } }

/* MARK: Поддержка (/support/) — та же вёрстка, что у документов, плюс способы связи и вопросы */

.support-lead { font-size: 18px; }
.legal .support-contacts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.support-contacts li { display: flex; gap: 16px; align-items: flex-start; margin: 0; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.legal .support-contacts h2 { margin: 0; font-size: 18px; color: var(--text); }
.legal .support-contacts p { margin-top: 4px; }
.support-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.legal .support-faq-title { margin: 44px 0 16px; }
.support .faq { max-width: none; }
.legal .faq details p { margin-top: 0; }

/* MARK: Узкие экраны */

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
    .hero-visual { margin-top: 28px; }
    .float-note { left: -8px; }
    .float-translate { right: -8px; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature.is-wide { grid-column: span 2; }
    .feature.is-full { grid-column: 1 / -1; }
    .safety { grid-template-columns: 1fr; padding: 40px 28px; }
    .owners { grid-template-columns: 1fr; padding: 32px 24px; }
    .listing-body { grid-template-columns: 1fr; gap: 0; }
    .listing-side { position: static; margin-top: 36px; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .nav { display: none; }
    .section { padding: 64px 0; }
    .points, .features, .steps { grid-template-columns: 1fr; }
    .feature.is-wide { grid-column: auto; grid-template-columns: 1fr; }
    .mini-docs { grid-template-columns: 1fr; }
    .owners-actions .btn { flex: 1 1 auto; }
    .hero-lead { font-size: 17px; }
    .store-btn { min-width: 0; flex: 1 1 150px; }
    .contact-card .store-btn { flex: none; }
    .phone { width: 264px; height: 540px; border-radius: 46px; }
    .phone-screen { border-radius: 37px; }
    .float-note { top: -30px; }
    .float-translate { bottom: 90px; }
    .safety, .cta-band { border-radius: 24px; }

    .listing-page { padding-top: 0; padding-bottom: 48px; }
    body:has(.sticky-cta) .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
    .listing-page .container { padding: 0; }
    .gallery { border-radius: 0; }
    .gallery-track { height: 72vw; max-height: 420px; }
    .gallery-nav { display: none; }
    .listing-body { padding: 0 var(--gutter); }
    .listing-price { font-size: 32px; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .sticky-cta {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; gap: 12px;
        align-items: center; justify-content: space-between;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        background: var(--surface); border-top: 1px solid var(--border);
    }
    .sticky-cta strong { display: block; font-size: 19px; font-weight: 800; }
    .sticky-cta strong span { font-size: 13px; font-weight: 600; color: var(--text-2); }
    .sticky-cta small { color: var(--text-2); font-weight: 600; font-size: 13px; }
    .sticky-cta .btn { flex: none; }
}
