/* Motul Polska — shared styles (header, footer, tokens) */

:root {
  --motul-red: #e12526;
  --motul-red-hot: #ed252f;
  --ink: #241f21;
  --ink-soft: #57595a;
  --black: #0a0a0a;
  --charcoal: #1a1718;
  --surface: #f7f7f7;
  --white: #ffffff;
  --blue: #0e7dc2;
  --font-display: "Inter", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --header-h: 88px;
  --page-pad: clamp(24px, 9.375vw, 180px);
  --container: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ink-muted: #b8b3b5;
  --panel: #171416;
  --field: #302a2d;
  --field-border: #575154;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - (var(--page-pad) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--motul-red);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  min-width: 160px;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary,
.btn-contact {
  background: var(--motul-red);
  color: var(--white);
}

.btn-primary:hover,
.btn-contact:hover {
  background: var(--motul-red-hot);
  transform: translateY(-1px);
}

.btn .icon {
  width: 18px;
  height: 15px;
  flex-shrink: 0;
}

.btn-contact {
  width: 160px;
  height: 50px;
  padding: 0 1rem;
}

/* —— Focus —— */
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--motul-red-hot);
  outline-offset: 2px;
}

/* —— Logo —— */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: 44px;
  background: var(--motul-red);
  padding: 0 8px;
}

.logo img {
  width: 147px;
  height: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0 clamp(0.75rem, 1.4vw, 1.65rem);
}

.site-nav a {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.95;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--motul-red-hot);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* —— Footer —— */
.site-footer {
  background: #0d0c0d;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 66px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  width: 273px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
  background: var(--motul-red);
  padding: 12px 14px;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-social-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 16px;
}

.footer-social-list a:hover {
  color: var(--motul-red-hot);
}

.footer-social-list img {
  width: 23px;
  height: auto;
  flex-shrink: 0;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.1rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.footer-col p,
.footer-col a {
  font-size: 16px;
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--motul-red-hot);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.15rem 0 1.4rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #f7f7f7;
}

.partner-logo {
  width: 81px;
  height: 81px;
  object-fit: cover;
  flex-shrink: 0;
}


/* —— Shared responsive —— */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav a {
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    order: 3;
  }

  .btn-contact {
    order: 2;
    justify-self: end;
    width: auto;
    min-width: 0;
    padding: 0 0.85rem;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(10, 10, 10, 0.96);
    padding: 1.25rem 1.5rem 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 16px;
  }

  .logo {
    width: 120px;
    height: 36px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-contact {
    font-size: 0;
    width: 44px;
    height: 44px;
    gap: 0;
    padding: 0;
  }

  .btn-contact .icon {
    width: 18px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
