:root {
  --bg: #020403;
  --surface: #04100A;
  --text: #D1FAE5;
  --muted: #6EE7B7;
  --primary: #22C55E;
  --secondary: #16A34A;
  --accent: #A7F3D0;
  --border: rgba(209, 250, 229, 0.14);
  --ui-style: luxury;
  --ui-mood: real estate;
  --ui-focus: property;
  --ui-craft: architecture;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 54px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 90% 10%, rgba(22, 163, 74, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 45%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.35s ease;
}

a:hover {
  color: var(--primary);
}

.disclosure-banner {
  background: rgba(209, 250, 229, 0.08);
  border-top: 3px solid var(--primary);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  color: var(--text);
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  margin-left: 10vw;
  margin-right: 5vw;
  width: auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 12px 20px;
  background: rgba(4, 16, 10, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-lockup img {
  width: 36px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(2, 4, 3, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.nav-overlay .overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
    linear-gradient(225deg, rgba(167, 243, 208, 0.05) 0%, transparent 35%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.hero-sub {
  display: none;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 4.5rem 1.5rem;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.luxury-overlay {
  position: relative;
}

.luxury-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 4, 3, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.property-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: propertyReveal 1.1s ease forwards;
}

.property-reveal:nth-child(2) {
  animation-delay: 0.15s;
}

.property-reveal:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes propertyReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.architecture-grid {
  display: grid;
  gap: 1.5rem;
}

.real-estate-band {
  background-image: url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.real-estate-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.82);
  z-index: 0;
}

.real-estate-band > * {
  position: relative;
  z-index: 1;
}

.offers-section {
  padding: 4.5rem 1.5rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.offer-card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offer-logo {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
}

.offer-card .offer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

.offer-bonus-group {
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.offer-bonus {
  font-size: 0.95rem;
  font-weight: 700;
  color: #166534;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.offer-terms {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.25rem;
}

.offer-desc {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.65rem 1.25rem;
  background: #166534;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.offer-cta:hover {
  background: #14532d;
  color: #fff !important;
}

.decor-wrap {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.decor-wrap img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.decor-bg {
  background-size: cover;
  background-position: center;
  min-height: 180px;
  max-height: 280px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.info-quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.info-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  color: var(--accent);
  margin: 1.5rem 0;
  border: none;
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-item {
  padding: 1.5rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: rgba(34, 197, 94, 0.06);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.info-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tip-block {
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.info-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-checklist li {
  padding-left: 1.75rem;
  position: relative;
}

.info-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 1px;
}

.info-wide {
  padding: 3.5rem 1.5rem;
  background: rgba(34, 197, 94, 0.07);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-rail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.rail-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  padding-top: 0.75rem;
}

.info-timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-cell {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.info-magazine {
  columns: 2;
  column-gap: 2.5rem;
}

.info-magazine p {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.topic-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.35s ease, color 0.35s ease;
}

.topic-cta:hover {
  background: var(--primary);
  color: var(--bg);
}

.page-hero {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  background: var(--surface);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-content,
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-content h2,
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-content h3,
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--muted);
}

.legal-content p,
.article-content p,
.legal-content li,
.article-content li {
  margin-bottom: 0.85rem;
  color: var(--text);
}

.legal-content ul,
.article-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
}

.form-error {
  color: #fca5a5;
  font-size: 0.85rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--primary);
  background: rgba(34, 197, 94, 0.1);
  color: var(--text);
  margin-top: 1.5rem;
}

.form-success.is-visible {
  display: block;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.footer-brand img {
  width: 36px;
  height: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin-bottom: 1.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-requisites {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(110, 231, 183, 0.75);
  line-height: 1.55;
  max-width: 900px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cookie-settings {
  display: none;
  text-align: left;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cookie-settings.is-open {
  display: block;
}

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sub-hero-strip {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 1.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sub-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 4, 3, 0.9) 0%, rgba(2, 4, 3, 0.35) 100%);
}

.sub-hero-strip h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.split-article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.side-rail {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.side-rail .decor-wrap {
  margin-bottom: 1.5rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  border-left: 3px solid var(--primary);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 2rem 0;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.stat-band > div {
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}

.stat-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
}

.go-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.go-meta {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 420px;
}

.go-meta a {
  color: var(--accent);
}

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.75rem;
}

.mosaic-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
  max-width: 100%;
  overflow: hidden;
}

.mosaic-band .decor-bg {
  min-height: 140px;
}

@media (max-width: 900px) {
  .site-header {
    margin-left: 0;
    margin-right: 0;
    top: 0;
  }

  .navbar {
    border-radius: 0;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-sub {
    display: block;
  }

  .info-split,
  .info-steps,
  .info-tips,
  .info-rail,
  .info-stats,
  .split-article,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .info-magazine {
    columns: 1;
  }

  .side-rail {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .mosaic-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1.15rem;
  }

  .offer-logo {
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .offer-bonus {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .decor-wrap,
  .decor-bg,
  .sub-hero-strip,
  .mosaic-band {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-wrap img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }

  .info-split,
  .section-inner,
  .offers-section,
  .hero {
    max-width: 100%;
    overflow-x: hidden;
  }
}
