:root {
  --blue: #0e4aa8;
  --blue-deep: #0a3680;
  --blue-soft: #e7effc;
  --yellow: #ffd100;
  --yellow-deep: #e6b800;
  --yellow-soft: #fff4b0;
  --red: #d3121a;
  --red-deep: #b00e14;
  --red-soft: #ffe3e4;
  --bg: #f4f7fb;
  --bg-warm: #e8eef7;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --ink: #122033;
  --muted: #4d5b70;
  --line: #d4deec;
  --header-ink: #ffffff;
  --success: #1f7a45;
  --error: #d3121a;
  --shadow: 0 16px 40px rgba(14, 74, 168, 0.1);
  --shadow-soft: 0 8px 22px rgba(18, 32, 51, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 78px;
  --max: 1160px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-warm: #101929;
  --surface: #152033;
  --surface-2: #1a2740;
  --ink: #f4f7fb;
  --muted: #a8b4c7;
  --line: #2a3b58;
  --blue-soft: #1a2d52;
  --yellow-soft: #3d3200;
  --red-soft: #3d1214;
  --header-ink: #ffffff;
  --success: #5fd08a;
  --error: #ff6b70;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  top: calc(12px + env(safe-area-inset-top));
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
}

.header-stripe {
  height: 6px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--yellow) 0 10px,
      #111 10px 20px
    );
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(10, 54, 128, 0.22);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--header-ink);
}

.logo-mark {
  width: 58px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.12));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.logo-text strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.logo-text span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: #111;
  background: var(--yellow);
}

.nav-call {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 32px;
}

.lang-toggle button.is-active {
  background: var(--yellow);
  color: #111;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.icon-btn .icon-sun,
.icon-btn.is-dark .icon-moon {
  display: none;
}

.icon-btn.is-dark .icon-sun {
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-open .icon-open {
  display: none;
}

.menu-toggle.is-open .icon-close {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-yellow,
.btn-gold {
  background: var(--yellow);
  color: #111;
}

.btn-yellow:hover,
.btn-gold:hover {
  background: var(--yellow-deep);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-deep);
}

.btn-on-hero {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-on-hero:hover {
  border-color: var(--yellow);
  color: #111;
  background: var(--yellow);
}

.header-call {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 6px - env(safe-area-inset-top));
  display: grid;
  align-items: end;
  padding: 48px 0 64px;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(1.05) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 54, 128, 0.2) 0%, rgba(10, 22, 40, 0.55) 48%, rgba(8, 16, 30, 0.86) 100%),
    linear-gradient(90deg, rgba(8, 16, 30, 0.5), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 740px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
}

.hero h1,
.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  margin: 0 0 16px;
}

.hero p,
.lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin: 0 0 26px;
}

.hero-actions,
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-bottom: 22px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 0, 0.35);
  background: rgba(14, 74, 168, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
}

.promo {
  background: var(--yellow);
  color: #111;
  border-block: 6px solid var(--blue);
}

.promo-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
}

.promo .kicker {
  color: var(--blue);
}

.promo .kicker::before {
  background: var(--red);
}

.promo h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 8px;
}

.promo-price {
  color: var(--red);
  font-weight: 700;
}

.promo p {
  margin: 0;
  max-width: 52ch;
}

.promo .btn-red {
  box-shadow: 0 8px 18px rgba(211, 18, 26, 0.25);
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-warm);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin: 0 0 14px;
}

.section-head p,
.about-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-warm);
  border-bottom: 4px solid var(--yellow);
}

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

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

.service-body {
  padding: 18px 20px 22px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--blue);
}

[data-theme="dark"] .service-card h3 {
  color: var(--yellow);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.partner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.partner span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 4px;
}

.partner-mobil { color: #0033a0; }
.partner-pennzoil { color: #c8102e; }
.partner-castrol { color: #007e3a; }
.partner-interstate { color: #0b6b3a; }
.partner-flowmaster { color: #c0392b; }

[data-theme="dark"] .partner-mobil { color: #7aa2ff; }
[data-theme="dark"] .partner-pennzoil { color: #ff8b8b; }
[data-theme="dark"] .partner-castrol { color: #6fd89a; }
[data-theme="dark"] .partner-interstate { color: #86d4a8; }
[data-theme="dark"] .partner-flowmaster { color: #f0a0a0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.gallery-main,
.gallery-side figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.gallery-side {
  display: grid;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(10, 54, 128, 0.88));
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
  border-bottom: 6px solid var(--yellow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.about-lead {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 16px !important;
}

.about-copy p + p {
  margin-top: 14px !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--red);
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list a {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.2rem;
}

[data-theme="dark"] .contact-list a {
  color: var(--yellow);
}

.contact-list li span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-card h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.form-card .btn {
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.form-status.is-success {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

.form-status.is-error {
  background: var(--red-soft);
  color: var(--red);
}

.site-footer {
  padding: 28px 0 36px;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 800;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1040px) {
  .services-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .gallery-grid,
  .promo-inner {
    grid-template-columns: 1fr;
  }

  .gallery-main,
  .gallery-side figure,
  .gallery-grid img,
  .about-photo,
  .about-photo img {
    min-height: 220px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .menu-toggle {
    display: grid;
  }

  .header-call {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .logo-mark {
    width: 48px;
    height: 36px;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 6px + env(safe-area-inset-top)) 0 0 0;
    background: var(--blue-deep);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
    gap: 6px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav a:not(.btn) {
    font-size: 1.35rem;
    padding: 14px 12px;
    color: #fff;
  }

  .nav-call {
    display: inline-flex;
    margin-top: 16px;
    width: 100%;
  }

  .header-actions {
    justify-self: end;
  }

  .logo-text span {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: auto;
    padding: 36px 0 40px;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .section {
    padding: 56px 0;
  }

  .promo-inner {
    text-align: left;
  }

  .promo .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .chip {
    font-size: 0.75rem;
  }

  .service-media {
    aspect-ratio: 16 / 9;
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .site-nav {
    bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    gap: 0;
    background: var(--blue);
    border-top: 4px solid var(--yellow);
  }

  .mobile-cta a {
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    line-height: 1.15;
  }

  .mobile-cta a small {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 2px;
  }

  .mobile-cta a:last-child {
    background: var(--red);
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 400px) {
  .header-inner {
    width: calc(100% - 20px);
  }

  .logo-text strong {
    font-size: 1.05rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .logo-mark {
    width: 44px;
    height: 34px;
  }

  .lang-toggle button {
    padding: 6px 8px;
  }
}
