/* =========================================================
   CAR — Car Detailing Studio
   Stylesheet shared by every page
   Theme: Black / Red, minimalist
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #181818;
  --black-4: #1f1f1f;
  --line: #2a2a2a;
  --line-soft: #202020;

  --red: #d7141a;
  --red-bright: #ef1f26;
  --red-dark: #8c0d11;

  --white: #f5f5f3;
  --muted: #a3a3a0;
  --muted-2: #6f6f6c;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-3xs: 0.4rem;
  --space-2xs: 0.7rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.25rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;

  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--white);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Scrollbars for horizontal carousels */
.scroll-row {
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) var(--black-3);
}
.scroll-row::-webkit-scrollbar {
  height: 6px;
}
.scroll-row::-webkit-scrollbar-track {
  background: var(--black-3);
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section-tight {
  padding-block: var(--space-xl);
}

.section-alt {
  background: var(--black-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head.center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-rule {
  width: 46px;
  height: 3px;
  background: var(--red);
  margin-bottom: var(--space-sm);
}

.section-head.center .section-rule {
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-lead {
  margin-top: var(--space-xs);
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 245, 243, 0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(245, 245, 243, 0.06);
  transform: translateY(-2px);
}

.btn-outline-red {
  background: transparent;
  color: var(--red-bright);
  border-color: var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.logo span {
  color: var(--red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

.nav-cta {
  padding: 0.7rem 1.5rem;
  font-size: 0.82rem;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 620;
}

.nav-toggle-label span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 10px; }
.nav-toggle-label span:nth-child(3) { top: 20px; }

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-group {
  display: inline-flex;
  align-items: center;
}

.marquee span.item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  padding-block: 0.65rem;
  padding-inline: 1.4rem;
  font-weight: 500;
}

.marquee span.item::after {
  content: "\2022";
  margin-left: 1.4rem;
  color: rgba(10, 10, 10, 0.45);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0.75) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--space-2xl) + 2rem) var(--space-xl);
  max-width: 760px;
  animation: fade-up 1s var(--ease) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  font-size: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  text-transform: uppercase;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-text {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
}

.hero-actions {
  margin-top: var(--space-md);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

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

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.98) 4%, rgba(10, 10, 10, 0.6) 55%, rgba(10, 10, 10, 0.78) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--space-2xl) + 1.5rem) var(--space-lg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-head);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--red-bright);
}

.breadcrumb span.sep {
  color: var(--muted-2);
}

.breadcrumb span.current {
  color: var(--red-bright);
}

.page-hero-title {
  font-size: clamp(2.3rem, 1.7rem + 2.8vw, 4rem);
  text-transform: uppercase;
  max-width: 760px;
}

.page-hero-text {
  margin-top: var(--space-xs);
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split-media:hover img {
  transform: scale(1.06);
}

.split-media::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(215, 20, 26, 0.55);
  pointer-events: none;
  z-index: 2;
}

.split-text p + p {
  margin-top: var(--space-xs);
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  color: var(--red);
  letter-spacing: 0.01em;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service / feature cards ---------- */
.card {
  background: var(--black-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 20, 26, 0.6);
  background: var(--black-3);
}

.service-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 20, 26, 0.6);
}

.service-card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-media img {
  transform: scale(1.08);
}

.service-card-body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.service-card-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.service-card-text {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.service-card-link {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.service-card-link .arrow {
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card-link .arrow {
  transform: translateX(5px);
}

/* Minimal text-only item card (used for long service/product lists) */
.item-card {
  border: 1px solid var(--line);
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  background: var(--black-2);
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}

.item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 20, 26, 0.5);
  background: var(--black-3);
}

.item-card:hover::before {
  width: 100%;
}

.item-card-index {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  display: block;
}

.item-card-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.item-card-text {
  color: var(--muted);
  font-size: 0.93rem;
}

.item-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: calc(var(--space-sm) * -1) calc(var(--space-sm) * -1) var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.item-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.item-card:hover .item-card-media img {
  transform: scale(1.07);
}

/* ---------- Why-us list ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.why-item {
  background: var(--black);
  padding: var(--space-md) var(--space-sm);
  transition: background-color 0.35s var(--ease);
}

.why-item:hover {
  background: var(--black-2);
}

.why-item-mark {
  width: 34px;
  height: 2px;
  background: var(--red);
  margin-bottom: var(--space-xs);
  transition: width 0.35s var(--ease);
}

.why-item:hover .why-item-mark {
  width: 56px;
}

.why-item-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.why-item-text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.process-step-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--black-4);
  -webkit-text-stroke: 1px var(--line);
  position: absolute;
  top: -0.4rem;
  right: 0;
  line-height: 1;
}

.process-step-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  margin-bottom: 0.5rem;
}

.process-step-text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Horizontal carousels ---------- */
.scroll-row {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.scroll-row > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.gallery-item {
  width: min(78vw, 420px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.82);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border-top: 2px solid var(--red);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-head);
  margin-top: var(--space-xs);
}

.scroll-hint .line {
  width: 36px;
  height: 1px;
  background: var(--muted-2);
  animation: hint-slide 1.8s var(--ease) infinite;
}

@keyframes hint-slide {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(10px); opacity: 1; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  width: min(86vw, 400px);
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.testimonial-card:hover {
  border-color: rgba(215, 20, 26, 0.55);
  transform: translateY(-6px);
}

.testimonial-stars {
  color: var(--red);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.testimonial-quote {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black-4);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--red-bright);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  transition: transform 0.3s var(--ease);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg) scale(0);
}

