:root {
  --ink: #0b1f33;
  --muted: #5f6d7d;
  --paper: #ffffff;
  --mist: #f3f7fa;
  --line: #dce6ef;
  --blue: #06376d;
  --blue-2: #0c77b8;
  --red: #ef3e36;
  --shadow: 0 18px 48px rgba(6, 55, 109, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

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

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

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

.logo {
  align-items: center;
  display: flex;
}

.brand-logo {
  height: 58px;
  width: auto;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

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

.menu a:hover {
  background: #e9f3fa;
  color: var(--blue);
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100vh - 67px);
  padding: 22px clamp(16px, 4vw, 54px);
}

.hero-media {
  border-radius: 24px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

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

.hero-badge {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 260px;
  padding: 16px;
  position: absolute;
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  color: var(--blue);
  font-size: 24px;
}

.hero-badge span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.hero-content {
  align-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  padding: clamp(28px, 5vw, 60px);
}

.tag {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.9px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.subtitle {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 62, 54, 0.24);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--blue);
}

.quick-services {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(16px, 4vw, 54px) 20px;
}

.quick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  cursor: pointer;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-card:hover,
.quick-card.is-active {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.quick-card span,
.quick-card strong {
  display: block;
}

.quick-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.quick-card strong {
  font-size: 19px;
}

.service-preview {
  align-items: stretch;
  background: var(--blue);
  color: #fff;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  margin: 0 clamp(16px, 4vw, 54px) 20px;
  overflow: hidden;
  border-radius: 24px;
}

.preview-copy {
  align-content: center;
  display: grid;
  padding: clamp(26px, 5vw, 54px);
}

.preview-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.preview-copy .tag {
  color: #fff;
}

.service-preview img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  width: 100%;
}

.section {
  padding: clamp(36px, 6vw, 74px) clamp(16px, 4vw, 54px);
}

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

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

.service-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.service-list article:hover img {
  transform: scale(1.04);
}

.service-list article > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.service-list article > div {
  padding: 18px;
}

.service-list span {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.service-list p {
  font-size: 15px;
  margin-bottom: 0;
}

.photo-band {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
  padding: 0 clamp(16px, 4vw, 54px) 20px;
}

.photo-band img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.accordion-section {
  background: #fff;
}

.accordion {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.accordion-item {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
}

.accordion-item strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
}

.accordion-item span {
  color: var(--muted);
  display: none;
  line-height: 1.6;
  margin-top: 8px;
}

.accordion-item.is-open {
  background: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.accordion-item.is-open span {
  display: block;
}

.software {
  background: linear-gradient(135deg, var(--blue), #0b5394);
  padding: clamp(36px, 6vw, 74px) clamp(16px, 4vw, 54px);
}

.software-card {
  align-items: center;
  background: #fff;
  border-radius: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  padding: clamp(24px, 4vw, 42px);
}

.software-card img {
  justify-self: center;
}

.bbgo-link {
  display: block;
  justify-self: center;
}

.software-text h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.bbgo-logo {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 310px;
  width: 100%;
}

.contact {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(36px, 6vw, 74px) clamp(16px, 4vw, 54px);
}

.contact p {
  max-width: 700px;
}

.footer {
  align-items: center;
  background: #071727;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 54px);
}

.footer strong,
.footer span {
  display: block;
}

.footer span,
.footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  margin: 5px 0 0;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 14px 30px rgba(7, 23, 39, 0.24);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 54px;
  padding: 12px 16px;
  position: fixed;
  right: 18px;
  z-index: 40;
}

.whatsapp-float svg {
  fill: currentColor;
  height: 30px;
  width: 30px;
}

@media (max-width: 1080px) {
  .hero,
  .service-preview,
  .software-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 380px;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }

  .menu {
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .menu a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 10px;
  }

  .brand-logo {
    height: 48px;
  }

  h1 {
    font-size: 36px;
    line-height: 1;
  }

  h2 {
    font-size: 29px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero {
    padding-top: 16px;
    gap: 14px;
  }

  .hero-media {
    min-height: 250px;
  }

  .hero-content {
    border-radius: 18px;
    padding: 22px;
  }

  .hero-badge {
    bottom: 12px;
    left: 12px;
    padding: 12px;
  }

  .quick-card {
    min-height: 78px;
  }

  .service-preview {
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .service-preview img {
    min-height: 220px;
  }

  .section,
  .software,
  .contact {
    padding-bottom: 42px;
    padding-top: 42px;
  }

  .quick-services,
  .service-list,
  .photo-band {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 88px;
  }

  .whatsapp-float {
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 10px 13px;
    right: 14px;
  }

  .whatsapp-float span {
    display: none;
  }
}
