/* ============================================================
   MERIDIAN — Gestion de patrimoine
   Thème « Midnight » : site sombre, bleu nuit, champagne,
   IBM Plex. Banque privée, données, discrétion.
   ============================================================ */

:root {
  --ivory: #0e1522;           /* fond du site : bleu nuit */
  --porcelain: #151f31;       /* panneaux */
  --panel-2: #1b2740;
  --ink: #e9e7e0;             /* texte clair */
  --stone: #97a0b1;
  --gold: #c8a55e;            /* champagne */
  --gold-soft: #dbc088;
  --forest: #0a101b;          /* bandes encore plus sombres */
  --forest-soft: #101827;
  --hairline: rgba(233, 231, 224, 0.13);
  --display: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #0e1522; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; }

.eyebrow {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: 0; }
.section-sub { color: var(--stone); max-width: 52ch; margin-top: 0.9rem; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--gold); color: #0e1522; }
.btn--solid, .btn--gold { background: var(--gold); border-color: var(--gold); color: #0e1522; }
.btn--solid:hover, .btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--light { color: var(--ink); border-color: rgba(233,231,224,0.5); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #0e1522; }
.btn--ghost { color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--block { display: block; width: 100%; margin-top: 0.7rem; }

.link-arrow { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 0.32rem; transition: color 0.25s, border-color 0.25s; }
.link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; color: var(--ink); transition: background 0.35s, box-shadow 0.35s; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header.on-hero .logo, .site-header.on-hero .nav-links a { color: var(--ink); }
.site-header.scrolled { background: rgba(10, 16, 27, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--hairline); }

.logo { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.34em; text-indent: 0.34em; font-weight: 500; }
.logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2.3rem; align-items: center; }
.nav-links a { font-size: 0.71rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; position: relative; padding-bottom: 0.3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { display: flex; gap: 0.15rem; align-items: center; }
.lang-switch button { font-size: 0.68rem; letter-spacing: 0.14em; padding: 0.3rem 0.45rem; opacity: 0.5; transition: opacity 0.2s; }
.lang-switch button.active { opacity: 1; border-bottom: 1px solid var(--gold); color: var(--gold); }
.lang-switch button:hover { opacity: 1; }

.burger { display: none; width: 30px; height: 22px; position: relative; z-index: 70; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: all 0.3s var(--ease); }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 65; background: var(--forest); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 1.8rem; }
.mobile-menu a:hover { color: var(--gold); }

/* ---------- Hero : nuit profonde ---------- */
.hero { position: relative; min-height: 94svh; display: flex; align-items: center; color: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,21,34,0.98) 0%, rgba(14,21,34,0.86) 50%, rgba(14,21,34,0.55) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 8rem 0 5rem; }

.hero__title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.14; max-width: 20ch; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
body.loaded .hero__line > span { transform: translateY(0); }
body.loaded .hero__line:nth-child(2) > span { transition-delay: 0.14s; }

.hero__sub { margin-top: 1.6rem; max-width: 54ch; color: var(--stone); opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s; }
.hero__ctas { margin-top: 2.3rem; display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease) 0.65s, transform 0.8s var(--ease) 0.65s; }
body.loaded .hero__sub, body.loaded .hero__ctas { opacity: 1; transform: none; }
.hero__scroll { display: none; }

@media (max-height: 720px) { .hero__title { font-size: clamp(2rem, 4.4vw, 3rem); } }

/* ---------- Chiffres ---------- */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--forest-soft); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.stat { text-align: center; padding-inline: 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--hairline); }
.stat__n { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--gold); }
.stat__l { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; }