.faq-answer {
  padding-bottom: var(--space-sm);
  color: var(--muted);
  max-width: 68ch;
  font-size: 0.96rem;
}

/* ---------- Tabs (radio-driven, no JS) ---------- */
.tabs {
  border: 1px solid var(--line);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--black-2);
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-label {
  flex: 1 1 auto;
  text-align: center;
  padding: 1.1rem 1rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.tab-label:hover {
  color: var(--white);
}

.tab-input:checked + .tab-label {
  color: var(--white);
  border-color: var(--red);
  background: var(--black-3);
}

.tab-panel-wrap {
  position: relative;
}

.tab-panel {
  display: none;
  padding: var(--space-lg) var(--space-md);
  animation: fade-up 0.5s var(--ease) both;
}

.tabs:has(#tab-1:checked) #panel-1,
.tabs:has(#tab-2:checked) #panel-2,
.tabs:has(#tab-3:checked) #panel-3 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.tab-panel-media {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.tab-panel-list {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tab-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tab-panel-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--line);
  background: var(--black-2);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 20, 26, 0.6);
}

.pricing-card.featured {
  background: var(--black-3);
  border-color: var(--red);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: var(--space-sm);
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
}

.pricing-title {
  font-size: 1.3rem;
  text-transform: uppercase;
}

.pricing-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.pricing-price {
  margin-top: var(--space-sm);
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--red-bright);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-price .from {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

.pricing-features {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-features li::before {
  content: "";
  width: 14px;
  height: 8px;
  margin-top: 0.4rem;
  flex-shrink: 0;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.pricing-card .btn {
  margin-top: var(--space-sm);
  width: 100%;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.compare th,
table.compare td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

table.compare thead th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--black-2);
  color: var(--white);
  font-size: 0.82rem;
}

table.compare tbody th {
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-body);
}

table.compare td {
  color: var(--muted);
}

table.compare td.yes {
  color: var(--red-bright);
  font-family: var(--font-head);
}

table.compare tbody tr:hover {
  background: var(--black-2);
}

table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th {
  border-bottom: none;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  position: relative;
  overflow: hidden;
}

.cta-band-inner {
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-band-title {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  text-transform: uppercase;
  color: var(--black);
  max-width: 560px;
}

.cta-band .btn-outline {
  color: var(--black);
  border-color: var(--black);
}

.cta-band .btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-block: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand .logo {
  font-size: 1.8rem;
}

.footer-tagline {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-bright);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.footer-contact-item:hover .footer-icon {
  border-color: var(--red);
  background: rgba(215, 20, 26, 0.08);
}

.footer-contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  font-family: var(--font-head);
}

.footer-contact-value {
  font-size: 0.98rem;
  color: var(--white);
  margin-top: 0.15rem;
}

.footer-contact-item:hover .footer-contact-value {
  color: var(--red-bright);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--space-sm);
}

.footer-bottom p {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    height: 100vh;
    background: var(--black-2);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    gap: var(--space-lg);
  }

  .nav-toggle-input:checked ~ .nav-menu {
    transform: translateX(0);
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .nav-menu .nav-link {
    font-size: 1.3rem;
  }

  .nav-menu .nav-cta {
    display: inline-flex;
  }

  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
    order: 0;
  }

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

  .stats-row,
  .grid-3,
  .grid-4,
  .why-grid,
  .pricing-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs:has(#tab-1:checked) #panel-1,
  .tabs:has(#tab-2:checked) #panel-2,
  .tabs:has(#tab-3:checked) #panel-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --space-2xl: 5rem;
    --space-xl: 3.5rem;
  }

  .header-inner {
    height: 66px;
  }

  .hero {
    min-height: 92vh;
  }

  .stats-row,
  .grid-2,
  .grid-3,
  .grid-4,
  .why-grid,
  .pricing-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    gap: 1px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    gap: var(--space-sm);
    flex-direction: column;
  }

  table.compare {
    min-width: 560px;
  }
}
