/* kupi-krym.online — лидген «ипотека 8% против рыночной ставки». Свой стиль: графит + изумруд (8%) + коралл (рыночная). Без внешних шрифтов. */
:root {
  --ink: #0b0d10; --ink2: #15191f; --ink3: #1f252d; --paper: #f5f3ee; --card: #fff; --line: #e6e2d9; --muted: #6b6f76; --soft: #9aa0a8;
  --em: #19c37d; --em-d: #0e8f5b; --em-bg: #e6f8ef; --cor: #ff6b57; --cor-bg: #fff0ed; --sun: #ff8a3d;
  --r: 22px; --sh: 0 1px 2px rgba(11,13,16,.06), 0 12px 40px -12px rgba(11,13,16,.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 16px;
  background: var(--em); color: #04130b; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .16s cubic-bezier(.23,1,.32,1), background .2s; }
.btn:hover { background: #22d58b; }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; white-space: nowrap; }
.show-m { display: none; }
.btn { text-align: center; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11,13,16,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--soft); letter-spacing: 0; }
.brand span { line-height: 1.15; }
.top .tel { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }

/* первый экран */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(25,195,125,.20), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(255,138,61,.16), transparent 60%), var(--ink); color: #fff; padding: 48px 0 64px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); grid-template-areas: "pitch calc" "facts calc"; column-gap: 56px; row-gap: 28px; align-items: end; }
.pitch { grid-area: pitch; } .facts { grid-area: facts; align-self: start; } .calc { grid-area: calc; align-self: center; }
.kicker { margin: 0 0 16px; color: var(--em); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 850; }
.hero h1 em { display: block; font-style: normal; color: var(--em); }
.sub { margin: 20px 0 0; font-size: 19px; color: #c9cdd3; max-width: 34em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; min-height: 92px; }
.facts b { display: block; font-size: 15px; line-height: 1.25; }
.facts span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.facts a, .src a, .fine a { color: var(--soft); text-decoration: none; font-size: .9em; }

/* калькулятор */
.calc { background: var(--card); color: var(--ink); border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.calc .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.calc .row:first-child { margin-top: 0; }
.calc .row.col { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.calc label { font-weight: 600; font-size: 15px; }
.num { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; }
.num input { width: 128px; border: 0; background: none; font: 700 18px var(--font); text-align: right; font-variant-numeric: tabular-nums; outline: none; color: var(--ink); }
#c-pv { width: 56px; }
.num span { color: var(--muted); font-weight: 600; }
input[type=range] { width: 100%; margin: 10px 0 4px; accent-color: var(--em); height: 28px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { white-space: nowrap; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 600 14px var(--font); color: var(--ink); cursor: pointer; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.pick button:active { transform: scale(.97); }
.pick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc .pick { flex-wrap: nowrap; }
.calc .pick button { flex: 1 1 0; padding: 0 8px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.vs > div { border-radius: 18px; padding: 14px 16px; min-height: 112px; display: flex; flex-direction: column; }
.vs span { font-size: 13px; font-weight: 600; }
.vs strong { margin-top: auto; font-size: 26px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vs small { font-size: 12px; color: var(--muted); }
.vs .old { background: var(--cor-bg); color: #9b2c1d; }
.vs .old strong { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255,107,87,.55); }
.vs .new { background: var(--em-bg); color: var(--em-d); }
.vs .new strong { color: #063d26; }
.save { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.save b { font-size: 24px; font-weight: 850; color: var(--em); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.save span { font-size: 14px; color: #c9cdd3; }
.save .per { margin-left: auto; }
.over { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.over b { color: var(--ink); }
.warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; color: #8a5a00; font-size: 13.5px; }
.calc .btn { margin-top: 16px; }
.fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--soft); }

/* квартиры */
section.flats, section.faq { padding: 72px 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 850; }
.sec-h p { margin: 0; color: var(--muted); max-width: 30em; }
.cityf { margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.cityf::-webkit-scrollbar { display: none; }
.cityf .pick { flex-wrap: nowrap; }
.cityf .pick button { white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; cursor: pointer; transition: transform .2s cubic-bezier(.23,1,.32,1); text-align: left; border: 0; padding: 0; font: inherit; color: inherit; }
@media (hover: hover) { .fc:hover { transform: translateY(-3px); } }
.fc .ph { aspect-ratio: 16/10; background: linear-gradient(135deg, #1f2a33, #0b0d10); position: relative; }
.fc.nophoto .ph { background: radial-gradient(120% 90% at 80% 10%, rgba(255,138,61,.35), transparent 55%), linear-gradient(160deg, #0f3b2e 0%, #0b0d10 75%); }
.fc.nophoto .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40c50-22 100-22 150 0s100 22 150 0 70-18 100-10v90H0z' fill='%2319c37d' fill-opacity='.35'/%3E%3Cpath d='M0 70c50-22 100-22 150 0s100 22 150 0 70-18 100-10v60H0z' fill='%2319c37d' fill-opacity='.55'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.fc .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc .ph .tag { position: absolute; left: 12px; top: 12px; background: rgba(11,13,16,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.fc .bd { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fc .nm { font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.fc .mt { color: var(--muted); font-size: 14px; }
.fc .pr { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.fc .pr b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc .pm { color: var(--em-d); background: var(--em-bg); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 24px; background: var(--card); border-radius: var(--r); color: var(--muted); }

/* заявка */
section.lead { background: var(--ink); color: #fff; padding: 72px 0; }
.lead-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.lead-pitch h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 850; }
.lead-pitch p { color: #c9cdd3; font-size: 18px; margin: 16px 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; background: var(--ink2); border: 1px solid var(--ink3); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.steps b { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--em); color: #04130b; }
.card { background: var(--card); color: var(--ink); border-radius: 28px; padding: 24px; display: grid; gap: 12px; }
.q span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.calcline { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--em-bg); color: var(--em-d); font-size: 14px; font-weight: 600; }
.calcline:empty { display: none; }
.field { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; font: 500 16px var(--font); background: var(--paper); color: var(--ink); outline: none; }
.field:focus { border-color: var(--em); background: #fff; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--em); }
.err { color: #c0362c; font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.done { text-align: center; padding: 24px 8px; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--em-bg); color: var(--em-d); font-size: 30px; }

/* FAQ */
.qa { display: grid; gap: 10px; }
details { background: var(--card); border-radius: 18px; padding: 0 20px; box-shadow: var(--sh); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: #3d4148; }
.src { display: block; margin-top: 6px; font-size: 13px; color: var(--soft); }
.src a { color: var(--em-d); }
.legal { margin-top: 28px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.legal p { margin: 0 0 8px; }

/* окно квартиры */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(11,13,16,.6); display: none; align-items: flex-end; justify-content: center; }
.modal.show { display: flex; }
.sheet { background: var(--card); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; position: relative; animation: up .28s cubic-bezier(.32,.72,0,1); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 16px; cursor: pointer; }
.sheet h3 { font-size: 22px; padding-right: 40px; }
.sheet .why { color: var(--muted); margin: 6px 0 14px; }
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.rows div { background: var(--paper); border-radius: 14px; padding: 10px 12px; }
.rows span { display: block; font-size: 12px; color: var(--muted); }
.rows b { font-variant-numeric: tabular-nums; }

/* документы и подвал */
main.doc { padding: 40px 0 72px; }
.prose { max-width: 760px; }
.prose h1 { font-size: 36px; margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { color: #3d4148; }
.muted { color: var(--muted); }
footer { background: var(--ink); color: #c9cdd3; padding: 40px 0 120px; font-size: 14px; border-top: 1px solid var(--ink3); }
.fcols { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.fcols b { color: #fff; }
footer a { color: #fff; }
.req { margin-top: 24px; font-size: 12px; color: var(--soft); }
.req p { margin: 0 0 6px; }
.mbar { display: none; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 60; max-width: 560px; background: var(--card); padding: 12px 14px; border-radius: 16px; box-shadow: var(--sh); font-size: 13px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "calc" "facts"; row-gap: 24px; }
  .lead-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-h { flex-direction: column; align-items: start; gap: 8px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .tel { display: none; }
  .brand small { display: none; }
  .hide-m { display: none; }
  .show-m { display: inline; }
  .top .btn.sm { margin-left: auto; }
  .hero { padding: 28px 0 40px; }
  .sub { font-size: 17px; margin: 14px 0 20px; }
  .facts li { min-height: 0; padding: 12px; }
  .calc, .card { padding: 18px; border-radius: 24px; }
  .num input { width: 112px; font-size: 17px; }
  .vs strong { font-size: 22px; }
  .save b { font-size: 21px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fc { flex-direction: row; border-radius: 18px; }
  .fc .ph { width: 112px; aspect-ratio: auto; flex: none; }
  .fc .ph .tag { display: none; }
  .fc.nophoto .ph { display: none; }
  .fc .bd { padding: 12px 14px; gap: 2px; min-width: 0; }
  .fc .nm { font-size: 15px; }
  .fc .mt { font-size: 13px; }
  .fc .pr { flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .fc .pr b { font-size: 17px; }
  .fc .pm { font-size: 13px; padding: 4px 8px; }
  section.flats, section.faq, section.lead { padding: 48px 0; }
  .fcols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,243,238,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .25s cubic-bezier(.23,1,.32,1); }
  .mbar .btn { width: 100%; }
  .mbar.hide { transform: translateY(110%); }
}
@media (min-width: 641px) { .sheet { border-radius: 24px; margin-bottom: auto; margin-top: auto; } .modal { align-items: center; } }
@media (prefers-reduced-motion: reduce) { *, .sheet { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Новость (09.11.2026): плашка на главной и таблица сравнения */
.news-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; font-size: 14px; line-height: 1.35; max-width: 100%; text-decoration: none; }
.news-pill b { background: var(--em); color: #04130b; border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.news-pill:hover { background: rgba(255, 255, 255, .14); }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 12px 0; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.ok { color: var(--em-d); font-weight: 700; }

/* Telegram-канал «квартиры дня» (09.11.2026) */
.tgb-sec{padding:8px 0 40px}
.tgb{display:flex;align-items:center;gap:16px;padding:20px 22px;border-radius:22px;background:#0b0d10;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:#19c37d;color:#0b0d10;box-shadow:none}
.tgb .btn.tgb-btn:hover{filter:brightness(1.06);color:#0b0d10;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:#19c37d}
.tgl span{flex:1;min-width:0}
.tgl b{color:#19c37d;white-space:nowrap}
