:root {
  --color-bg: #f7f8fc;
  --color-text: #101828;
  --color-muted: #475467;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-strong: rgba(255, 255, 255, 0.9);
  --color-brand: #4c81a6;
  --color-card: #070731;
  --color-blue: #0339f9;
  --color-brown: #9d472d;
  --shadow-card: 0 24px 45px rgba(7, 7, 49, 0.22);
  --shadow-panel: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(3, 57, 249, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(157, 71, 45, 0.18), transparent 30%),
    linear-gradient(180deg, #f7f8fc, #eef2f8);
}

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

button,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.ambient-blur {
  position: absolute;
  width: 38rem;
  aspect-ratio: 1155 / 678;
  filter: blur(64px);
  opacity: 0.32;
  z-index: 0;
}

.ambient-blur.one {
  top: -8rem;
  left: 50%;
  transform: translateX(-50%) rotate(24deg);
  background: linear-gradient(135deg, #111827, #0339f9);
  border-radius: 999px;
}

.ambient-blur.two {
  bottom: -10rem;
  right: -8rem;
  transform: rotate(20deg);
  background: linear-gradient(135deg, #111827, #9d472d);
  border-radius: 999px;
}

.app-layer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand picture,
.service-card picture,
.vehicle-card picture,
.panel-media picture,
.visual-frame picture {
  display: block;
}

.service-card picture,
.vehicle-card picture,
.panel-media picture,
.visual-frame picture {
  width: 100%;
}

.panel-media picture,
.visual-frame picture {
  height: 100%;
}

.brand-mark {
  width: 70px;
}

.brand-wordmark {
  width: 120px;
}

.header-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.page-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-fullscreen {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(207, 215, 230, 0.9);
  color: #1737b7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.cta-row,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-row.center,
.actions-row.center {
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 14px 24px rgba(76, 129, 166, 0.24);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid #cfd7e6;
}

.dark-page .btn-secondary {
  color: #f5f7fb;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  position: relative;
  min-height: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--color-card);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(7, 7, 49, 0.28);
}

.service-card-title {
  position: absolute;
  top: 1rem;
  left: 1rem;
  max-width: 70%;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-card img {
  width: 83.333333%;
  height: 170px;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  display: block;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.vehicle-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-strong);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14);
}

.vehicle-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-bottom: 0.5rem;
}

.vehicle-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.clothing-hero {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy visual"
    "stats visual";
  align-items: start;
}

.clothing-copy {
  grid-area: copy;
}

.clothing-stats {
  grid-area: stats;
  margin-top: 1.5rem;
}

.clothing-hero .visual-frame {
  grid-area: visual;
}

.panel-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #edf3ff);
  border: 1px solid #d8e0f0;
  overflow: hidden;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.result-media img {
  object-fit: contain;
  padding: 1.5rem;
}

.price-chip {
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d8e0f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

.subtitle-chip {
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d8e0f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.home-info {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.tone-select {
  margin-top: 1rem;
  background: #e5e7eb;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.fact-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.fact-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
}

.fact-icon.yellow { color: #facc15; }
.fact-icon.red { color: #dc2626; }
.fact-icon.blue { color: #1d4ed8; }
.fact-icon.green { color: #16a34a; }

.cookie-note,
.page-note,
.disclaimer {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cookie-note {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  font-style: italic;
}

.page-note {
  margin-top: 1.5rem;
  text-align: center;
}

.visual-frame {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
    linear-gradient(145deg, #141e3d, #1a274f 58%, #38211c);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
}

.visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rotating-word {
  display: inline-block;
  min-width: 8.8ch;
  white-space: nowrap;
  color: #8baaff;
  text-shadow: 0 0 24px rgba(139, 170, 255, 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rotating-word.is-changing {
  opacity: 0.25;
  transform: translateY(6px);
}

.title-compact {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.stats-grid,
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.stat-card,
.info-card {
  padding: 1.2rem 1.4rem;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #d8dfec;
  line-height: 1.7;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.info-card h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1.2rem;
}

.dark-page {
  color: #f5f7fb;
  background:
    radial-gradient(circle at top, rgba(76,129,166,0.22), transparent 34%),
    linear-gradient(180deg, #0d1328 0%, #111827 48%, #281a17 100%);
}

.dark-page .header-link,
.dark-page .hero-copy,
.dark-page .page-note {
  color: #d6def0;
}

.contact-card,
.fallback-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-panel);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .cards-grid,
  .stats-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }

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

  .clothing-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "stats";
  }

  .clothing-hero .visual-frame {
    width: 100%;
    min-height: 420px;
  }

  .clothing-stats {
    margin-top: 0;
  }

  .visual-frame {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .page-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10.5rem;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 32%,
      rgba(255, 255, 255, 0.72) 58%,
      rgba(255, 255, 255, 0.28) 82%,
      rgba(255, 255, 255, 0) 100%
    );
    z-index: 0;
    pointer-events: none;
  }

  .ambient-blur.one {
    top: -11rem;
    opacity: 0.1;
  }

  .site-header {
    padding: 0.9rem 1rem;
    background: transparent;
    backdrop-filter: none;
  }

  .brand {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

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

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

@media (max-width: 560px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .clothing-hero .visual-frame {
    min-height: 320px;
    border-radius: 26px;
  }
}
