/* Static Tailwind CSS Replacement */
:root {
    --color-warning: #FFD200;
    --color-warning-dark: #E5BD00;
    --color-dark: #1A1A1A;
    --color-darker: #111111;
    --color-white: #ffffff;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
}

/* Preflight (Tailwind CSS Reset) */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before,
::after {
    --tw-content: '';
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

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

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

button,
[role="button"] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none;
}

/* Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* FAZA1A: klasy uzywane w HTML, ktorych brakowalo */
.from-dark { --tw-gradient-from: var(--color-dark); }
.to-darker { --tw-gradient-to: var(--color-darker); }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-8 { padding: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.min-h-\[350px\] { min-height: 350px; }
.h-\[400px\] { height: 400px; }
.bg-neutral-700 { background-color: var(--color-neutral-700); }
.duration-300 { transition-duration: 300ms; }

@media (min-width: 640px) {
.sm\:flex { display: flex; }
.sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
.md\:h-full { height: 100%; }
.md\:flex-grow { flex-grow: 1; }
}

/* Grid Cols */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Colors & Backgrounds */
.bg-dark {
    background-color: var(--color-dark);
}

.bg-darker {
    background-color: var(--color-darker);
}

.bg-darker\/95 {
    background-color: rgba(17, 17, 17, 0.95);
}

.bg-warning {
    background-color: var(--color-warning);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-neutral-800 {
    background-color: var(--color-neutral-800);
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-from, var(--color-dark)), var(--tw-gradient-to, var(--color-darker)));
}

.text-white {
    color: var(--color-white);
}

.text-darker {
    color: var(--color-darker);
}

.text-warning {
    color: var(--color-warning);
}

