/* proverka-nedvizhimosti.ru — оформление в духе apple.com:
   полупрозрачное меню, крупные заголовки по центру, секции во всю ширину с чередованием фона,
   карточки с большим скруглением, кнопки-«таблетки». Точки перестройки как у Apple: 1068 и 734 px. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #f5f5f7;
  --card-on-alt: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --accent-ink: #ffffff;
  --brand: #34a853;
  --ok: #248a3d;
  --ok-soft: #e3f4e8;
  --warn: #b25000;
  --warn-soft: #fdf0e3;
  --nav-bg: rgba(250, 250, 252, .8);
  --nav-ink: #1d1d1f;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --r-card: 28px;
  --r-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --card: #1c1c1e; --card-on-alt: #1c1c1e;
    --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383d;
    --accent: #0a84ff; --accent-hover: #409cff; --link: #2997ff;
    --brand: #30d158; --ok: #30d158; --ok-soft: #12301c; --warn: #ff9f0a; --warn-soft: #33240b;
    --nav-bg: rgba(22, 22, 23, .8); --nav-ink: #f5f5f7;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --card: #1c1c1e; --card-on-alt: #1c1c1e;
  --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383d;
  --accent: #0a84ff; --accent-hover: #409cff; --link: #2997ff;
  --brand: #30d158; --ok: #30d158; --ok-soft: #12301c; --warn: #ff9f0a; --warn-soft: #33240b;
  --nav-bg: rgba(22, 22, 23, .8); --nav-ink: #f5f5f7;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); color-scheme: dark;
}

/* База */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1024px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.wrap.wide { max-width: 1240px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Типографика в масштабе Apple */
.eyebrow { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; color: var(--muted); }
.eyebrow.accent { color: var(--warn); }
.headline-xl { font-size: 80px; line-height: 1.05; letter-spacing: -0.015em; }
.headline-l { font-size: 56px; line-height: 1.07; letter-spacing: -0.005em; }
.headline-m { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.headline-s { font-size: 28px; line-height: 1.14; letter-spacing: .007em; }
.lead { font-size: 28px; line-height: 1.14; letter-spacing: .007em; font-weight: 400; }
.lead-s { font-size: 21px; line-height: 1.38; letter-spacing: .011em; font-weight: 400; }
.small { font-size: 14px; letter-spacing: -0.016em; }

/* Кнопки и ссылки-стрелки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 11px 22px; border-radius: 980px; background: var(--accent); color: var(--accent-ink); font: 400 17px/1.17 var(--font); letter-spacing: -0.022em; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn.outline { background: transparent; color: var(--link); border-color: var(--link); }
.btn.outline:hover { background: var(--link); color: var(--accent-ink); }
.btn.sm { min-height: 28px; padding: 4px 12px; font-size: 12px; letter-spacing: -0.01em; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; }
.ctas { display: flex; gap: 18px 32px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Глобальное меню: полупрозрачное, как на apple.com */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--nav-bg); }
.globalnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.globalnav .bar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.globalnav a, .globalnav button { color: var(--nav-ink); }
.gn-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.gn-logo:hover { text-decoration: none; }
.gn-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gn-links a { display: block; padding: 0 10px; line-height: 48px; font-size: 12px; letter-spacing: -0.01em; opacity: .85; }
.gn-links a:hover, .gn-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.gn-links a[aria-current="page"] { font-weight: 600; }
.gn-tools { display: flex; align-items: center; gap: 4px; }
.gn-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; opacity: .85; }
.gn-icon:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.gn-login { font-size: 12px; padding: 0 10px; opacity: .85; white-space: nowrap; }
.gn-burger { display: none; }
.gn-sheet { display: none; }

