/* ==========================================================================
   МАРИНА — «НАШЕ АГЕНТСТВО» (СПб и ЛО)
   Luxury Saint Petersburg Real Estate Aesthetic
   Palette: Deep Emerald (#0E3B33) • Champagne Gold (#C69E52) • Warm Ivory (#F7F5F0)
   ========================================================================== */

:root {
  --emerald: #0e3b33;
  --emerald-deep: #092923;
  --emerald-soft: #164f45;
  --emerald-tint: #eaf2ef;

  --gold: #c69e52;
  --gold-light: #e2c27e;
  --gold-dark: #a67f35;
  --gold-tint: rgba(198, 158, 82, 0.14);
  --gold-border: rgba(198, 158, 82, 0.36);

  --ivory: #f7f5f0;
  --ivory-deep: #efeae0;
  --surface: #ffffff;

  --ink: #16221e;
  --ink-secondary: #4e5d58;
  --ink-muted: #76847f;
  --border: #e6dfd3;

  --warning-bg: #fdf6e7;
  --warning-border: #d9a94e;
  --warning-ink: #5c3f0d;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 10px 30px rgba(14, 59, 51, 0.06), 0 2px 6px rgba(14, 59, 51, 0.03);
  --shadow-hero: 0 20px 50px rgba(9, 41, 35, 0.24), 0 4px 14px rgba(9, 41, 35, 0.12);
  --shadow-gold: 0 10px 24px rgba(198, 158, 82, 0.32);

  --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(198, 158, 82, 0.14), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(14, 59, 51, 0.08), transparent 45%),
    linear-gradient(180deg, #f3efe6 0%, var(--ivory) 35%, #f2ede3 100%);
  pointer-events: none;
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

/* ==========================================================================
   APP SHELL
   ========================================================================== */

.app-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 600px) {
  .app-shell {
    padding: 28px 20px 48px;
    gap: 20px;
  }
}

/* ==========================================================================
   1. HERO BUSINESS CARD
   ========================================================================== */

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 22px 20px 22px;
  color: #f9f7f2;
  background:
    radial-gradient(circle at 92% 8%, rgba(226, 194, 126, 0.22), transparent 44%),
    radial-gradient(circle at 5% 95%, rgba(22, 79, 69, 0.8), transparent 55%),
    linear-gradient(155deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  border: 1px solid rgba(226, 194, 126, 0.26);
  box-shadow: var(--shadow-hero);
}

.hero-ornament {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(226, 194, 126, 0.16);
  pointer-events: none;
}

.hero-ornament::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(226, 194, 126, 0.1);
}

.hero-top-bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.agency-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.agency-emblem {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.agency-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.agency-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agency-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.agency-branch {
  font-size: 11.5px;
  color: rgba(247, 245, 240, 0.76);
  line-height: 1.3;
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #dcfce7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.hero-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.avatar-frame {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(226, 194, 126, 0.22), rgba(198, 158, 82, 0.06));
  border: 1.5px solid rgba(226, 194, 126, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.avatar-monogram {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-identity {
  min-width: 0;
}

.hero-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.hero-role {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.35;
}

.hero-subtitle {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.78);
  line-height: 1.4;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.15;
}

.metric-label {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.75);
}

.metric-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.14);
}

/* 1-Tap Contact Buttons */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.contact-btn .icon {
  width: 20px;
  height: 20px;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(226, 194, 126, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.contact-btn:active {
  transform: scale(0.97);
}

.contact-btn--tg .icon {
  color: #7cc9f7;
}

.contact-btn--wa .icon {
  color: #7ce6a6;
}

.contact-btn--max .icon {
  color: #c5b4ff;
}

.contact-btn--call .icon {
  color: var(--gold-light);
}

/* Buttons */
.btn-primary-gold,
.btn-primary-emerald,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.btn-primary-gold {
  color: #14221e;
  background: linear-gradient(135deg, #e7c986 0%, var(--gold) 58%, #b68c3f 100%);
  box-shadow: var(--shadow-gold);
}

.btn-primary-gold:hover,
.btn-primary-gold:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  outline: none;
}

.btn-primary-gold:active {
  transform: scale(0.985);
}

.btn-primary-emerald {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-soft) 0%, var(--emerald) 100%);
  box-shadow: 0 8px 20px rgba(14, 59, 51, 0.22);
}

