/* =========================================================
   Puits Saint Maurice — site vitrine
   HTML/CSS/JS pur. Design sobre & chic : crème / vert profond,
   accent laiton, serif élégante (Fraunces) + sans sobre (Elms Sans).
   ========================================================= */

:root {
  /* Palette (dérivée de la page welcome, raffinée) */
  --bg:        #fffdf9;   /* blanc chaud */
  /*--bg:        #f6f3ec;   /* crème */
  --surface:   #fffdf9;   /* blanc chaud */
  --ink:       #23241f;   /* presque noir chaud */
  --muted:     #6c6a60;   /* gris chaud */
  /*  --accent:    #2f4a3c;   /* vert profond */
  --accent:    #728B70;   /* vert profond */
  --accent-2:  #3f6151;   /* vert clair */
  --brass:     #b08d4d;   /* laiton (secondaire chic) */
  --line:      #e6e0d4;   /* filets */
  --line-soft: #efeadf;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 10px 40px rgba(35, 36, 31, 0.08);
  --shadow-sm: 0 4px 18px rgba(35, 36, 31, 0.06);

  --font-title: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:  "Elms Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1080px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Utilitaire de largeur */
.section,
.footer__inner,
.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

/* ---------------- Boutons ---------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: rgba(47, 74, 60, 0.06); }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 40px);
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  color: var(--ink);
}
.brand__name {
  font-family: var(--font-title);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand__place {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* Nav desktop */
.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-block;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { color: var(--accent); background: rgba(47, 74, 60, 0.06); }

.nav__cta {
  margin-left: 6px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-2); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bascule de langue */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 6px;
}
.lang__btn[aria-pressed="true"] { color: var(--accent); background: rgba(47, 74, 60, 0.08); }
.lang__sep { color: var(--line); }

/* Burger (mobile) */
.burger { display: none; }

/* ---------------- Menu mobile (checkbox hack) ---------------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-overlay { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 30, 25, 0.32), rgba(20, 30, 25, 0.58)),
              #2f4a3c center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(20, 30, 25, 0.32), rgba(20, 30, 25, 0.58)),
                    url("img/hero/Logo.png");
}
.hero__inner {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 56px;
}
.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: #f0e3c8;
}
.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 90%;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__sub {
  margin: 0 0 30px;
  max-width: 90%;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: #f3efe7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------------- Sections ---------------- */
.section { padding-block: clamp(40px, 6vw, 64px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section__head { margin-bottom: 40px; }
.section__eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
}
.section__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--accent);
}
.section__lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: justify;
}

/* ---------------- Le logement ---------------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.about__text p { margin: 0 0 18px; font-size: 1.06rem; text-align: justify; }
.about__text p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  /* Centrage vertical : quand une case de la rangée est plus haute (la plaque),
     les autres s'étirent — leur contenu reste ainsi centré au lieu de coller en haut. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.fact__num {
  display: block;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.fact__label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.section--tint .fact { background: var(--bg); }

/* Case « panonceau Meublé de tourisme » : même carte que les autres facts,
   plaque officielle centrée à l'intérieur (le liseré blanc du PNG se fond
   dans le fond clair de la carte). */
.fact--plaque { padding: 8px; }
.fact--plaque img { width: 100%; max-width: 118px; height: auto; }

/* Note étoilée (case « note Airbnb ») : deux rangées d'étoiles superposées.
   La rangée pleine (laiton) est rognée à la largeur voulue par main.js, d'après
   le chiffre affiché — une seule source de vérité, aucun doublon à maintenir. */
.rating {
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--line);          /* étoiles vides */
}
.rating::before { content: "\2605\2605\2605\2605\2605"; }
.rating__fill {
  position: absolute;
  inset: 0;
  width: 0;                    /* défini par JS d'après la note */
  overflow: hidden;
  white-space: nowrap;
  color: var(--brass);         /* étoiles pleines (laiton doré) */
}
.rating__fill::before { content: "\2605\2605\2605\2605\2605"; }
.fact--rating .fact__num { font-size: 1.9rem; }

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 22px;
  list-style: none;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.amenity { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.amenity__ico {
  font-size: 1.3rem;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(47, 74, 60, 0.07);
  border-radius: 50%;
  flex: none;
}

/* Ligne d'information accessibilité, discrète, sous les équipements */
.accessibility {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.accessibility__ico {
  font-size: 1.1rem;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(47, 74, 60, 0.07);
  border-radius: 50%;
  flex: none;
  color: var(--accent);
}
.accessibility strong { color: var(--ink); font-weight: 600; }

/* ---------------- Hébergements (unités) ---------------- */

.units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}
.unit {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.unit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.unit__media { position: relative; aspect-ratio: 3 / 2; background: var(--line-soft); }
.unit__media img { width: 100%; height: 100%; object-fit: cover; }
.unit__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
}

.unit__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.unit__name {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--accent);
}
.unit__desc { margin: 0 0 16px; color: var(--muted); font-size: 0.98rem; }
.unit__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.unit__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.unit__features li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.unit__cta { margin-top: auto; align-self: flex-start; }

