/* ============================================================
   PolskaUnit — Design System
   White / Gray / Black / Red — modern, minimalist
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-red); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; border-radius: 4px; }

/* ---------- CSS variables (light theme — default) ---------- */
:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Noto Sans", "Liberation Sans", sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Colors */
  --color-red: #C8102E;
  --color-red-dark: #A00D24;
  --color-red-light: #E63946;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F8F8;
  --color-bg-elevated: #FFFFFF;
  --color-surface: #FAFAFA;

  --color-text: #1A1A1A;
  --color-text-muted: #555555;
  --color-text-subtle: #7A7A7A;

  --color-border: #E5E5E5;
  --color-border-strong: #C9C9C9;

  --color-link: #1A1A1A;

  --color-success: #16A34A;
  --color-warning: #F59E0B;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --shadow-red: 0 8px 24px rgba(200,16,46,.18);

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(16px, 4vw, 32px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Header */
  --header-top-h: 38px;
  --header-main-h: 72px;
  --header-h-mobile: 64px;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --color-red: #E63946;
  --color-red-dark: #C8102E;
  --color-red-light: #F25C68;

  --color-bg: #0F0F11;
  --color-bg-alt: #16161A;
  --color-bg-elevated: #1C1C20;
  --color-surface: #1F1F24;

  --color-text: #F2F2F2;
  --color-text-muted: #B5B5B5;
  --color-text-subtle: #888888;

  --color-border: #2A2A30;
  --color-border-strong: #3A3A42;

  --color-link: #F2F2F2;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
  --shadow-red: 0 8px 24px rgba(230,57,70,.25);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--color-text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -.015em; margin-bottom: .75em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: .5em; }
h4 { font-size: 1.125rem; margin-bottom: .5em; }
p  { margin-bottom: 1em; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--color-text); }
ul, ol { padding-left: 1.25em; margin-bottom: 1em; color: var(--color-text-muted); }
li { margin-bottom: .35em; }

.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-subtitle { text-align: center; color: var(--color-text-muted); max-width: 720px;
  margin: 0 auto 2.5rem; font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-red); margin-bottom: .75rem; }

.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.text-muted { color: var(--color-text-muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-max);
  margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--narrow { padding: clamp(32px, 5vw, 64px) 0; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .15s ease, background-color .2s ease,
              box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; user-select: none;
  min-height: 44px; /* a11y tap target */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--color-red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--color-red-dark); color: #fff; box-shadow: 0 12px 28px rgba(200,16,46,.28); }

.btn--secondary { background: var(--color-text); color: var(--color-bg); }
.btn--secondary:hover { background: var(--color-text-muted); color: var(--color-bg); }

.btn--ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border-strong); }
.btn--ghost:hover { border-color: var(--color-red); color: var(--color-red); }

.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; min-height: 52px; }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; min-height: 36px; }
.btn--block { width: 100%; }

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

/* Emoji icons used inline in text (header contacts, footer, modal) */
.icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  font-size: 1em;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
  /* avoid awkward emoji rendering on some platforms */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}
.contact-item .icon-emoji { font-size: 1.4em; }
.footer-contacts .icon-emoji { font-size: 1.05em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-bg);
  border-bottom: 1px solid var(--color-border); }

