:root {
  --ink: #061a3a;
  --blue: #0877df;
  --deep: #00346f;
  --sky: #eaf7ff;
  --muted: #5f6c7d;
  --line: #dce9f5;
  --green: #18b85b;
  --shadow: 0 24px 70px rgba(6, 26, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(8, 119, 223, 0.14), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(39, 191, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #ffffff, #f5fbff 46%, #ffffff);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(18px, 4vw, 60px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  line-height: 1.05;
}

.brand span {
  color: var(--deep);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a:hover {
  background: var(--sky);
  color: var(--deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phones {
  display: flex;
  gap: 8px;
}

.header-phones a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(8, 119, 223, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(6, 26, 58, 0.07);
}

.header-phones a:hover {
  border-color: rgba(24, 184, 91, 0.35);
  background: #f2fff8;
  color: #08783d;
  transform: translateY(-1px);
}

.header-phones span {
  display: inline-flex;
  height: 22px;
  min-width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
}

.language-switch button {
  display: inline-flex;
  min-width: 62px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.flag {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(6, 26, 58, 0.14);
}

.flag-mx {
  background: linear-gradient(90deg, #00843d 0 33.33%, #fff 33.33% 66.66%, #ce1126 66.66%);
}

.flag-mx::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #b6862c;
}

.flag-us {
  background:
    linear-gradient(180deg, #b22234 0 7.69%, #fff 7.69% 15.38%, #b22234 15.38% 23.07%, #fff 23.07% 30.76%, #b22234 30.76% 38.45%, #fff 38.45% 46.14%, #b22234 46.14% 53.83%, #fff 53.83% 61.52%, #b22234 61.52% 69.21%, #fff 69.21% 76.9%, #b22234 76.9% 84.59%, #fff 84.59% 92.28%, #b22234 92.28% 100%);
}

.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 8px;
  background: #3c3b6e;
}

.language-switch button.active {
  background: var(--deep);
  color: #fff;
}

.top-cta,
.primary-btn,
.secondary-btn,
.cta-band a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.top-cta,
.primary-btn,
.cta-band a {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 119, 223, 0.25);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
}

main,
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 54px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(40px, 5.8vw, 68px);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.price-card {
  width: min(390px, 100%);
  margin: 24px 0;
  border: 1px solid rgba(8, 119, 223, 0.2);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(8, 119, 223, 0.12), transparent 55%),
    #fff;
  box-shadow: var(--shadow);
}

.price-card span,
.price-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin: 4px 0;
  color: var(--blue);
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  margin-top: 20px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  position: absolute;
  inset: 18px -8px -8px 18px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(8, 119, 223, 0.2), rgba(39, 191, 255, 0.08));
  content: "";
}

.hero-media img,
.split-section img,
.gallery article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 30px 0;
}

.benefits article,
.faq details,
.split-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(6, 26, 58, 0.08);
}

.benefits article {
  padding: 24px;
}

.benefits span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
  font-weight: 950;
}

.benefits h2,
.split-section h2,
.gallery-section h2,
.faq h2,
.cta-band h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.benefits p,
.split-section p,
.gallery p,
.company-section p,
.lead-section p,
.faq p,
.cta-band p,
footer p {
  color: var(--muted);
  line-height: 1.6;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
  margin: 34px 0 42px;
  border: 1px solid rgba(8, 119, 223, 0.18);
  border-radius: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(8, 119, 223, 0.12), transparent 48%),
    #fff;
  box-shadow: 0 20px 54px rgba(6, 26, 58, 0.1);
}

.company-section h2,
.lead-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.company-grid article {
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 14px;
  background: #fff;
  text-align: center;
}

.company-grid strong {
  color: var(--blue);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 950;
  line-height: 1;
}

.company-grid span {
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  max-width: 150px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: center;
  margin: 42px 0;
  padding: 28px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--deep);
  font-weight: 800;
  line-height: 1.35;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  content: "✓";
}

.gallery-section,
.faq {
  padding: 36px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
}

.gallery-track {
  overflow: hidden;
  padding: 8px 2px 22px;
}

.gallery-card {
  flex: 0 0 clamp(230px, 28vw, 360px);
  overflow: hidden;
  border: 1px solid rgba(8, 119, 223, 0.14);
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 14px 34px rgba(6, 26, 58, 0.08);
}

.gallery-rail {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.gallery-rail.is-animated {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-image {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.gallery-image span {
  display: none;
}

.gallery-overlay {
  display: none;
}

.gallery-overlay strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.gallery-overlay small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-card > div:not(.gallery-image) {
  padding: 18px;
}

.gallery-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.gallery-control {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(6, 26, 58, 0.1);
}

.gallery-control:hover {
  background: var(--blue);
  color: #fff;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 42px 0;
  border-radius: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(8, 119, 223, 0.2), transparent 52%),
    var(--ink);
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.faq details {
  margin-bottom: 10px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  color: var(--deep);
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 42px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.quote-form textarea,
.quote-form button {
  grid-column: 1 / -1;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: rgba(8, 119, 223, 0.55);
  box-shadow: 0 0 0 4px rgba(8, 119, 223, 0.1);
}

.quote-form button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(8, 119, 223, 0.24);
}

footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px 98px;
  text-align: center;
}

footer strong {
  font-size: 22px;
}

footer a {
  color: var(--blue);
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(24, 184, 91, 0.36);
  animation: pulse 2.8s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  fill: currentColor;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(24, 184, 91, 0.36);
  }
  50% {
    box-shadow: 0 18px 42px rgba(24, 184, 91, 0.36), 0 0 0 11px rgba(24, 184, 91, 0.1);
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-phones {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-phones a {
    flex: 1 1 180px;
    justify-content: center;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-cta {
    width: 100%;
  }

  .language-switch {
    flex: 0 0 auto;
  }

  .hero,
  .split-section,
  .company-section,
  .lead-section,
  .benefits,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-track {
    grid-column: 1 / -1;
    order: -1;
  }

  .gallery-card {
    flex-basis: 76%;
  }

  .gallery-control {
    width: 100%;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-media {
    order: -1;
  }

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

  .quote-form {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    font-size: 21px;
  }

  h1 {
    font-size: 34px;
  }

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

  .price-card strong {
    font-size: 58px;
  }

  .hero-actions a {
    width: 100%;
  }

  .benefits article,
  .split-section,
  .cta-band {
    padding: 20px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0 16px;
    font-size: 14px;
  }
}