/* Bandeau « tout réunir » */
.combined {
  margin-top: clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent);
  color: #f3efe7;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.combined__text { max-width: 60ch; }
.combined__title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.combined__desc { margin: 0; color: #d9e2db; }
.combined .btn--primary {
  background: #f0e3c8;
  color: var(--accent);
  flex: none;
}
.combined .btn--primary:hover { background: #fff; }

/* ---------------- Galerie ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
/* Première image en grand */
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.noscript-note { color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 20, 17, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__caption {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: #f3efe7;
  font-size: 0.95rem;
  padding: 0 20px;
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,0.24); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------------- Localisation ---------------- */
.location {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.location__map { position: relative; }
#map {
  height: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--line-soft);
  z-index: 0;
}
/* Marqueur « maison » du gîte (divIcon Leaflet) */
/* Libellé permanent du gîte, au-dessus de son cercle. Repère principal :
   pastille verte pleine (accent) avec une flèche pointant vers le cercle. */
.leaflet-tooltip.gite-label {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}
.leaflet-tooltip.gite-label.leaflet-tooltip-right::before { border-right-color: var(--accent); }
/* Toute la pastille est cliquable : l'ancre remplit la puce et hérite du blanc. */
.leaflet-tooltip.gite-label a {
  display: block;
  margin: -4px -11px;
  padding: 4px 11px;
  color: inherit;
  text-decoration: none;
}
.leaflet-tooltip.gite-label { cursor: pointer; }

.map-popup { font-family: var(--font-body); text-align: center; }
.map-popup strong { display: block; margin-bottom: 3px; color: var(--ink); }
.map-popup a { color: var(--accent); font-weight: 600; text-decoration: none; }
.map-popup a:hover { text-decoration: underline; }

/* Libellé permanent « Centre-ville » au-dessus du cercle du centre-ville. */
.leaflet-tooltip.city-label {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.leaflet-tooltip.city-label::before { display: none; } /* pas de flèche */

/* Liens vers Google Maps dans la liste des recommandations. */
.tips__link { color: var(--accent); text-decoration: none; }
.tips__link:hover { text-decoration: underline; }

.location__intro { margin: 0 0 20px; font-size: 1.08rem; color: var(--ink); }
.tips { list-style: none; margin: 0; padding: 0; }
.tips li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tips li:last-child { border-bottom: none; }
.tips__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 3px;
}
/* Pastille colorée devant chaque catégorie : même couleur que les pins de la
   carte, injectée par renderTips() dans la variable --dot (défaut : brass). */
.tips__label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--dot, var(--brass));
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

/* ---------------- Contact / formulaire ---------------- */
.contact { max-width: 720px; margin-inline: auto; }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.section--tint .form { background: var(--bg); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: block; margin-bottom: 18px; }
.form__field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.form__field em { color: var(--muted); font-weight: 400; font-style: normal; }

.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(47, 74, 60, 0.12);
}
.form textarea { resize: vertical; }

/* Honeypot : masqué à l'humain */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.form__status {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
}
.form__status.is-success { background: rgba(47, 74, 60, 0.1); color: var(--accent); }
.form__status.is-error   { background: rgba(176, 82, 60, 0.12); color: #9a3d29; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--accent);
  color: #f3efe7;
  padding: 48px 0 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { font-family: var(--font-title); font-size: 1.3rem; margin: 0; }
.footer__place {
  margin: 4px 0 0;
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d8c79c;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: #f3efe7; text-decoration: none; opacity: 0.9; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__note {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 20px clamp(18px, 5vw, 40px) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #c9d4cd;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  /* Nav devient un panneau latéral piloté par la checkbox */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    cursor: pointer;
  }
  .burger span {
    display: block; width: 24px; height: 2.5px;
    background: var(--accent); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 320px; height: 100%;
    background: var(--surface);
    box-shadow: -6px 0 30px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    padding-top: 84px;
    overflow-y: auto;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 15px 26px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
  }
  .nav__cta { margin: 18px 26px; text-align: center; }

  .nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 55;
  }
  .nav-toggle:checked ~ .topbar .nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-overlay { opacity: 1; visibility: visible; }
  .nav-toggle:checked ~ .topbar .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .topbar .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .topbar .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .gallery__item img, .btn, .nav { transition: none; }
}
