/* ==========================================================
   SV26 Service — Rodzinny autoserwis
   Lightweight static stylesheet
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --bg:           #0b0b0d;
  --bg-2:         #111114;
  --bg-3:         #16161a;
  --surface:      #1a1a1f;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);
  --text:         #f5f5f4;
  --text-dim:     #a3a3a0;
  --text-mute:    #6b6b66;
  --accent:       #ffb800;   /* amber/yellow */
  --accent-hot:   #ff8a00;   /* warmer orange */
  --accent-soft:  rgba(255, 184, 0, 0.12);
  --danger:       #ff5a5a;
  --success:      #4cd964;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;
  --nav-h:     76px; /* header height — drawer & scroll-offset use this */

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t:    0.35s;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t) var(--ease);
}

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #111;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section heads ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: 17px;
}

.section-head { margin-bottom: 56px; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 10px 30px -10px rgba(255, 184, 0, 0.5);
}
.btn--primary:hover { background: #ffc933; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--full { width: 100%; }

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* Logo grew (44->52px); padding trimmed by the same 4px each side so
     the header's overall height stays unchanged — no layout shift. */
  padding: 14px 0;
  transition: background var(--t) var(--ease), backdrop-filter var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

/* When the mobile burger menu is open, give the top header strip a
   solid dark background so the logo + close icon stay readable over
   whatever (bright sky, faces, etc.) is sitting behind the open menu.
   No full-page backdrop is added — the menu panel itself already
   covers its own area; this rule only restyles the .nav strip.
   `body.menu-open` is only toggled by the burger which appears at
   ≤900px, so desktop is naturally unaffected. */
body.menu-open .nav {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links > a:not(.nav__phone) {
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
.nav__links > a:not(.nav__phone):hover { color: var(--text); }
.nav__links > a:not(.nav__phone)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t) var(--ease);
}
.nav__links > a:not(.nav__phone):hover::after { width: 100%; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--t) var(--ease);
}
.nav__phone:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Language switcher (desktop pill row, shows full native names) */
.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}
.lang__btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active {
  background: var(--accent);
  color: #111;
}

/* ==========================================================
   MOBILE LANGUAGE DROPDOWN
   Visible only at ≤900px (same breakpoint as the burger).
   Hidden on desktop so the existing pill-row .lang switcher
   inside .nav__links remains the sole language UI ≥901px.
   ========================================================== */
.lang-mobile { display: none; }

.lang-mobile__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.lang-mobile__toggle:hover,
.lang-mobile__toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.lang-mobile__toggle svg {
  transition: transform var(--t) var(--ease);
}
.lang-mobile[data-state="open"] .lang-mobile__toggle svg {
  transform: rotate(180deg);
}
.lang-mobile[data-state="open"] .lang-mobile__toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-mobile__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: rgba(15, 15, 17, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  visibility: hidden;
  pointer-events: none;
}
.lang-mobile[data-state="open"] .lang-mobile__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

/* Override .lang__btn (designed for the desktop pill row) so the
   mobile items become full-width list rows with bigger tap targets. */
.lang-mobile__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.lang-mobile__item:hover,
.lang-mobile__item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}
.lang-mobile__item.is-active {
  background: var(--accent);
  color: #111;
}
.lang-mobile__item.is-active:hover {
  background: var(--accent);
  color: #111;
}

/* Burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.burger span {
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
  border-radius: 2px;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -1;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  /* Subtle filter for atmosphere even if placeholder image is missing */
  filter: brightness(0.65) contrast(1.05) saturate(0.9);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.4) 40%, rgba(11,11,13,0.95) 100%),
    radial-gradient(60% 60% at 20% 30%, rgba(255,184,0,0.08) 0%, transparent 60%);
}

/* Subtle film-grain */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Fallback gradient if the hero image is missing/placeholder */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,138,0,0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255,184,0,0.1), transparent 55%),
    linear-gradient(160deg, #0b0b0d 0%, #1a1410 60%, #0b0b0d 100%);
}

.hero__content {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero heading — the workshop descriptor. The brand name itself is
   carried by the yellow logo in the header, so the heading stays a
   clean descriptive line with no brand repetition. data-i18n on the
   H1 swaps this text per language; `text-wrap: balance` keeps the
   two lines evenly weighted. */
.hero__title {
  font-size: clamp(33px, 6.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  max-width: 18ch;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease) 0.05s both;
}

.hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 38px 0;
  animation: fadeUp 0.8s var(--ease) 0.15s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
  animation: fadeUp 0.8s var(--ease) 0.25s both;
}