.btn-primary-emerald:hover,
.btn-primary-emerald:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  color: var(--emerald);
  background: var(--ivory);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--ivory-deep);
  border-color: var(--gold-border);
  outline: none;
}

.hero-cta {
  margin-top: 14px;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   QUICK JUMP NAV
   ========================================================================== */

.quick-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav__item {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.quick-nav__item:hover {
  border-color: var(--gold);
  background: #ffffff;
}

.quick-nav__item--accent {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--gold-light);
}

.quick-nav__item--accent:hover {
  background: var(--emerald-soft);
  color: #ffffff;
}

/* ==========================================================================
   SECTION CARD BASE
   ========================================================================== */

.section-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 16px;
}

@media (min-width: 600px) {
  .section-card {
    padding: 26px 24px;
  }
}

.section-head {
  margin-bottom: 18px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--emerald);
  letter-spacing: -0.015em;
}

.section-desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   2. ANTI-BYPASS BENEFITS
   ========================================================================== */

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--ivory);
  border: 1px solid rgba(230, 223, 211, 0.9);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  background: linear-gradient(145deg, rgba(198, 158, 82, 0.24), rgba(198, 158, 82, 0.08));
  border: 1px solid var(--gold-border);
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-body h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.benefit-body p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.48;
}

.warning-callout {
  margin-top: 16px;
  padding: 15px 15px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left: 4px solid var(--gold-dark);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-callout__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 1px;
}

.warning-callout__text {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--warning-ink);
}

.warning-callout__text strong {
  color: #3d2804;
}

/* ==========================================================================
   3. ANONYMOUS SHOWCASE
   ========================================================================== */

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(14, 59, 51, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.showcase-card:active {
  transform: scale(0.99);
}

.showcase-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-tint);
  padding: 4px 9px;
  border-radius: 999px;
}

.showcase-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  background: var(--gold-tint);
  padding: 4px 9px;
  border-radius: 999px;
}

.showcase-card__title {
  margin: 2px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.32;
}

.showcase-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.showcase-card__footer {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.showcase-price {
  display: flex;
  flex-direction: column;
}

.showcase-price__main {
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald);
}

.showcase-price__sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.showcase-action {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

/* ==========================================================================
   4. REMOTE DEAL 5-STEP TIMELINE
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(198, 158, 82, 0.22) 100%);
}

.timeline-num {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  background: var(--emerald);
  border: 2px solid var(--gold-light);
  box-shadow: 0 4px 10px rgba(14, 59, 51, 0.18);
}

.timeline-content h3 {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.timeline-content p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.48;
}

.office-trust-strip {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--emerald-tint);
  border: 1px solid rgba(14, 59, 51, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--emerald);
}

.office-trust-strip .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-dark);
}

/* ==========================================================================
   5. INTERACTIVE MORTGAGE CALCULATOR
   ========================================================================== */

.calc-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (min-width: 480px) {
  .calc-presets {
    grid-template-columns: repeat(4, 1fr);
  }
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
}

.preset-btn__name {
  font-size: 12.5px;
  font-weight: 700;
}

.preset-btn__rate {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-dark);
}

.preset-btn:hover {
  border-color: var(--gold);
}

.preset-btn.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(14, 59, 51, 0.22);
}

.preset-btn.is-active .preset-btn__rate {
  color: var(--gold-light);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.slider-header label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.slider-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald);
  text-align: right;
}

.slider-subval {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 4px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--emerald) 0%,
    var(--emerald) var(--fill, 30%),
    #e2dbd0 var(--fill, 30%),
    #e2dbd0 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(14, 59, 51, 0.3);
  transition: transform 0.14s ease;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.14);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(14, 59, 51, 0.3);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
}

.calc-result {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(145deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  border: 1px solid rgba(226, 194, 126, 0.28);
}

.calc-result__primary {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-result__label {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.76);
}

.calc-result__payment {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.calc-result__note {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(247, 245, 240, 0.7);
}

.calc-result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calc-stat__label {
  display: block;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.7);
}

.calc-stat__val {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.calc-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.calc-direct-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-border);
}