/* Локальное меню страницы (заголовок раздела + кнопка) */
.localnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 48px); z-index: 40; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.localnav .bar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.localnav .title { font-size: 21px; font-weight: 600; letter-spacing: .011em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.localnav .tools { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.localnav .tools a:not(.btn) { color: var(--ink); opacity: .8; }

/* Хлебные крошки */
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Секции во всю ширину */
.section { padding-block: 100px; background: var(--bg); }
.section.alt { background: var(--bg-alt); }
.section.tight { padding-block: 60px; }
.section-head { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: 56px; }
.section-head p { max-width: 680px; color: var(--muted); }

/* Герой */
.hero { padding-block: 72px 0; text-align: center; overflow: hidden; }
.hero .copy { display: grid; gap: 18px; justify-items: center; }
.hero .lead { max-width: 760px; color: var(--ink); }
.hero .ctas { margin-top: 14px; }
.hero .note { font-size: 14px; color: var(--muted); }
.hero .stage { margin-top: 64px; padding-bottom: 0; }

/* Окно приложения (macOS) */
.window { max-width: 980px; margin: 0 auto; background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 16px 16px 0 0; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.window .chrome { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-alt); border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.window .chrome i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window .chrome i:nth-child(1) { background: #ff5f57; }
.window .chrome i:nth-child(2) { background: #febc2e; }
.window .chrome i:nth-child(3) { background: #28c840; }
.window .chrome span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.window .app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 420px; }
.window aside { background: var(--bg-alt); border-right: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); padding: 14px; display: grid; align-content: start; gap: 10px; }
.window aside .deal { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.window aside .deal small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.window aside .new { margin-top: 8px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 9px; text-align: center; font-size: 13px; }
.window .content { padding: 18px 22px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.window .deal-title { font-size: 17px; font-weight: 600; }
.stepper { display: flex; gap: 18px; overflow-x: auto; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); scrollbar-width: none; }
.stepper span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.stepper b { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; }
.stepper .on { color: var(--ink); font-weight: 600; }
.stepper .on b { background: var(--accent); color: #fff; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); }
.doc div { min-width: 0; }
.doc strong { display: block; font-size: 14px; font-weight: 600; }
.doc small { color: var(--link); font-size: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; white-space: nowrap; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--link); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* Плитки-«бенто» */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--card); border-radius: var(--r-card); padding: 40px; display: grid; gap: 12px; align-content: start; min-width: 0; grid-column: span 2; }
.section.alt .tile { background: var(--card-on-alt); }
.tile.span-3 { grid-column: span 3; }
.tile.span-6 { grid-column: span 6; }
.tile.dark, .section.alt .tile.dark { background: #1d1d1f; color: #f5f5f7; }
.tile.dark h3 { color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.tile p { color: var(--muted); font-size: 17px; }
.tile .big { font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.tile.dark .big { color: #f5f5f7; }
.tile h3 { font-size: 24px; line-height: 1.17; letter-spacing: .009em; }

/* Фотографии жилых комплексов */
.cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.city { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: #1d1d1f; }
.city > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .68)); }
.city .cap { padding: 36px 36px 32px; display: grid; gap: 6px; }
.city .eyebrow { color: rgba(255, 255, 255, .8); font-size: 17px; }
.city h3 { font-size: 32px; line-height: 1.12; }
.city p { color: rgba(255, 255, 255, .85); max-width: 28em; }
.credit { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.credit a { color: var(--muted); text-decoration: underline; }
.banner { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; isolation: isolate; background: #1d1d1f; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--card); border-radius: var(--r-card); padding: 36px; display: grid; gap: 10px; align-content: start; }
.section.alt .steps li { background: var(--card-on-alt); }
.steps li::before { counter-increment: step; content: counter(step); font-size: 48px; line-height: 1; font-weight: 600; color: var(--link); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--muted); }

/* Список с галочками */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.3' fill='none' stroke='%23248a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.src { font-size: 14px; color: var(--muted); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; background: var(--card); border-radius: var(--r-card); padding: 40px 32px; display: grid; gap: 14px; align-content: start; text-align: center; justify-items: center; }
.section.alt .plan { background: var(--card-on-alt); }
.plan.featured { outline: 2px solid var(--accent); outline-offset: -2px; }
.plan .name { font-size: 24px; font-weight: 600; }
.plan .price { white-space: nowrap; font-size: 44px; line-height: 1.08; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 17px; font-weight: 400; color: var(--muted); }
.plan .ticks { text-align: left; justify-self: stretch; margin-bottom: 8px; }
.plan .badge { position: absolute; top: 16px; font-size: 12px; font-weight: 600; color: var(--warn); }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
th.c, td.c { text-align: center; }
td.hl, th.hl { color: var(--link); font-weight: 600; }

/* Вопросы */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 600; letter-spacing: .011em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--link); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* Предупреждение */
.notice { max-width: 820px; margin: 0 auto; background: var(--warn-soft); border-radius: var(--r-sm); padding: 18px 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.notice svg { flex: none; color: var(--warn); margin-top: 2px; }

/* Финальный призыв */
.cta { text-align: center; display: grid; gap: 16px; justify-items: center; }
.cta p { color: var(--muted); }

/* Подвал как на apple.com */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding-block: 20px 28px; }
.footer .disclaimer { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.footer h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .legal { padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Появление при прокрутке (только если пользователь не против анимации) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .stage { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { transform: translateY(24px); opacity: .001; } }
}

/* Большие экраны */
@media (min-width: 1441px) {
  .wrap.wide { max-width: 1320px; }
  .headline-xl { font-size: 96px; }
}

/* Ноутбуки и планшеты (как у Apple: до 1068) */
@media (max-width: 1068px) {
  .headline-xl { font-size: 64px; }
  .headline-l { font-size: 48px; }
  .headline-m { font-size: 32px; }
  .lead { font-size: 24px; line-height: 1.17; }
  .section { padding-block: 80px; }
  .tile { padding: 32px; grid-column: span 3; }
  .tile.span-3 { grid-column: span 3; }
  .tile .big { font-size: 48px; }
  .steps, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan.featured { order: -1; grid-column: 1 / -1; }
  .window .app { grid-template-columns: 200px minmax(0, 1fr); }
  .city { min-height: 440px; }
}
@media (max-width: 960px) {
  .gn-links, .gn-login { display: none; }
  .gn-burger { display: inline-grid; }
  .gn-sheet[data-open] { display: block; padding-block: 12px 28px; }
  .gn-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; }
  .gn-sheet a { display: block; padding: 10px 0; font-size: 24px; font-weight: 600; color: var(--nav-ink); letter-spacing: .007em; }
  .gn-sheet .login { margin-top: 12px; font-size: 17px; font-weight: 400; color: var(--link); }
}

/* Телефоны (как у Apple: до 734) */
@media (max-width: 734px) {
  body { font-size: 17px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .headline-xl { font-size: 44px; line-height: 1.08; }
  .headline-l { font-size: 36px; line-height: 1.11; }
  .headline-m { font-size: 28px; line-height: 1.14; }
  .headline-s { font-size: 24px; }
  .lead { font-size: 21px; line-height: 1.24; }
  .lead-s { font-size: 19px; }
  .eyebrow { font-size: 17px; }
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-block: 44px 0; }
  .hero .stage { margin-top: 40px; }
  .bento, .steps, .plans, .cities { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.span-3, .tile.span-6 { grid-column: auto; padding: 28px 24px; border-radius: 22px; }
  .tile .big { font-size: 40px; }
  .steps li, .plan { padding: 28px 24px; border-radius: 22px; }
  .plans .plan.featured { grid-column: auto; }
  .city { min-height: 380px; border-radius: 22px; }
  .city .cap { padding: 24px 22px; }
  .city h3 { font-size: 26px; }
  .banner { aspect-ratio: 4 / 3; border-radius: 22px; }
  .window .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .window aside { display: none; }
  .window .content { padding: 14px; }
  .localnav .title { font-size: 17px; }
  .localnav .tools .hide-s { display: none; }
  .faq summary { font-size: 17px; padding-block: 18px; }
  .faq summary::after { top: 12px; }
  .footer .cols { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 8px; }
  .footer .cols > div { border-bottom: 1px solid var(--line); padding-block: 12px; }
  .footer .cols > div:last-child { border-bottom: 0; }
  .ctas { gap: 14px 24px; }
}
@media (max-width: 360px) {
  .headline-xl { font-size: 38px; }
  .gn-logo span { display: none; }
}

/* Печать */
@media print {
  .globalnav, .localnav, .footer .cols { display: none; }
  .section { padding-block: 24px; }
}
