*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  padding-bottom: 40px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -1; }
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 150px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .9) 0%, rgba(14, 17, 22, .55) 50%, rgba(14, 17, 22, .1) 100%),
    linear-gradient(0deg, rgba(14, 17, 22, .95) 0%, rgba(14, 17, 22, 0) 60%);
}
.hero__content { position: relative; }
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}
.hero__title::after { content: "."; color: var(--accent-bright); }
.hero__text {
  max-width: 640px;
  margin: 0;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55;
  color: #d5d9df;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__controls { display: flex; align-items: center; gap: 14px; }
.hero__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hero__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .2s ease;
}
.hero__dot.is-active::before { background: var(--accent-bright); }

.home-intro { padding: var(--section) 0; }
.home-intro__lead {
  max-width: 1040px;
  margin: 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 4px solid var(--accent);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
}

.home-services { padding: var(--section) 0; background: var(--surface-2); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.service-tile:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow); }
.service-tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.service-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-tile:hover .service-tile__media img { transform: scale(1.05); }
.service-tile__num {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 17, 22, .75);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.service-tile__body { padding: 24px; }
.service-tile__body h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.service-tile__body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

.home-license { padding: var(--section) 0; }
.home-license__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-license__doc {
  margin: 0;
  padding: clamp(16px, 2vw, 28px);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  transform: rotate(-2deg);
}
.home-license__doc img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.home-license__text h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.home-license__text p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--muted); }

.home-clients { padding: var(--section) 0; background: var(--surface-2); overflow: hidden; }
.home-clients .slider-container { border-color: var(--surface-3); }

.home-cta {
  padding: clamp(64px, 9vw, 112px) 0;
  background: radial-gradient(ellipse 55% 90% at 100% 0%, rgba(249, 115, 22, .26), transparent 70%), var(--ink);
  color: #fff;
}
.home-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.home-cta h2 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
.home-cta p { margin: 0; max-width: 560px; font-size: 19px; color: var(--on-dark-muted); }
.home-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero { min-height: 640px; padding-bottom: 28px; }
  .hero__slide { padding-bottom: 200px; }
  .hero__bar { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { flex: 1; }
  .hero__controls { justify-content: space-between; }
  .home-license__grid { grid-template-columns: 1fr; }
  .home-license__doc { max-width: 420px; transform: none; }
}
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.home-clients .logo-marquee__track { background: var(--surface-2); }
