/* SPB-CASH — базовые стили */
:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #13211d;
  --ink-2: #2b3a35;
  --muted: #61716b;
  --line: #e0e7e0;
  --line-strong: #cbd8cc;
  --brand: #0e7a5c;
  --brand-hover: #0a634a;
  --brand-soft: #e6f3ed;
  --brand-dark: #0a3d31;
  --brand-deep: #072e25;
  --accent: #ffcf5c;
  --accent-soft: #fff6db;
  --danger: #b4452f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(14, 45, 35, 0.08);
  --shadow-soft: 0 4px 16px rgba(14, 45, 35, 0.06);
  --container: 1200px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(14, 45, 35, 0.06); }
.header-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 14px rgba(14, 122, 92, 0.28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-weight: 800; letter-spacing: .04em; font-size: 17px; }
.logo-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav-cities { position: relative; }
.nav-cities summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
}
.nav-cities summary::-webkit-details-marker { display: none; }
.nav-cities summary::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--muted); transition: transform .15s;
}
.nav-cities[open] summary::after { transform: rotate(180deg); }
.nav-cities summary:hover, .nav-cities[open] summary { background: var(--surface-2); color: var(--ink); }
.nav-cities-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 215px; padding: 7px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.nav-cities-menu a {
  padding: 10px 12px; border-radius: 9px; color: var(--ink);
  font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px;
}
.nav-cities-menu a span { color: var(--muted); font-size: 11px; font-weight: 500; }
.nav-cities-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; gap: 5px; flex-direction: column;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 18px rgba(14, 122, 92, 0.22);
}
.btn--primary:hover { background: var(--brand-hover); color: #fff; box-shadow: 0 10px 22px rgba(14, 122, 92, 0.3); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--accent-soft); color: var(--brand-dark); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 750; letter-spacing: .02em;
  padding: 4px 8px; border-radius: 7px; white-space: nowrap;
}
.badge--broker { background: var(--brand-dark); color: #fff; }
.badge--mfo { background: #eef1ee; color: var(--ink-2); }
.badge--free { background: var(--brand-soft); color: #086249; }
.badge--paid { background: var(--accent-soft); color: #8a5a00; }
.badge--zero { background: var(--accent); color: #4a3400; }
.badge--online { background: #e8f1fb; color: #1c5794; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--active:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 54px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 68% at 88% 6%, rgba(22, 163, 122, 0.14) 0%, rgba(22, 163, 122, 0) 62%),
    radial-gradient(40% 60% at 3% 22%, rgba(255, 207, 92, 0.16) 0%, rgba(255, 207, 92, 0) 60%),
    linear-gradient(180deg, #f4f8f3 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 46px; align-items: start;
}
.hero-copy { padding-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow--dark { color: #d8f5e9; background: rgba(255,255,255,.1); }
.hero h1 { margin-bottom: 18px; text-wrap: normal; font-size: clamp(1.95rem, 3.2vw, 2.7rem); }
.hero h1 .accent { color: var(--brand); }
.hero-lead { font-size: 17.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 24px; }
.hero-points { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.hero-points .tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 12.5px; }
.hero-meta strong { color: var(--ink); }

/* ---------- calculator ---------- */
.calc {
  position: relative; color: #fff; border-radius: 24px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(26, 184, 138, 0.4) 0%, rgba(26, 184, 138, 0) 60%),
    linear-gradient(160deg, #0c4c3c 0%, #072e25 100%);
  box-shadow: 0 30px 60px rgba(7, 46, 37, 0.28);
  padding: 26px;
  overflow: hidden;
}
.calc::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); right: -80px; bottom: -90px; pointer-events: none;
}
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.calc-title { font-size: 20px; font-weight: 750; margin: 0 0 4px; color: #fff; letter-spacing: -.01em; }
.calc-sub { font-size: 12.5px; color: rgba(255,255,255,.68); margin: 0; }
.calc-pill { font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #103a2f; background: var(--accent); padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.calc-field { margin-bottom: 19px; }
.calc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.calc-label { font-size: 12.5px; color: rgba(255,255,255,.72); font-weight: 600; }
.calc-value { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.calc-value small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.62); margin-left: 2px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.18); outline: none; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 4px solid #0b3f33; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  border: 4px solid #0b3f33; cursor: grab;
}
.range-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.45); margin-top: 5px; }
.calc-checks { display: grid; gap: 9px; margin: 4px 0 18px; }
.check {
  display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,.82);
  cursor: pointer; line-height: 1.45;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.35);
  margin-top: 1px; display: grid; place-items: center; transition: .15s;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { content: "✓"; font-size: 12px; font-weight: 900; color: #123c30; }
.check input:focus-visible + .check-box { outline: 2px solid #fff; outline-offset: 2px; }
.calc-zero {
  display: none; align-items: flex-start; gap: 10px;
  background: rgba(255, 207, 92, 0.12); border: 1px solid rgba(255, 207, 92, 0.4);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 14px;
  font-size: 12.5px; color: #ffe9ae; line-height: 1.45;
}
.calc-zero.is-visible { display: flex; }
.calc-zero strong { color: #fff; }
.calc-zero-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #123c30; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.calc-results {
  background: rgba(255,255,255,.97); color: var(--ink); border-radius: 16px; padding: 12px;
  margin-bottom: 14px; box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.calc-results-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); margin: 0 2px 8px; }
.calc-results-head strong { color: var(--ink); font-size: 13px; }
.calc-mini-list { display: grid; gap: 2px; }
.calc-mini {
  display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center;
  padding: 7px 4px; border-radius: 9px;
}
.calc-mini + .calc-mini { border-top: 1px solid var(--line); }
.calc-mini:hover { background: var(--surface-2); }
.calc-mini img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; }
.calc-mini > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.calc-mini-name { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-mini-spec { display: block; font-size: 10.8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-mini-rate { font-size: 12px; font-weight: 800; color: var(--brand); text-align: right; white-space: nowrap; }
.calc-mini-rate small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 600; }
.calc-empty { font-size: 12.5px; color: var(--muted); padding: 10px 4px; line-height: 1.45; }
.calc-results-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.calc-actions { display: grid; gap: 8px; }
.calc-note { font-size: 10.5px; color: rgba(255,255,255,.5); line-height: 1.5; margin: 12px 0 0; }

/* ---------- stats strip ---------- */
.stats { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.02em; line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
section[id], div[id="offers"] { scroll-margin-top: 88px; }
.section--tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head .kicker { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 800; margin-bottom: 7px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 650px; }
.section--dark { background: var(--brand-deep); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.74); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--calc {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(22, 163, 122, 0.1) 0%, rgba(22, 163, 122, 0) 60%),
    linear-gradient(180deg, #eef5ef 0%, #f4f7f3 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calc-band { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 42px; align-items: start; }
.calc-band-copy { max-width: 560px; padding-top: 18px; }
.calc-band-copy h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); margin-bottom: 12px; }
.calc-band-copy p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.calc-band-copy .hero-points { margin-bottom: 0; }
.calc-band .calc { width: 100%; }

/* ---------- offer controls ---------- */
.offer-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 22px; box-shadow: var(--shadow-soft);
}
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.tab {
  border: 0; background: transparent; color: var(--ink-2); font-weight: 650; font-size: 13px;
  padding: 7px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(14,45,35,.1); }
.sort-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-wrap label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.select {
  appearance: none; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface);
  color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 8px 32px 8px 11px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2361716b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.offers-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offers-meta strong { color: var(--ink); }
.filter-reset { display: none; }
.filter-reset.is-visible { display: inline-flex; }

/* ---------- offers ---------- */
.offer-group { margin-bottom: 30px; }
.offer-group[hidden] { display: none; }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.group-head h3 { margin: 0; font-size: 15.5px; letter-spacing: .01em; }
.group-head .group-note { font-size: 12px; color: var(--muted); }
.offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.offer.is-hidden { display: none; }
.offer__media {
  position: relative; height: 112px; padding: 20px 18px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f1f5f1 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.offer__logo { height: 58px; width: auto; max-width: 66%; object-fit: contain; object-position: left center; margin-top: 8px; }
.offer__badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 52%; }
.offer--broker .offer__media { background: linear-gradient(180deg, #f2f8f4 0%, #e8f2eb 100%); }
.offer__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.offer__title { font-size: 18.5px; margin: 0 0 3px; line-height: 1.25; }
.offer__title a { color: var(--ink); }
.offer__title a:hover { color: var(--brand); }
.offer__tagline { font-size: 12.5px; color: var(--muted); margin: 0 0 13px; min-height: 34px; }
.offer__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 0 0 15px; padding: 11px 0 0; border-top: 1px dashed var(--line-strong); }
.offer__specs div:first-child { grid-column: 1 / -1; }
.offer__specs div { min-width: 0; }
.offer__specs dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.offer__specs dd { margin: 0; font-size: 12px; font-weight: 750; color: var(--ink); line-height: 1.35; }
.offer__actions { display: flex; gap: 7px; margin-top: auto; }
.offer__actions .btn { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 12.5px; }
.offer__actions .btn--ghost { flex: 0 0 auto; }
.offer-note { font-size: 10.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }

/* ---------- city / type cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.city-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.city-card h3 { margin: 0; font-size: 20px; color: var(--ink); }
.city-card .badge { align-self: flex-start; }
.city-card p { margin: 0; color: var(--muted); font-size: 13px; }
.city-card .city-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.city-card .link-arrow { margin-top: 8px; }
.type-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  transition: .18s; height: 100%;
}
.type-card:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.type-card strong { color: var(--ink); font-size: 15px; }
.type-card span { font-size: 12px; color: var(--muted); }
.type-card .type-count { margin-top: auto; font-size: 11.5px; font-weight: 700; color: var(--brand); }

/* ---------- steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feature-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; margin-bottom: 12px; }
.feature h3 { font-size: 15.5px; margin-bottom: 5px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- page hero (inner) ---------- */
.page-hero { padding: 34px 0 30px; background: linear-gradient(180deg, #eef5ef 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { opacity: .5; }
.page-hero h1 { max-width: 900px; margin-bottom: 14px; }
.page-hero .lead { max-width: 760px; font-size: 16.5px; color: var(--ink-2); margin-bottom: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.meta-chip strong { color: var(--ink); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.city-switch {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(14, 45, 35, 0.1);
}
.city-switch-label {
  font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.city-switch .link-chips { margin: 0; }
.city-main-note {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 20px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.city-main-note strong { display: block; font-size: 16px; margin-bottom: 2px; }
.city-main-note p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 620px) {
  .city-main-note { flex-direction: column; align-items: flex-start; }
  .city-main-note .btn { width: 100%; }
}

/* ---------- content blocks ---------- */
.layout-content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.prose { font-size: 15.5px; color: var(--ink-2); }
.prose h2 { font-size: 1.65rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 17px; color: var(--ink-2); }
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--surface); padding: 16px 18px; border-radius: 12px; margin: 20px 0;
  font-size: 14px; color: var(--ink-2);
}
.callout--warn { border-left-color: var(--accent); background: #fffaf0; }
.callout strong { color: var(--ink); }
.aside-card {
  position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft);
}
.aside-card h3 { font-size: 15px; margin-bottom: 12px; }
.aside-card .spec, .offer-hero-side .spec { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.aside-card .spec:last-of-type, .offer-hero-side .spec:last-of-type { border-bottom: 0; }
.aside-card .spec span, .offer-hero-side .spec span { color: var(--muted); font-size: 11px; }
.aside-card .spec strong, .offer-hero-side .spec strong { color: var(--ink); text-align: left; font-size: 13px; line-height: 1.4; }
.aside-card .btn { margin-top: 12px; }
.aside-note { font-size: 10.5px; color: var(--muted); line-height: 1.45; margin: 10px 0 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 46%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 650; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(even) { background: rgba(238, 243, 238, .45); }
.prose .steps { margin: 18px 0 22px; }

/* ---------- offer detail hero ---------- */
.offer-hero { padding: 34px 0 32px; background: linear-gradient(180deg, #eef5ef 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.offer-hero-grid { display: grid; grid-template-columns: 280px minmax(0,1fr) 300px; gap: 30px; align-items: start; }
.offer-hero-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; place-items: center; min-height: 200px; }
.offer-hero-media img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.offer-hero-main h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.offer-hero-main .lead { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.offer-hero-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.offer-hero-side .spec:first-of-type { padding-top: 0; }
.detail-specs { display: grid; grid-template-columns: 1.15fr .95fr .9fr; gap: 8px; margin: 0 0 16px; padding: 12px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.detail-specs dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.detail-specs dd { margin: 0; font-size: 14px; font-weight: 750; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq-list { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 0 18px; transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative;
  font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 17px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer { padding: 0 0 17px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.faq .faq-answer p { margin: 0 0 .7em; }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- related links ---------- */
.link-block { margin-top: 34px; }
.link-block h3 { font-size: 15px; margin-bottom: 12px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.72); padding: 50px 0 30px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 34px; margin-bottom: 34px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-sub { color: rgba(255,255,255,.5); }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: 12.5px; line-height: 1.6; max-width: 320px; margin: 12px 0 0; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: grid; gap: 12px; }
.footer-disclaimer { font-size: 10.5px; line-height: 1.6; color: rgba(255,255,255,.45); margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: rgba(255,255,255,.5); }
.footer-legal a { font-size: 11px; }

/* ---------- mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 400px; gap: 30px; }
  .offers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .offer-hero-grid { grid-template-columns: 220px minmax(0,1fr); }
  .offer-hero-side { grid-column: 1 / -1; position: static; }
  .layout-content { grid-template-columns: minmax(0,1fr) 290px; gap: 26px; }
  .calc-band { grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(14,45,35,.1); transform: translateY(-120%); opacity: 0;
    pointer-events: none; transition: .22s ease; margin: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 10px; font-size: 15px; }
  .main-nav .nav-cities { width: 100%; }
  .main-nav .nav-cities summary { padding: 12px 10px; font-size: 15px; }
  .main-nav .nav-cities-menu {
    position: static; min-width: 0; padding: 0 0 4px 14px;
    border: 0; box-shadow: none; background: transparent;
  }
  .main-nav .nav-cities-menu a { font-size: 14.5px; padding: 10px 12px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding-top: 0; }
  .hero-lead { font-size: 16px; }
  .calc { max-width: 560px; }
  .calc-band { grid-template-columns: 1fr; gap: 22px; }
  .calc-band-copy { max-width: none; }
  .calc-band .calc { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-content { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .offer-hero-grid { grid-template-columns: 1fr; }
  .offer-hero-media { max-width: 340px; min-height: 150px; padding: 20px; }
  .offer-controls { align-items: stretch; }
  .sort-wrap { margin-left: 0; width: 100%; justify-content: space-between; }
  .sort-wrap .select { flex: 1; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 64px; }
  .main-nav { inset-block-start: 64px; max-height: calc(100vh - 64px); }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .logo-name { font-size: 15.5px; }
  .logo-sub { font-size: 9.5px; }
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .calc { padding: 18px; border-radius: 20px; }
  .calc-band .calc { max-width: none; }
  .calc-value { font-size: 18px; }
  .offers-grid { grid-template-columns: 1fr; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  .offer__media { height: 104px; }
  .offer__logo { height: 52px; }
  .page-hero { padding: 24px 0 22px; }
  section[id], div[id="offers"] { scroll-margin-top: 76px; }
  .page-hero .lead { font-size: 15px; }
  .section { padding: 34px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .faq summary { font-size: 14.5px; }
  .offer-controls { padding: 9px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 12px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 70px; }
  .aside-card { padding: 16px; }
  .offer-hero-side { padding: 16px; }
  .offer-hero-main h1 { font-size: 1.7rem; }
  .offer-hero-media { min-height: 120px; padding: 14px; max-width: 250px; }
  .offer-hero-media img { max-height: 80px; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
}
