@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@400;500&family=Jost:wght@300;400;500&display=swap");

:root {
  --riv-cream: #F5F0E8;
  --riv-sand: #E8DFD0;
  --riv-warm: #C9B99A;
  --riv-stone: #6B8A7F;
  --riv-dark: #0B3B2F;
  --riv-accent: #6B8C6B;
  --riv-accent2: #8C6B4A;
  --riv-white: #FDFAF5;
  --riv-border: rgba(11,59,47,0.12);
  --riv-shadow: 0 18px 60px rgba(11,59,47,0.16);
  --riv-soft-shadow: 0 8px 32px rgba(11,59,47,0.10);
  --transition: 300ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  color: var(--riv-dark);
  background: var(--riv-cream);
  line-height: 1.7;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, .logo, .quote {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.08;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h4 { font-size: 1.35rem; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section.alt { background: var(--riv-sand); }
.section-header { max-width: 760px; margin-bottom: 40px; }
.section-header.center { margin-inline: auto; text-align: center; }
.subtitle, .eyebrow, .label {
  color: var(--riv-stone);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.lead { color: var(--riv-stone); font-size: 1.12rem; max-width: 680px; }
.muted { color: var(--riv-stone); }

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: var(--riv-warm);
  z-index: 2000;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  padding: 20px 0;
  color: var(--riv-cream);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(11,59,47,0.96);
  box-shadow: var(--riv-soft-shadow);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-block { display: grid; gap: 4px; align-items: center; text-decoration: none; color: var(--riv-cream); }
.logo {
  display: block;
  width: 156px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(96%) sepia(8%) saturate(475%) hue-rotate(335deg) brightness(101%) contrast(92%);
}
.brand-phone {
  color: var(--riv-cream);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  margin-left: 8px;
}
.header-city {
  color: var(--riv-warm);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-inner > .header-city { display: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--riv-cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a.active { color: var(--riv-warm); }

.btn-primary, .btn-secondary, .btn-ghost, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 2px;
  border: 0.5px solid transparent;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary { background: var(--riv-dark); color: var(--riv-cream); }
.btn-secondary { background: transparent; color: var(--riv-dark); border-color: var(--riv-dark); }
.btn-ghost { background: transparent; color: var(--riv-cream); border-color: rgba(245,240,232,0.45); }
.btn-cta { background: var(--riv-cream); color: var(--riv-dark); }
.btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover, .btn-cta:hover { transform: translateY(-2px); box-shadow: var(--riv-soft-shadow); }
.btn-secondary:hover { background: var(--riv-dark); color: var(--riv-cream); }
.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--riv-cream);
  background: var(--riv-dark);
}
.hero.compact { min-height: 78vh; }
.hero-bg-slider, .hero-image, .final-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 900ms ease, transform 100ms linear;
}
.hero-overlay, .final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,59,47,0.94), rgba(11,59,47,0.62));
}
.hero-home .hero-image { background-position: center; }
.hero-home .hero-overlay { background: linear-gradient(90deg, rgba(11,59,47,0.90), rgba(11,59,47,0.46)); }
.hero-home h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); max-width: 760px; }
.hero-main-crop { background-position: center 68%; }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 128px 0 104px; }
.hero .lead { color: var(--riv-cream); font-size: clamp(1.1rem, 2vw, 1.45rem); margin: 18px 0 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 0.5px solid rgba(245,240,232,0.45);
  color: var(--riv-warm);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-form, .inline-form {
  margin-top: 30px;
  padding: 18px;
  max-width: 780px;
  background: rgba(253,250,245,0.13);
  border: 0.5px solid rgba(245,240,232,0.35);
  backdrop-filter: blur(12px);
}
.hero-form-title { margin-bottom: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 0.5px solid var(--riv-border);
  border-radius: 2px;
  padding: 12px 14px;
  background: var(--riv-white);
  color: var(--riv-dark);
  outline: none;
}
textarea { min-height: 112px; resize: vertical; }
.form-note, .form-agree { margin-top: 10px; color: var(--riv-stone); font-size: 0.82rem; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  color: var(--riv-stone);
  font-size: 0.78rem;
  line-height: 1.4;
}
.consent-check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--riv-dark);
}
.consent-check a {
  color: var(--riv-dark);
  font-weight: 400;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}
.hero .consent-check,
.final-cta .consent-check,
.scroll-lead-bar .consent-check {
  color: rgba(245,240,232,0.86);
}
.hero .consent-check a,
.final-cta .consent-check a,
.scroll-lead-bar .consent-check a {
  color: var(--riv-cream);
  font-weight: 500;
}
.hero .form-note { color: var(--riv-cream); }
.hero-trust-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(245,240,232,0.10);
  border-top: 0.5px solid rgba(245,240,232,0.25);
  backdrop-filter: blur(12px);
}
.trust-item { padding: 18px; text-align: center; border-right: 0.5px solid rgba(245,240,232,0.18); }
.trust-item strong, .counter { display: block; font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--riv-warm); line-height: 1; }

