/* Wspólne style podstron modeli — McLouis Polska */
:root {
  --white: #ffffff;
  --bg: #f7f8f9;
  --ink: #1b1d21;
  --ink-soft: #565b63;
  --line: #e4e6e9;
  --red: #d0281f;
  --red-deep: #a81a13;
  --dark: #15171b;
  --font: "Archivo", "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 6px 24px -8px rgba(21, 23, 27, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ===== Nagłówek ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; display: block; }
.logo small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 14px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 6px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-deep); }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 8px 0; }
.mobile-menu a {
  display: block;
  padding: 15px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu li:last-child a { border-bottom: none; color: var(--red); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ===== Hero podstrony ===== */
.model-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.model-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 16, 22, 0.3) 0%, rgba(13, 16, 22, 0.1) 40%, rgba(13, 16, 22, 0.72) 100%);
}
.model-hero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 48px; width: 100%; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; margin-bottom: 16px; color: rgba(255, 255, 255, 0.75); }
.breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.model-hero .cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.model-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.model-hero .lead { margin-top: 12px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.85); max-width: 60ch; }

/* ===== Pasek specyfikacji ===== */
.spec-bar { background: var(--dark); color: #fff; }
.spec-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  padding-top: 18px;
  padding-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}
.spec-bar .specs { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.spec-bar .spec { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.spec-bar .spec svg { width: 19px; height: 19px; stroke: var(--red); flex-shrink: 0; }
.spec-bar .spec b { color: #fff; font-weight: 650; }
.spec-bar .btn { padding: 12px 24px; font-size: 0.9rem; }

/* ===== Sekcje ===== */
section { padding: 76px 0; }
.sec-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; font-weight: 730; letter-spacing: -0.02em; margin-bottom: 20px; }
.desc { color: var(--ink-soft); font-size: 1.04rem; max-width: 74ch; }
.desc + .desc { margin-top: 14px; }
.desc strong { color: var(--ink); }
.desc a { color: var(--red-deep); font-weight: 600; }

/* ===== Przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 6px;
  transition: transform 0.22s ease, background 0.22s ease;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 26px -10px rgba(208, 40, 31, 0.6); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Galeria zdjęć ===== */
.photos-sec { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  display: block;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 15, 19, 0.88);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== Rzuty układów ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 8px; }
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card .plan-img { background: var(--bg); padding: 14px; }
.plan-card img { width: 100%; height: auto; display: block; }
.plan-card .plan-name {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.plan-card .plan-name span { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.plans-note { margin-top: 26px; font-size: 0.86rem; color: var(--ink-soft); }
.plans-note a { color: var(--red-deep); font-weight: 600; }

/* ===== Formularz kontaktowy ===== */
.contact-form {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--white);
  max-width: 860px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 40, 31, 0.15);
}
.form-actions { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 46ch;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.consent a { color: var(--red-deep); font-weight: 600; }
.contact-form button.btn { border: none; cursor: pointer; font-family: var(--font); }
.form-note {
  margin-top: 18px;
  padding: 13px 16px;
  background: var(--bg);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-note a { color: var(--red-deep); font-weight: 600; }

/* ===== CTA ===== */
.cta-final { background: var(--dark); color: #fff; text-align: center; padding: 90px 0; position: relative; overflow: hidden; }
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(208, 40, 31, 0.28), transparent 70%);
}
.cta-final .wrap { position: relative; }
.cta-final .sec-label { color: #f0908a; }
.cta-final h2 { color: #fff; max-width: 22ch; margin: 0 auto 18px; }
.cta-final p { margin: 0 auto 34px; color: rgba(255, 255, 255, 0.72); max-width: 56ch; }
.cta-final .phones { margin-top: 26px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.cta-final .phones a { color: #fff; font-weight: 700; text-decoration: none; }

/* ===== Stopka ===== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 0 40px;
  text-align: center;
  font-size: 0.85rem;
}
.foot-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-logo img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.92; }
.foot-logo small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 16px;
}
.foot-brands { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.foot-x { color: rgba(255, 255, 255, 0.3); font-size: 1.05rem; }
.foot-logo-zmm { display: inline-flex; }
.foot-logo-zmm img { height: 38px; width: auto; display: block; opacity: 0.92; transition: opacity 0.2s ease; }
.foot-logo-zmm:hover img { opacity: 1; }
.foot-tag {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.foot-links { display: flex; justify-content: center; gap: 28px; margin: 28px 0; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: rgba(255, 255, 255, 0.65); font-weight: 500; transition: color 0.2s ease; }
.foot-links a:hover { color: #fff; }
.foot-legal {
  max-width: 74ch;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Mobilny pasek CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.mobile-cta-inner { display: flex; gap: 10px; }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: 8px;
  flex: 1;
}
.mobile-cta a:active { background: var(--red-deep); }
.mobile-cta a.cta-call {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 14px 18px;
}
.mobile-cta a.cta-call:active { background: var(--bg); }
.mobile-cta a.cta-call svg { stroke: var(--red); }
@media (max-width: 700px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  footer { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
