:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-deep: #02050b;
  --navy: #07111f;
  --navy-2: #0d1b2e;
  --surface: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c2d0;
  --gold: #f2b840;
  --gold-2: #ffd978;
  --green: #25d366;
  --radius: 8px;
  --container: min(1140px, calc(100vw - 40px));
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.intro-locking {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  pointer-events: none;
}

.site-intro.is-hidden {
  display: none;
}

.intro-panel {
  position: absolute;
  top: 0;
  width: 50.1%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 184, 64, 0.12), transparent 28%),
    linear-gradient(135deg, #02050b, #0a1628 62%, #02050b);
}

.intro-panel-left {
  left: 0;
  border-right: 1px solid rgba(242, 184, 64, 0.16);
}

.intro-panel-right {
  right: 0;
  border-left: 1px solid rgba(242, 184, 64, 0.16);
}

.intro-lock {
  position: relative;
  width: min(320px, 74vw);
  height: 190px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

.lock-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  transform: translate(-50%, -42%);
  fill: rgba(8, 17, 31, 0.92);
  stroke: var(--gold-2);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key-shape {
  position: absolute;
  left: -26%;
  top: 50%;
  width: 190px;
  transform: translateY(-42%);
  fill: none;
  stroke: var(--gold);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: key-unlock 2.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.site-intro:not(.is-hidden) .intro-panel-left {
  animation: open-left 0.82s cubic-bezier(0.77, 0, 0.18, 1) 1.88s forwards;
}

.site-intro:not(.is-hidden) .intro-panel-right {
  animation: open-right 0.82s cubic-bezier(0.77, 0, 0.18, 1) 1.88s forwards;
}

.site-intro:not(.is-hidden) .intro-lock {
  animation: lock-fade 0.5s ease 1.85s forwards;
}

@keyframes key-unlock {
  0% {
    transform: translate(-26%, -42%) rotate(0deg);
  }
  56% {
    transform: translate(38%, -42%) rotate(0deg);
  }
  78%,
  100% {
    transform: translate(38%, -42%) rotate(24deg);
  }
}

@keyframes open-left {
  to {
    transform: translateX(-102%);
  }
}

@keyframes open-right {
  to {
    transform: translateX(102%);
  }
}

@keyframes lock-fade {
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding: 14px max(20px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 184, 64, 0.48);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(242, 184, 64, 0.2), rgba(255, 255, 255, 0.04));
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #dce4ef;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-2);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #161006;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(242, 184, 64, 0.22);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 6, 13, 0.96) 0%, rgba(5, 9, 20, 0.88) 38%, rgba(5, 9, 20, 0.46) 70%, rgba(3, 6, 13, 0.7) 100%),
    linear-gradient(0deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.08) 46%, rgba(5, 9, 20, 0.68) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(280px, 380px);
  gap: 56px;
  align-items: center;
  padding: 58px 0;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--gold-2);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.12;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: #d8e0ec;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #151006;
  box-shadow: 0 20px 42px rgba(242, 184, 64, 0.25);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-dark {
  background: #050914;
  color: var(--gold-2);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-dark-outline {
  background: rgba(5, 9, 20, 0.13);
  color: #100d08;
  border-color: rgba(5, 9, 20, 0.26);
}

.hero-phone {
  display: inline-block;
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  line-height: 1;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 6, 13, 0.62);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  height: 260px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-card div {
  padding: 20px;
}

.hero-card strong {
  display: block;
}

.hero-card strong {
  color: var(--gold-2);
  font-size: 20px;
  line-height: 1.18;
}

.service-strip {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: #07111f;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-grid a {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5fb;
  font-weight: 900;
  text-align: center;
}

.strip-grid a:last-child {
  border-right: 0;
}

.section {
  padding: 86px 0;
}

.services {
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 184, 64, 0.1), transparent 26%),
    linear-gradient(180deg, #050914 0%, #07111f 100%);
}

.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 54px;
  align-items: start;
}

.section-heading h2,
.area h2,
.emergency h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.area p,
.emergency p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-list article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.service-list span {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 950;
}

.service-list h3 {
  margin: 20px 0 0;
  font-size: 22px;
  line-height: 1.12;
}

.service-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.area {
  background: #050914;
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(242, 184, 64, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fafc;
  font-weight: 850;
}

.emergency {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background: linear-gradient(135deg, var(--gold), #ffd978);
  color: #100d08;
}

.emergency::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 54%, rgba(255, 255, 255, 0.28) 54% 64%, transparent 64%);
  opacity: 0.75;
}

.emergency-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.emergency p {
  max-width: 720px;
  color: #30230b;
  font-size: 18px;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 34px 0 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #02050b;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--gold-2);
  font-weight: 950;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: 210px;
}

.floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.floating-contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.float-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #130f08;
}

.float-whatsapp {
  background: var(--green);
  color: #032411;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .hero-grid,
  .compact-grid,
  .area-grid,
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
    padding: 70px 0 60px;
  }

  .hero-card {
    max-width: 440px;
  }

  .emergency-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --container: min(100vw - 28px, 1140px);
    --header-h: 70px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
  }

  .header-call {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 6, 13, 0.94) 0%, rgba(5, 9, 20, 0.82) 62%, rgba(5, 9, 20, 0.62) 100%),
      linear-gradient(0deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.1) 48%, rgba(5, 9, 20, 0.72) 100%);
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero-subtitle {
    font-size: 23px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions .btn,
  .emergency-actions .btn {
    width: 100%;
  }

  .hero-phone {
    width: 100%;
    text-align: center;
    font-size: clamp(29px, 9vw, 40px);
  }

  .hero-card {
    display: none;
  }

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

  .strip-grid a {
    min-height: 62px;
    padding: 12px;
    font-size: 14px;
  }

  .section {
    padding: 68px 0;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .area-tags span {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .footer-grid {
    display: grid;
  }

  .floating-contact {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 8px;
  }

  .floating-contact a {
    min-height: 56px;
    padding: 0 10px;
    font-size: 13px;
  }

  .float-whatsapp span {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .header-call {
    font-size: 12px;
  }

  .floating-contact a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