.text-gray-300 {
    color: var(--color-gray-300);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-neutral-600 {
    color: var(--color-neutral-600);
}

/* Hover */
.hover\:bg-warning-dark:hover {
    background-color: var(--color-warning-dark);
}

.hover\:bg-neutral-800:hover {
    background-color: var(--color-neutral-800);
}

.hover\:bg-neutral-600:hover {
    background-color: #525252;
}

.hover\:text-warning:hover {
    color: var(--color-warning);
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* Typography */
.font-bold {
    font-weight: 700;
}

.font-sans {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Enhanced font stack */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* BUMPED SIZE for readability */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.1;
}

.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-9xl { font-size: 8rem; line-height: 1; }
.text-left { text-align: left; }

/* Improved leading */
.text-center {
    text-align: center;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose { line-height: 2; }

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

/* Readability - Increased contrast for gray texts */
.text-gray-300 {
    color: #d6d3d1;
}

.text-gray-400 {
    color: #a8a29e;
}

.text-gray-500 {
    color: #928c87;
}

@media (min-width: 768px) {
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    /* Larger for impact */
}

/* Spacing & Touch Targets */
.p-2 {
    padding: 0.6rem;
}

/* Slightly larger touch targets */
.p-3 {
    padding: 0.85rem;
}

.p-4 {
    padding: 1.15rem;
}

.p-5 {
    padding: 1.35rem;
}

.p-6 {
    padding: 1.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}


@media (min-width: 768px) {
    .md\:p-8 {
        padding: 2rem;
    }

    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Width/Height/Position */
.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.h-20 {
    height: 5rem;
}

.h-80 {
    height: 20rem;
}

.h-full {
    height: 100%;
}

.flex-grow {
    flex-grow: 1;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-md {
    max-width: 28rem;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Borders & Rounded */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-neutral-700 {
    border-color: var(--color-neutral-700);
}

.border-neutral-800 {
    border-color: var(--color-neutral-800);
}

.border-neutral-600 {
    border-color: var(--color-neutral-600);
}

.border-warning {
    border-color: var(--color-warning);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* Effects */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transform {
    transform: var(--tw-transform);
}

.translate-y-full {
    transform: translateY(100%);
}

.translate-y-0 {
    transform: translateY(0);
}

@media (min-width: 1024px) {
.lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
.lg\:left-8 { left: 2rem; }
.lg\:bottom-8 { bottom: 2rem; }
.lg\:right-auto { right: auto; }
.lg\:max-w-md { max-width: 28rem; }
}

/* FAZA1B: naglowek, cele dotykowe, czytelnosc, baner zgody */
.site-logo { min-height: 44px; }
h3 > a { display: inline-block; min-height: 24px; }
.mt-4 > a:only-child { display: inline-block; min-height: 24px; }
.header-tel { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 0.75rem; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 767.98px) {
    #menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
@media (max-width: 639.98px) {
    .site-logo { font-size: 0.875rem; line-height: 1.15; gap: 0.375rem; min-width: 0; }
    .header-tel .mr-2 { display: none; }
}
footer a, main ol a { display: inline-block; min-width: 24px; min-height: 24px; padding-top: 0.125rem; padding-bottom: 0.125rem; }
p a.text-warning, p a.hover\:text-warning, footer p a { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { overflow-wrap: break-word; }
h1:lang(de), h1:lang(uk), h1:lang(ru) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 14 5 5; }

#consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-darker); border-top: 1px solid var(--color-neutral-700); padding: 0.75rem 1rem; padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); font-size: 0.8125rem; line-height: 1.35; color: #d6d3d1; box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.45); }
#consent-banner p { margin-bottom: 0.5rem; }
#consent-banner .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
#consent-banner button { min-height: 44px; padding: 0.5rem; border: 1px solid var(--color-warning); border-radius: 0.5rem; background: var(--color-neutral-800); color: #fff; font-weight: 700; font-size: 0.875rem; }
#consent-banner button:hover { background: var(--color-neutral-700); }
body.cta-visible #consent-banner { bottom: var(--cta-h, 0px); }
@media (min-width: 1024px) {
    #consent-banner { left: 2rem; right: auto; bottom: 2rem; max-width: 28rem; border: 1px solid var(--color-neutral-700); border-radius: 0.75rem; padding: 1rem; }
    body.cta-visible #consent-banner { bottom: 2rem; }
}

/* FAZA1C: tablet, okruszki, menu w poziomie, baner razem z paskiem */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* pelne menu + jezyki + numer nie mieszcza sie (DE/UK/RU): do 1023 px zostaje menu rozwijane */
    header:has(#menu-btn) nav.md\:flex { display: none; }
    header #menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    header #mobile-menu:not(.hidden) { display: block; }
}
main nav ol { flex-wrap: wrap; }
#mobile-menu { max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
#consent-banner { transition: bottom 300ms cubic-bezier(0.4, 0, 0.2, 1); }

/* FAZA2: ikony, pierwszy ekran, dopracowanie */
.whitespace-nowrap { white-space: nowrap; }
:root { --radius-card: 0.75rem; --color-line: #2e2e2e; --focus: #FFD200; }
.icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.text-4xl > .icon, .text-5xl > .icon { width: 1em; height: 1em; color: var(--color-warning); }
.bg-warning .text-4xl > .icon, .bg-warning .text-5xl > .icon { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
section:has(.hero-facts) h1 .text-warning { white-space: nowrap; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; list-style: none; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--color-line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.875rem; color: #e7e5e4; background: rgba(255, 255, 255, 0.03); }
.hero-facts .icon { color: var(--color-warning); }
.hero-lead { margin-top: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
section.bg-warning a:focus-visible, div.bg-warning a:focus-visible { outline-color: #111111; }
a[href^="tel:"], #menu-btn, #consent-banner button { -webkit-tap-highlight-color: transparent; }
a[href^="tel:"]:active, #menu-btn:active, #consent-banner button:active { scale: 0.96; }
.fixed.bottom-0.md\:hidden { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
/* otwarte menu nie moze byc zaslaniane przez dolny pasek ani baner (wracaja po zamknieciu) */
@media (max-height: 500px) and (max-width: 1023.98px) {
    body:has(#mobile-menu:not(.hidden)) .fixed.bottom-0.md\:hidden,
    body:has(#mobile-menu:not(.hidden)) #consent-banner { visibility: hidden; }
}
/* UK i RU: pelne menu z dluzszym logo nie miesci sie ponizej 1200 px */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    :root:lang(uk) header:has(#menu-btn) nav.md\:flex, :root:lang(ru) header:has(#menu-btn) nav.md\:flex { display: none; }
    :root:lang(uk) header #menu-btn, :root:lang(ru) header #menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    :root:lang(uk) header #mobile-menu:not(.hidden), :root:lang(ru) header #mobile-menu:not(.hidden) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    a[href^="tel:"]:active, #menu-btn:active, #consent-banner button:active { scale: none; }
}

/* FAZA2B */
.text-4xl .icon, .text-5xl .icon { width: 1em; height: 1em; color: var(--color-warning); }
.bg-warning .text-4xl .icon, .bg-warning .text-5xl .icon { color: inherit; }
.text-4xl > .mr-2, .text-5xl > .mr-2 { margin-right: 0; }
.header-tel { gap: 0.4rem; }
main { overflow-wrap: break-word; }
@media (max-width: 359.98px) {
    .site-logo { font-size: 0.75rem; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
    .site-logo .icon { display: none; }
    .header-tel { padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.8125rem; }
    header .header-tel { flex-shrink: 0; }
    main .grid > * { min-width: 0; }
}

/* FAZA3: mapa po kliknieciu i zwarty uklad na telefonie */
/* lista jezykow na mapie strony HTML: klasa byla uzyta bez reguly */
.flex-wrap { flex-wrap: wrap; }
.map-facade { width: 100%; height: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.map-load { min-height: 48px; padding: 0.75rem 1.25rem; border: 1px solid var(--color-warning); border-radius: var(--radius-card); background: transparent; color: #ffffff; font-weight: 700; cursor: pointer; }
.map-load:hover { background: var(--color-neutral-800); }
.map-directions { text-wrap: balance; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; margin-top: 0.75rem; padding: 0.5rem 1rem; border-radius: var(--radius-card); background: var(--color-neutral-800); color: var(--color-warning); font-weight: 700; text-align: center; }
@media (max-width: 767.98px) {
    h2:lang(de), h3:lang(de) { hyphens: auto; hyphenate-limit-chars: 14 5 5; }
    main section.py-12 { padding-top: 2rem; padding-bottom: 2rem; }
    /* bloki "dlaczego my": ikona obok tekstu zamiast wysokiej karty */
    main .grid > div.text-center:has(> :is(.text-4xl, .text-5xl)) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; align-items: start; text-align: left; padding: 1rem; }
    main .grid > div.text-center > :is(.text-4xl, .text-5xl) { grid-column: 1; grid-row: 1 / span 3; margin: 0; font-size: 1.75rem; }
    main .grid > div.text-center > :is(.text-4xl, .text-5xl) ~ * { grid-column: 2; }
    main .grid:has(> div.text-center > :is(.text-4xl, .text-5xl)) { gap: 0.75rem; }
    /* same krotkie linki (trasy, miejscowosci): dwie kolumny */
    main .grid:is(.md\:grid-cols-4, .lg\:grid-cols-4):has(> a:nth-child(even):last-child):not(:has(> div)):not(:has(h3, p)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    main .grid:is(.md\:grid-cols-4, .lg\:grid-cols-4):has(> a:nth-child(even):last-child):not(:has(> div)):not(:has(h3, p)) > a { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-width: 0; min-height: 48px; padding: 0.5rem; overflow-wrap: anywhere; text-align: center; }
    main .grid:is(.md\:grid-cols-4, .lg\:grid-cols-4):has(> a:nth-child(even):last-child):not(:has(> div)):not(:has(h3, p)) > a > .icon { flex-shrink: 0; margin: 0; }
    /* stopka w dwoch kolumnach */
    footer .grid.md\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
    footer .grid.md\:grid-cols-4 > :nth-child(-n+2) { grid-column: 1 / -1; }
}
@media (max-width: 399.98px) {
    main .grid:is(.md\:grid-cols-4, .lg\:grid-cols-4):has(> a:nth-child(even):last-child):not(:has(> div)):not(:has(h3, p)) > a { font-size: 0.8125rem; padding: 0.5rem 0.25rem; gap: 0.25rem; }
}

/* FAZA4: schemat korytarza S7 (nie w skali) */
.service-art { max-width: 40rem; margin: 2rem auto 0; }
.service-art img { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
.s7-map { max-width: 20rem; margin: 0 auto 2rem; }
.s7-map svg { display: block; width: 100%; height: auto; }
.s7-road { fill: none; stroke: var(--color-gray-300); stroke-width: 8; stroke-linecap: round; }
.s7-road-open { stroke-width: 4; stroke-dasharray: 2 10; }
.s7-badge { fill: var(--color-warning); }
.s7-badge-text { fill: #111111; font-size: 16px; font-weight: 800; }
.s7-town { fill: #111111; stroke: #ffffff; stroke-width: 4; }
.s7-halo { fill: none; stroke: var(--color-warning); stroke-width: 2; }
.s7-base { fill: var(--color-warning); }
.s7-name { fill: #ffffff; font-size: 19px; font-weight: 700; }
.s7-name-base { fill: var(--color-warning); }
.s7-sub { fill: var(--color-gray-300); font-size: 14px; }