.header-top { background: #1A1A1A; color: #EEE; font-size: .85rem; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-top-h); gap: 1rem; flex-wrap: wrap; padding: 4px 0; }
.header-contacts { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.header-contacts a { color: #EEE; display: inline-flex; align-items: center; gap: .4rem;
  transition: color .2s; }
.header-contacts a:hover { color: var(--color-red-light); }
.header-contacts .icon { width: 16px; height: 16px; }

.header-tools { display: flex; align-items: center; gap: .75rem; }

.lang-switch { display: inline-flex; gap: 2px; background: rgba(255,255,255,.08);
  border-radius: 6px; padding: 2px; }
.lang-switch a { padding: 4px 10px; font-weight: 600; border-radius: 4px; color: #BBB; font-size: .8rem; }
.lang-switch a.active { background: var(--color-red); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; }

.theme-toggle { width: 32px; height: 32px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 6px; color: #BBB;
  transition: background-color .2s, color .2s; }
.theme-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-main { display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-main-h); gap: 1.5rem; }
.header-logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0;
  font-weight: 800; font-size: 1.2rem; color: var(--color-text); letter-spacing: -.01em; }
.header-logo img { width: 44px; height: 44px; }
.header-logo:hover { color: var(--color-red); }
.header-logo span small { display: block; font-size: .7rem; font-weight: 500;
  color: var(--color-text-muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 1px; }

.nav-main { display: flex; align-items: center; gap: 1.75rem; }
.nav-main a { font-weight: 500; color: var(--color-text); font-size: .96rem;
  position: relative; padding: 4px 0; }
.nav-main a:hover { color: var(--color-red); }
.nav-main a.active { color: var(--color-red); }
.nav-main a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-red); border-radius: 2px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button { display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 500; font-size: .96rem; color: var(--color-text); padding: 4px 0; }
.nav-dropdown > button:hover { color: var(--color-red); }
.nav-dropdown > button .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-dropdown.open > button .chev { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px); min-width: 280px;
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible;
  pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: .6rem .85rem; border-radius: 6px;
  font-size: .92rem; color: var(--color-text); }
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-red); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 6px;
  align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle:hover { background: var(--color-bg-alt); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; background: var(--color-bg); z-index: 200;
  padding: 1rem; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
.mobile-menu nav a, .mobile-menu nav button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1rem 0; font-size: 1.05rem; font-weight: 500; color: var(--color-text);
  border-bottom: 1px solid var(--color-border); text-align: left; }
.mobile-menu nav .submenu { padding-left: 1rem; display: none; }
.mobile-menu nav .submenu.open { display: block; }
.mobile-menu nav .submenu a { font-size: .95rem; color: var(--color-text-muted); padding: .75rem 0; }
.mobile-menu-footer { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(200,16,46,.06) 0%, transparent 60%);
  pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; position: relative; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content h1 .accent { color: var(--color-red); }
.hero-content p.lead { font-size: 1.15rem; color: var(--color-text-muted);
  margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust .item { display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--color-text-muted); }
.hero-trust .item strong { color: var(--color-red); font-size: 1.5rem; line-height: 1; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img { max-width: 420px; width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.15)); }

/* ---------- Cards ---------- */
.card { background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 28px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-red); }
.card-icon { width: 52px; height: 52px; border-radius: 12px;
  background: rgba(200,16,46,.08); color: var(--color-red);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; }
