/*
 * Komsoft – wygląd strony publicznej.
 * Układ: wyśrodkowana biała kolumna z cieniem (jak na starej stronie), a po bokach jasne tło
 * z delikatnym wzorem (napis KOMSOFT i ikonki produktów).
 *
 * Kolejność w pliku: czcionka i kolory → podstawy → nagłówek i menu → przyciski → strona główna
 * → sekcje i kafelki → produkty → stopka → wersje na mniejsze ekrany → późniejsze dodatki.
 */

/* Czcionka Manrope z własnych plików (bez Google Fonts). Dwa pliki: podstawowy alfabet łaciński
   i rozszerzony (z polskimi literami) – przeglądarka pobiera tylko ten, którego znaki są na stronie. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Zmienne (custom properties): kolory i wymiary w jednym miejscu. Zmiana tutaj zmienia je w całym pliku. */
:root {
  --navy: #0f1d4a;
  --navy-2: #1b2d6b;
  --navy-3: #26408f;
  --red: #d3202b;
  --red-dark: #b0141e;
  --red-light: #ff7880;
  --ink: #0e1322;
  --muted: #4d566b;
  --line: #e3e7ee;
  --bg-alt: #f5f7fa;
  --side: #edf0f5;      /* tło po bokach kolumny */
  --radius: 10px;       /* zaokrąglenie rogów kart */
  --shadow: 0 1px 2px rgba(15, 29, 74, .05), 0 14px 34px -12px rgba(15, 29, 74, .18);
  --col: 1320px;        /* maksymalna szerokość kolumny ze stroną */
  --pad: 56px;          /* margines treści od brzegów kolumny (mniejszy na węższych ekranach – patrz niżej) */
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
/* ---------- podstawy ---------- */
/* border-box: szerokość elementu obejmuje też jego ramkę i wewnętrzny odstęp – łatwiej liczyć */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 500 17px/1.65 var(--font); color: var(--ink);
  background: var(--side) url("pattern.svg") repeat; background-size: 520px 520px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); font-weight: 800; }
/* clamp(min, preferowana, max) – nagłówek rośnie razem z szerokością okna, ale w granicach min–max */
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
/* małe klasy pomocnicze używane w wielu miejscach */
.accent { color: var(--red); }        /* wyróżnione słowo w nagłówku */
.muted { color: var(--muted); }       /* tekst drugorzędny, szary */
.narrow { max-width: 760px; }         /* węższy blok tekstu – łatwiej się czyta */
/* tekst niewidoczny na ekranie, ale czytany przez czytniki ekranu (dla osób niewidomych) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* link "Przejdź do treści" – schowany za lewą krawędzią, wyjeżdża dopiero po wciśnięciu Tab */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 50; }
.skip-link:focus { left: 10px; }
/* czerwona obwódka elementu wybranego klawiaturą (myszką się nie pokazuje) */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- kolumna ze stroną ---------- */
/* flex w pionie + main { flex: 1 } – stopka zawsze na dole, nawet na krótkiej stronie */
.page-column {
  position: relative; max-width: var(--col); margin: 0 auto; min-height: 100vh; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 29, 74, .07), 0 40px 100px -30px rgba(15, 29, 74, .35), 0 0 50px rgba(15, 29, 74, .06);
  display: flex; flex-direction: column;
}
main { flex: 1; }

