/* ==========================================================
   Premium Detailing — Clean Stylesheet
   Rewritten from scratch: single definitions, consolidated
   media queries, design tokens, modular typography.
   ========================================================== */

/* --- 1. Design Tokens --- */
:root {
  --bg: #121212;
  --panel: #1a1a1a;
  --text: #f4f4f4;
  --muted: #a7abb4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffd13d;
  --accent-2: #f4d74a;
  --blue: #1b64ff;
  --radius-sm: 22px;
  --radius: 28px;
  --radius-lg: calc(var(--radius) + 10px);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.22);
}

/* --- 2. Reset & Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 191, 31, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(27, 100, 255, 0.18), transparent 26rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 26px 0 22px;
  font-size: clamp(54px, 5.1vw, 88px);
  line-height: 0.91;
  letter-spacing: -0.072em;
  max-width: 8.8ch;
}
h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

/* --- 3. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(255, 191, 31, 0.22);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.btn.wide { width: 100%; }

/* --- 4. Kickers & Tags --- */
.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 191, 31, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 900;
}

/* --- 5. Layout Shell --- */
.site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}
.section {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head p,
.service-card p {
  color: var(--muted);
  line-height: 1.55;
}
.demo-note {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}
.lead {
  color: var(--muted);
  line-height: 1.5;
  max-width: 640px;
  font-size: clamp(18px, 1.35vw, 23px);
}

/* --- 6. Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 12px max(24px, calc((100vw - 1560px) / 2 + 72px));
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  min-width: 190px;
}
.brand img { width: 145px; height: auto; }
.brand span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}
.nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 191, 31, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 0, rgba(255, 191, 31, 0.22), transparent 46%),
    linear-gradient(135deg, rgba(255, 191, 31, 0.18), rgba(27, 100, 255, 0.08));
  opacity: 0;
  transition: opacity 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 191, 31, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 191, 31, 0.06);
  transform: translateY(-3px);
}
.nav a:hover::before { opacity: 1; }
.nav a:hover::after { opacity: 1; transform: scaleX(1); }
.header-phone {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}
.demo-phone {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(255, 255, 255, 0.68);
  cursor: default;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* --- 7. Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.82fr);
  align-items: stretch;
  gap: clamp(30px, 3.6vw, 58px);
  min-height: auto;
  padding-top: clamp(44px, 5vw, 76px);
  padding-bottom: clamp(52px, 5vw, 86px);
}
.hero-copy {
  display: grid;
  align-content: start;
  align-self: center;
  max-width: 700px;
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 620px;
}
.trust-row div {
  position: relative;
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.trust-row div::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  width: 36px;
  height: 2px;
  background: rgba(255, 191, 31, 0.65);
}
.trust-row strong {
  display: block;
  color: var(--accent);
  font-size: 31px;
  line-height: 1;
}
.trust-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  justify-self: end;
  width: min(100%, 590px);
  max-width: 590px;
  margin-top: 42px;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, rgba(255, 191, 31, 0.24), rgba(27, 100, 255, 0.1));
  border-radius: calc(var(--radius) + 20px);
  filter: blur(18px);
  opacity: 0.5;
  z-index: -1;
}
.hero-media > img {
  flex: 1 1 auto;
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: center 48%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.02) brightness(0.95);
}
.hero-card {
  position: static;
  width: auto;
  max-width: none;
  padding: 14px 16px;
  padding-block: 15px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(14, 15, 18, 0.86), rgba(20, 22, 26, 0.78));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}
.hero-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 191, 31, 0));
}
.hero-card span {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.4;
}
.hero-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.hero-card-points li {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 750;
}

/* --- 8. Marquee --- */
.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0d0d0d;
}
.marquee div {
  display: flex;
  width: max-content;
  min-width: 220%;
  gap: clamp(24px, 3vw, 48px);
  padding: 18px 0;
  animation: 38s linear infinite marquee;
}
.marquee span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
  font-weight: 1000;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.05em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