.projects-grid, .feature-grid, .reviews-grid, .location-grid, .portfolio-grid, .gallery-grid {
  display: grid;
  gap: 16px;
}
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid, .reviews-grid, .location-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portfolio-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#directions .feature-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center;
}

.project-card, .feature-card, .review-card, .location-card, .faq-item, .calc-wrapper, .lead-panel, .compare-wrap {
  background: var(--riv-white);
  border: 0.5px solid var(--riv-border);
  border-radius: 8px;
  box-shadow: var(--riv-soft-shadow);
}
.project-card { position: relative; min-width: 0; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--riv-shadow); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: var(--riv-dark);
  color: var(--riv-cream);
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card-img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--riv-sand); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project-card:hover .card-img { transform: scale(1.05); }
.card-body, .feature-card, .review-card, .location-card, .faq-item { padding: 22px; }
.feature-card h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}
#credentials .feature-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.12;
}
.project-card .card-body h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.85rem, 2.35vw, 2.75rem);
}
.card-meta, .card-prices, .card-actions { display: grid; gap: 10px; margin-top: 16px; }
.card-meta { display: flex; flex-wrap: wrap; color: var(--riv-stone); font-size: 0.86rem; }
.price-row, .result-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 0.5px solid var(--riv-border); padding-bottom: 8px; }
.price-ipoteka, .tag {
  background: var(--riv-sand);
  color: var(--riv-dark);
  border-left: 2px solid var(--riv-warm);
  padding: 8px 10px;
  font-size: 0.9rem;
}
.project-price-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.project-price-list .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  padding-bottom: 8px;
}
.project-price-list .price-row span { overflow-wrap: anywhere; }
.project-price-list strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  font-weight: 300;
  white-space: nowrap;
}
.card-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-card .card-actions .btn-primary,
.project-card .card-actions .btn-secondary {
  min-height: 44px;
  padding: 10px 12px;
  font-size: clamp(0.6rem, 0.65vw, 0.72rem);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.catalog-leadmagnet, .process-cta, .gallery-leadmagnet, .faq-cta {
  margin-top: 28px;
  padding: 26px;
  background: var(--riv-dark);
  color: var(--riv-cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.calc-wrapper { display: grid; grid-template-columns: 1.15fr 0.85fr; overflow: hidden; }
.calc-inputs, .calc-result { padding: 28px; }
.calc-result { background: var(--riv-dark); color: var(--riv-cream); }
.calc-group { margin-bottom: 22px; }
.calc-group label { display: block; margin-bottom: 8px; font-weight: 400; }
input[type="range"] { accent-color: var(--riv-dark); padding: 0; background: transparent; border: 0; }
.calc-value, .result-amount { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.calc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.term-btn, .quiz-options button, .tab-btn {
  border: 0.5px solid var(--riv-border);
  background: var(--riv-cream);
  color: var(--riv-dark);
  padding: 10px 14px;
  border-radius: 2px;
}
.term-btn.active, .quiz-options button:hover, .tab-btn.active { background: var(--riv-dark); color: var(--riv-cream); }

.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding: 24px 0; border-bottom: 0.5px solid var(--riv-border); }
.step-num { font-family: "Cormorant Garamond", serif; font-size: 3rem; color: var(--riv-warm); line-height: 1; }
.work-schema {
  display: grid;
  gap: 56px;
  margin-top: 34px;
}
.schema-phase {
  position: relative;
  display: grid;
  gap: 42px;
  padding: 28px;
  background: var(--riv-cream);
  border: 0.5px solid var(--riv-border);
  border-radius: 8px;
}
.schema-phase-title {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  background: var(--riv-dark);
  color: var(--riv-cream);
  border-radius: 2px;
}
.schema-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 74px minmax(240px, 1.2fr);
  align-items: center;
  gap: 22px;
  min-height: 112px;
}
.schema-step::after {
  display: none;
}
.schema-note {
  color: var(--riv-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.25;
  text-align: center;
}
.schema-num {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: var(--riv-dark);
  color: var(--riv-cream);
  border-radius: 22px;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  z-index: 1;
  text-align: center;
}
.schema-step:not(:last-child) .schema-num::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 78px;
  border-left: 4px dotted var(--riv-dark);
  transform: translateX(-50%);
  opacity: 0.9;
}
.schema-title {
  color: var(--riv-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.14;
  text-transform: uppercase;
}
.schema-docs {
  margin-top: 36px;
  padding: 26px;
  background: var(--riv-dark);
  color: var(--riv-cream);
  border-radius: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
  text-align: center;
}
.contact-lines {
  display: grid;
  gap: 8px;
}
.map-panel { position: relative; min-height: 340px; padding: 28px; background: var(--riv-sand); border: 0.5px solid var(--riv-border); border-radius: 8px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.map-panel iframe { position: relative; z-index: 1; width: 100%; min-height: 420px; border: 0; }
.map-highlight-layer {
  position: absolute;
  inset: 28px;
  z-index: 2;
  pointer-events: none;
}
.map-zone {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid rgba(11,59,47,0.58);
  border-radius: 999px;
  background: rgba(107,140,107,0.34);
  color: var(--riv-dark);
  font-size: clamp(0.7rem, 1vw, 0.88rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11,59,47,0.14);
}
.map-zone.ramon { left: 53%; top: 19%; width: 13%; height: 10%; }
.map-zone.usman { left: 60%; top: 69%; width: 15%; height: 10%; }
.map-zone.repnoe { left: 46%; top: 66%; width: 12%; height: 9%; }
.map-zone.podgornoe { left: 47%; top: 43%; width: 13%; height: 9%; }
.map-zone.otradnoe { left: 63%; top: 60%; width: 13%; height: 9%; }
.map-zone.semiluki { left: 34%; top: 63%; width: 13%; height: 10%; }

.gallery-grid img, .portfolio-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid a, .portfolio-card { min-height: 300px; overflow: hidden; border-radius: 8px; border: 0.5px solid var(--riv-border); background: var(--riv-sand); }
.portfolio-card { position: relative; }
.portfolio-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  background: transparent;
  color: var(--riv-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(253,250,245,0.95), 0 0 1px rgba(253,250,245,0.9);
}
.portfolio-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  color: var(--riv-cream);
  background: linear-gradient(180deg, rgba(11,59,47,0), rgba(11,59,47,0.92));
}
.reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-stars { color: var(--riv-warm); letter-spacing: 0.2em; margin-bottom: 12px; }
.review-source {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--riv-sand);
  color: var(--riv-dark);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.review-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 160px;
  object-fit: contain;
}
.review-source.domrf { color: #1d5fd3; }
.review-source.gis { color: #1c8b55; }
.review-source.yandex { color: #d62828; }
.faq-list { display: grid; gap: 12px; }
.faq-q { display: flex; justify-content: space-between; gap: 16px; font-weight: 400; cursor: pointer; }
.faq-a { display: none; margin-top: 12px; color: var(--riv-stone); }
.faq-item.open .faq-a { display: block; }

.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { padding: 16px; border-bottom: 0.5px solid var(--riv-border); text-align: left; }
.compare-table th { background: var(--riv-dark); color: var(--riv-cream); font-weight: 400; }
.invest-num { font-family: "Cormorant Garamond", serif; font-size: 3.2rem; color: var(--riv-accent2); line-height: 1; }

.final-cta { position: relative; min-height: 620px; display: grid; align-items: center; color: var(--riv-cream); overflow: hidden; }
.final-content { position: relative; z-index: 2; max-width: 780px; }
.final-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin: 28px 0 18px; }
.final-form .consent-check {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-top: 0;
}
.final-contacts { display: flex; flex-wrap: wrap; gap: 18px; color: var(--riv-warm); }

.popup-overlay { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11,59,47,0.72); backdrop-filter: blur(6px); }
.popup-overlay.active { display: flex; }
.popup-box { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--riv-cream); border-radius: 8px; padding: 32px; box-shadow: var(--riv-shadow); }
.popup-large { width: min(720px, 100%); }
.popup-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; background: var(--riv-sand); color: var(--riv-dark); border-radius: 50%; }
.popup-box form { display: grid; gap: 10px; margin-top: 18px; }

.live-chat { position: fixed; right: 24px; bottom: 24px; z-index: 900; }
.live-chat.chat-hidden { display: none; }
.chat-bubble { position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--riv-dark); color: var(--riv-cream); box-shadow: var(--riv-shadow); font-size: 1.4rem; }
.chat-bubble.pulse { animation: pulse 500ms ease 3; }
.chat-badge { position: absolute; right: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--riv-warm); color: var(--riv-dark); font-size: 0.7rem; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.chat-window { position: absolute; right: 0; bottom: 72px; width: 340px; display: none; overflow: hidden; background: var(--riv-white); border-radius: 8px; box-shadow: var(--riv-shadow); border: 0.5px solid var(--riv-border); }
.chat-window.open { display: block; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--riv-dark); color: var(--riv-cream); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--riv-warm); }
.chat-close { margin-left: auto; border: 0; background: transparent; color: var(--riv-cream); font-size: 1.1rem; }
.chat-messages { max-height: 220px; overflow: auto; padding: 14px; display: grid; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 8px; background: var(--riv-sand); }
.msg.user { background: var(--riv-dark); color: var(--riv-cream); justify-self: end; }
.chat-input-area { display: grid; grid-template-columns: 1fr 48px; border-top: 0.5px solid var(--riv-border); }
.chat-input-area input { border: 0; border-radius: 0; }
.chat-input-area button { border: 0; background: var(--riv-dark); color: var(--riv-cream); }
.chat-phones { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--riv-border); }
.chat-phones a { text-align: center; padding: 10px; text-decoration: none; color: var(--riv-dark); }

