/* Ремонт на покриви — minimal responsive */
:root {
  --font: "DM Sans", system-ui, sans-serif;
  --accent: #c45c26;
  --accent-hover: #a34a1e;
  --accent-glow: rgba(196, 92, 38, 0.35);
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --transition: 0.25s ease;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-3d: 0 20px 50px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] {
  --bg: #e8e6e1;
  --bg-elevated: #ffffff;
  --bg-section: #f3f1ec;
  --text: #0f1724;
  --text-muted: #3d4f63;
  --border: rgba(15, 23, 36, 0.14);
  --header-bg: rgba(232, 230, 225, 0.95);
  --overlay: linear-gradient(135deg, rgba(10, 18, 30, 0.82) 0%, rgba(10, 18, 30, 0.55) 100%);
  --card-bg: #ffffff;
  --card-shadow: 0 12px 40px rgba(15, 23, 36, 0.1);
  --title-weight: 700;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-elevated: #1a2332;
  --text: #f0f2f5;
  --text-muted: #9aa8b8;
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(15, 20, 25, 0.94);
  --overlay: linear-gradient(135deg, rgba(5, 10, 18, 0.88) 0%, rgba(5, 10, 18, 0.6) 100%);
  --card-bg: #1a2332;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

body.mobile-nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(10, 16, 24, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1120px, 92vw);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform var(--transition);
}

.header__brand:hover .header__logo { transform: scale(1.05); }

.header__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  max-width: 140px;
  line-height: 1.2;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-active span:nth-child(2) { opacity: 0; }
