@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Literata:opsz,wght@7..72,600;700&display=swap');
:root {
  --bg: #F0F0EE; --ink: #28292B; --accent: #5A4548; --muted: #5E5F62;
  --card: #FFFFFF; --line: #CFCFCA; --header: #28292B; --header-text: #F3F3F1;
  --footer: #17181A; --band: #2F3032; --band-text: #F3F3F1;
  --sans: "Figtree", sans-serif; --serif: "Literata", serif;
  --radius: 2px; --btn-radius: 2px;
  --hero-shade: linear-gradient(180deg, rgba(40,41,43,0.42) 0%, rgba(40,41,43,0.32) 40%, rgba(40,41,43,0.84) 100%),
                linear-gradient(90deg, rgba(90,69,72,0.22) 0%, rgba(40,41,43,0.18) 55%, rgba(40,41,43,0.4) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.35rem; border-radius: var(--btn-radius); border: 1px solid transparent; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-header { background: var(--accent); color: #fff; white-space: nowrap; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; position: relative; }
.logo { font-family: var(--serif); font-weight: 700; text-decoration: none; font-size: 1.28rem; }
.site-nav { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
.site-nav a { text-decoration: none; opacity: 0.9; }
.site-nav a:hover { opacity: 1; }
.nav-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; padding: 0; color: inherit; }
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after { display: block; background: currentColor; height: 2px; width: 22px; position: relative; margin: 0 auto; }
.nav-toggle span:before, .nav-toggle span:after { content: ""; position: absolute; left: 0; }
.nav-toggle span:before { top: -7px; }
.nav-toggle span:after { top: 7px; }

/* FULL HERO */
.hero.hero-full {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 3.4rem; }
.hero-content h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 0.9rem; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-content .lead { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 34rem; margin: 0 0 1.5rem; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-full .btn-ghost { border-color: rgba(255,255,255,0.85); color: #fff; background: rgba(255,255,255,0.08); }
.hero-full .btn-ghost:hover { background: rgba(255,255,255,0.16); }

.section { padding: 3.2rem 0; }
.section h2 { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.7rem; }
.section .section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.7rem; }
.price { font-weight: 700; font-size: 1.12rem; margin: 0 0 0.85rem; }
.adv, .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.adv h3, .step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.form-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; max-width: 520px; }
label { display: block; font-size: 0.92rem; margin: 0 0 0.35rem; }
input[type=text], input[type=tel], textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; margin-bottom: 0.9rem; color: var(--ink); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; margin-bottom: 1rem; }
.form-msg { margin-top: 0.75rem; font-size: 0.95rem; }
.form-msg.ok { color: #2f5d3a; }
.form-msg.err { color: #8a2f2f; }
.site-footer { background: var(--footer); color: #d0d0d0; padding: 2.6rem 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.5rem; color: #fff; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 0.6rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-nav a { color: #bdbdbd; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-reqs, .footer-legal { font-size: 0.88rem; color: #a8a8a8; }
.reviews-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--muted); background: var(--card); }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; align-items: end; }
.filters label { margin: 0; }
.filters select, .filters input { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--card); }
.empty-state { padding: 2rem; border: 1px dashed var(--line); text-align: center; color: var(--muted); background: var(--card); }
.car-gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.75rem; }
.car-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; margin: 1rem 0; }
.specs div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; }
.specs span { display: block; color: var(--muted); font-size: 0.82rem; }
.page-hero { padding: 2rem 0 1rem; }
.page-hero h1 { font-family: var(--serif); margin: 0 0 0.5rem; }
.section-carousel .carousel { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.carousel-track { display: flex; gap: 1rem; overflow: hidden; width: 100%; scroll-behavior: smooth; }
.carousel-slide { flex: 0 0 calc(33.333% - 0.7rem); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.carousel-slide img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.carousel-caption { padding: 0.75rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.92rem; }
.carousel-btn { flex: 0 0 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.handover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.handover-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #17181A;
  aspect-ratio: 16 / 9; position: relative;
}
.handover-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  image-rendering: auto;
}
.handover-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); background: repeating-linear-gradient(-45deg, var(--card), var(--card) 12px, rgba(0,0,0,0.04) 12px, rgba(0,0,0,0.04) 24px); }
.band { background: var(--band); color: var(--band-text); }
.band .section-lead, .band .meta { color: rgba(255,255,255,0.78); }
.band .adv, .band .step, .band .card { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
@media (max-width: 900px) {
  .grid-3, .footer-grid, .car-gallery, .grid-2, .specs, .handover-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1rem; flex-direction: column; background: var(--header); color: var(--header-text); }
  .site-nav.open { display: flex; }
  .btn-header { display: none; }
  .hero.hero-full { min-height: 72vh; align-items: flex-end; }
  .hero-content h1 { max-width: none; }
  .carousel-slide { flex-basis: 85%; }
  .handover-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .handover-grid { grid-template-columns: 1fr; } }