.scroll-lead-bar { position: fixed; left: 24px; right: 24px; bottom: 18px; z-index: 850; display: none; align-items: center; gap: 12px; padding: 12px; background: var(--riv-dark); color: var(--riv-cream); border-radius: 8px; box-shadow: var(--riv-shadow); }
.scroll-lead-bar.active { display: flex; }
.scroll-lead-bar form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.scroll-lead-bar .consent-check {
  flex: 1 0 100%;
  max-width: 520px;
  margin: 0;
}
.scroll-lead-bar button { border: 0; }
.social-proof { position: fixed; left: 24px; bottom: 24px; z-index: 800; max-width: 320px; padding: 14px; display: none; background: var(--riv-white); border: 0.5px solid var(--riv-border); border-radius: 8px; box-shadow: var(--riv-shadow); }
.social-proof.active { display: block; }

.quiz-container { background: var(--riv-white); border: 0.5px solid var(--riv-border); border-radius: 8px; padding: 24px; }
.quiz-step { display: none; }
.quiz-step.active { display: grid; gap: 18px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-progress { height: 6px; background: var(--riv-sand); border-radius: 99px; overflow: hidden; margin-top: 20px; }
.quiz-bar { height: 100%; background: var(--riv-dark); transition: width var(--transition); }

.sticky-cta { display: none; }
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 700ms ease, transform 700ms ease; }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.visible { opacity: 1; transform: translate(0); }