/* ---------- Cartes (expertises) ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prop-card { display: block; background: var(--porcelain); border: 1px solid var(--hairline); transition: border-color 0.3s, transform 0.3s var(--ease); }
.prop-card:hover { border-color: rgba(200,165,94,0.55); transform: translateY(-4px); }
.prop-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel-2); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.4s, transform 0.8s var(--ease); }
.prop-card:hover .prop-card__media img { opacity: 1; transform: scale(1.03); }
.prop-card__badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: rgba(10,16,27,0.85); color: var(--gold);
  border: 1px solid rgba(200,165,94,0.4);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.4rem 0.85rem;
}
.prop-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.prop-card__commune { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); font-style: normal; }
.prop-card__name { font-size: 1.28rem; margin-top: 0.4rem; transition: color 0.25s; }
.prop-card:hover .prop-card__name { color: var(--gold); }
.prop-card__rule { width: 38px; height: 1px; background: var(--gold); margin: 0.9rem 0; transition: width 0.4s var(--ease); }
.prop-card:hover .prop-card__rule { width: 68px; }
.prop-card__specs { font-size: 0.82rem; color: var(--stone); }
.prop-card__price { font-family: var(--display); font-size: 1.05rem; color: var(--gold); margin-top: 0.5rem; }

/* ---------- La maison ---------- */
.intro { background: var(--forest-soft); border-block: 1px solid var(--hairline); }
.intro .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: 0.85; }
.intro__media::after { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid rgba(200,165,94,0.4); z-index: -1; }
.intro__text p { color: var(--stone); margin-bottom: 1.4rem; max-width: 56ch; }
.intro__text .section-title { margin-bottom: 1.4rem; max-width: 24ch; }

/* ---------- Bande bilan (champagne) ---------- */
.cta-band { background: var(--gold); color: #14100a; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 1rem; border: 1px solid rgba(20,16,10,0.2); pointer-events: none; transform: none; left: 1rem; top: 1rem; font-size: 0; line-height: 0; }
.cta-band .container { position: relative; max-width: 760px; }
.cta-band .eyebrow { color: #14100a; opacity: 0.65; }
.cta-band .section-title { color: #14100a; margin-inline: auto; }
.cta-band p:not(.eyebrow) { color: rgba(20,16,10,0.75); margin: 1.1rem auto 2rem; max-width: 52ch; }
.cta-band .btn--light { color: #14100a; border-color: #14100a; }
.cta-band .btn--light:hover { background: #14100a; color: var(--gold); }

/* ---------- Témoignages ---------- */
.testimonials .prop-grid { grid-template-columns: repeat(3, 1fr); }
.tst { background: var(--porcelain); border: 1px solid var(--hairline); padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.tst q, .tst blockquote { font-family: var(--display); font-size: 1.06rem; line-height: 1.6; quotes: none; flex: 1; }
.tst cite { font-style: normal; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Pages intérieures ---------- */
.page-head { padding: calc(84px + clamp(2.6rem, 6vw, 4.5rem)) 0 clamp(2.2rem, 4vw, 3.2rem); }
.page-head .section-title { max-width: 26ch; }

.filters { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding-bottom: 2.2rem; }
.filter-pills { display: flex; border: 1px solid var(--hairline); }
.filter-pill { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.75rem 1.5rem; color: var(--stone); transition: all 0.2s; }
.filter-pill + .filter-pill { border-left: 1px solid var(--hairline); }
.filter-pill.active { background: var(--gold); color: #0e1522; }
.filter-select { font-family: var(--sans); font-size: 0.8rem; color: var(--ink); background: var(--porcelain); border: 1px solid var(--hairline); padding: 0.72rem 1rem; cursor: pointer; }
.listing-count { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.listing-empty { grid-column: 1 / -1; color: var(--stone); font-family: var(--display); font-size: 1.2rem; padding: 3rem 0; }

/* ---------- Fiche détail ---------- */
.det-gallery { display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 0.5rem; padding-top: 84px; height: calc(84px + 56vh); }
.det-main { display: block; width: 100%; height: 100%; overflow: hidden; }
.det-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.det-thumbs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0.5rem; height: 100%; min-height: 0; }
.det-thumb { display: block; width: 100%; overflow: hidden; min-height: 0; }
.det-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.3s; }
.det-thumb:hover img { opacity: 1; }

.det-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); padding-block: clamp(2.6rem, 5vw, 4rem); align-items: start; }
.det-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-top: 0.3rem; }
.det-price { font-family: var(--display); font-size: 1.3rem; color: var(--gold); margin-top: 0.7rem; }
.det-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin: 2rem 0; border-top: 1px solid var(--gold); }
.det-spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
.det-spec__label { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); align-self: center; }
.det-spec__value { font-family: var(--display); font-size: 1rem; text-align: right; }
.det-h2 { font-size: 1.45rem; margin: 2.2rem 0 0.9rem; }
.det-desc { color: var(--stone); max-width: 62ch; }
.det-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 2rem; }
.det-feats li { padding-left: 1.4rem; position: relative; color: var(--stone); font-size: 0.94rem; }
.det-feats li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 13px; height: 1px; background: var(--gold); }