.site-header { background: var(--header); color: var(--header-text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-nav a { color: var(--header-text); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.site-nav a:hover { color: #C4B4B6; }
.hero-shade { background: var(--hero-shade); }
.hero.hero-full { align-items: flex-end; min-height: min(92vh, 820px); }
.section { border-top: 1px solid var(--line); }
.section h2 { letter-spacing: -0.02em; }
.adv, .step { border-left: 3px solid var(--accent); }
.form-box { border-top: 2px solid var(--accent); }
.card-body { border-top: 1px solid var(--line); }
.card h3 { font-family: var(--serif); }
.band { border-top: 3px solid var(--accent); }
.btn-accent { background: var(--accent); }
.price { color: var(--ink); }

/* Split hero: photo | text (flipped) */
.hero.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(80vh, 700px);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}
.hero-split-flip .hero-media { order: -1; }
.hero-split .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.6rem);
  background: var(--bg);
  border-left: 1px solid var(--line);
}
.hero-split .hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  max-width: none;
  text-shadow: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-split .hero-copy .lead {
  color: var(--muted);
  opacity: 1;
  margin: 0 0 1.6rem;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
}
.hero-split .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-split .hero-actions .btn {
  padding: 1.1rem 1.7rem;
  font-size: 1.08rem;
}
.hero-split .btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.hero-split > * { min-width: 0; }
.hero-split .hero-media { min-height: 100%; overflow: hidden; }
.hero-split .hero-media img { width: 100%; height: 100%; min-height: min(80vh, 700px); object-fit: cover; object-position: center; display: block; }
@media (max-width: 900px) {
  .hero.hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split-flip .hero-media { order: -1; }
  .hero-split .hero-copy { border-left: 0; border-top: 1px solid var(--line); }
  .hero-split .hero-media img { min-height: 42vh; }
}

/* Catalog: cards LEFT, filters RIGHT */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}
.catalog-filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
}
.catalog-filters-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.catalog-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.catalog-filters .filter-group label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.catalog-filters .filter-group select,
.catalog-filters .filter-group input {
  width: 100%;
  box-sizing: border-box;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--ink);
}
.catalog-main { min-width: 0; }
.catalog-main .grid-2 { width: 100%; }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-layout-right .catalog-filters { order: -1; position: static; }
}
/* consent-fix */

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 0.4rem 0 1rem;
  line-height: 1.45;
  max-width: 100%;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
}
.consent span {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}
.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-box {
  width: 100%;
  max-width: 520px;
}
.form-box .btn {
  margin-top: 0.25rem;
}

.legal-doc h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.75rem; }
.legal-doc h2 { font-family: var(--serif); font-size: 1.15rem; margin: 1.6rem 0 0.55rem; }
.legal-doc p, .legal-doc li { line-height: 1.55; color: var(--ink); }
.legal-doc ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.legal-doc .legal-updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.legal-doc a { color: var(--accent); }