/* ---------- nagłówek i menu ---------- */
/* sticky – nagłówek przykleja się do góry ekranu przy przewijaniu (kolory nadpisuje sekcja niżej w pliku) */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  display: flex; align-items: center; gap: 20px; padding: 3px var(--pad) 0; min-height: 76px; border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; letter-spacing: .3em; font-size: 1.5rem; color: var(--navy); text-decoration: none; line-height: 1; margin-right: auto; }
.logo:hover { color: var(--navy); }
.logo--light { color: #fff; font-size: 1.05rem; margin: 0; }
.logo--light:hover { color: #fff; }
/* zakładki menu */
.main-nav { display: flex; }
.menu-tabs { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.menu-tabs > li { position: relative; display: flex; }
.menu-tab {
  position: relative; display: flex; align-items: center; padding: 0 16px; min-height: 72px; text-decoration: none;
  color: var(--navy); font-weight: 800; font-size: .9rem; letter-spacing: .06em; transition: color .15s;
}
/* kreska pod zakładką: domyślnie ściśnięta do zera (scaleX(0)), po najechaniu "rozjeżdża się" od lewej */
.menu-tab::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.menu-tab:hover { color: var(--navy); }
.menu-tab:hover::before, .menu-tabs > li.is-active > .menu-tab::before { transform: scaleX(1); }
.menu-tabs > li.is-active > .menu-tab { color: var(--red); }
/* mała strzałka "v" przy zakładkach z rozwijaną listą – to obrócony róg kwadracika z dwiema krawędziami */
.has-dropdown > .menu-tab::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 0 0 8px; opacity: .7; }
/* rozwijana lista kategorii pod zakładką (na komputerze): niewidoczna, pokazuje się po najechaniu myszką
   albo gdy coś w środku ma fokus z klawiatury (:focus-within) */
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 1px); left: 4px; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown > li + li { border-top: 1px solid var(--line); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--red); }
.dropdown a.is-active { color: var(--red); }
/* podkategorie jako małe "guziczki" pod nazwą kategorii */
.dropdown-subcategories { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }
.dropdown-subcategories a { padding: 5px 10px; font-size: .88rem; font-weight: 700; color: #3d4559; background: var(--bg-alt); border-radius: 4px; }
.dropdown-subcategories a:hover { background: #fdecee; color: var(--red); }
/* słuchawka i "hamburger" – na komputerze ukryte, pokazują się w wersji na telefon */
.header-call-button, .nav-toggle { display: none; }

/* ---------- przyciski i etykiety ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 8px; font: 700 .95rem/1.2 var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
/* warianty przycisku: -lg większy, -primary czerwony (główny), -ghost z ramką, -light półprzezroczysty na granatowym tle */
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(211, 32, 43, .75); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
/* mały czerwony napis nad nagłówkiem, z kreską przed nim (np. "— OFERTA") */
.section-label { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 800; font-size: .88rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.section-label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
/* nad wyśrodkowanym nagłówkiem kreska jest z obu stron ("— OFERTA —") */
.section-heading:not(.section-heading--with-link) .section-label::after { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-label--light { color: #ffc2c6; }
/* rząd przycisków pod tekstem (strona Komputery i 404) */
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- baner na stronie głównej ---------- */
/* tło z kilku warstw nałożonych na siebie: czerwona poświata, niebieska poświata, wzór, granatowy gradient */
.home-banner {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(211, 32, 43, .22) 0, rgba(211, 32, 43, 0) 32%),
    radial-gradient(circle at 10% 0%, rgba(60, 100, 220, .35) 0, rgba(60, 100, 220, 0) 45%),
    url("pattern-dark.svg") repeat,
    linear-gradient(135deg, #0c1840 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  background-size: auto, auto, 520px 520px, auto;
}
/* dwie kolumny: tekst po lewej, zdjęcie kasy po prawej */
.home-banner-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; padding: 64px var(--pad) 120px; position: relative; z-index: 1; }
.home-banner h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .35em; }
.home-banner h1 .accent { display: block; color: var(--red-light); }
.home-banner .lead { color: #eef1fb; font-size: 1.16rem; }
.lead { font-size: 1.12rem; color: #3d4559; max-width: 58ch; }
.home-banner-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-banner-facts { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; padding: 22px 0 0; margin: 30px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); color: #dfe5f7; font-size: .95rem; }
.home-banner-facts strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
/* zdjęcie kasy z jasnym kołem za nim i przerywanym okręgiem dookoła */
.home-banner-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.home-banner-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, .04) 55%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.home-banner-glow::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.home-banner-photo { position: relative; width: 82%; max-width: 440px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
/* "pływające" plakietki przy zdjęciu (cena, fiskalizacja) – półprzezroczyste z rozmyciem tła */
.floating-badge { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: rgba(20, 34, 84, .78); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); color: #fff; line-height: 1.2; }
.floating-badge svg { width: 38px; height: 38px; padding: 8px; border-radius: 8px; background: var(--red); color: #fff; }
.floating-badge small { display: block; color: #eef1fb; font-size: .9rem; font-weight: 600; }
.floating-badge strong { display: block; font-size: 1.05rem; font-weight: 800; }
.floating-badge--price { left: 0; bottom: 16%; }
.floating-badge--service { right: 0; top: 10%; }
.floating-badge--service svg { background: var(--navy-3); }
/* biała fala na dole banera */
.banner-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: #fff; }

/* pasek usług, który nachodzi na dół banera (ujemny margines u góry) */
.services-strip { position: relative; z-index: 2; padding: 0 var(--pad); margin-top: -76px; }
.services-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(15, 29, 74, .35); overflow: hidden; }
.services-strip-item { display: flex; gap: 12px; padding: 22px 20px; align-items: flex-start; }
.services-strip-item + .services-strip-item { border-left: 1px solid var(--line); }
.services-strip-icon { width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: #fdecee; color: var(--red); flex: none; }
/* co druga ikonka granatowa zamiast czerwonej */
.services-strip-item:nth-child(even) .services-strip-icon { background: #e9eefb; color: var(--navy-3); }
.services-strip-item h3 { font-size: 1.02rem; margin: 2px 0 4px; line-height: 1.25; }
.services-strip-item p { margin: 0; color: #3d4559; font-size: .92rem; line-height: 1.5; }

/* ---------- sekcje ---------- */
/* zwykła sekcja treści; --tight mniejsze odstępy, --alt szare tło (żeby sąsiednie sekcje się odróżniały) */
.section { padding: 64px var(--pad); }
.section--tight { padding-top: 32px; padding-bottom: 32px; }
.section--alt { background: var(--bg-alt); }
/* nagłówek sekcji: wyśrodkowany, albo w wersji --row z linkiem po prawej */
.section-heading { text-align: center; margin-bottom: 36px; }
.section-heading--with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; text-align: left; }
.section-heading h2 { margin: 0; }
.see-all-link { font-weight: 700; text-decoration: none; }
/* jasny pas z tytułem na górze każdej podstrony (poza główną); wzór w tle stopniowo zanika w lewo */
.page-head { padding: 44px var(--pad) 34px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f6f8fb 35%, rgba(246, 248, 251, .7)), url("pattern.svg") repeat; background-size: auto, 520px 520px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.page-head--slim { padding-top: 16px; padding-bottom: 16px; }
/* okruszki: Start / Kategoria / ... */
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.crumbs a { color: var(--muted); }
/* przełączniki podkategorii ("Wszystkie 22", "Online 12"...); .is-active = wybrany, granatowy */
.category-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.category-chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.category-chip span { color: var(--muted); font-weight: 600; }
.category-chip:hover { border-color: var(--navy); color: var(--navy); }
.category-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.category-chip.is-active span { color: #c9d2ef; }

/* kafelki kategorii (strona główna i strony zbiorcze): zdjęcie na górze, nazwa i strzałka pod spodem */
/* siatka ma 6 wąskich kolumn, a każdy kafelek zajmuje 2 – czyli zwykle 3 kafelki w rzędzie.
   Po co 6, a nie 3? Bo wtedy można ułożyć 5 kafelków bez dziury: 2 większe w pierwszym rzędzie
   (po 3 kolumny – kasy i drukarki, czyli to, czym sklep zajmuje się najbardziej) i 3 zwykłe w drugim. */
.category-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-tiles > * { grid-column: span 2; }
/* "Zapytanie o liczbę" (quantity query): :nth-child(1):nth-last-child(5) łapie 1. kafelek tylko wtedy,
   gdy jest też 5. od końca – czyli gdy kafelków jest dokładnie 5. Przy innej liczbie nic się nie zmienia. */
.category-tiles > :nth-child(1):nth-last-child(5),
.category-tiles > :nth-child(2):nth-last-child(4) { grid-column: span 3; }
/* większe kafelki dostają odpowiednio "dłuższe" zdjęcie (1,5 × szerokość → 24/10 zamiast 16/10),
   żeby nie były półtora raza wyższe od tych pod nimi */
.category-tiles > :nth-child(1):nth-last-child(5) .category-tile-image,
.category-tiles > :nth-child(2):nth-last-child(4) .category-tile-image { aspect-ratio: 24 / 10; }
/* dokładnie 2 kafelki (np. dział "Urządzenia fiskalne"): każdy na pół rzędu, zamiast dziury po prawej */
.category-tiles > :nth-child(1):nth-last-child(2),
.category-tiles > :nth-child(2):last-child { grid-column: span 3; }
.category-tiles > :nth-child(1):nth-last-child(2) .category-tile-image,
.category-tiles > :nth-child(2):last-child .category-tile-image { aspect-ratio: 24 / 10; }
.category-tile { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--navy); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.category-tile:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #cdd4e2; color: var(--navy); }
.category-tile-image { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, #ffffff 0, #eef2f8 70%); border-bottom: 1px solid var(--line); }
/* object-fit: contain – zdjęcie zawsze całe w ramce; mix-blend-mode: multiply – białe tło zdjęcia "znika" */
.category-tile-image img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.category-tile:hover .category-tile-image img { transform: scale(1.05); }
.category-tile-image svg { width: 30%; height: 50%; color: var(--navy-3); }.category-tile-text { padding: 16px 0 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.category-tile-name { font-weight: 800; font-size: 1.16rem; line-height: 1.2; }
.category-tile-details { color: #3d4559; font-size: .92rem; font-weight: 600; }
.category-tile-arrow { align-self: center; margin-right: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-alt); color: var(--navy); font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.category-tile:hover .category-tile-arrow { background: var(--red); color: #fff; transform: translateX(3px); }
/* czerwona kreska na dole kafelka/karty, wysuwa się od lewej po najechaniu */
.category-tile::after, .product-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.category-tile:hover::after, .product-card:hover::after { transform: scaleX(1); }

/* siatka kart produktów: auto-fill wstawia tyle kolumn (min. 240 px każda), ile się zmieści */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-grid--3-columns { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7cfe0; color: var(--ink); }
.product-card-image { position: relative; aspect-ratio: 5 / 4; background: radial-gradient(circle at 50% 55%, #fff 0, #f2f5fa 75%); border-bottom: 1px solid var(--line); }
.product-card-image img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.06rem; margin-bottom: .6em; flex: 1; color: var(--navy); }
.product-card-body .price { color: var(--red-dark); }
/* czerwona plakietka "ONLINE" w rogu zdjęcia */
.online-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .84rem;
  letter-spacing: .08em; padding: 4px 8px; border-radius: 4px; z-index: 1; }
.online-badge--large { font-size: .88rem; padding: 6px 10px; }
/* ceny: netto duża, brutto mniejsza pod spodem; --ask "Cena na zapytanie", --lg na stronie produktu */
.price { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.price small { font-weight: 700; font-size: .88rem; color: var(--muted); }
.price .price-from { font-weight: 700; font-size: .9rem; color: var(--muted); }
.price-gross { color: #4d566b; font-size: .9rem; font-weight: 600; margin: 2px 0 0; }
.price--on-request { font-size: 1rem; color: var(--navy-2); }
.price--large { font-size: 2.1rem; }
/* ramka z komunikatem, gdy lista jest pusta */
.empty-message { padding: 30px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* pasek z markami (POSNET, ELZAB...) */
.brands-strip { display: flex; align-items: center; gap: 32px; padding: 26px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brands-label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.brands-list { display: flex; flex: 1; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brands-list span { font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: #4d566b; transition: color .2s; }
.brands-list span:hover { color: var(--navy); }

/* granatowy pasek z wezwaniem do kontaktu ("Potrzebujesz kasy fiskalnej?") */
.contact-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 56px var(--pad); padding: 36px 40px;
  border-radius: 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--navy) 45%, rgba(15, 29, 74, .55) 75%, rgba(15, 29, 74, 0)),
    radial-gradient(circle at 100% 0, rgba(211, 32, 43, .45) 0, rgba(211, 32, 43, 0) 45%), url("pattern-dark.svg") repeat, var(--navy);
  background-size: auto, auto, 520px 520px, auto; }
/* kolumna z tekstem ustępuje (łamie się na więcej linii), żeby przyciski zostały po jej prawej;
   dopiero gdy na tekst zostaje mniej niż ok. 320 px, przyciski spadają pod spód */
.contact-banner > div:first-child { flex: 1 1 320px; }
.contact-banner-buttons { flex: 0 0 auto; }
.contact-banner h2 { color: #fff; margin-bottom: .25em; }
.contact-banner p { margin: 0; color: #dfe5f7; max-width: 52ch; font-size: 1.02rem; }
.contact-banner-buttons { display: flex; gap: 12px; flex-wrap: wrap; }


/* strona produktu: zdjęcie po lewej, nazwa, cena i kontakt po prawej */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-photo { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: radial-gradient(circle at 50% 55%, #fff 0, #f2f5fa 80%); }
.product-photo img { margin: 0 auto; max-height: 460px; object-fit: contain; mix-blend-mode: multiply; }
.product-details h1 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
/* blok z ceną i tabelką wersji */
.price-box { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0 18px; }
.variants-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.variants-table caption { text-align: left; font-weight: 800; color: var(--navy); padding-bottom: 6px; }
.variants-table th, .variants-table td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.variants-table th { font-weight: 600; padding-right: 14px; }
.variants-table td { font-weight: 800; white-space: nowrap; text-align: right; }
.variants-table td .muted { font-weight: 500; font-size: .88rem; }
/* szare pole "Chcesz kupić lub masz pytania?" z przyciskami */
.ask-box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; border-left: 3px solid var(--red); }
.ask-box-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* tekst "artykułowy": opis produktu i teksty z panelu (nagłówki z kreską, listy, tabelka specyfikacji w paski) */
.rich-text { max-width: 880px; }
.rich-text { color: #1f2639; }
.rich-text h2 { font-size: 1.2rem; margin-top: 1.7em; padding-left: 12px; border-left: 4px solid var(--red); line-height: 1.25; }
.rich-text h3 { font-size: 1.1rem; margin-top: 1.5em; padding-left: 12px; border-left: 4px solid var(--navy-3); }
.rich-text strong { color: var(--navy); }
.rich-text ul { padding-left: 1.3em; }
.rich-text li { margin-bottom: .35em; }
.rich-text li::marker { color: var(--red); }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.rich-text caption { text-align: left; font-weight: 800; font-size: 1.1rem; color: var(--navy); padding: 0 0 10px 12px; border-left: 4px solid var(--navy-3); }
.rich-text td, .rich-text th { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.rich-text tr:nth-child(odd) td { background: var(--bg-alt); }
.rich-text td:first-child { color: var(--navy); font-weight: 700; width: 42%; }
.rich-text td + td { color: var(--ink); }
.rich-text table { border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.rich-text tr:last-child td { border-bottom: 0; }
.rich-text--plain p { font-size: 1.08rem; }

/* karty usług na stronie "O nas" */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.service-icon { width: 44px; height: 44px; padding: 10px; border-radius: 8px; background: #fdecee; color: var(--red); margin-bottom: 14px; }
.service-card h3 { font-size: 1.02rem; }
.service-card p { color: #3d4559; margin: 0; font-size: .97rem; }

/* granatowa sekcja "Zapraszamy do sklepu" z mapą (na dole kilku stron) */
.shop-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; padding: 56px var(--pad);
  background: linear-gradient(90deg, var(--navy) 38%, rgba(15, 29, 74, .6) 60%, rgba(15, 29, 74, .25)), url("pattern-dark.svg") repeat, var(--navy);
  background-size: auto, 520px 520px, auto; color: #fff; }
.shop-section h2 { color: #fff; }
.shop-section .accent { color: var(--red-light); }
.shop-section a { color: #fff; }
/* lista "Adres / Telefon / E-mail / Godziny": etykiety w lewej kolumnie, wartości w prawej */
.shop-facts { margin: 0 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.shop-facts dt { color: #c3cdee; font-size: .9rem; padding-top: 2px; }
.shop-facts dd { margin: 0; font-weight: 600; }
.shop-phone-link { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.shop-map { border-radius: 14px; overflow: hidden; min-height: 330px; background: #24356e; }
.shop-map iframe { width: 100%; height: 100%; min-height: 330px; border: 0; display: block; }

/* strona kontaktu – wspólny wygląd kafelków (układ jest niżej w pliku) */
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-label { color: var(--red); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.contact-value { font-size: 1.4rem; font-weight: 800; color: var(--navy); word-break: break-word; }

/* stopka – zwarta: jeden rząd z danymi, pod nim prawa autorskie i linki */
.footer { background: #0a1435; color: #dfe5f7; padding: 0 var(--pad); font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--red-light); }
.footer-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 20px 0; }
.footer-row .logo { margin-right: 8px; }
.footer-item { display: inline-flex; align-items: center; gap: 6px; }
.footer-item svg { width: 14px; height: 14px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 0; color: #b4bfe0; font-size: .88rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #dfe5f7; }
/* podpis twórcy strony – w środku dolnego paska (footer-bottom rozkłada 3 elementy: lewo, środek, prawo).
   Czerwień w jasnym odcieniu (--red-light), tak jak czerwone akcenty na granatowym tle (np. "Komputery" w banerze);
   zwykła --red byłaby na granacie za ciemna i słabo czytelna */
.footer .footer-credit { color: var(--red-light); }
.footer .footer-credit strong { color: var(--red-light); font-weight: 800; letter-spacing: .02em; }
.footer .footer-credit:hover, .footer .footer-credit:hover strong { color: #fff; }

/* ---------- mniejsze ekrany ---------- */
/* @media (max-width: X) = reguły działają tylko, gdy okno jest węższe niż X.
   Progi: 1180 px (mały laptop), 1060 px, 900 px (tablet – menu zamienia się w "hamburger"), 640 px (telefon). */
@media (max-width: 1180px) {
  :root { --pad: 40px; }
  /* 4 usługi: na węższym ekranie układ 2 × 2 (przy 3 kolumnach czwarta zostałaby sama w drugim rzędzie) */
  .services-strip-inner { grid-template-columns: 1fr 1fr; }
  .services-strip-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .services-strip-item:nth-child(-n+2) { border-top: 0; }
  .services-strip-item:nth-child(even) { border-left: 1px solid var(--line) !important; }
}
@media (max-width: 1060px) {
  .menu-tab { padding: 0 11px; letter-spacing: .08em; }
  .menu-tab::before { left: 11px; right: 11px; }
  /* 2 kafelki w rzędzie (kasy i drukarki nadal na samej górze); przy nieparzystej liczbie kafelków
     ostatni zajmuje cały rząd (z "dłuższym" zdjęciem, żeby nie urósł w górę) */
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .category-tiles > *,
  .category-tiles > :nth-child(1):nth-last-child(5),
  .category-tiles > :nth-child(2):nth-last-child(4),
  .category-tiles > :nth-child(1):nth-last-child(2),
  .category-tiles > :nth-child(2):last-child { grid-column: span 1; }
  .category-tiles > :nth-child(1):nth-last-child(5) .category-tile-image,
  .category-tiles > :nth-child(2):nth-last-child(4) .category-tile-image,
  .category-tiles > :nth-child(1):nth-last-child(2) .category-tile-image,
  .category-tiles > :nth-child(2):last-child .category-tile-image { aspect-ratio: 16 / 10; }
  /* :last-child:nth-child(odd) = ostatni kafelek, i to na nieparzystym miejscu (3., 5., 7. …),
     czyli dokładnie ten, który zostałby sam w rzędzie */
  .category-tiles > :last-child:nth-child(odd) { grid-column: span 2; }
  .category-tiles > :last-child:nth-child(odd) .category-tile-image { aspect-ratio: 32 / 10; }
}
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .site-header { gap: 8px; min-height: 64px; }
  .logo { font-size: 1.3rem; }
  .header-call-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--red); color: #fff; }
  .header-call-button svg { width: 18px; height: 18px; fill: currentColor; }
  .menu-tab::before { display: none; }
  /* "hamburger": trzy kreski; po otwarciu menu górna i dolna obracają się w "X", a środkowa znika */
  .nav-toggle { display: block; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span:not(.visually-hidden) { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .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); }
  /* menu na telefonie: biały panel pod nagłówkiem, widoczny po dodaniu klasy .is-open (robi to site.js) */
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--navy); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 64px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .menu-tabs { flex-direction: column; padding: 6px var(--pad) 14px; }
  .menu-tabs > li { flex-direction: column; border-bottom: 1px solid var(--line); }
  .menu-tab { min-height: 52px; font-size: .95rem; }
  .has-dropdown > .menu-tab::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 6px; min-width: 0; }
  .dropdown > li + li { border: 0; }
  /* układy dwukolumnowe stają się jednokolumnowe */
  .home-banner-inner, .product-layout, .shop-section { grid-template-columns: 1fr; }
  .home-banner-inner { padding-top: 28px; padding-bottom: 110px; }
  .home-banner-visual { order: -1; min-height: 260px; }   /* zdjęcie nad tekstem */
  .home-banner-photo { width: 60%; }
  .floating-badge { padding: 9px 12px; }
  .floating-badge svg { width: 32px; height: 32px; padding: 7px; }
  .contact-banner { padding: 28px; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  body { font-size: 16.5px; }
  .home-banner-buttons .btn, .ask-box-buttons .btn, .button-row .btn, .contact-banner-buttons .btn { flex: 1 1 100%; }
  .contact-banner-buttons { flex: 1 1 100%; }   /* telefon: grupa przycisków zajmuje cały wiersz, więc przyciski też mogą */
  .home-banner-facts { gap: 20px; }
  .floating-badge--price { bottom: 4%; }
  .floating-badge--service { top: 2%; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .services-strip-inner { grid-template-columns: 1fr; }
  .services-strip-item { border-left: 0 !important; border-top: 1px solid var(--line) !important; padding: 16px 18px; }
  .services-strip-item:first-child { border-top: 0 !important; }
  .category-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-tile-text { padding: 12px 0 14px 14px; }
  .category-tile-name { font-size: .95rem; }
  .category-tile-details { font-size: .84rem; }
  .category-tile-arrow { display: none; }
  .product-grid, .product-grid--3-columns { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-body h3 { font-size: .98rem; }
  .price { font-size: 1.02rem; }
  .price-gross { font-size: .84rem; }
  .brands-strip { gap: 14px; }
  .brands-list { justify-content: flex-start; gap: 10px 20px; }
  .brands-list span { font-size: 1rem; }
  .contact-banner { margin: 36px var(--pad); padding: 24px 20px; }
  .shop-facts { grid-template-columns: 1fr; gap: 2px; }
  .shop-facts dd { margin-bottom: 10px; }
  .rich-text td:first-child { width: 50%; }
  .section-heading--with-link { flex-direction: column; align-items: flex-start; }
  .footer-row { gap: 8px 18px; }
}

/* ---------- nagłówek: granatowy pasek; na stronie głównej przezroczysty, dopóki się nie przewinie ---------- */
/* (ta sekcja jest dalej w pliku, więc nadpisuje wcześniejsze, jaśniejsze kolory nagłówka) */
.site-header {
  background: rgba(13, 25, 66, .97); border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s, box-shadow .25s, min-height .25s, border-color .25s;
}
.site-header .logo, .site-header .logo:hover { color: #fff; transition: font-size .25s; }
.site-header .menu-tab { color: #e6eaf8; transition: color .15s, min-height .25s; }
.site-header .menu-tab:hover { color: #fff; }
.site-header .menu-tabs > li.is-active > .menu-tab { color: #fff; }
.site-header .menu-tab::before { background: var(--red-light); bottom: 12px; }
/* strona główna, sam początek: nagłówek jest częścią banera (baner podjeżdża pod niego ujemnym marginesem) */
.site-header--over-banner:not(.is-scrolled):not(.is-menu-open) {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header--over-banner + main .home-banner { margin-top: -79px; }
.site-header--over-banner + main .home-banner-inner { padding-top: 143px; }
/* po przewinięciu (klasa .is-scrolled z site.js): niższy, pełny pasek z cieniem, wyraźnie oddzielony od białej strony */
.site-header.is-scrolled { min-height: 64px; box-shadow: 0 14px 30px -14px rgba(5, 12, 40, .6); }
.site-header.is-scrolled .menu-tab { min-height: 60px; }
.site-header.is-scrolled .menu-tab::before { bottom: 8px; }
.site-header.is-scrolled .logo { font-size: 1.3rem; }
.site-header .dropdown { top: 100%; }

@media (max-width: 900px) {
  .site-header .nav-toggle span:not(.visually-hidden) { background: #fff; }
  .site-header--over-banner + main .home-banner { margin-top: -67px; }
  .site-header--over-banner + main .home-banner-inner { padding-top: 95px; }
  /* otwarte menu na telefonie to biały panel – tam tekst musi być ciemny */
  .site-header .main-nav .menu-tab { color: var(--navy); }
  .site-header .main-nav .menu-tabs > li.is-active > .menu-tab { color: var(--red); }
  .site-header.is-scrolled .menu-tab { min-height: 52px; }
}

/* link "Wszystkie: …" na dole rozwijanej listy w menu */
.dropdown > li.dropdown-all-link { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.dropdown-all-link a { color: var(--red); font-size: .9rem; }

/* Wzór z napisami KOMSOFT w tle sekcji jest przesunięty o pół rzędu względem wzoru po bokach strony,
   żeby napis w środku nigdy nie wypadał w jednej linii z napisem z boku.
   Przesunięcie (--pat-y) liczy site.js z położenia każdej sekcji; liczby po przecinku to kolejne warstwy tła. */
.home-banner { background-position: 0 0, 0 0, 0 var(--pat-y, 130px), 0 0; }
.page-head { background-position: 0 0, 0 var(--pat-y, 50px); }
.contact-banner { background-position: 0 0, 0 0, 0 var(--pat-y, 130px); }
.shop-section { background-position: 0 0, 0 var(--pat-y, 130px); }

/* ---------- menu na telefonie: zakładki z rozwijanymi listami kategorii ---------- */
.menu-tab-row { display: contents; }          /* komputer: "pudełko" znika, zakładka zachowuje się jak zwykle */
.dropdown-toggle { display: none; }
@media (max-width: 900px) {
  .menu-tab-row { display: flex; align-items: center; gap: 8px; }
  .menu-tab-row .menu-tab { flex: 1; }
  /* przycisk ze strzałką obok zakładki – 44 px, żeby łatwo trafić palcem */
  .dropdown-toggle {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px;
    background: var(--bg-alt); color: var(--navy); cursor: pointer;
  }
  .dropdown-toggle::after {
    content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2.5px 2.5px 0;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
  }
  .has-dropdown.is-open .dropdown-toggle { background: var(--navy); color: #fff; }
  .has-dropdown.is-open .dropdown-toggle::after { transform: translateY(2px) rotate(225deg); }
  .site-header .has-dropdown .dropdown { display: none; }
  .site-header .has-dropdown.is-open .dropdown { display: block; padding: 2px 0 10px 12px; border-left: 3px solid var(--red); margin: 0 0 8px 4px; }
  .dropdown-subcategories { padding-top: 2px; }
}

@media (max-width: 900px) {
  .home-banner-visual { min-height: 300px; }
}

/* ---------- numer telefonu: na komputerze się kopiuje, na telefonie dzwoni ---------- */
/* (hover: hover) and (pointer: fine) = urządzenie z myszką, czyli komputer */
@media (hover: hover) and (pointer: fine) {
  [data-copy] { position: relative; cursor: copy; }
  /* dymek "Skopiowano ✓" nad numerem – treść bierze z atrybutu data-copied, który ustawia site.js */
  [data-copy][data-copied]::after {
    content: attr(data-copied); position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%);
    padding: 5px 10px; border-radius: 6px; background: var(--red); color: #fff;
    font: 700 .82rem/1.2 var(--font); letter-spacing: .01em; white-space: nowrap; pointer-events: none; z-index: 10;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
  }
}

/* ---------- strona kontaktu: przyciski "Kopiuj" ---------- */
.contact-card a.contact-value { text-decoration: none; }
.copy-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
  color: var(--ink); font: 700 .8rem/1.2 var(--font); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.copy-btn:hover { border-color: var(--navy); color: var(--navy); }
/* po skopiowaniu przycisk na chwilę robi się zielony */
.copy-btn.is-copied { background: #e6f6ec; border-color: #bfe5cc; color: #0f7a3d; }
@media (hover: hover) and (pointer: fine) {
  /* na komputerze numer i e-mail to tekst do przeczytania albo zaznaczenia, a nie link */
  .contact-card a[data-plain-on-desktop] { cursor: text; }
  .contact-card a[data-plain-on-desktop]:hover { color: var(--navy); }
}

/* ---------- strona kontaktu, układ: dane firmy, telefon i e-mail jeden nad drugim po lewej, formularz po prawej ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 16px; align-items: stretch; }
/* trzy kafelki po lewej dzielą wysokość po równo (1fr każdy) i razem mają tyle, co formularz obok */
.contact-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.contact-card--main { gap: 4px; background: var(--bg-alt); }
.contact-main-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 2px 0 4px; }
.contact-main-line { font-size: 1rem; font-weight: 600; color: var(--ink); }
.contact-card--main .copy-btn { background: #fff; }
.contact-side .contact-card { justify-content: center; }

/* formularz kontaktowy */
.contact-form-card { padding: 28px 32px; }
.contact-form-card h2 { margin: 0 0 14px; font-size: 1.6rem; }
.form-field { display: block; margin-bottom: 14px; }
.form-field > span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #c3cad8; border-radius: 8px; background: var(--bg-alt);
  font: 600 1rem/1.4 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 3px rgba(38, 64, 143, .15); }
.form-field textarea::placeholder { color: #8a92a6; font-weight: 500; }
/* pole z błędem: czerwona ramka i komunikat pod spodem */
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211, 32, 43, .12); }
.form-error { display: block; margin-top: 6px; color: var(--red-dark); font-size: .9rem; font-weight: 700; }
/* zielony / czerwony pasek nad formularzem */
.form-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; font-weight: 700; border: 1px solid; }
.form-notice--success { background: #e6f6ec; border-color: #bfe5cc; color: #0f7a3d; }
.form-notice--error { background: #fdecee; border-color: #f5c2c6; color: var(--red-dark); }
/* pułapka na roboty: wysunięta daleko poza ekran (nie display:none – niektóre roboty pomijają ukryte pola) */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 14px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
/* sklep jako granatowy kafelek w tej samej kolumnie – wygląda jak sekcja sklepu na innych stronach
   (granat + blady wzór), ale jest zaokrąglony i ma marginesy jak kafelki nad nim */
.contact-shop { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; margin-top: 16px; padding: 28px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(90deg, var(--navy) 35%, rgba(15, 29, 74, .7)), url("pattern-dark.svg") repeat, var(--navy);
  background-size: auto, 520px 520px, auto; }
.contact-shop-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.contact-shop h2 { color: #fff; margin: 10px 0 18px; }
.contact-shop .accent { color: var(--red-light); }
.contact-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 24px; }
.contact-hours dt { color: #c3cdee; }
.contact-hours dd { margin: 0; font-weight: 700; }
.contact-shop-map { border-radius: 10px; overflow: hidden; min-height: 300px; background: #24356e; }
.contact-shop-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
@media (max-width: 760px) {
  .contact-shop { grid-template-columns: 1fr; padding: 22px; }
  .contact-shop .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { grid-template-rows: none; }
  .contact-form-card { padding: 22px 20px; }
  .contact-form-card .btn { width: 100%; }
}