.det-aside { position: sticky; top: calc(84px + 1.2rem); }
.agent-card { background: var(--porcelain); border: 1px solid var(--hairline); padding: 2.2rem; text-align: center; }
.agent-card__photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 1px solid rgba(200,165,94,0.5); }
.agent-card__label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.agent-card__name { font-family: var(--display); font-size: 1.3rem; margin-top: 0.3rem; }
.agent-card__langs { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--stone); margin: 0.3rem 0 1.3rem; }
.agent-card__tel { display: block; margin-top: 1rem; font-family: var(--display); font-size: 1.05rem; }
.agent-card__tel:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5,8,14,0.97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; color: rgba(233,231,224,0.85); font-size: 1.6rem; padding: 1rem; line-height: 1; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-close { top: 1.2rem; right: 1.6rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Modèle ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.srv { background: var(--porcelain); border: 1px solid var(--hairline); padding: clamp(1.8rem, 3.5vw, 2.6rem); transition: border-color 0.3s; }
.srv:hover { border-color: rgba(200,165,94,0.55); }
.srv::before { content: ""; display: block; width: 38px; height: 1px; background: var(--gold); margin-bottom: 1.5rem; }
.srv h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.srv p { color: var(--stone); max-width: 54ch; font-size: 0.95rem; }

/* ---------- La maison / équipe ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value { background: var(--porcelain); border: 1px solid var(--hairline); border-top: 1px solid var(--gold); padding: 1.7rem; }
.value h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--gold); }
.value p { color: var(--stone); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member { background: var(--porcelain); border: 1px solid var(--hairline); padding-bottom: 1.4rem; }
.member img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.35s; }
.member:hover img { opacity: 1; }
.member h3 { font-size: 1.2rem; margin: 1.1rem 1.4rem 0; }
.member .role { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0.3rem 1.4rem 0; }
.member .langs { font-size: 0.78rem; color: var(--stone); margin: 0.3rem 1.4rem 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.form-field { margin-bottom: 1.6rem; }
.form-field label { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.5rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 1rem;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--hairline);
  padding: 0.6rem 0;
  transition: border-color 0.3s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; margin-top: 1.4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--gold); color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.form-success.show { display: block; }

.contact-info { background: var(--porcelain); border: 1px solid var(--hairline); padding: 2.4rem; }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.contact-info p { color: var(--stone); margin-bottom: 1.6rem; }
.contact-info .agent-card__tel { text-align: left; margin: 0.2rem 0 1.6rem; }
.contact-info iframe { filter: grayscale(0.8) invert(0.9) !important; }

/* ---------- WhatsApp ---------- */
.whatsapp-fab { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #0e1522; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,0.5); transition: transform 0.3s var(--ease), background 0.3s; }
.whatsapp-fab:hover { transform: translateY(-3px); background: var(--gold-soft); }
.whatsapp-fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest); color: var(--stone); border-top: 1px solid var(--hairline); }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 4.5rem) 2.2rem; }
.site-footer .logo { color: var(--ink); font-size: 1.5rem; }
.ft-tag { margin-top: 0.9rem; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ft-col h4 { font-weight: 500; font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.ft-col li { margin-bottom: 0.55rem; }
.ft-col a { font-size: 0.9rem; transition: color 0.2s; }
.ft-col a:hover { color: var(--ink); }
.ft-bottom { border-top: 1px solid var(--hairline); }
.ft-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; font-size: 0.76rem; color: rgba(151,160,177,0.6); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero__sub, .hero__ctas { opacity: 1; transform: none; }
  .hero__line > span { transform: none; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 1024px) {
  .prop-grid, .testimonials .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .det-layout { grid-template-columns: 1fr; }
  .det-aside { position: static; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 0; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .intro .container { grid-template-columns: 1fr; }
  .intro__media::after { display: none; }
  .srv-grid, .contact-layout { grid-template-columns: 1fr; }
  .det-gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .det-main { aspect-ratio: 16 / 10; height: auto; }
  .det-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); height: auto; }
  .det-thumb { aspect-ratio: 4 / 3; }
  .det-specs, .det-feats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prop-grid, .testimonials .prop-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .filters { gap: 0.8rem; }
  .listing-count { margin-left: 0; width: 100%; }
}
