/* novostroiki-ufy.ru — уральский: тёплый светлый фон, малахит, медь (из стиля сайта Ростова) */
:root {
  --bg: #f6f4ef;
  --bg2: #eeebe3;
  --card: #fffefb;
  --fg: #121a2b;
  --muted: #5a6272;
  --line: rgba(18, 26, 43, 0.10);
  --sea: #1866a6;
  --sea2: #2380c6;
  --deep: #0c2238;
  --sand: #ece6d8;
  --brass: #b07a1e;
  --coral: #c9583a;
  --ok: #1f8a5b;
  --shadow: 0 18px 50px rgba(12, 34, 56, 0.10);
  --radius: 20px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--brass); margin: 0 0 14px; }
section { padding: 56px 0; }
section.tight { padding: 28px 0; }
section.alt { background: var(--bg2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 239, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--serif); font-size: 19px; font-weight: 600; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo small { display: block; font: 500 10.5px/1 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.nav nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav nav a { color: var(--fg); }
.nav nav a.on { color: var(--sea); font-weight: 600; }
@media (max-width: 900px) { .nav nav a.hide-m { display: none; } .nav nav { gap: 14px; } }
@media (max-width: 520px) { .nav nav a.ipo { display: none; } .nav nav .btn { display: none; } .nav nav a.hide-m:first-child { display: inline; } .logo { font-size: 17px; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--sea); color: #fff; font: 600 15.5px/1.2 inherit; font-family: inherit; transition: background 0.18s, transform 0.12s; text-align: center; }
.btn:hover { background: var(--sea2); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--sea); }
.btn.ghost:hover { background: rgba(29, 79, 145, 0.06); }
.btn.light { background: #fff; color: var(--deep); }
.btn.light:hover { background: var(--sand); }
.btn.brass { background: var(--brass); }
.btn.brass:hover { background: #95692a; }
.btn:disabled { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; color: #f4efe6; background: radial-gradient(1200px 500px at 85% -10%, rgba(35, 128, 198, 0.55), transparent 60%), linear-gradient(160deg, #0c2238 0%, #102d4a 55%, #174066 100%); padding: 72px 0 120px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: italic; color: #d9a63e; }
.hero .lead { font-size: clamp(17px, 2vw, 19px); max-width: 640px; color: rgba(244, 239, 230, 0.86); }
.hero .eyebrow { color: #e8c477; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.16); max-width: 760px; }
.hero .stats div { flex: 1 1 0; min-width: 150px; padding: 16px 18px 0 0; }
.hero .stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; line-height: 1.1; }
.hero .stats span { font-size: 13.5px; color: rgba(244, 239, 230, 0.72); }
.hero.sub { padding: 44px 0 86px; }
/* фото фрегата «Херсонес» справа в шапке главной: растворяется в морском фоне, текст поверх не мешает */
.hero-ship { position: absolute; top: 0; right: 0; bottom: 0; width: min(52vw, 760px); margin: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 82%, transparent 100%); }
.hero-ship img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; opacity: .55; filter: saturate(.85) contrast(1.05); mix-blend-mode: luminosity; }
.hero-ship figcaption { position: absolute; right: 16px; bottom: 100px; font-size: 11px; color: rgba(244, 239, 230, .55); }
.hero .wrap { position: relative; }
@media (max-width: 900px) { .hero-ship { display: none; } }
.hero.sub h1 { font-size: clamp(30px, 4.4vw, 50px); }
.crumbs { font-size: 13.5px; color: rgba(244, 239, 230, 0.7); margin-bottom: 18px; }
.crumbs a { color: rgba(244, 239, 230, 0.92); }
.crumbs span { margin: 0 6px; opacity: 0.6; }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--sea); }

/* ---------- фильтры ---------- */
.search { position: relative; z-index: 2; margin-top: -64px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--line); }
.panel label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.panel select { appearance: none; -webkit-appearance: none; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6770' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 0 34px 0 14px; font: 500 15px/1 inherit; font-family: inherit; color: var(--fg); text-transform: none; letter-spacing: 0; width: 100%; }
@media (max-width: 960px) { .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel label:last-child { grid-column: span 2; } }
.found { margin: 18px 0 0; font-size: 14px; color: var(--muted); min-height: 20px; }

/* ---------- карточки ЖК ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 16px; } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--fg); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card .pic { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dceaf6, #e9e1d1); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--sea); }
.card .city { position: absolute; left: 12px; top: 12px; background: rgba(12, 34, 56, 0.78); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 21px; margin: 0 0 3px; }
.card .dev { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.card .price { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--deep); }
.card .price small { font: 500 13.5px/1 -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); margin-left: 6px; }
.card .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 7px; background: var(--bg2); color: var(--fg); white-space: nowrap; }
.chip.sea { background: rgba(29, 79, 145, 0.10); color: var(--sea); }
.chip.hot { background: rgba(201, 88, 58, 0.11); color: var(--coral); }
.chip.ok { background: rgba(31, 138, 91, 0.11); color: var(--ok); }
.card .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.card .foot b { color: var(--sea); font-weight: 600; }

/* ---------- блоки текста, ссылки ---------- */
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 26px; } }
.prose { max-width: 820px; }
.prose p, .prose li { color: #26343d; }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--fg); font-size: 15px; }
.tags a:hover { border-color: var(--sea); color: var(--sea); text-decoration: none; }
.tags a span { color: var(--muted); font-size: 13px; }
.cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cities a { display: block; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--fg); }
.cities a:hover { border-color: var(--sea); text-decoration: none; }
.cities b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.cities span { font-size: 13.5px; color: var(--muted); }