/* --- 9. Split Section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.6vw, 30px);
  padding: clamp(28px, 3.4vw, 48px);
  width: min(1500px, calc(100% - clamp(32px, 6vw, 72px)));
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 191, 31, 0.09), rgba(27, 100, 255, 0.055) 42%, rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.018);
  box-shadow: var(--shadow-soft);
}
.split-copy {
  display: grid;
  grid-template-columns: minmax(390px, 0.72fr) minmax(620px, 1fr);
  align-items: stretch;
  gap: clamp(28px, 3vw, 48px);
}
.split-copy h2 {
  max-width: 10.3ch;
  font-size: clamp(40px, 4vw, 66px);
  line-height: 0.96;
}
.split-note {
  color: var(--muted);
  font-size: clamp(16px, 0.95vw, 18px);
  line-height: 1.48;
  margin: 0;
  max-width: none;
}
.split-aside {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
}
.split-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16/7;
  border-radius: var(--radius-sm);
}
.split-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.7));
}
.split-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 52% 50%;
  filter: saturate(0.92) brightness(0.88) contrast(1.04);
}
.split-photo div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}
.split-photo strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}
.split-photo span {
  display: block;
  max-width: 28ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

/* --- 10. Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  margin-top: 0;
}
.benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s, background 0.24s;
}
.benefit:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 191, 31, 0.44);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}
.benefit span {
  color: var(--accent);
  font-weight: 1000;
  font-size: 20px;
  line-height: 1;
}
.benefit h3 {
  margin: 18px 0 14px;
  font-size: clamp(23px, 1.8vw, 29px);
  line-height: 1.05;
  overflow-wrap: normal;
  hyphens: manual;
}
.benefit p {
  margin: 0;
  font-size: clamp(16px, 1vw, 17px);
  line-height: 1.55;
  overflow-wrap: normal;
}

/* --- 11. Services / Catalog --- */
.services { padding-bottom: 0; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
}
.tab {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.tab.active {
  color: #151515;
  background: var(--accent);
  border-color: var(--accent);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.22s, border-color 0.22s, opacity 0.2s, box-shadow 0.22s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.12) 100%);
  opacity: 0.95;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 191, 31, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-card {
  animation: cardEnter 0.3s ease-out forwards;
}
.service-card.hidden { display: none; }
.service-card > * { position: relative; z-index: 1; }
.service-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.9) contrast(1.04);
  transition: transform 0.25s, filter 0.25s;
}
.service-card:hover img {
  transform: scale(1.03);
  filter: saturate(0.96) brightness(0.94) contrast(1.05);
}
.service-card > div { padding: 18px; }
.service-card h3 {
  margin: 14px 0 10px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.service-card p {
  display: -webkit-box;
  min-height: 7.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.service-card strong {
  display: block;
  margin-top: 20px;
  font-size: 25px;
  color: var(--text);
}
.catalog-actions {
  display: none;
  justify-content: center;
  margin-top: 40px;
}
#show-more-btn {
  padding: 16px 42px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  border-radius: 99px;
  transition: background 0.2s, border-color 0.2s;
}
#show-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- 12. Packages --- */
.packages { padding-top: 16px; }
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.package-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s, background 0.24s;
}
.package-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 31, 0.18) 0, rgba(255, 191, 31, 0) 70%);
  opacity: 0;
  transition: opacity 0.24s, transform 0.24s;
  transform: scale(0.85);
  pointer-events: none;
}
.package-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 191, 31, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.package-card:hover::after { opacity: 1; transform: scale(1); }
.package-card.featured {
  background: linear-gradient(180deg, rgba(255, 191, 31, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 191, 31, 0.5);
  box-shadow: 0 30px 80px rgba(255, 191, 31, 0.08);
}
.package-card.featured:hover { box-shadow: 0 34px 90px rgba(255, 191, 31, 0.12); }
.package-card > span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.package-card h3 { overflow-wrap: anywhere; hyphens: auto; }
.package-card p { color: var(--muted); line-height: 1.55; }
.package-card strong {
  display: block;
  margin: 24px 0;
  font-size: 40px;
  letter-spacing: -0.04em;
}
.package-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}
.package-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent);
}

/* --- 13. Calculator --- */
.calculator { padding-top: 0; }
.calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.62fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(255, 191, 31, 0.15), rgba(27, 100, 255, 0.09)), var(--panel);
}
.calc-panel > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-panel .section-kicker { margin-bottom: 24px; }
.calc-panel h2 {
  margin: 0 0 28px;
  max-width: 11ch;
  font-size: clamp(44px, 5vw, 86px);
  line-height: 0.94;
}
.calc-panel > div:first-child > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.82);
  margin: 30px 0 0;
  max-width: 760px;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.45;
}
.lead-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.24);
}
.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  font: inherit;
}
.calc-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}
.calc-result strong { color: var(--accent); font-size: 28px; }
.lead-form small { color: #7e8491; }

/* --- 14. Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #222;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}
.gallery-item.large { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.gallery-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 3; grid-row: 2; }
.gallery-item:nth-child(4) { grid-column: 1; grid-row: 3; }
.gallery-item:nth-child(5) { grid-column: 2; grid-row: 3; }
.gallery-item.wide { grid-column: 3; grid-row: 3; }
.gallery-item.wide img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(5) img { object-position: center 52%; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.94) contrast(1.02);
  transition: transform 0.25s, filter 0.25s;
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(0.96) brightness(0.98) contrast(1.03);
}

/* --- 15. Process --- */
.process { padding-bottom: clamp(44px, 5vw, 72px); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.process-grid article {
  padding: 24px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s, background 0.24s;
}
.process-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 191, 31, 0.44);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}
.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #151515;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 1000;
  transition: transform 0.24s, box-shadow 0.24s;
}
.process-grid article:hover span {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(255, 191, 31, 0.22);
}
.process-grid h3 { margin: 16px 0 12px; overflow-wrap: anywhere; hyphens: auto; }
.process-grid p { color: rgba(255, 255, 255, 0.74); }