.hero__meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  animation: fadeUp 0.8s var(--ease) 0.35s both;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--t) var(--ease);
  animation: fadeUp 1s var(--ease) 0.6s both;
}
.hero__scroll:hover { color: var(--accent); }
.hero__scroll svg { animation: bob 2s ease-in-out infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  position: relative;
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-radius: 32px 32px 0 0;
  margin-top: -32px;
  z-index: 2;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  /* Cards size to their own content so expanding one never forces
     blank space into its row-mates. */
  align-items: start;
}

.service-card {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 184, 0, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  z-index: -1;
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

/* Active-state accent border — set when a card is toggled active by
   touch tap or keyboard (aria-expanded="true"). */
.service-card[aria-expanded="true"] {
  border-color: rgba(255, 184, 0, 0.45);
  transform: none;
}
.service-card[aria-expanded="true"]:hover { transform: none; }

/* Price hint — a compact line reserved at the bottom of every card so
   revealing it never shifts the grid. It fades + slides in softly:
   on hover for pointer devices, or when the card is toggled active
   (touch tap / keyboard) via aria-expanded. */
.service-card__hint {
  margin: 14px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
@media (hover: hover) {
  .service-card:hover .service-card__hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
}
.service-card[aria-expanded="true"] .service-card__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 28px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card__title {
  font-size: 22px;
  margin-bottom: 10px;
}
.service-card__text {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: 120px 0;
  background: var(--bg-2);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
/* fallback when image missing */
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,184,0,0.15), transparent 50%),
    linear-gradient(135deg, #2a2620 0%, #0e0e10 100%);
  z-index: -1;
}

.about__text p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0 0 18px 0;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.about__list span {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* Trust / warranty card inside about section */
.about__trust {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 184, 0, 0.05);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.about__trust-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.10);
  color: var(--accent);
}
.about__trust-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.about__trust-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.about__trust-text p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.contact__list a:hover { color: var(--accent); }

.contact__map {
  margin-top: 32px;
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Subtle dark filter so the bright Google Maps tiles blend with the dark site */
  filter: grayscale(20%) contrast(0.95) brightness(0.9);
}

/* ---------- Form ---------- */
.contact__form-wrap {
  padding: 40px;
  /* Offsets sticky-header height so #problem-form deep links land with
     the "Opisz problem z samochodem" title visible, not hidden. */
  scroll-margin-top: calc(var(--nav-h) + 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-3) 100%);
}

.form__title {
  font-size: 28px;
  margin-bottom: 8px;
}
.form__sub {
  color: var(--text-dim);
  margin: 0 0 28px 0;
  font-size: 15px;
}

.form { display: flex; flex-direction: column; gap: 16px; }

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

.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  resize: vertical;
}
.form__field input:hover,
.form__field textarea:hover {
  border-color: var(--line-strong);
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 184, 0, 0.03);
}
.form__field.has-error input,
.form__field.has-error textarea {
  border-color: var(--danger);
}

.form button[type="submit"] {
  margin-top: 8px;
}

.form__status {
  min-height: 22px;
  font-size: 14px;
  margin-top: 4px;
}
.form__status.is-success { color: var(--success); }
.form__status.is-error   { color: var(--danger); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 215px;
  object-fit: contain;
}
.footer__sub { color: var(--text-dim); font-size: 14px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer__col a:hover { color: var(--accent); }
.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mute);
}

/* ==========================================================
   PRICES MODAL (side drawer)
   ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s var(--ease);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.45s var(--ease);
  overflow: hidden;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 26px; }

.modal__close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
  flex-shrink: 0;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }

.modal__body {
  padding: 24px 32px 32px;
  overflow-y: auto;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.price-list__name {
  color: var(--text);
  font-size: 15px;
}
.price-list__val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.price-list__val span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  margin-right: 6px;
}
.price-list__val--note {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
  font-weight: 400;
}

.price-note {
  font-size: 13px;
  color: var(--text-mute);
  background: rgba(255, 184, 0, 0.04);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 0 0 24px 0;
}

/* ==========================================================
   STICKY MOBILE CALL
   ========================================================== */
