/* =====================================================================
   Construcciones y Reformas Toma Ilovan — Calpe
   Diseño cálido y profesional · 2026
   ===================================================================== */
:root {
  --brick: #9c3a25;
  --brick-dark: #7a2c1b;
  --amber: #e0922e;
  --amber-dark: #c5781d;
  --gold: #d9a441;
  --charcoal: #1d1a17;
  --charcoal-2: #2a2522;
  --stone: #faf6f1;
  --stone-2: #f1e9df;
  --line: #e4dace;
  --text: #322d28;
  --muted: #756a5e;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(29,26,23,.07);
  --shadow: 0 10px 34px rgba(29,26,23,.10);
  --shadow-lg: 0 24px 60px rgba(29,26,23,.18);
  --maxw: 1200px;
  --header-h: 86px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; line-height: 1.15;
  color: var(--charcoal); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .5em; }
h3 { font-size: 1.32rem; margin: 0 0 .4em; }
p { margin: 0 0 1.05em; }
a { color: var(--brick); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brick-dark); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--charcoal); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 700;
  color: var(--brick); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); display: inline-block; }
.eyebrow.center { justify-content: center; }

/* ===== Botones ===== */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55em; font-family: "Poppins", sans-serif;
  font-weight: 600; font-size: 1rem; padding: 15px 30px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; line-height: 1;
  text-align: center; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #fff;
  box-shadow: 0 10px 26px rgba(224,146,46,.4); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(224,146,46,.5); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--charcoal); }