/* --- 16. Reviews --- */
.reviews { padding-bottom: clamp(44px, 5vw, 72px); }
.rating { text-align: right; }
.rating strong { display: block; font-size: 58px; line-height: 1; }
.rating span { color: #ffd400; letter-spacing: 0.05em; }
.rating small { display: block; color: var(--muted); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.review-card {
  padding: 24px;
  min-height: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s, background 0.24s;
}
.review-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 191, 31, 0.44);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}
.review-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.review-card strong { color: var(--text); }
.review-card span { color: #ffcd00; }
.review-card p { color: rgba(255, 255, 255, 0.74); }

/* --- 17. Contacts --- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) 1fr;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}
.contact-copy p { color: var(--muted); line-height: 1.55; }
.map-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #111;
}
.map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}
.map-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 12px 16px;
  color: #111;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

/* --- 18. Footer --- */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  width: min(1500px, calc(100% - 72px));
  margin-inline: auto;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 18px;
}
.footer img { display: none; }
.footer div:last-child {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

/* --- 19. Modal & Toast --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.86);
}
.modal.open { display: flex; }
.modal img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 50px;
  height: 50px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 34px;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 16px 20px;
  color: #111;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 900;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 180%);
  transition: transform 0.25s;
}
.toast.show {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================
   20. Responsive — consolidated media queries
   ========================================================== */

/* --- Large Desktop → Desktop --- */
@media (max-width: 1320px) {
  .nav { gap: 10px; }
  .nav a { min-height: 46px; padding-inline: 18px; }
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.86fr); }
  .hero-media { width: min(100%, 540px); max-width: 540px; margin-top: 40px; }
  .split-copy { grid-template-columns: minmax(350px, 0.72fr) minmax(560px, 1fr); }
}

/* --- Desktop → Tablet Landscape --- */
@media (max-width: 1180px) {
  .header { padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
  .hero,
  .split-copy,
  .calc-panel,
  .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-copy { max-width: none; }
  .hero-media {
    align-self: auto;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .hero-media > img {
    flex: none;
    height: auto;
    aspect-ratio: 4/3;
  }
  .hero-card { margin-top: 12px; }
  .split-copy h2,
  .split-note,
  .calc-panel h2 { max-width: none; }
  .split-photo { aspect-ratio: 16/8; }
  .split-aside { height: auto; }

  .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit { min-height: auto; }
}

/* --- Tablet Landscape → Tablet Portrait --- */
@media (max-width: 920px) {
  .header { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .header-phone,
  .nav { display: none; }
  .header.menu-open .nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    width: 100%;
    padding-top: 18px;
    gap: 10px;
  }
  .header.menu-open .nav a { width: fit-content; }
  .brand img { width: 150px; }
  .service-grid,
  .package-grid,
  .process-grid,
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { min-height: 0; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-item.large { grid-column: 1 / -1; grid-row: span 2; }
  .gallery-item.wide,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: auto; grid-row: auto; }
  .section-head { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer div:last-child { justify-items: start; }
}

/* --- Tablet → Mobile --- */
@media (max-width: 560px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .hero h1, h1 { max-width: none; font-size: clamp(42px, 13vw, 64px); }
  .hero-media > img { min-height: 380px; }
  .hero-card { position: static; width: auto; margin-top: 14px; max-width: none; }
  .hero-card-points li { font-size: 11px; }
  .btn { width: 100%; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .tab { white-space: nowrap; }
  .service-grid,
  .package-grid,
  .process-grid,
  .review-grid,
  .trust-row { grid-template-columns: 1fr; }
  .benefit span { grid-row: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.large,
  .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .contact-actions { display: grid; }
  .split-section { width: min(100% - 32px, 1500px); padding: clamp(24px, 6vw, 34px); }
  .split-copy h2 { max-width: none; font-size: clamp(38px, 12vw, 58px); }
  .split-photo { aspect-ratio: 4/3; }
  .split-photo,
  .split-photo img { min-height: 220px; }
  .lead { font-size: 17px; }
  .footer { width: min(100% - 32px, 1500px); }
}


/* Premium Detailing brand tune */
.brand img {
  width: clamp(180px, 12vw, 250px);
  height: auto;
}

.hero-media > img,
.split-photo img,
.work-card img,
.service-card__media img {
  object-position: center;
}

.split-photo {
  min-height: 300px;
}

.split-photo img {
  height: 100%;
}


.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 209, 61, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