.sticky-call {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 480px;
  z-index: 40;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 100px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -10px rgba(255, 184, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.05);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
body.sticky-visible .sticky-call {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Force hidden during overlays even if hero is off-screen */
body.menu-open .sticky-call,
body.modal-open .sticky-call {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* ---------- Tablet (≤ 1100px) ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 56px; }
  .about__media { aspect-ratio: 16 / 11; max-height: 500px; }
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Burger / mobile-nav threshold (≤ 900px) ---------- */
@media (max-width: 900px) {
  .burger { display: flex; }

  .nav__inner { gap: 12px; }

  /* Slide-down full mobile menu, anchored under the actual header height */
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px calc(32px + env(safe-area-inset-bottom));
    gap: 6px;
    transform: translateY(-110%);
    transition: transform var(--t) var(--ease);
    border-top: 1px solid var(--line);
    visibility: hidden;
  }
  .nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__links > a:not(.nav__phone) {
    padding: 14px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav__phone {
    margin-top: 18px;
    justify-content: center;
    padding: 14px;
    width: 100%;
  }
  /* The desktop pill-row .lang lives inside .nav__links (the burger panel).
     On mobile it's replaced by the always-visible .lang-mobile dropdown in
     the header, so hide the in-menu copy to avoid duplication. */
  .lang { display: none; }

  /* Show the mobile language dropdown in the header.
     `margin-left: auto` pushes it to the right-side controls group so
     it sits next to the burger (logo|·······|lang|burger) instead of
     floating in the middle of the bar. */
  .lang-mobile {
    display: inline-flex;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
  }
  /* Tighten the gap between language dropdown and burger to ~10px.
     The parent .nav__inner has `gap: 12px` already; this trims it a
     little visually without changing other spacing. */
  .lang-mobile + .burger { margin-left: -2px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }

  /* Sticky call button — visible wherever burger is */
  .sticky-call { display: inline-flex; }

  /* Push body content above the sticky call so it never covers form/footer */
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ---------- Tablet portrait (641–1024px) ----------
   Phone styles inherit through ≤640px. Desktop layout at ≥1025px is
   untouched. This block reshapes the hero, services and form spacing so
   iPad Mini / Air / Pro portrait modes don't render as a centered phone
   layout with large empty side margins. */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero {
    /* Trim the desktop 140/90 padding — at iPad heights the centered
       content has plenty of room without forcing 100dvh full-screen. */
    padding: 120px 0 88px;
    min-height: auto;
    align-items: flex-start;
  }

  /* Constrain hero content to an intentional width and center it.
     Prevents the title/lead from stretching the full ~768px which
     looked too wide and unbalanced on iPad. */
  .hero__content {
    max-width: min(92vw, 760px);
    padding: 0 28px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__lead {
    font-size: 17px;
    line-height: 1.55;
    max-width: 56ch;
    margin-bottom: 36px;
  }

  /* Keep CTA in a row but allow wrap if buttons can't fit. */
  .hero__cta {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
  }
  .hero__cta .btn { flex: 0 0 auto; }

  .hero__meta {
    gap: 36px;
    padding-top: 28px;
    max-width: 100%;
  }
  .hero__meta-num { font-size: 28px; }
  .hero__meta-label { font-size: 10.5px; }

  .hero__scroll { display: none; }

  /* Services / about / contact: tighter vertical rhythm than desktop. */
  .services, .about, .contact { padding: 88px 0; }

  /* Two-column services grid on tablets — 3-col at 768px crammed
     the cards. Restored to 3 only at desktop ≥1025. */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-card { padding: 28px 24px 30px; }

  /* About becomes single-column stack but the media stays a sensible
     height — keeps the page from collapsing into phone proportions. */
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__media { aspect-ratio: 16 / 9; max-height: 360px; }

  /* Contact: stack info above form for portrait tablets. */
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__map { height: 320px; }

  .section-head { margin-bottom: 48px; }
}

/* ---------- Phone layout (≤ 640px) ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  /* Logo is now 42px (the tallest header item); 11px padding keeps the
     mobile header at the same 64px height that --nav-h assumes. */
  .nav { padding: 11px 0; }
  .nav__inner { padding: 0 16px; gap: 10px; }
  .brand__logo { height: 42px; max-width: 150px; }
  .footer__logo { height: 54px; max-width: 180px; }

  /* =================================================================
     MOBILE HERO REWORK — full-bleed portrait photo, content overlays
     the lower half of the image. The hero now reads as one polished
     landing screen instead of "photo + dark padded box below".
     ================================================================= */
  .hero {
    align-items: stretch;
    padding: 0;
    text-align: left;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
  }

  /* Background fills the hero with extra ~8% headroom above so the
     mobile parallax (JS translates the bg downward as scrollY grows)
     never reveals a gap at the top of the photo. */
  .hero__bg {
    inset: -8% 0 0 0;
    padding-top: 0;
    will-change: transform;
  }
  .hero__bg picture {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
  }
  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    filter: brightness(0.96) contrast(1.02) saturate(0.98);
  }

  /* Smooth fade — top stays visible (faces / cars), bottom darkens
     for legibility of the title, description and CTA stack. */
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(11,11,13,0)    0%,
        rgba(11,11,13,0)    32%,
        rgba(11,11,13,0.35) 52%,
        rgba(11,11,13,0.78) 72%,
        rgba(11,11,13,0.95) 90%,
        rgba(11,11,13,1)    100%);
  }

  /* Content sits inside the hero. Flex column with `justify-content:
     flex-end` anchors the title + description + CTA to the lower part
     of the image, regardless of viewport height. */
  .hero__content {
    /* Bottom padding leaves clearance for the services panel that slides
       up 32px (.services { margin-top: -32px }) so the CTA never hides
       behind the rounded card edge. */
    padding: calc(var(--nav-h) + 12px) 18px calc(64px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .hero__title { margin-bottom: 14px; }

  .hero__lead {
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0 0 26px 0;
    max-width: 340px;
    color: #e9e9e6;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
    margin-bottom: 0;
  }

  /* Stats are intentionally hidden inside the mobile hero so the screen
     reads as a single, polished landing card. The same "6" + "100%"
     story is communicated by the services section that follows. */
  .hero__meta { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }

  .section-head { margin-bottom: 36px; }
  .services, .about, .contact { padding: 64px 0; }

  .container { padding: 0 16px; }

  /* ===== Compact services list on mobile =====
     Desktop keeps the 4-column card layout. On phones, collapse the cards
     into a single rounded panel with one row per service: icon | text. */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transform: none !important;
  }
  .service-card:last-child { border-bottom: 0; }
  .service-card:hover { transform: none; border-color: var(--line); }
  .service-card::before { display: none; }
  .service-card__num { display: none; }
  .service-card__icon {
    grid-row: 1 / span 2;
    width: 40px; height: 40px;
    border-radius: 10px;
    margin: 4px 0 0 0;
  }
  .service-card__icon svg { width: 22px; height: 22px; }
  .service-card__title {
    grid-column: 2;
    font-size: 16px;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  .service-card__text {
    grid-column: 2;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .service-card__hint {
    grid-column: 2;
    margin-top: 10px;
    padding-top: 10px;
  }

  .about__list { grid-template-columns: 1fr; }
  /* Compact the about media so the "O nas" text isn't pushed a full screen down */
  .about__media { aspect-ratio: 16 / 10; max-height: 240px; }
  .about__trust { padding: 16px 16px; gap: 12px; }
  .about__trust-text strong { font-size: 16px; }
  .about__trust-text p { font-size: 13.5px; }

  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 20px; }
  .contact__list li { padding-bottom: 14px; }
  .contact__list a,
  .contact__list span:not(.contact__label) {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .contact__map { height: 280px; margin-top: 24px; }

  .footer { padding: 56px 0 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Form inputs at least 44px tall for tap targets */
  .form__field input,
  .form__field textarea { font-size: 16px; padding: 14px 14px; }
  .form__field textarea { min-height: 140px; }

  .btn { height: 48px; padding: 0 22px; font-size: 14px; }

  /* ===== Prices modal becomes a bottom sheet on phones ===== */
  .modal { align-items: flex-end; justify-content: center; }
  .modal__panel {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    animation: slideUp 0.4s var(--ease);
  }
  .modal__panel::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: var(--line-strong);
    border-radius: 2px;
    pointer-events: none;
  }
  .modal__head {
    padding: 26px 20px 16px;
    position: sticky;
    top: 0;
    background: var(--bg-2);
    z-index: 1;
  }
  .modal__body { padding: 20px; }
  .modal__title { font-size: 22px; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ---------- Very small phones (≤ 380px) ---------- */
@media (max-width: 380px) {
  /* At <=380px the 40px burger is the tallest header item; 12px padding
     keeps the header at the 64px height that --nav-h assumes. */
  .nav { padding: 12px 0; }
  .nav__inner { padding: 0 14px; }
  .brand__logo { height: 38px; max-width: 128px; }
  .footer__logo { height: 50px; max-width: 168px; }

  .hero__content {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .hero__lead { font-size: 14px; line-height: 1.5; }

  .container { padding: 0 14px; }
  .services, .about, .contact { padding: 56px 0; }
  .section-title { font-size: clamp(24px, 7vw, 32px); }

  .contact__form-wrap { padding: 16px; }
  .modal__body { padding: 16px; }
  .modal__head { padding: 22px 16px 14px; }
  .price-list li { padding: 14px 0; gap: 10px; }
  .price-list__val { font-size: 16px; }

  /* Slightly more compact language pills (desktop in-menu row only —
     does not affect the new .lang-mobile dropdown items). */
  .lang .lang__btn { padding: 6px 8px; font-size: 10px; }

  /* Tighten the header dropdown toggle for ≤380px so it doesn't crowd
     the logo + burger trio on iPhone SE / very small Androids. */
  .lang-mobile__toggle { height: 32px; padding: 0 8px; font-size: 11px; gap: 4px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@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;
  }
  .hero__bg { transform: none !important; }
}