.calc-direct-link:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   6. 5-STEP LEAD QUIZ
   ========================================================================== */

.section-card--quiz {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
}

.quiz-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--emerald);
}

.quiz-context-banner__clear {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
}

.quiz-context-banner__clear:hover {
  background: rgba(0, 0, 0, 0.06);
}

.quiz-progress {
  margin-bottom: 18px;
}

.quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 7px;
}

.quiz-progress__track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--ivory-deep);
  overflow: hidden;
}

.quiz-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--gold) 100%);
  transition: width 0.28s ease;
}

.quiz-step {
  display: none;
  animation: fadeSlide 0.22s ease;
}

.quiz-step.is-active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-card {
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.16s ease;
}

.option-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.option-card__sub {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.option-card:hover {
  border-color: var(--gold);
  background: #fdfcf9;
}

.option-card.is-selected {
  border-color: var(--emerald);
  background: var(--emerald-tint);
  box-shadow: 0 0 0 1px var(--emerald);
}

.option-card.is-selected .option-card__title {
  color: var(--emerald);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 11px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip-grid--compact .chip-btn {
  padding: 9px 13px;
  font-size: 13px;
}

.chip-btn:hover {
  border-color: var(--gold);
}

.chip-btn.is-selected {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.sub-question {
  margin-bottom: 16px;
}

.sub-question:last-child {
  margin-bottom: 0;
}

.sub-question__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 9px;
}

.input-inline-wrap {
  margin-top: 12px;
}

.input-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(14, 59, 51, 0.12);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mini-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-pill:hover,
.mini-pill.is-selected {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.quiz-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.privacy-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.quiz-nav {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.quiz-nav .btn-secondary {
  width: auto;
  min-width: 108px;
  flex-shrink: 0;
}

/* Quiz Success State */
.quiz-success {
  text-align: center;
  animation: fadeSlide 0.25s ease;
}

.success-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: var(--emerald);
  box-shadow: 0 10px 24px rgba(14, 59, 51, 0.22);
}

.success-badge svg {
  width: 28px;
  height: 28px;
}

.success-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--emerald);
}

.success-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.lead-preview {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--ivory);
  border: 1px solid var(--border);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.success-actions-row .btn-secondary {
  font-size: 13px;
  padding: 10px 10px;
  min-height: 44px;
}

.btn-text-reset {
  margin-top: 4px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text-reset:hover {
  color: var(--emerald);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 18px 14px 8px;
  text-align: center;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}

.footer-brand strong {
  font-size: 14px;
  color: var(--emerald);
  letter-spacing: 0.02em;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-phone {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin: 4px 0 0;
  max-width: 420px;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--emerald-deep);
  color: #ffffff;
  border: 1px solid rgba(226, 194, 126, 0.45);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  max-width: calc(100vw - 32px);
  text-align: center;
}


/* ==========================================================================
   BLACK & GOLD LUXURY OVERRIDE — МАРИНА КРОМСКАЯ • НАШЕ АГЕНТСТВО (PHOTO 1 & 2)
   ========================================================================== */

:root {
  --emerald: #10141d;
  --emerald-deep: #07090e;
  --emerald-soft: #1a2130;
  --emerald-tint: rgba(242, 190, 73, 0.12);

  --gold: #f2be49;
  --gold-light: #fff0b3;
  --gold-dark: #c0831c;
  --gold-tint: rgba(242, 190, 73, 0.14);
  --gold-border: rgba(242, 190, 73, 0.38);

  --ivory: #07090e;
  --ivory-deep: #0d111a;
  --surface: #111622;

  --ink: #f6f3ec;
  --ink-secondary: #cbc4b6;
  --ink-muted: #938c7f;
  --border: rgba(242, 190, 73, 0.22);

  --warning-bg: rgba(242, 190, 73, 0.11);
  --warning-border: #e5ad36;
  --warning-ink: #ffe7a8;

  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 190, 73, 0.14);
  --shadow-hero: 0 24px 60px rgba(0, 0, 0, 0.78), 0 0 36px rgba(242, 190, 73, 0.18);
  --shadow-gold: 0 10px 28px rgba(242, 190, 73, 0.36);
}

body {
  background-color: #06080d;
  color: var(--ink);
}

.page-backdrop {
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 194, 72, 0.20), transparent 36%),
    radial-gradient(circle at 86% 24%, rgba(216, 152, 34, 0.14), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(192, 131, 28, 0.12), transparent 48%),
    linear-gradient(180deg, #05070c 0%, #090c14 48%, #06080d 100%);
}