.btn-brick { background: var(--brick); color: #fff; box-shadow: 0 10px 26px rgba(156,58,37,.32); }
.btn-brick:hover { background: var(--brick-dark); color: #fff; }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--charcoal); font-family: "Poppins", sans-serif; font-weight: 500; font-size: .96rem;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap; position: relative; }
.nav > a::after, .nav .has-sub > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:hover, .nav .has-sub:hover > a { color: var(--brick); }
.nav > a:hover::after, .nav a.active::after, .nav .has-sub:hover > a::after { transform: scaleX(1); }
.nav a.active { color: var(--brick); }
.nav .has-sub { position: relative; }
.nav .submenu { position: absolute; top: calc(100% + 6px); left: 0; background: #fff; min-width: 270px;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s; }
.nav .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .submenu a { padding: 11px 14px; border-radius: 8px; font-weight: 500; }
.nav .submenu a:hover { background: var(--stone); color: var(--brick); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 9px; font-family: "Poppins", sans-serif;
  font-weight: 700; color: var(--brick); font-size: 1.05rem; white-space: nowrap; }
.header-phone svg { flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { display: block; width: 27px; height: 3px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/villa.jpg") center/cover no-repeat;
  background-image: image-set(url("../img/villa.webp") type("image/webp"), url("../img/villa.jpg") type("image/jpeg"));
  animation: kenburns 22s ease-in-out infinite alternate; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(20,16,13,.85) 0%, rgba(20,16,13,.62) 45%, rgba(20,16,13,.35) 100%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: 1.3rem; max-width: 46ch; margin: 0 0 34px; color: #f1e8de; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 42px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.18); }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge .num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2rem; color: #fff; line-height: 1; }
.hero-badge .lbl { font-size: .9rem; color: #d9cdbf; margin-top: 6px; }

/* ===== Page hero (interiores) ===== */
.page-hero { position: relative; color: #fff; text-align: center; padding: 120px 0 84px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(20,16,13,.62), rgba(20,16,13,.78)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .breadcrumb { color: #e8dccd; font-size: .95rem; }
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero.bg-piscinas::before { background-image: url("../img/piscina-terminada.jpg");
  background-image: image-set(url("../img/piscina-terminada.webp") type("image/webp"), url("../img/piscina-terminada.jpg") type("image/jpeg")); }
.page-hero.bg-reformas::before { background-image: url("../img/alicatado.jpg");
  background-image: image-set(url("../img/alicatado.webp") type("image/webp"), url("../img/alicatado.jpg") type("image/jpeg")); }
.page-hero.bg-fachadas::before { background-image: url("../img/fachada.jpg");
  background-image: image-set(url("../img/fachada.webp") type("image/webp"), url("../img/fachada.jpg") type("image/jpeg")); }
.page-hero.bg-villa::before { background-image: url("../img/villa.jpg");
  background-image: image-set(url("../img/villa.webp") type("image/webp"), url("../img/villa.jpg") type("image/jpeg")); }
.page-hero.bg-sobre::before { background-image: url("../img/sobre-nosotros.jpg");
  background-image: image-set(url("../img/sobre-nosotros.webp") type("image/webp"), url("../img/sobre-nosotros.jpg") type("image/jpeg")); }
.page-hero.bg-muros::before { background-image: url("../img/galeria-4.jpg");
  background-image: image-set(url("../img/galeria-4.webp") type("image/webp"), url("../img/galeria-4.jpg") type("image/jpeg")); }
.page-hero.bg-tejados::before { background-image: url("../img/galeria-2.jpg");
  background-image: image-set(url("../img/galeria-2.webp") type("image/webp"), url("../img/galeria-2.jpg") type("image/jpeg")); }

/* ===== Secciones ===== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--stone); }
.section.dark { background: var(--charcoal); color: #d7cdc1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 730px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark .section-head p { color: #bcb1a4; }

/* ===== Split intro ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .media .tag { position: absolute; bottom: -22px; right: -10px; background: var(--brick); color: #fff;
  padding: 18px 26px; border-radius: 16px; box-shadow: var(--shadow); font-family: "Poppins", sans-serif; }
.split .media .tag b { display: block; font-size: 1.9rem; line-height: 1; }
.split .media .tag span { font-size: .85rem; opacity: .9; }
.split .text .muted { color: var(--muted); }

/* ===== Tarjetas de servicio ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card .card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { color: var(--charcoal); }
.card p { color: var(--muted); font-size: .99rem; flex: 1; margin-bottom: 16px; }
.card .card-link { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--brick); display: inline-flex;
  align-items: center; gap: 6px; }
.card .card-link svg { transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(5px); }

/* ===== Stats ===== */
.stats-band { background: var(--charcoal); }
.stats-band h2, .stats-band h3 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--amber); line-height: 1; }
.stat .lbl { color: #c8bdb0; margin-top: 8px; font-size: .98rem; }

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .n { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; width: 52px; height: 52px;
  border-radius: 50%; background: var(--stone-2); color: var(--brick); display: grid; place-items: center; margin-bottom: 16px;
  border: 2px solid var(--line); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ===== Features (iconos) ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico { width: 66px; height: 66px; border-radius: 18px; background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  color: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.7rem; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
  position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a::after { content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(29,26,23,.45); opacity: 0; transition: opacity .3s; }
.gallery a:hover img { transform: scale(1.1); }
.gallery a:hover::after { opacity: 1; }

/* ===== CTA band ===== */
.cta-band { position: relative; background: linear-gradient(120deg, var(--brick), var(--brick-dark)); color: #fff;
  text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("../img/villa.jpg");
  background-image: image-set(url("../img/villa.webp") type("image/webp"), url("../img/villa.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f4e6df; max-width: 52ch; margin: 0 auto 30px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Testimonios ===== */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 36px;
  box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 26px; font-family: Georgia, serif; font-size: 5rem;
  color: var(--stone-2); line-height: 1; }
.quote .stars { color: var(--amber); margin-bottom: 12px; letter-spacing: 3px; font-size: 1.05rem; }
.quote p { font-size: 1.08rem; color: var(--text); position: relative; z-index: 1; }
.quote .author { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--brick); }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px;
  overflow: hidden; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 1.08rem; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--brick); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--muted); }

/* ===== Prose (artículos) ===== */
.prose { max-width: 840px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; color: var(--brick); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: #fff; background: var(--amber);
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.prose .lead { font-size: 1.24rem; color: var(--muted); line-height: 1.6; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 28px 0; }
.info-box { background: var(--stone); border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); }
.info-box h3 { color: var(--brick); margin-top: 0; }
.info-box p { margin: 0; color: var(--muted); }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; }
.contact-info .ci-ico { flex: 0 0 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.contact-info .ci-item h3 { margin: 0 0 3px; font-size: 1.08rem; }
.contact-info .ci-item a, .contact-info .ci-item p { margin: 0; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form label { font-family: "Poppins", sans-serif; font-weight: 500; font-size: .94rem; display: block; margin-bottom: 7px; }
.form .field { margin-bottom: 20px; }
.form input, .form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--stone); transition: border .2s, background .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); background: #fff;
  box-shadow: 0 0 0 4px rgba(224,146,46,.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.form-status:empty { display: none; padding: 0; margin: 0; }
.form-status.ok { background: #e8f5ec; color: #1b7a43; border: 1px solid #b7e0c4; }
.form-status.err { background: #fcebe8; color: var(--brick); border: 1px solid #f1c9c0; }
.map-wrap { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-actions { text-align: center; margin-top: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: #b9aea1; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 { color: #fff; font-family: "Poppins", sans-serif; font-size: 1.12rem; margin-bottom: 18px; }
.site-footer a { color: #b9aea1; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { background: #fff; padding: 12px 16px; border-radius: 12px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 48px; width: auto; }
.footer-contact-line { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-line svg { flex: 0 0 auto; margin-top: 3px; color: var(--amber); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: #fff; transition: background .2s, transform .2s; }
.social a:hover { transform: translateY(-3px); }
.social a.wa:hover { background: #25d366; }
.social a.fb:hover { background: #1877f2; }
.social a.tel:hover { background: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 24px 0; text-align: center;
  font-size: .88rem; color: #8a7f73; }
.footer-bottom a { color: #8a7f73; }

/* ===== WhatsApp flotante ===== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .2s; animation: wapulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Página 404 ===== */
.error-page { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 14px; }
.error-page p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.error-page .hero-actions { justify-content: center; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  .wa-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cards, .features, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .nav { position: fixed; top: var(--header-h); right: 0; left: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 20px 28px; gap: 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .32s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; z-index: 105; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--stone-2); }
  .nav > a::after, .nav .has-sub > a::after { display: none; }
  .nav .submenu { position: static; display: flex; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .media .tag { right: 14px; }
  .testimonials, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 90vh; }
  .cards, .features, .steps, .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .header-phone span { display: none; }
  .hero-badges { gap: 20px; }
}
