:root {
  --text-strong: #f8fafc;
  --text-main: rgba(248, 250, 252, 0.9);
  --text-muted: #94a3b8;
  --text-accent: #d6b25e;
  --accent: #caa22a;
  --base-font-size: 17px;
}

html {
  font-size: var(--base-font-size);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #f5f7fb;
  background:
    radial-gradient(
      900px 500px at 12% 18%,
      rgba(37, 99, 235, 0.16),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 88% 22%,
      rgba(214, 178, 94, 0.08),
      transparent 55%
    ),
    radial-gradient(
      1000px 700px at 50% 100%,
      rgba(15, 23, 42, 0.35),
      transparent 60%
    ),
    linear-gradient(180deg, #030712 0%, #040b18 45%, #020617 100%);
}

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-block {
  position: relative;
  padding: 1rem 0;
}

.section-block::before {
  content: '';
  position: absolute;
  inset: -20px 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      800px 280px at 18% 18%,
      rgba(37, 99, 235, 0.18),
      transparent 60%
    ),
    radial-gradient(
      600px 240px at 82% 10%,
      rgba(214, 178, 94, 0.1),
      transparent 55%
    );
  filter: blur(38px);
}

.section-block > .container {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b1220;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 22, 0.82) 0%,
    rgba(5, 8, 22, 0.62) 38%,
    rgba(5, 8, 22, 0.28) 65%,
    rgba(5, 8, 22, 0.18) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  max-width: 720px;
  text-align: left;
}

.hero-inner .brand,
.hero-inner .lead {
  -webkit-text-stroke: 0 transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.hero-inner h1 {
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.28);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-family: 'Times New Roman', Times, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  transform: skewX(-6deg);
  display: inline-block;
}

.lead {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

/* Headings */
h2,
.card h3,
.guarantee strong {
  color: var(--text-strong);
}

/* Shared floating cards */
.card,
.guarantee,
.contacts {
  position: relative;
  background: linear-gradient(180deg, #0a1b36 0%, #0d2346 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    0 12px 30px rgba(37, 99, 235, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card::after,
.guarantee::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  filter: blur(26px);
  background: rgba(37, 99, 235, 0.12);
  opacity: 0.45;
}

.card > *,
.guarantee > * {
  position: relative;
  z-index: 1;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 260px;
  padding: 2rem 1.6rem;
  border-radius: 18px;
  color: #f5f7fb;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 14px 34px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(202, 162, 42, 0.25);
}

.icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.icon svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
  display: block;
  color: var(--accent);
  fill: currentColor;
}

.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
}

.card p {
  margin: 0;
  max-width: 260px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  width: 100%;
  max-width: 260px;
  text-align: left;
  list-style: disc;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.18rem;
}

/* Guarantees */
.guarantees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.guarantee {
  min-height: 170px;
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.guarantee:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 14px 34px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(202, 162, 42, 0.2);
}

.guarantee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #d6b25e, rgba(214, 178, 94, 0.2));
  z-index: 1;
}

.guarantee p {
  color: var(--text-muted);
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.2rem;
  margin-top: 1.6rem;
  padding: 1.4rem;
  border-radius: 16px;
}

.contacts div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contacts a,
.contacts div:not(:has(a)) {
  font-size: 0.98rem;
  color: var(--text-strong);
}

.contacts a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacts a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  margin: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery */
#gallery-root {
  margin: 2rem auto;
  padding: 0 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

#gallery-modal .close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

#gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#gallery-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

#gallery-modal button {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 28px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
}

#gallery-modal .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#gallery-modal .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 992px) {
  .guarantees {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-video--mobile {
  display: none;
}

@media (max-width: 768px) {
}
@media (max-width: 768px) {
  .hero {
    min-height: 78vh;
    /* background: url('../truck-photo.png') center center / cover no-repeat; */
  }

  .hero-video--desktop {
    display: none;
  }

  .hero-video--mobile {
    display: block;
  }
  .hero-inner {
    display: flex;
    align-items: flex-end;
    min-height: 78vh;
    padding: 0 24px 40px;
  }

  .brand {
    max-width: 320px;
  }

  .eyebrow {
    margin: 0 0 14px;
    max-width: 280px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 12vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--text-strong);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .lead {
    margin-top: 18px;
    max-width: 290px;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-main);
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5, 8, 22, 0.1) 0%,
        rgba(5, 8, 22, 0.18) 28%,
        rgba(5, 8, 22, 0.38) 58%,
        rgba(5, 8, 22, 0.68) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 8, 22, 0.42) 0%,
        rgba(5, 8, 22, 0.18) 42%,
        rgba(5, 8, 22, 0.04) 100%
      );
  }

  .services {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    min-height: auto;
    padding: 1.5rem 1.25rem;
  }

  .card p,
  .card ul {
    max-width: 100%;
  }

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

  .guarantee {
    min-height: auto;
  }

  .contacts {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .section-block {
    padding: 1rem 0;
  }

  .section-block::before {
    inset: -10px 0;
    filter: blur(26px);
  }
}
