:root {
  --gold: #f6a607;
  --graphite: #5b5b5b;
  --paper: #fefefe;
  --ink: #2b2a29;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

.site-logo {
  width: auto;
  height: 3rem;
  max-width: min(50vw, 12rem);
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.5rem;
    max-width: 14rem;
  }
}

.nav-link {
  position: relative;
  color: rgba(43, 42, 41, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
}

#siteHeader.is-scrolled {
  background: rgba(254, 254, 254, 0.88);
  box-shadow: 0 12px 38px rgba(43, 42, 41, 0.09);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-in-out;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.burger-button {
  position: relative;
}

.burger-button span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out, top 300ms ease-in-out;
}

.burger-button span:nth-child(1) {
  top: 14px;
}

.burger-button span:nth-child(2) {
  top: 21px;
}

.burger-button span:nth-child(3) {
  top: 28px;
}

.burger-button.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger-button.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-button.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 360ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-weight: 700;
  border: 1px solid rgba(43, 42, 41, 0.08);
  border-radius: 8px;
  background: rgba(254, 254, 254, 0.72);
}

.mobile-link:hover {
  color: var(--ink);
  border-color: rgba(246, 166, 7, 0.45);
  background: rgba(246, 166, 7, 0.12);
}

.hero-section {
  background-image:
    linear-gradient(90deg, rgba(15, 14, 13, 0.88) 0%, rgba(43, 42, 41, 0.58) 42%, rgba(43, 42, 41, 0.2) 100%),
    url("./assets/hero-logistics.png");
  background-position: center;
  background-size: cover;
}

.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 760ms ease forwards;
}

.hero-title {
  animation-delay: 120ms;
}

.hero-subtitle {
  animation-delay: 240ms;
}

.hero-actions {
  animation-delay: 360ms;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-cta {
  position: relative;
}

.pulse-cta::after {
  position: absolute;
  inset: -8px;
  content: "";
  border: 1px solid rgba(246, 166, 7, 0.6);
  border-radius: 10px;
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    opacity: 0.72;
    transform: scale(0.98);
  }

  70% {
    opacity: 0;
    transform: scale(1.08);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.section-spacing {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card,
.location-card {
  border-radius: 8px;
  transition: transform 300ms ease-in-out, border-color 300ms ease-in-out, box-shadow 300ms ease-in-out, background 300ms ease-in-out;
}

.service-card {
  min-height: 260px;
  padding: 1.4rem;
  border: 1px solid rgba(43, 42, 41, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 248, 0.94)),
    var(--paper);
  box-shadow: 0 14px 40px rgba(43, 42, 41, 0.07);
}

.service-card:hover,
.location-card:hover {
  transform: translateY(-7px);
  border-color: rgba(246, 166, 7, 0.58);
  box-shadow: 0 18px 52px rgba(246, 166, 7, 0.18);
}

.icon-box {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 8px;
  background: rgba(246, 166, 7, 0.16);
  transition: transform 300ms ease-in-out, background 300ms ease-in-out, color 300ms ease-in-out;
}

.service-card:hover .icon-box {
  color: var(--paper);
  background: var(--gold);
  transform: scale(1.06);
}

.service-card h3 {
  margin-top: 1.4rem;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
}

.service-card p {
  margin-top: 0.85rem;
  color: var(--graphite);
  line-height: 1.7;
}

.location-card {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  color: var(--ink);
  border: 1px solid rgba(43, 42, 41, 0.1);
  background: rgba(254, 254, 254, 0.86);
  box-shadow: 0 12px 30px rgba(43, 42, 41, 0.06);
}

.location-card svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.location-card span {
  font-size: 1rem;
  font-weight: 800;
}

.requisites {
  border-top: 1px solid rgba(254, 254, 254, 0.14);
}

.requisites div {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(254, 254, 254, 0.14);
}

.requisites dt {
  color: rgba(254, 254, 254, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.requisites dd {
  color: rgba(254, 254, 254, 0.92);
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-logo {
  border-radius: 2px;
  max-width: min(72vw, 14rem);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(254, 254, 254, 0.74);
}

.footer-link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.social-link {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: rgba(254, 254, 254, 0.84);
  border: 1px solid rgba(254, 254, 254, 0.12);
  border-radius: 8px;
  background: rgba(254, 254, 254, 0.06);
}

.social-link:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 38px rgba(246, 166, 7, 0.25);
}

@media (min-width: 768px) {
  .section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .requisites div {
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  .hero-section {
    background-position: 58% center;
  }

  .section-spacing {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .service-card {
    min-height: 230px;
    padding: 1.2rem;
  }
}

@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;
  }
}