/* Mosaic + big steps — Autogarant unique */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}
.mosaic-wide { grid-column: 1 / -1; }
.mosaic-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.35rem 1.4rem; opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0ms);
}
.mosaic-card.is-in { opacity: 1; transform: none; }
.mosaic-card h3 { margin: 0 0 0.45rem; font-size: 1.12rem; }
.mosaic-card p { margin: 0; color: var(--muted); }
.mosaic-dark { background: #2F3032; color: #F3F3F1; border-color: #2F3032; }
.mosaic-dark p { color: rgba(243,243,241,0.78); }
.mosaic-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.mosaic-accent p { color: rgba(255,255,255,0.88); }
.mosaic-wide {
  padding: 1.8rem 1.7rem;
  background: linear-gradient(135deg, #F3F3F1 0%, #fff 55%, #ececeb 100%);
}
.mosaic-wide h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 1.85rem); }
.steps-big { display: flex; flex-direction: column; gap: 0; margin-top: 1.2rem; }
.step-big {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.step-big:first-child { border-top: 1px solid rgba(255,255,255,0.14); }
.step-big-n {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 600;
}
.step-big h3 { margin: 0.2rem 0 0.35rem; color: #fff; font-size: 1.15rem; }
.step-big p { margin: 0; color: rgba(255,255,255,0.78); max-width: 42rem; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .step-big { grid-template-columns: 3rem 1fr; }
}

/* About split — Autogarant */
.section-about-split { padding: 3.4rem 0; background: #fff; border-block: 1px solid var(--line); }
.about-split {
  display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
  gap: 2rem 2.75rem; align-items: start;
}
.about-split-aside {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1.1rem;
  align-self: start;
  padding-top: 0.15rem;
}
.about-split-city {
  display: block; font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.2rem); line-height: 0.92; color: var(--ink);
  letter-spacing: -0.03em;
}
.about-split-org {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.about-split-main h2 {
  font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0 0 0.85rem; border: 0 !important; display: block; padding: 0 !important;
  max-width: 18ch;
}
.about-split-main p { margin: 0 0 1rem; color: var(--muted); max-width: 36rem; }
.about-split-points {
  list-style: none; margin: 0 0 1.35rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.55rem;
}
.about-split-points li {
  font-size: 0.88rem; padding: 0.4rem 0.7rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
}


/* Header AGP — CTA left, brand center-left, nav right */
.header-agp { border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-agp-inner {
  min-height: 64px; gap: 1.25rem;
  display: flex; align-items: center;
}
.header-agp .btn-header-left {
  order: 0; margin-right: 0.25rem;
  background: transparent; color: var(--header-text);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px; padding: 0.55rem 0.9rem; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.header-agp .btn-header-left:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.logo-agp {
  order: 1; font-size: 1.05rem; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 700;
}
.header-agp .nav-toggle { order: 3; margin-left: auto; }
.site-nav-agp {
  order: 2; margin-left: auto; gap: 0;
  flex: 0 1 auto;
}
.site-nav-agp a {
  font-size: 0.86rem; padding: 0 0.85rem;
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.9;
}
.site-nav-agp a:last-child { border-right: 0; padding-right: 0; }
.site-nav-agp a:hover { color: #fff; opacity: 1; }
@media (max-width: 900px) {
  .header-agp .btn-header-left { display: none; }
  .site-nav-agp a { border-right: 0; padding: 0.4rem 0; }
}


/* Lead modal */
.lead-modal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:1rem;background:rgba(10,12,16,.55);backdrop-filter:blur(2px)}
.lead-modal.is-open{display:flex}
.lead-modal-dialog{position:relative;width:min(440px,100%);max-height:min(92vh,720px);overflow:auto;background:var(--card,#fff);color:var(--ink,#111);border-radius:14px;padding:1.5rem 1.35rem 1.35rem;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.lead-modal-close{position:absolute;top:.55rem;right:.55rem;width:2.4rem;height:2.4rem;border:0;border-radius:999px;background:transparent;color:inherit;font-size:1.55rem;line-height:1;cursor:pointer}
.lead-modal-close:hover{background:rgba(0,0,0,.06)}
.lead-modal .form-box{max-width:none;border:0;padding:0;background:transparent}
.lead-modal h3{margin:0 1.8rem .9rem 0;font-size:1.25rem}
body.lead-modal-open{overflow:hidden}
@media (max-width:560px){
  .lead-modal{padding:.65rem;align-items:flex-end}
  .lead-modal-dialog{width:100%;border-radius:14px 14px 0 0;max-height:88vh}
}


/* Mobile overlap hardening */
@media (max-width:900px){
  .site-header,.site-header .header-inner{overflow:visible}
  .site-nav.open{z-index:5000}
  .hero-content,.hero-split .hero-copy,.hsq-hero-copy{overflow-wrap:anywhere;word-break:break-word}
  .hero-actions,.hsq-hero-copy .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn,.hsq-hero-copy .btn{width:100%;justify-content:center;box-sizing:border-box}
  .grid-3,.grid-2,.handover-grid{grid-template-columns:1fr!important}
  .catalog-layout{grid-template-columns:1fr!important}
  .about-compact,.about-split{display:block!important}
  .about-compact-cta{display:inline-flex;margin-top:1rem}
  .carousel-track{scroll-snap-type:x mandatory}
  .footer-grid{grid-template-columns:1fr!important;gap:1.25rem}
  img,video{max-width:100%;height:auto}
  .card img,.handover-card img{height:auto;aspect-ratio:16/10;object-fit:cover;width:100%}
}
@media (max-width:900px){
  .hero-full .hero-bg img,
  .hero-split .hero-media img,
  .hsq-hero-bg img{
    object-fit:cover;
    object-position:center center;
  }
  .hero.hero-full{min-height:78vh}
  .hero-split .hero-media img{min-height:52vh}
  .hsq-hero{min-height:52vh}
}

.hero-bg picture,.hero-media picture,.hsq-hero-bg picture{display:block;width:100%;height:100%}
.hero-bg picture img,.hero-media picture img,.hsq-hero-bg picture img{width:100%;height:100%;object-fit:cover;display:block}