.card .card-link { margin-top: auto; padding-top: 1rem; color: var(--color-red);
  font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.card .card-link:hover { gap: .55rem; }

/* Service cards (with image header) */
.service-card { overflow: hidden; padding: 0; }
.service-card .img-wrap { aspect-ratio: 16/9; background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  border-bottom: 1px solid var(--color-border); }
.service-card .img-wrap .marketplace { font-weight: 800; font-size: 1.75rem;
  color: var(--color-text-muted); letter-spacing: -.02em; }
.service-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* Feature cards (numbered) */
.step-card { position: relative; padding-left: 4.5rem; }
.step-card .step-num { position: absolute; left: 1.5rem; top: 1.5rem;
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.calc-form { display: grid; gap: 1rem; }
.calc-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem;
  color: var(--color-text); }
.calc-label small { display: block; font-weight: 400; color: var(--color-text-subtle);
  font-size: .8rem; margin-top: .15rem; }
.calc-input, .calc-select { width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: var(--color-bg); color: var(--color-text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; min-height: 44px; }
.calc-input:focus, .calc-select:focus {
  outline: none; border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.calc-dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }

.calc-result { background: var(--color-bg-alt); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.calc-result h3 { margin: 0; font-size: 1.15rem; }
.calc-row { display: flex; justify-content: space-between; align-items: center;
  font-size: .94rem; color: var(--color-text-muted);
  padding: .55rem 0; border-bottom: 1px dashed var(--color-border); }
.calc-row:last-of-type { border-bottom: none; }
.calc-row span:last-child { font-weight: 600; color: var(--color-text); }
.calc-row.winner { color: var(--color-red); font-weight: 600; }
.calc-row.winner span:last-child { color: var(--color-red); font-weight: 800; }
.calc-final { background: var(--color-red); color: #fff; border-radius: var(--radius-md);
  padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 700; margin-top: .35rem; }
.calc-final .price { font-size: 1.6rem; }
.calc-note { font-size: .82rem; color: var(--color-text-subtle); line-height: 1.5; margin: 0; }
.calc-toggle { display: flex; gap: .35rem; background: var(--color-bg-alt);
  padding: 4px; border-radius: var(--radius-sm); }
.calc-toggle button { flex: 1; padding: .55rem; font-weight: 600; font-size: .88rem;
  border-radius: 4px; color: var(--color-text-muted); }
.calc-toggle button.active { background: var(--color-red); color: #fff; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md);
  margin-bottom: .75rem; background: var(--color-bg-elevated);
  transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item.open { border-color: var(--color-red); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; text-align: left; font-weight: 600; font-size: 1rem;
  color: var(--color-text); transition: color .2s; }
.faq-q:hover { color: var(--color-red); }
.faq-q .toggle { width: 24px; height: 24px; flex-shrink: 0; transition: transform .25s ease;
  color: var(--color-red); }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .3s ease,
  padding .3s ease; color: var(--color-text-muted); font-size: .96rem; }
.faq-item.open .faq-a { padding: 0 1.25rem 1.25rem; max-height: 800px; }

/* ---------- Marketplace catalog ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; }
.market-card { padding: 1.5rem; border-radius: var(--radius-md);
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  color: var(--color-text); }
.market-card:hover { transform: translateY(-4px); border-color: var(--color-red);
  box-shadow: var(--shadow-md); color: var(--color-red); }
.market-card .name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.market-card .desc { font-size: .85rem; color: var(--color-text-muted); }

/* ---------- Tariff blocks ---------- */
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; }
.tariff { padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--color-bg-elevated); border: 2px solid var(--color-border);
  display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .25s; }
.tariff:hover { border-color: var(--color-red); transform: translateY(-3px); }
.tariff .lbl { font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--color-red); text-transform: uppercase; }
.tariff .val { font-size: 1.85rem; font-weight: 800; color: var(--color-text); line-height: 1.1; }
.tariff .val small { font-size: .85rem; font-weight: 500; color: var(--color-text-muted); }
.tariff .desc { font-size: .9rem; color: var(--color-text-muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-bg-alt); cursor: zoom-in;
  transition: transform .25s ease; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-size: .9rem; font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity .25s ease; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox-content { max-width: 1100px; width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 1rem; }
.lightbox img { max-height: 78vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-caption { color: #fff; text-align: center; font-size: 1rem; max-width: 720px; }
.lightbox-caption strong { display: block; font-size: 1.1rem; margin-bottom: .35rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ---------- Order modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: var(--color-bg-elevated); border-radius: var(--radius-xl);
  max-width: 480px; width: 100%; padding: clamp(20px, 3vw, 36px);
  position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: .35rem; }
.modal > p { margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px;
  border-radius: 50%; color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; }
.modal-close:hover { background: var(--color-bg-alt); color: var(--color-red); }
.contact-list { display: flex; flex-direction: column; gap: .65rem; }
.contact-item { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  color: var(--color-text); font-weight: 500; transition: border-color .2s, transform .2s, color .2s; }
.contact-item:hover { border-color: var(--color-red); color: var(--color-red); transform: translateX(2px); }
.contact-item .icon-wrap { width: 40px; height: 40px; border-radius: 8px;
  background: rgba(200,16,46,.08); color: var(--color-red);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon-wrap .icon { width: 22px; height: 22px; }
.contact-item .info { display: flex; flex-direction: column; }
.contact-item .info small { color: var(--color-text-muted); font-size: .78rem; font-weight: 400; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px); max-width: 480px; background: var(--color-bg-elevated);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-lg); z-index: 500;
  transform: translateY(120%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 { margin-bottom: .35rem; font-size: 1rem; }
.cookie-banner p { font-size: .88rem; margin-bottom: 1rem; }
.cookie-banner .actions { display: flex; gap: .5rem; }
.cookie-banner .actions .btn { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #0F0F11; color: #B5B5B5; padding-top: 4rem; }
:root[data-theme="dark"] .site-footer { background: #08080A; }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { width: 56px; height: 56px; margin-bottom: 1rem; }
.footer-brand h4 { color: #fff; margin-bottom: .5rem; }
.footer-brand p { color: #888; font-size: .9rem; }
.footer-col h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a { color: #B5B5B5; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--color-red-light); }
.footer-contacts a { display: flex; align-items: center; gap: .55rem; }
.footer-contacts .icon { width: 16px; height: 16px; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: #B5B5B5;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--color-red); color: #fff; transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { padding: 1.5rem 0; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #666; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { color: #888; }
.footer-bottom-links a:hover { color: var(--color-red-light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1rem 0; font-size: .88rem; color: var(--color-text-muted);
  background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex;
  align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--color-text-subtle); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 56px);
  color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; top: -50%; right: -10%;
  width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none; }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255,255,255,.92); position: relative; max-width: 640px; margin: 0 auto 2rem; }
.cta-banner .btn--primary { background: #fff; color: var(--color-red); position: relative; }
.cta-banner .btn--primary:hover { background: rgba(255,255,255,.92); color: var(--color-red-dark); }
.cta-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); position: relative; }
.cta-banner .btn--ghost:hover { color: var(--color-red); background: #fff; border-color: #fff; }

/* ---------- Misc & utility ---------- */
.divider { height: 1px; background: var(--color-border); border: 0; margin: 2rem 0; }
.spacer-sm { height: 1rem; }
.spacer-md { height: 2rem; }
.spacer-lg { height: 3rem; }

.tag { display: inline-block; padding: .25rem .7rem; background: rgba(200,16,46,.1);
  color: var(--color-red); border-radius: 999px; font-size: .8rem; font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .65rem; background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: 999px; font-size: .8rem; color: var(--color-text-muted); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }

/* Article-style content blocks (for service / FAQ pages) */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { margin-bottom: 1.25em; }
.prose li { color: var(--color-text-muted); }
.prose p + p { margin-top: 0; }

.callout { padding: 1.25rem 1.5rem; border-left: 4px solid var(--color-red);
  background: var(--color-bg-alt); border-radius: var(--radius-sm);
  margin: 1.5rem 0; }
.callout p { margin-bottom: 0; }

.price-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem; margin: 1.5rem 0; }
.price-item { padding: 1rem 1.25rem; background: var(--color-bg-elevated);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price-item .label { font-size: .92rem; color: var(--color-text); font-weight: 500; }
.price-item .price { font-weight: 800; color: var(--color-red); white-space: nowrap; }

/* Two-column content with sidebar (for service pages) */
.with-aside { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) {
  .with-aside { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
}
.aside { position: sticky; top: calc(var(--header-main-h) + var(--header-top-h) + 16px);
  align-self: start; padding: 1.5rem; background: var(--color-bg-elevated);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.aside h4 { margin-bottom: .85rem; }
.aside .btn { width: 100%; }
.aside ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.aside li { padding: .5rem 0; border-bottom: 1px dashed var(--color-border);
  font-size: .9rem; color: var(--color-text-muted); display: flex; gap: .5rem; align-items: flex-start; }
.aside li::before { content: "✓"; color: var(--color-red); font-weight: 700; flex-shrink: 0; }
.aside li:last-child { border-bottom: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main, .nav-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-top-inner { font-size: .78rem; }
  .header-contacts { gap: .8rem; }
  .header-contacts a span:not(.sr-only) { display: none; }
  .header-main { min-height: var(--header-h-mobile); }
  .header-logo img { width: 38px; height: 38px; }
  .header-logo { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-dims { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .header-contacts { display: none; }
  .header-top-inner { justify-content: flex-end; }
}

/* a11y helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .modal-overlay, .lightbox { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