/* Hero Card with Night Saint Petersburg Drawbridge Skyline + Golden Glow */
.hero-card {
  background:
    radial-gradient(circle at 14% 38%, rgba(245, 198, 78, 0.28), transparent 44%),
    radial-gradient(circle at 90% 10%, rgba(255, 224, 130, 0.22), transparent 36%),
    linear-gradient(165deg, #0d111a 0%, #07090f 65%, #05060a 100%);
  border: 1.5px solid rgba(245, 198, 78, 0.45);
  box-shadow: var(--shadow-hero);
}

.hero-spb-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.56) 45%, rgba(7, 9, 15, 0.88) 100%),
    url("./assets/spb-night.jpg") center bottom / cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

.hero-card > *:not(.hero-spb-skyline):not(.hero-ornament) {
  position: relative;
  z-index: 1;
}

.agency-emblem--photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f4c453;
  box-shadow: 0 0 18px rgba(244, 196, 83, 0.45);
  background: #ffffff;
}

.agency-emblem--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agency-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff4bd 0%, #f4c453 55%, #c5841d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agency-slogan {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 240, 185, 0.82);
  margin-top: 2px;
}

.avatar-frame--gold-ring {
  width: 96px;
  height: 118px;
  border-radius: 18px;
  border: 2.5px solid #f4c453;
  box-shadow: 0 0 26px rgba(244, 196, 83, 0.48), inset 0 0 14px rgba(244, 196, 83, 0.25);
  background: #0b0e16;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-frame--gold-ring .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-name--gold {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c9 0%, #f7c959 52%, #c9861b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.hero-role {
  color: #f4efe3;
  font-weight: 600;
  font-size: 13px;
  margin: 6px 0 8px;
}

.hero-direct-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.18s ease;
}

.hero-direct-link:hover {
  color: #f7c959;
}

.hero-direct-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 6px rgba(247, 201, 89, 0.55));
}

.hero-ribbon {
  margin-top: 16px;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffe8a1;
  background: linear-gradient(90deg, rgba(244, 196, 83, 0.06) 0%, rgba(244, 196, 83, 0.24) 50%, rgba(244, 196, 83, 0.06) 100%);
  border-top: 1px solid rgba(244, 196, 83, 0.48);
  border-bottom: 1px solid rgba(244, 196, 83, 0.48);
  border-radius: 8px;
}

.hero-metrics {
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(244, 196, 83, 0.28);
}

.metric-value {
  color: #f7c959;
}

.contact-btn {
  background: rgba(16, 21, 33, 0.85);
  border: 1px solid rgba(244, 196, 83, 0.34);
  color: #fff6dc;
}

.contact-btn:hover {
  background: rgba(244, 196, 83, 0.18);
  border-color: #f7c959;
}