/* ---------- страница ЖК ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7.5; margin-top: -60px; position: relative; z-index: 2; box-shadow: var(--shadow); background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g0 { grid-row: span 2; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; margin-top: -54px; } .gallery .g1, .gallery .g2 { display: none; } }
.credit { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.credit a { color: var(--muted); text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.facts div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } .facts b { font-size: 20px; } }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.room { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.room img { height: 150px; object-fit: contain; margin-bottom: 8px; background: #fff; border-radius: 10px; }
.room b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.room span { font-size: 14px; color: var(--muted); }
.promo { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 15px; }

/* таблицы */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--bg2); }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl.terms th { width: 34%; white-space: normal; color: var(--muted); font-weight: 500; }
.tbl.terms td { white-space: normal; }
.old { text-decoration: line-through; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.src { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- шахматка ---------- */
.chess-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font: 500 14px/1 inherit; font-family: inherit; color: var(--fg); cursor: pointer; }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); color: var(--sea); font-weight: 600; }
.houses { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.houses button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 14px; font: 500 14px/1.2 inherit; font-family: inherit; cursor: pointer; color: var(--fg); text-align: left; }
.houses button small { display: block; font-size: 12px; color: var(--muted); }
.houses button.on { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); color: var(--sea); }
.chess { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.chess .sect { display: inline-block; vertical-align: top; margin-right: 22px; }
.chess .sect h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.chess .fl { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.chess .fl > i { flex: none; width: 26px; font-style: normal; font-size: 12px; color: var(--muted); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.cell { flex: none; width: 58px; height: 46px; border-radius: 7px; border: 0; padding: 3px; font: 600 12px/1.15 inherit; font-family: inherit; cursor: default; background: #ebe7df; color: #a59f95; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cell small { font-weight: 500; font-size: 10.5px; }
.cell.free { background: rgba(29, 79, 145, 0.12); color: var(--sea); cursor: pointer; }
.cell.free:hover { background: var(--sea); color: #fff; }
.cell.booked { background: rgba(242, 176, 74, 0.16); color: #8a6526; }
.cell.dim { opacity: 0.28; }
.cell.promo { box-shadow: inset 0 0 0 1.5px var(--coral); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- калькулятор ---------- */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc .f { margin-bottom: 18px; }
.calc .f label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.calc .f label b { color: var(--fg); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--sea); height: 28px; }
.calc .out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc .out div span { display: block; font-size: 13px; color: var(--muted); }
.calc .out div b { font-family: var(--serif); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc .out .big b { color: var(--sea); font-size: 32px; }
.calc .warn { font-size: 13.5px; color: var(--coral); margin-top: 12px; min-height: 0; }
.calc .warn:empty { display: none; }
.calc .note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.45; }

/* ---------- юридические сноски ---------- */
.legal { font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--bg2); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.legal p { margin: 0 0 6px; }
.legal p:last-child { margin: 0; }
.legal b { color: #3b4851; font-weight: 600; }

/* ---------- заявка ---------- */
.get { background: linear-gradient(150deg, #0c2238, #174066); color: #f4efe6; border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.get h2 { color: #fff; }
.get p { color: rgba(244, 239, 230, 0.82); }
.get .ch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.get .ch button { min-height: 52px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font: 600 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.get .ch button:hover { background: rgba(255, 255, 255, 0.16); }
.get .meta-note { font-size: 11.5px; color: rgba(244, 239, 230, 0.55); margin: 12px 0 0; grid-column: 1 / -1; }
@media (max-width: 820px) { .get { grid-template-columns: 1fr; padding: 26px 20px; } }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { padding: 16px 44px 16px 18px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; color: var(--sea); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #26343d; }

/* модальное окно заявки */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 24, 32, 0.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.show { display: flex; }
.sheet { background: var(--card); border-radius: 22px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; position: relative; overscroll-behavior: contain; }
.sheet h3 { font-size: 24px; margin: 0 40px 4px 0; }
.sheet .why { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.sheet .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg2); font-size: 18px; cursor: pointer; color: var(--fg); }
.q { margin-bottom: 12px; }
.q > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 12px; font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; color: var(--fg); }
.pick button.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.field { width: 100%; height: 50px; border-radius: 11px; border: 1px solid var(--line); padding: 0 14px; font: 16px/1 inherit; font-family: inherit; margin-bottom: 10px; background: #fff; color: var(--fg); }
.field:focus { outline: 2px solid rgba(29, 79, 145, 0.35); border-color: var(--sea); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 12px; line-height: 1.4; }
.consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--sea); }
.err { color: var(--coral); font-size: 14px; min-height: 0; margin-bottom: 8px; }
.err:empty { display: none; }
.sheet .btn { width: 100%; }
.sheet .small-legal { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.done { text-align: center; padding: 20px 0; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(31, 138, 91, 0.12); color: var(--ok); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.flat-plan { background: #fff; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; max-height: 260px; object-fit: contain; width: 100%; }
.flat-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 14px; font-size: 14.5px; }
.flat-rows span { color: var(--muted); display: block; font-size: 12.5px; }
@media (max-width: 560px) { .modal { align-items: flex-end; padding: 0; } .sheet { border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); } }

/* ---------- подвал ---------- */
footer { background: #0c2238; color: rgba(244, 239, 230, 0.78); padding: 48px 0 34px; font-size: 14px; margin-top: 0; }
footer a { color: rgba(244, 239, 230, 0.92); }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: #e8c477; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 7px; }
footer .req { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; line-height: 1.6; color: rgba(244, 239, 230, 0.6); }
footer .req p { margin: 0 0 8px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }

.mbar { display: none; }
@media (max-width: 720px) {
  section { padding: 40px 0; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 244, 239, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 10px; font-size: 15px; }
  body.has-mbar { padding-bottom: 72px; }
}
.notfound { text-align: center; padding: 90px 0; }
.two > *, .grid > *, .panel > *, .cities > *, .facts > * { min-width: 0; overflow-wrap: anywhere; }
.actions[hidden], .houses[hidden] { display: none; }
@media (max-width: 620px) {
  .tbl.terms tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.terms tr:last-child { border-bottom: 0; }
  .tbl.terms th, .tbl.terms td { display: block; width: auto; padding: 0; border: 0; }
  .tbl.terms th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
  .hero .waves { height: 44px; }
  .hero { padding-bottom: 96px; }
  .hero .stats b { font-size: 24px; }
  .hero .stats div { min-width: 140px; }
}

/* Новость на главной (09.11.2026) */
.news-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 14px; line-height: 1.35; max-width: 100%; }
.news-pill b { background: #d9a63e; color: #0c2238; border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; }
.news-pill:hover { background: rgba(255, 255, 255, 0.22); color: #fff; text-decoration: none; }

/* Telegram-канал «квартиры дня» (09.11.2026) */
.tgb-sec{padding:8px 0 40px}
.tgb{display:flex;align-items:center;gap:16px;padding:20px 22px;border-radius:16px;background:linear-gradient(135deg,#1866a6,#2380c6);color:#fff;box-shadow:0 10px 30px -14px rgba(0,0,0,.35)}
.tgb .tgi{flex:none;opacity:.95}
.tgb-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tgb-t b{font-size:19px;line-height:1.2}
.tgb-t span{font-size:15px;line-height:1.45;opacity:.88}
.tgb .btn.tgb-btn{flex:none;background:#fff;color:#1866a6;box-shadow:none}
.tgb .btn.tgb-btn:hover{filter:brightness(1.06);color:#1866a6;text-decoration:none}
@media(max-width:640px){.tgb{flex-wrap:wrap;padding:18px}.tgb-t{flex-basis:calc(100% - 50px)}.tgb .btn.tgb-btn{width:100%}}
.tgl{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 26px;padding:12px 16px;border-radius:14px;background:rgba(255,255,255,.07);color:inherit;text-decoration:none}
.tgl:hover{background:rgba(255,255,255,.12);text-decoration:none}
.tgl .tgi{flex:none;color:#e8c477}
.tgl span{flex:1;min-width:0}
.tgl b{color:#e8c477;white-space:nowrap}

/* статьи из Markdown (12.11.2026) */
.art .hero.sub .lead { max-width: 820px; }
.art-meta { margin-top: 14px; font-size: 13.5px; opacity: .8; }
.art .prose { font-size: 17px; line-height: 1.65; }
.art .prose .scroll { margin: 14px 0 8px; }
.art .prose .tbl td a { font-weight: 600; }
.art .prose .faq details > p { margin: 10px 0 0; }
.art-src { margin-top: 34px; font-size: 14.5px; }
.art-src li, .art-src p { color: var(--muted) !important; word-break: break-word; }
.art .tags { margin-top: 16px; }
.art .prose .tbl td { white-space: normal; min-width: 96px; }
.art .prose .tbl td.num, .art .prose .tbl thead th { white-space: nowrap; min-width: 0; }

/* ---------- квиз, «ставка или скидка», навигация по ипотеке ---------- */
.hero h1 em { font-style: italic; color: #d9a63e; }
.qcta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, #0c2238 0%, #174066 100%); color: #f4f2ec; box-shadow: var(--shadow); }
.qcta h2 { color: #fff; margin-bottom: 8px; }
.qcta p { color: rgba(244, 242, 236, 0.82); max-width: 640px; margin: 0; }
.qcta .eyebrow { color: #e8c477; margin-bottom: 8px; }
.seg-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.seg-nav a { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--fg); font-size: 14px; font-weight: 500; }
.seg-nav a:hover { text-decoration: none; border-color: var(--sea); }
.seg-nav a.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.tbl.progs th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cmp .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.cmp .cols2 h4 { margin: 0 0 12px; font-size: 15px; color: var(--sea); }
@media (max-width: 760px) { .cmp .cols2 { grid-template-columns: 1fr; gap: 6px; } }
.cmp .cmp-out { grid-template-columns: repeat(3, 1fr); }
.cmp .cmp-out .big { grid-column: span 3; }
.cmp .cmp-out div b { font-size: 22px; }
.cmp .cmp-out .big b { font-size: 28px; }
@media (max-width: 560px) { .cmp .cmp-out { grid-template-columns: 1fr 1fr; } .cmp .cmp-out .big { grid-column: span 2; } }
.verdict { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg2); font-weight: 600; font-size: 15px; }
.verdict.bad { background: rgba(201, 88, 58, 0.10); color: #9c3f25; }
.verdict.good { background: rgba(31, 138, 91, 0.10); color: #17694a; }
.sheet.quiz { max-width: 560px; padding-bottom: 30px; }
.qstep .why { margin-bottom: 14px; }
.qstep .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qstep .pick button { min-height: 52px; text-align: left; padding: 10px 14px; line-height: 1.25; }
@media (max-width: 420px) { .qstep .pick { grid-template-columns: 1fr; } }
.qbar { height: 4px; border-radius: 4px; background: var(--bg2); margin-top: 22px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--sea); transition: width 0.25s; }
.qbig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.qbig div { background: var(--bg2); border-radius: 14px; padding: 14px; }
.qbig b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--sea); font-variant-numeric: tabular-nums; }
.qbig span { font-size: 12.5px; color: var(--muted); }
.qopts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.qopts li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.qopts li > b { flex: none; min-width: 58px; font-family: var(--serif); font-size: 22px; color: var(--sea); }
.qopts li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.qres .btn { width: 100%; margin-top: 6px; }
.qback { display: inline-block; margin-top: 14px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.qback:hover { color: var(--sea); }

.hero{background:linear-gradient(90deg,rgba(12, 34, 56,.95) 0%,rgba(12, 34, 56,.84) 36%,rgba(12, 34, 56,.36) 66%,rgba(12, 34, 56,.06) 100%),url(/assets/hero.webp) 72% 40%/cover no-repeat,#0c2238}
.hero.sub{background:linear-gradient(90deg,rgba(12, 34, 56,.96) 0%,rgba(12, 34, 56,.84) 55%,rgba(12, 34, 56,.55) 100%),url(/assets/hero.webp) 72% 34%/cover no-repeat,#0c2238}
.hero:not(.sub)::after{content:"Иллюстрация: Уфа, Салават Юлаев и «Ляля-Тюльпан»";position:absolute;right:16px;bottom:96px;font-size:11px;color:rgba(255,255,255,.55);letter-spacing:.02em;pointer-events:none}
footer{position:relative}
@media(max-width:760px){
.hero{background:linear-gradient(180deg,rgba(12, 34, 56,.15) 0%,rgba(12, 34, 56,.55) 26%,rgba(12, 34, 56,.9) 52%,#0c2238 82%),url(/assets/hero-m.webp) 60% 0/cover no-repeat,#0c2238}
.hero.sub{background:linear-gradient(180deg,rgba(12, 34, 56,.55) 0%,rgba(12, 34, 56,.88) 60%,#0c2238 100%),url(/assets/hero-m.webp) 60% 0/cover no-repeat,#0c2238}
.hero:not(.sub)::after{bottom:78px;right:12px}
footer::before{top:-34px;height:36px;background-size:100% 36px}
}

.nav::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;background:linear-gradient(90deg,#0066b3 0 33.34%,#fff 33.34% 66.67%,#00a650 66.67%);pointer-events:none}
.eyebrow::before{content:"";display:inline-block;width:15px;height:15px;margin:0 8px 0 0;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='%23d9a63e'%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(51)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(102)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(153)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(204)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(255)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(306)'/%3E%3Cellipse cx='0' cy='-6.2' rx='2.3' ry='4.6' transform='rotate(357)'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%231866a6'/%3E%3C/svg%3E") center/contain no-repeat}
main section h2::after{content:"";display:block;width:140px;height:12px;margin:12px 0 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M14 11V6c0-3-2-5-4.5-5S5 3 5 5.2 6.8 8 8.6 7.4 10 5.6 8.8 4.8' fill='none' stroke='%23d9a63e' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M14 6c0-3 2-5 4.5-5S23 3 23 5.2 21.2 8 19.4 7.4 18 5.6 19.2 4.8' fill='none' stroke='%23d9a63e' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") left center/28px 12px repeat-x}
main section .center h2::after,main section h2.center::after{margin-left:auto;margin-right:auto}
.card .pic{background:#102d4a url(/assets/card.webp) center/260px repeat}
.card .pic .ph{color:#f6e2b8;text-shadow:0 1px 3px rgba(6,18,30,.7)}
footer::before{content:"";position:absolute;left:0;right:0;top:-54px;height:56px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cg fill='%230c2238'%3E%3Cpath d='M0 56V46h420l40-14 30-6 18 2v-6l6-6 4-6 6 2 4 4v-4l5-3 3 6v6l14 8 30 10h220v-28l3-6 3 6V40h10v-30l3-8 3 8V40h4V46H1440V56Z'/%3E%3C/g%3E%3C/svg%3E") bottom/100% 56px no-repeat}

@font-face{font-family:"Philosopher";font-weight:700;font-display:swap;src:url(/assets/philosopher-cyr.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Philosopher";font-weight:700;font-display:swap;src:url(/assets/philosopher-lat.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-weight:400 600;font-display:swap;src:url(/assets/onest-cyr.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-weight:400 600;font-display:swap;src:url(/assets/onest-lat.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--bg:#eef2ef;--bg2:#e2eae4;--card:#f8faf8;--fg:#10233a;--muted:#4b5d58;--line:rgba(16,35,58,.16);--sea:#0b5a99;--sea2:#094a7e;--brass:#7a5410;
  --ok:#1c6b49;--coral:#9a3412;--radius:6px;--shadow:none;--serif:"Philosopher",Georgia,serif;--gold:#c8952e;--night:#0f2a44}
body{font-family:"Onest",-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16.5px;line-height:1.6}
::selection{background:rgba(200,149,46,.35);color:var(--fg)}
html{scrollbar-color:#9fb1a7 var(--bg)}
h1,h2,h3{font-weight:700;letter-spacing:0}
h1{font-size:clamp(34px,5vw,58px);line-height:1.05}
h2{font-size:clamp(26px,3.2vw,40px);line-height:1.1}
h3{font-size:20px}
.hero h1 em{font-style:normal;color:#e8c477}
.eyebrow{text-transform:none;letter-spacing:0;font-size:14px;font-weight:500;color:var(--brass)}
.hero .eyebrow{color:#e8c477}
main section h2::after{display:none}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,.card:focus-visible,.cell:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}
/* шапка: тёмное поле, флаг читается целиком */
.nav{background:#0c2238;border-bottom:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.nav nav a{color:#dbe6ef}.nav nav a.on{color:#fff;box-shadow:inset 0 -2px 0 var(--gold)}
.logo{color:#fff}.logo small{font:600 11.5px/1 "Onest",sans-serif;letter-spacing:.04em;text-transform:none;color:#e8c477}
.nav .btn{background:var(--gold);color:#10233a}.nav .btn:hover{background:#d9a63e}
/* кнопки и чипы: плоские, без «пилюль» */
.btn{border-radius:6px;font-weight:600}.btn.small{border-radius:6px}
.btn.ghost{box-shadow:inset 0 0 0 1.5px var(--sea)}.btn.ghost:hover{background:rgba(11,90,153,.08)}
.chip{border-radius:4px;background:transparent;border:1px solid currentColor;font-weight:500}
.chip.sea{color:var(--sea);background:transparent}.chip.ok{color:var(--ok);background:transparent}.chip.hot{color:var(--coral);background:transparent}
/* первый экран: без морской волны — орнаментальная лента по краю */
.hero .waves{display:none}
.hero{padding-bottom:96px}
.hero::before{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:#0c2238 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M16 14V8c0-3.4-2.3-5.6-5-5.6S6 4.6 6 7s2 3.2 3.9 2.6S11.3 7.4 10 6.5M16 8c0-3.4 2.3-5.6 5-5.6S26 4.6 26 7s-2 3.2-3.9 2.6S20.7 7.4 22 6.5' fill='none' stroke='%23c8952e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left center/32px 16px repeat-x;z-index:1}
/* фильтры */
.panel{background:var(--card);border-radius:0;box-shadow:0 10px 30px rgba(12,34,56,.14);border:0;border-top:3px solid var(--gold)}
.panel label{text-transform:none;letter-spacing:0;font-size:13px;color:var(--muted)}
.panel select{border-radius:4px}
/* каталог: плоский листинг, без белых плиток с тенью */
.grid{gap:34px 26px}
.card{background:transparent;border:0;border-radius:0;overflow:visible}
.card:hover{box-shadow:none;transform:none}
.card .pic{border-radius:6px;background:#102d4a url(/assets/card.webp) center/240px repeat}
.card .pic img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.card:hover .pic img{transform:scale(1.035)}
.card .city{border-radius:4px;backdrop-filter:none;background:rgba(12,34,56,.88)}
.card .body{padding:14px 0 0;border-top:0}
.card h3{font-size:22px}
.card .price{font-family:var(--serif)}
/* поверхности: орнамент как материал */
.qcta,.get{background:linear-gradient(rgba(15,42,68,.8),rgba(15,42,68,.8)),url(/assets/card.webp) 0 0/220px repeat;border-radius:0;box-shadow:none;border-top:4px solid var(--gold)}
.get .ch button{background:rgba(255,255,255,.06);border:1px solid rgba(232,196,119,.55);border-radius:6px}
.get .ch button:hover{background:rgba(200,149,46,.18)}
.get .meta-note{color:#b9c8d6}
section.alt{position:relative}
section.alt::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M16 14V8c0-3.4-2.3-5.6-5-5.6S6 4.6 6 7s2 3.2 3.9 2.6S11.3 7.4 10 6.5M16 8c0-3.4 2.3-5.6 5-5.6S26 4.6 26 7s-2 3.2-3.9 2.6S20.7 7.4 22 6.5' fill='none' stroke='%237a5410' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") left center/32px 16px repeat-x}
.calc,.facts,.room,.faq details,.tags a,.cities a,.scroll,.chess,.prose .tbl{border-radius:6px;box-shadow:none}
.calc,.room,.faq details,.cities a{background:var(--card);border:1px solid var(--line)}
.tags a{border-radius:4px;background:transparent;border:1px solid var(--line)}
.tags a:hover{border-color:var(--sea);text-decoration:none}
.promo{border-left:1px solid var(--line);background:rgba(200,149,46,.08)}
.rooms{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.grid-cta{grid-column:1/-1}
.grid-cta .qcta{margin:4px 0}
.facts b,.calc .out b,.qbig b,.hero .stats b,.cmp .cmp-out b{font-family:var(--serif);font-weight:700}
/* шахматка: «продана» штриховкой, легенда читается */
.cell.dim{background:repeating-linear-gradient(45deg,#dde4df 0 4px,#eef2ef 4px 8px);color:#4b5d58}
.legend > :nth-child(3) i{background:repeating-linear-gradient(45deg,#c9d3cc 0 3px,#eef2ef 3px 6px)!important;border:1px solid #9fb1a7}
.legend i{width:18px!important;height:18px!important;border-radius:3px!important}
/* подвал: крупнее тап-зоны */
footer li a{display:inline-block;padding:6px 0}
@media(max-width:620px){
  .grid{gap:18px}
  .card{flex-direction:row;gap:14px;align-items:flex-start}
  .card .pic{flex:0 0 38%;aspect-ratio:1/1}
  .card .body{padding:0;min-width:0}
  .card h3{font-size:18px}
  .card .row .chip:nth-child(n+3){display:none}
  .card .city{left:6px;top:6px;font-size:11.5px;padding:3px 6px}
  .card .price{font-size:21px;margin-bottom:8px}
  .card .price small{display:block;font-family:"Onest",sans-serif;font-size:12.5px;margin-top:2px}
  .card .foot{flex-direction:column;align-items:flex-start;gap:4px}
  .card .foot b{white-space:nowrap}
}