.header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__menu a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.header__menu a:hover,
.header__menu a.is-active {
  color: var(--accent);
  background: var(--accent-glow);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-select__input {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.theme-toggle:hover { transform: rotate(15deg); border-color: var(--accent); }

.theme-toggle__icon { width: 18px; height: 18px; }

[data-theme="light"] .theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover { background: var(--accent); color: #fff; }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn--whatsapp:hover { filter: brightness(1.08); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: 0;
  overflow: hidden;
}

.hero__slider {
  position: relative;
  width: 100%;
  height: 100svh;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__bg--pos-mid {
  object-position: center 38%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 24, 0.35) 0%,
    rgba(10, 16, 24, 0.5) 50%,
    rgba(10, 16, 24, 0.68) 100%
  );
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(4rem, 12vh, 7rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #fff;
  max-width: 42ch;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.hero__arrow:hover { background: var(--accent); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }

/* Trust strip */
.trust-strip {
  padding: 2rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-card {
  text-align: center;
  padding: 1.25rem 1rem;
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.trust-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trust-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3D Cards */
.card-3d {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

[data-theme="light"] .card-3d {
  box-shadow: var(--card-shadow, 0 12px 40px rgba(15, 23, 36, 0.1));
  border-color: rgba(15, 23, 36, 0.08);
}

.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: var(--shadow-3d);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}

[data-theme="light"] .section__title {
  color: #0a1018;
}

[data-theme="light"] .section__desc,
[data-theme="light"] .about__content p,
[data-theme="light"] .service-card li,
[data-theme="light"] .testimonial p {
  color: #3a4d62;
}

.section__desc {
  color: var(--text-muted);
  max-width: 50ch;
}

.section__header {
  margin-bottom: 2.5rem;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3d);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about__content .btn { margin-top: 0.5rem; }

/* Services */
.services { background: var(--bg-elevated); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
}

.service-card__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Offer / реклама */
.offer__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.offer-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.offer-card--reverse { direction: rtl; }
.offer-card--reverse > * { direction: ltr; }

.offer-card__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.offer-card__body {
  padding: 2rem;
}

.offer-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.offer-card__body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.offer-card__phones {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.offer-card__phones a {
  color: var(--accent);
}

.offer-card__phones a:hover { text-decoration: underline; }

/* 3D Stats */
.stats-3d {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, #8b3d1a 100%);
}

.stats-3d__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-cube {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: perspective(600px) rotateX(8deg);
  transition: transform 0.4s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.stat-cube:hover {
  transform: perspective(600px) rotateX(0deg) translateY(-8px);
}

.stat-cube__num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-cube__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  padding: 1.5rem;
}

.testimonial p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact__box {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem);
  max-width: 640px;
  margin-inline: auto;
}

.contact__box h2 { margin-bottom: 0.75rem; }

.contact__box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 1rem 0 0.65rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 1.5rem;
  padding-bottom: 0.65rem;
}

.footer__brand-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
}

.footer__brand-name {
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--text);
  max-width: 10rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.footer__nav,
.footer__legal {
  flex: 1 1 12rem;
  min-width: 0;
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.footer__nav ul,
.footer__legal ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav li,
.footer__legal li {
  margin: 0;
}

.footer__nav a,
.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.footer__nav a:hover,
.footer__legal a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAB stack */
.fab-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.fab-stack > * {
  pointer-events: auto;
}

.fab-scroll-top,
.fab-whatsapp {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s, visibility 0.3s;
  flex-shrink: 0;
}

.fab-scroll-top {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

.fab-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-scroll-top:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.fab-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.fab-whatsapp:hover { transform: scale(1.06); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 900px) {
  .header {
    overflow: visible;
  }

  .header__inner {
    position: relative;
    z-index: 1003;
  }

  .header__toggle {
    display: flex;
    position: relative;
    z-index: 1004;
  }

  .header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .header__inner.container {
    width: 100%;
    max-width: 100%;
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  .header__nav {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--header-h) + 0.75rem) 1.25rem max(1rem, env(safe-area-inset-bottom));
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    overflow: hidden;
    z-index: 13050;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
  }

  body.mobile-nav-open .hero,
  body.mobile-nav-open .hero__slider,
  body.mobile-nav-open .hero__slide {
    opacity: 0.22 !important;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  body.mobile-nav-open::before {
    z-index: 13040;
  }

  body.mobile-nav-open .header {
    z-index: 13060;
  }

  body.mobile-nav-open .header__inner,
  body.mobile-nav-open .header__toggle,
  body.mobile-nav-open .header__actions {
    z-index: 13070;
    position: relative;
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    flex: 0 1 auto;
    max-height: calc(100dvh - var(--header-h) - 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .header__menu li {
    display: block;
    width: 100%;
    flex-shrink: 0;
  }

  .header__menu a {
    display: block;
    padding: 0.55rem 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .header__cta-mobile {
    margin-top: 0.5rem;
    flex-shrink: 0;
  }

  .header__cta-mobile .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .header__actions {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    z-index: 1004;
    flex-shrink: 0;
  }

  .header__nav {
    justify-content: flex-start;
    flex: none;
  }

  .header__name { display: none; }

  .scroll-hint__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    font-size: 1.85rem;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    animation: scrollHintNudge 1.6s ease-in-out infinite;
  }

  .trust-strip__grid,
  .stats-3d__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .about__grid,
  .services__grid,
  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-card--reverse { direction: ltr; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .hero__arrow { display: none; }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  .section,
  .hero,
  .trust-strip,
  .footer,
  .consulta__wrap,
  .offer-minimal {
    max-width: 100%;
    overflow-x: hidden;
  }

  .h-carousel {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .h-carousel__viewport {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    touch-action: pan-x;
  }

  .h-carousel__slide img,
  .gallery .h-carousel__slide img {
    width: min(280px, calc(100vw - 2.5rem));
    max-width: 100%;
  }

  .testimonial.h-carousel__slide {
    width: min(300px, calc(100vw - 2.5rem));
    max-width: 100%;
  }

  .services-carousel-3d {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    perspective: none;
    height: auto;
    min-height: 300px;
    padding-inline: 0;
  }

  .service-card--slide {
    width: min(100%, calc(100vw - 2rem));
    max-width: 100%;
  }

  .service-card--slide[data-pos="-1"],
  .service-card--slide[data-pos="1"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.92) !important;
  }

  .service-card--slide.is-center,
  .service-card--slide[data-pos="0"] {
    transform: none !important;
    position: relative;
    left: auto;
    right: auto;
  }

  .stat-cube,
  .stat-cube:hover {
    transform: none !important;
  }

  .card-3d:hover {
    transform: none !important;
  }

  .anim-section,
  .anim-section.is-animated,
  .anim-trust,
  .anim-about,
  .anim-services,
  .anim-offer,
  .anim-consulta,
  .anim-stats,
  .anim-gallery,
  .anim-testimonials,
  .anim-contact {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .fab-stack {
    z-index: 1050;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body.mobile-nav-open .fab-stack {
    z-index: 1000;
  }

  .header__toggle {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .gallery .h-carousel__slide {
    cursor: pointer;
    touch-action: manipulation;
  }

  .lightbox {
    z-index: 12050;
    padding: 0.5rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .lightbox__dialog {
    width: 100%;
    max-width: 100%;
    gap: 0.25rem;
  }

  .lightbox__close {
    top: -2.25rem;
    right: 0.25rem;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.5rem;
  }

  .lightbox__img {
    max-width: 92vw;
    max-height: 78vh;
  }

  .lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; aspect-ratio: 4/3; }

  .contact__actions {
    flex-direction: column;
    width: 100%;
  }

  .contact__actions .btn { width: 100%; }
}

/* Header CTA */
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.header__cta { white-space: nowrap; flex-shrink: 0; }

.btn--call {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(26, 58, 92, 0.35);
}
.btn--call:hover { filter: brightness(1.1); }

/* Section backgrounds light */
[data-theme="light"] .services,
[data-theme="light"] .testimonials {
  background: var(--bg-section, #f3f1ec);
}

[data-theme="light"] .trust-strip {
  background: var(--bg-elevated);
  box-shadow: inset 0 -1px 0 var(--border);
}

/* Animaciones únicas por sección */
.anim-section {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-section.is-animated { opacity: 1; }

.anim-hero.is-animated { transform: none; }
.anim-trust { transform: translateY(30px); }
.anim-trust.is-animated { transform: translateY(0); }
.anim-about { transform: perspective(800px) rotateX(6deg) translateY(40px); }
.anim-about.is-animated { transform: perspective(800px) rotateX(0) translateY(0); }
.anim-services { transform: translateX(-40px) rotateY(8deg); }
.anim-services.is-animated { transform: translateX(0) rotateY(0); }
.anim-offer { transform: scale(0.96); }
.anim-offer.is-animated { transform: scale(1); }
.anim-consulta { transform: translateY(50px) scale(0.98); }
.anim-consulta.is-animated { transform: translateY(0) scale(1); }
.anim-stats { transform: skewY(2deg) translateY(24px); }
.anim-stats.is-animated { transform: skewY(0) translateY(0); }
.anim-gallery { transform: translateX(40px); }
.anim-gallery.is-animated { transform: translateX(0); }
.anim-testimonials { transform: rotate(-1deg) translateY(30px); }
.anim-testimonials.is-animated { transform: rotate(0) translateY(0); }
.anim-contact { transform: perspective(600px) translateZ(-40px) scale(0.95); }
.anim-contact.is-animated { transform: perspective(600px) translateZ(0) scale(1); }

/* Services 3D carousel */
.services-carousel-3d {
  position: relative;
  height: clamp(320px, 52vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.services-carousel-3d:active { cursor: grabbing; }

.service-card--slide {
  position: absolute;
  width: min(340px, 88vw);
  padding: 1.75rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease;
  transform: translateX(120%) scale(0.85) rotateY(-25deg);
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  z-index: 1;
}

.service-card--slide[data-pos="0"],
.service-card--slide.is-center {
  transform: translateX(0) scale(1) rotateY(0);
  opacity: 1;
  pointer-events: auto;
  filter: none;
  z-index: 3;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.service-card--slide[data-pos="-1"] {
  transform: translateX(-95%) scale(0.88) rotateY(18deg);
  opacity: 0.45;
  z-index: 2;
}

.service-card--slide[data-pos="1"] {
  transform: translateX(95%) scale(0.88) rotateY(-18deg);
  opacity: 0.45;
  z-index: 2;
}

[data-theme="light"] .service-card--slide.is-center {
  box-shadow: 0 28px 56px rgba(15, 23, 36, 0.14);
  border: 1px solid rgba(196, 92, 38, 0.2);
}

/* Offer minimal */
.offer-minimal__inner {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.offer-minimal__text {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.offer-minimal__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.offer-minimal__list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}

.offer-minimal__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Consulta — sección principal */
.consulta {
  padding: clamp(3.5rem, 10vw, 6rem) 0;
  background: linear-gradient(160deg, rgba(196, 92, 38, 0.08) 0%, transparent 50%),
    var(--bg);
}

[data-theme="light"] .consulta {
  background: linear-gradient(160deg, rgba(196, 92, 38, 0.12) 0%, #ebe8e2 100%);
}

.consulta__wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 2px solid var(--accent);
  box-shadow: 0 32px 80px rgba(196, 92, 38, 0.15), 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .consulta__wrap {
  border-color: rgba(196, 92, 38, 0.5);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.consulta__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.consulta__visual--single {
  display: block;
  max-width: min(100%, 420px);
  margin-inline: auto;
}

.consulta__visual--single .consulta__img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-lg);
  display: block;
}

.consulta__img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-3d);
}

.consulta__img--b { margin-top: 1.5rem; }

.consulta__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.consulta__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}

[data-theme="light"] .consulta__title { color: #0a1018; }

.consulta__desc {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.consulta__benefits {
  margin-bottom: 1.5rem;
}

.consulta__benefits li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-weight: 500;
  color: var(--text);
}

.consulta__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.consulta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consulta__phone-label {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll hint (below section text) */
.scroll-hint {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
}

.scroll-hint__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-elevated);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  animation: scrollHintNudge 1.6s ease-in-out infinite;
}

[data-theme="light"] .scroll-hint__arrow {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent-hover);
  box-shadow: 0 3px 14px rgba(163, 74, 30, 0.45);
}

@keyframes scrollHintNudge {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(10px); opacity: 1; }
}

/* Horizontal carousel */
.h-carousel {
  margin: 0 -4vw;
  padding: 0.5rem 0;
}

.h-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  cursor: grab;
  padding: 0.5rem 4vw 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.h-carousel__viewport img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.h-carousel__viewport::-webkit-scrollbar { display: none; }
.h-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.h-carousel__track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.h-carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
}

.h-carousel__slide img {
  width: min(280px, 75vw);
  height: min(220px, 50vw);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
}

.gallery .h-carousel {
  cursor: grab;
}

.gallery .h-carousel__viewport {
  cursor: grab;
}

.gallery .h-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.gallery .h-carousel__slide {
  cursor: grab;
}

.gallery .h-carousel__slide img {
  width: min(320px, 80vw);
  height: min(240px, 55vw);
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(96vw, 1120px);
  padding: 0 0.25rem;
}

.lightbox__frame {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  max-width: min(82vw, 960px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
  pointer-events: none;
  user-select: none;
}

.lightbox__close,
.lightbox__nav {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav {
  position: static;
  transform: none;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.85rem;
  line-height: 1;
}

@media (max-width: 540px) {
  .lightbox__dialog {
    gap: 0.2rem;
    padding: 0;
  }

  .lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.6rem;
  }

  .lightbox__img {
    max-width: 78vw;
    max-height: 75vh;
  }
}

.testimonial.h-carousel__slide {
  width: min(340px, 85vw);
  padding: 1.5rem;
  scroll-snap-align: center;
}

.testimonial.h-carousel__slide p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Contact destacado */
.contact__box {
  max-width: 720px;
  border: 2px solid var(--border);
  background: var(--card-bg);
}

[data-theme="light"] .contact__box {
  background: linear-gradient(180deg, #fff 0%, #f5f3ee 100%);
  border-color: rgba(26, 58, 92, 0.15);
  box-shadow: 0 24px 64px rgba(15, 23, 36, 0.12);
}

.contact__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact__phone {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__link {
  font-weight: 600;
  color: var(--accent);
}

/* no-op: fab uses whatsapp green */

.header__cta-mobile { display: none; }

@media (max-width: 900px) {
  .header__cta { display: none; }
  .header__cta-mobile { display: list-item; margin-top: 0.5rem; }
  .header__cta-mobile .btn { width: 100%; }
  .consulta__wrap { grid-template-columns: 1fr; }
  .consulta__visual { max-width: min(100%, 420px); margin-inline: auto; }
  .consulta__actions { flex-direction: column; }
  .consulta__actions .btn { width: 100%; }

  .footer__grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem 1.25rem;
    padding-bottom: 0.5rem;
  }

  .footer__brand-col {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .footer__nav,
  .footer__legal {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .footer__heading {
    margin-bottom: 0.25rem;
  }

  .footer__nav ul,
  .footer__legal ul {
    justify-content: flex-start;
    gap: 0.3rem 0.75rem;
  }

  .footer__bottom {
    padding-top: 0.5rem;
  }
}

/* Tablet refinements */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }

  .hero__subtitle {
    max-width: 100%;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  }

  .hero__content {
    padding-bottom: clamp(3.5rem, 14vh, 5rem);
  }

  .section__title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .section__desc,
  .about__content p,
  .offer-minimal__text {
    font-size: 0.95rem;
  }

  .services-carousel-3d {
    height: clamp(300px, 48vh, 380px);
  }

  .service-card--slide {
    width: min(320px, 92vw);
    padding: 1.35rem;
  }

  .offer-minimal__inner {
    padding: 1.5rem 1.25rem;
  }

  .consulta__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .stat-cube {
    padding: 1.35rem 0.85rem;
  }

  .fab-stack {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header__logo {
    width: 42px;
    height: 42px;
  }

  .header__actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lang-select__input {
    max-width: 7.5rem;
    font-size: 0.8rem;
  }

  .btn--cta {
    width: 100%;
    max-width: 20rem;
    text-align: center;
  }

  .hero__dots {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .trust-strip {
    padding: 1.25rem 0;
  }

  .trust-card {
    padding: 1rem 0.75rem;
  }

  .about__img {
    border-radius: var(--radius);
  }

  .section {
    padding: clamp(2.25rem, 7vw, 3.5rem) 0;
  }

  .contact__box {
    padding: 1.5rem 1.15rem;
  }

  .footer__logo {
    width: 40px;
    height: 40px;
  }

  .footer__brand-name {
    font-size: 0.95rem;
  }

  .footer__nav a,
  .footer__legal a {
    font-size: 0.85rem;
  }

  .h-carousel__slide {
    width: min(300px, 88vw);
  }

  .testimonial.h-carousel__slide {
    width: min(300px, 88vw);
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .anim-section { opacity: 1; transform: none !important; }
}