.btn-primary-gold {
  background: linear-gradient(135deg, #ffe999 0%, #f2bc46 50%, #c68419 100%);
  color: #130e04;
  font-weight: 800;
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-primary-gold:hover {
  filter: brightness(1.06);
}

.btn-primary-emerald {
  background: linear-gradient(135deg, #1b2436 0%, #101624 100%);
  color: #ffe8a3;
  border: 1px solid rgba(244, 196, 83, 0.5);
}

/* Fix quick-nav so all 5 pills fit cleanly without right-edge clipping */
.quick-nav {
  background: rgba(13, 17, 27, 0.92);
  border: 1px solid rgba(244, 196, 83, 0.28);
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
  gap: 6px;
  padding: 8px;
}

.quick-nav__item {
  background: rgba(255, 255, 255, 0.04);
  color: #dfd8c8;
  border: 1px solid rgba(244, 196, 83, 0.16);
  padding: 6px 10px;
  font-size: 12px;
}

.quick-nav__item--accent {
  background: linear-gradient(135deg, #f6c95b 0%, #c7861b 100%);
  color: #120d04;
  border-color: transparent;
  font-weight: 800;
}

/* Dark Gold Section Cards */
.section-card {
  background: linear-gradient(180deg, #121723 0%, #0d111b 100%);
  border: 1px solid rgba(244, 196, 83, 0.25);
  box-shadow: var(--shadow-card);
}

.section-eyebrow {
  color: #f4c453;
}

.section-title {
  color: #fff6e0;
}

.benefit-item,
.showcase-card,
.timeline-step,
.calc-box,
.quiz-option,
.quiz-field input,
.lead-preview,
.site-footer {
  background: #0b0f18;
  border-color: rgba(244, 196, 83, 0.22);
  color: var(--ink);
}

.benefit-icon {
  background: rgba(244, 196, 83, 0.14);
  color: #f4c453;
  border: 1px solid rgba(244, 196, 83, 0.34);
}

.warning-callout {
  background: linear-gradient(135deg, rgba(244, 196, 83, 0.16) 0%, rgba(198, 132, 25, 0.08) 100%);
  border: 1px solid rgba(244, 196, 83, 0.55);
  color: #ffebb0;
}

.showcase-card__tag,
.preset-btn.is-active,
.quiz-option.is-selected {
  background: linear-gradient(135deg, rgba(244, 196, 83, 0.25) 0%, rgba(198, 132, 25, 0.16) 100%);
  border-color: #f4c453;
  color: #fff2c2;
}

.preset-btn,
.btn-secondary {
  background: #141a28;
  border: 1px solid rgba(244, 196, 83, 0.24);
  color: #ece6d8;
}

.calc-result {
  background: linear-gradient(145deg, #181e2c 0%, #0d111b 100%);
  border: 1px solid rgba(244, 196, 83, 0.45);
}

.calc-result__monthly {
  background: linear-gradient(180deg, #fff5c2 0%, #f4c453 60%, #c68419 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-field input::placeholder {
  color: #7c776b;
}

.timeline-num {
  background: linear-gradient(135deg, #f6c95b 0%, #c5841c 100%);
  color: #130e04;
  font-weight: 800;
}

.trust-bar {
  background: rgba(244, 196, 83, 0.09);
  border: 1px solid rgba(244, 196, 83, 0.28);
  color: #e8dec8;
}

/* Official Agency Logo Banner in Footer */
.footer-logo-banner {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 196, 83, 0.36);
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.footer-logo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-phone {
  color: #f7c959;
}

.footer-email {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  color: #e2d9c5;
}

.footer-email:hover {
  color: #f7c959;
}

.footer-brand strong {
  color: #f7c959;
  letter-spacing: 0.04em;
}

/* High-contrast crimson-amber accent for "Важно:" warning callout */
.warning-callout {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(244, 196, 83, 0.10) 100%);
  border: 1px solid rgba(255, 107, 91, 0.55);
  border-left: 4px solid #ff5a5f;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.16);
}

.warning-callout__icon {
  color: #ff6b6b;
}

.warning-callout__text {
  color: #fff6e8;
}

.warning-callout__text strong {
  color: #ff7a6b;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.showcase-badge {
  background: rgba(244, 196, 83, 0.20) !important;
  color: #ffe8a3 !important;
  border: 1px solid rgba(244, 196, 83, 0.45);
}

.showcase-tag {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e8e2d5 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* High-contrast city quick-select pills & quiz success heading */
.mini-pill {
  background: rgba(244, 196, 83, 0.14) !important;
  color: #ffeab3 !important;
  border: 1px solid rgba(244, 196, 83, 0.38) !important;
}

.mini-pill:hover,
.mini-pill.is-active {
  background: linear-gradient(135deg, #f6c95b 0%, #c7861b 100%) !important;
  color: #130e04 !important;
}

.quiz-success__title,
#successTitle {
  color: #f7c959 !important;
}