@media (max-width: 980px) {
  .nav { display: none; }
  .header-city { display: block; margin-left: auto; }
  .projects-grid, .feature-grid, .reviews-grid, .location-grid, .portfolio-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-wrapper, .final-form { grid-template-columns: 1fr; }
  .hero-trust-bar { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .schema-step { grid-template-columns: 1fr 74px 1fr; }
  .schema-step::after { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 64px 0; }
  .hero-content { padding: 108px 0 150px; }
  .logo { width: 128px; }
  .brand-phone { font-size: 0.64rem; }
  .projects-grid, .feature-grid, .reviews-grid, .location-grid, .portfolio-grid, .gallery-grid,
  #directions .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust-bar { position: relative; grid-template-columns: 1fr; }
  .catalog-leadmagnet, .process-cta, .gallery-leadmagnet, .faq-cta { align-items: flex-start; flex-direction: column; }
  .card-actions { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .schema-phase { padding: 20px; gap: 24px; }
  .schema-step { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .schema-step:not(:last-child) .schema-num::after { display: none; }
  .schema-title {
    order: 1;
    font-size: clamp(1.45rem, 8vw, 2.05rem);
    overflow-wrap: anywhere;
  }
  .schema-num { order: 2; }
  .schema-note {
    order: 3;
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    line-height: 1.45;
  }
  .schema-note { text-align: left; }
  .live-chat { bottom: 86px; right: 14px; }
  .chat-window {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    grid-template-rows: auto 1fr auto auto;
  }
  .chat-window.open { display: grid; }
  .chat-messages { max-height: none; min-height: 0; }
  .chat-input-area input { min-height: 56px; }
  .social-proof {
    left: 14px;
    right: 14px;
    bottom: 86px;
    max-width: none;
    font-size: 0.9rem;
  }
  .scroll-lead-bar { display: none !important; }
  .sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 880;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 6px;
    padding: 10px;
    background: var(--riv-white);
    border-top: 0.5px solid var(--riv-border);
  }
  .sticky-cta a, .sticky-cta button {
    min-height: 44px;
    border: 0;
    border-radius: 2px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--riv-dark);
    background: var(--riv-sand);
    font-size: 0.78rem;
  }
  .sticky-cta .btn-form { background: var(--riv-dark); color: var(--riv-cream); }
}
