/* ============================================================================
   SkyView Białystok — design system (sekcja 5 planu). Mobile-first, czysty CSS.
   ========================================================================== */

/* ---- Poppins (hostowane lokalnie, latin + latin-ext dla polskich znaków) ---- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-300-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-300-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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500-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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-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; }

/* ---- Zmienne ---- */
:root {
    --bg: #F7FAFC;
    --navy: #0B1B2B;
    --navy-2: #13304A;
    --azure: #1FA8E0;          /* jasny akcent: gradienty, ikony, obramowania */
    --accent-ink: #15749F;     /* akcent jako TEKST na jasnym tle (kontrast ≈ 5:1, WCAG AA) */
    --amber-ink: #9A6300;      /* amber jako tekst na jasnym tle (kontrast ≈ 5:1) */
    --sky: #56C5F5;
    --amber: #F5A623;
    --ink: #16222E;
    --ink-soft: #5B6B79;
    --on-dark: #E6EEF4;
    --err: #c0392b;

    --sky-grad: linear-gradient(135deg, #56C5F5 0%, #1FA8E0 100%);
    --dark-grad: linear-gradient(160deg, #13304A 0%, #0B1B2B 100%);

    --shadow-card: 0 12px 40px rgba(11, 27, 43, 0.10);
    --shadow-hover: 0 22px 60px rgba(11, 27, 43, 0.18);

    --radius: 18px;
    --radius-sm: 12px;
    --pill: 999px;

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section: clamp(4rem, 10vw, 7rem);

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --nav-h: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent-ink); }
button { font: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

/* ---- Typografia ---- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.flow > * + * { margin-top: 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.section-dark .lead { color: var(--on-dark); opacity: 0.92; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: #fff; }
.section--tint { background: linear-gradient(180deg, #EEF4F8, #F7FAFC); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark--grad { background: var(--dark-grad); color: var(--on-dark); }

.section__head { max-width: 60ch; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head .lead { margin-top: 0.75rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; font-size: 0.82rem; color: var(--accent-ink); margin-bottom: 0.75rem; }
.section-dark .eyebrow { color: var(--sky); }

.h-underline { padding-bottom: 0.5rem; }
.h-underline::after { content: ""; display: block; width: 54px; height: 3px; background: var(--sky-grad); border-radius: 3px; margin-top: 0.6rem; }

/* ---- Przyciski ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.4rem; min-height: 46px;
    border-radius: var(--pill); border: 2px solid transparent;
    font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--cta { background: var(--amber); color: #0B1B2B; box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(245, 166, 35, 0.45); }
.btn--primary { background-image: var(--sky-grad); color: #fff; box-shadow: 0 8px 24px rgba(31, 168, 224, 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31, 168, 224, 0.45); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); border-color: rgba(230, 238, 244, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--lg { padding: 1rem 1.8rem; min-height: 54px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* ---- Navbar ---- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(11, 27, 43, 0.08); box-shadow: 0 2px 16px rgba(11, 27, 43, 0.06); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand__logo { display: block; height: 40px; width: auto; }

.navbar__toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(11, 27, 43, 0.06); color: var(--ink); cursor: pointer; }
.navbar__toggle-close { display: none; }
.navbar.is-open .navbar__toggle-open { display: none; }
.navbar.is-open .navbar__toggle-close { display: block; }

.nav { display: none; }
.navbar.is-open .nav { display: block; position: absolute; inset: var(--nav-h) 0 auto 0; background: #fff; padding: 1rem var(--gutter) 1.5rem; box-shadow: 0 24px 40px rgba(11, 27, 43, 0.14); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.nav__list { display: flex; flex-direction: column; gap: 0.2rem; }
.nav__link { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.8rem 0.9rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__link:hover { background: rgba(11, 27, 43, 0.06); }
.nav__link.active { color: var(--accent-ink); font-weight: 600; }
.nav__sub { padding-left: 0.5rem; margin: 0.1rem 0 0.4rem; }
.nav__sub-link { display: block; padding: 0.55rem 0.9rem; border-radius: 8px; color: var(--ink); opacity: 0.85; text-decoration: none; font-size: 0.95rem; }
.nav__sub-link:hover { opacity: 1; background: rgba(11, 27, 43, 0.06); }
.nav__item--cta { margin-top: 0.6rem; }
.nav__item--cta .btn { width: 100%; }
.nav__chevron { transition: transform 0.2s ease; }
.nav__social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; text-decoration: none; background: linear-gradient(135deg, #2A8BFF 0%, #1877F2 55%, #0E5FD1 100%); box-shadow: 0 6px 16px rgba(24, 119, 242, 0.40); transition: transform 0.18s ease, box-shadow 0.2s ease; }
.nav__social svg { width: auto; height: 18px; }
.nav__social:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 24px rgba(24, 119, 242, 0.55); }
.nav__social:active { transform: scale(0.97); }
.nav__item--social { display: flex; align-items: center; margin-top: 0.4rem; }

/* ---- Hero ---- */
.hero { position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; color: var(--on-dark); }
.hero--video { min-height: min(100svh, 820px); }
.hero--banner { min-height: clamp(280px, 44vh, 460px); }
.hero--compact { min-height: clamp(240px, 36vh, 400px); }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--navy); }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 27, 43, 0.5) 0%, rgba(11, 27, 43, 0.68) 100%); }
.hero__content { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; font-size: 0.85rem; color: var(--sky); margin-bottom: 1rem; }
.hero__title { color: #fff; max-width: 18ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero--video .hero__title { max-width: 15ch; }
.hero--banner .hero__title { max-width: 24ch; }
.hero__subtitle { margin-top: 1rem; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 48ch; color: var(--on-dark); }
.hero__actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: var(--pill); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: scroll-hint 1.6s ease-in-out infinite; }
@keyframes scroll-hint { 0% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---- Promo banner ---- */
.promo-banner { background: var(--navy-2); color: var(--on-dark); border-block: 1px solid rgba(86, 197, 245, 0.2); }
.promo-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; padding-block: 1.05rem; text-align: center; }
.promo-banner__text { font-weight: 500; font-size: 1.05rem; }
.promo-banner__text strong { color: var(--amber); font-weight: 700; }
.promo-banner__emoji { font-size: 1.2rem; }

/* ---- Siatki / kafelki ---- */
.grid-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid rgba(11, 27, 43, 0.06); }
.card-hover { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.service-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid rgba(11, 27, 43, 0.06); color: var(--ink); text-decoration: none; height: 100%; }
.service-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--sky-grad); box-shadow: 0 8px 20px rgba(31, 168, 224, 0.35); }
.service-card__title { font-size: 1.25rem; }
.service-card__desc { color: var(--ink-soft); flex: 1; }
.service-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid rgba(11, 27, 43, 0.08); }
.price-from { font-weight: 700; color: var(--accent-ink); }
.service-card__more { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: var(--ink); }
.service-card:hover .service-card__more { color: var(--accent-ink); }

/* ---- USP ---- */
.usp { display: flex; flex-direction: column; gap: 0.6rem; }
.usp__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--azure); background: #EAF6FC; }
.section-dark .usp__icon { background: rgba(86, 197, 245, 0.14); color: var(--sky); }
.usp__title { font-size: 1.15rem; font-weight: 600; }
.usp__text { color: var(--ink-soft); }
.section-dark .usp__text { color: var(--on-dark); opacity: 0.85; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: #EAF1F6; font-size: 0.9rem; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-block: 0.85rem; }
.breadcrumbs a { color: var(--accent-ink); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* ---- Podstrona usługi ---- */
.service-detail { display: grid; gap: 2.5rem; align-items: start; grid-template-columns: 1fr; }
.check-list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list__icon { color: var(--azure); flex-shrink: 0; margin-top: 0.15rem; }
.callout { display: flex; gap: 0.75rem; align-items: flex-start; background: #EAF6FC; border-left: 4px solid var(--azure); padding: 1rem 1.1rem; border-radius: 12px; margin-top: 1.5rem; }
.callout svg { color: var(--azure); flex-shrink: 0; }

.price-card { padding: 1.75rem; }
.price-card__title { font-size: 1.4rem; margin-bottom: 1rem; }
.price-card .btn { margin-top: 1.25rem; }
.price-card__hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.85rem; text-align: center; }

/* ---- Cennik ---- */
.price-table { display: grid; gap: 0.75rem; }
.price-row { border: 1px solid rgba(11, 27, 43, 0.1); border-radius: 12px; padding: 0.9rem 1rem; }
.price-row--highlight { border-color: var(--azure); background: #F3FBFF; }
.price-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.price-row__name { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.price-row__price { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.price-row__desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }
.price-row__badge { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent-ink); color: #fff; padding: 0.18rem 0.5rem; border-radius: var(--pill); }
.price-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.9rem; }

/* ---- CTA section ---- */
.cta-section { background: var(--dark-grad); text-align: center; padding-block: clamp(5rem, 12vw, 8rem); }
.cta-section__title { color: #fff; }
.cta-section__text { color: var(--on-dark); max-width: 52ch; margin: 1rem auto 0; opacity: 0.92; }
.cta-section__actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Galeria ---- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { min-height: 44px; padding: 0.55rem 1.1rem; border-radius: var(--pill); border: 1px solid rgba(11, 27, 43, 0.15); background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filter-btn:hover { border-color: var(--azure); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery-item { position: relative; border: 0; padding: 0; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #DCE6EE; cursor: zoom-in; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__badge { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(11, 27, 43, 0.28); }
.gallery-item__badge span { width: 56px; height: 56px; border-radius: 50%; background: rgba(11, 27, 43, 0.55); display: grid; place-items: center; backdrop-filter: blur(2px); }
.gallery-item[hidden] { display: none; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 30, 0.93); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.is-open { display: flex; }
.lightbox__content { max-width: min(94vw, 1100px); }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---- Kontakt ---- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-channels { display: grid; gap: 0.75rem; }
.contact-channel { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); border: 1px solid rgba(11, 27, 43, 0.06); text-decoration: none; color: var(--ink); transition: transform 0.15s ease; }
.contact-channel:hover { transform: translateY(-2px); }
.contact-channel__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--sky-grad); flex-shrink: 0; }
.contact-channel--fb .contact-channel__icon { background: #1877F2; }
.contact-channel__label { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.contact-channel__value { font-weight: 600; }

/* ---- Formularz ---- */
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid rgba(11, 27, 43, 0.06); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.input { width: 100%; padding: 0.8rem 0.9rem; min-height: 48px; border-radius: 12px; border: 1.5px solid rgba(11, 27, 43, 0.18); background: #fff; color: var(--ink); font-family: inherit; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder { color: #8595A1; }
.input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(31, 168, 224, 0.2); }
textarea.input { resize: vertical; min-height: 130px; }
.input.invalid { border-color: var(--err); }
.input.invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18); }
.req { color: var(--err); }
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--azure); }
.validation-message { color: var(--err); font-size: 0.85rem; margin-top: 0.3rem; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }
.contact-form .btn { margin-top: 1.25rem; }
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 0.9rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; }
.alert--error { background: #FDECEA; color: #8A1C10; border: 1px solid #F5C6C0; }
.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sky-grad); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--ink-soft); margin-bottom: 1.25rem; }

/* ---- Mapa (lazy) ---- */
.map-embed { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #DCE6EE; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; background: linear-gradient(160deg, #1b3a57, #0B1B2B); color: var(--on-dark); border: 0; cursor: pointer; width: 100%; text-align: center; padding: 1rem; }
.map-embed__placeholder:hover { color: #fff; }
.map-embed__placeholder svg { color: var(--sky); }

/* ---- About / O mnie ---- */
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; max-height: 560px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.equip-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.equip-card { padding: 1.5rem; }
.equip-card h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.equip-card__tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); font-weight: 600; }
.equip-card--soon { border-style: dashed; background: #fff; }
.equip-card--soon .equip-card__tag { color: var(--amber-ink); }

/* ---- Stopka ---- */
.footer { background: #EDF3F8; color: var(--ink); border-top: 1px solid rgba(11, 27, 43, 0.08); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__logo { height: 46px; }
.footer__tagline { color: var(--ink-soft); max-width: 32ch; margin-bottom: 1.25rem; }
.footer__heading { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 1rem; }
.footer__links { display: grid; gap: 0.5rem; }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--accent-ink); }
.footer__contact { display: grid; gap: 0.7rem; }
.footer__contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer__contact a, .footer__contact span { color: var(--ink-soft); text-decoration: none; }
.footer__contact a:hover { color: var(--accent-ink); }
.footer__contact svg { color: var(--azure); flex-shrink: 0; }
.social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: var(--pill); background: var(--navy); color: #fff; text-decoration: none; font-weight: 500; transition: background 0.2s ease; }
.social-btn:hover { background: var(--navy-2); }
.footer__bottom { border-top: 1px solid rgba(11, 27, 43, 0.1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); }
.footer__credit a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }

/* ---- Skip link & reveal ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; box-shadow: var(--shadow-card); }
/* FocusOnNavigate ustawia fokus programowo na <main> i <h1> (czytniki ekranu) —
   nie pokazujemy wtedy ramki fokusu na elementach nieinteraktywnych. */
main:focus, h1:focus { outline: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Blazor error UI (ukryte; pokazywane przez framework tylko przy błędzie obwodu) ---- */
#blazor-error-ui {
    color-scheme: light only;
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.7rem 3rem 0.75rem 1.25rem;
    background: #FFF3D6;
    color: #5a4300;
    box-shadow: 0 -2px 12px rgba(11, 27, 43, 0.18);
}
#blazor-error-ui .reload { color: #8a5a00; font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.55rem; font-size: 1.1rem; }

/* ---- Przycisk „do góry” (prawy dolny róg) ---- */
.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 60;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(11, 27, 43, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top.is-visible:hover { transform: translateY(-2px); }
.to-top:hover { background: var(--navy-2); box-shadow: 0 14px 32px rgba(11, 27, 43, 0.4); }

/* ---- Helpers ---- */
.stack-lg > * + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---- Breakpoints ---- */
@media (min-width: 560px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .service-detail { grid-template-columns: 1.5fr 0.9fr; }
    .service-detail__aside { position: sticky; top: calc(var(--nav-h) + 1rem); }
    .contact-layout { grid-template-columns: 1.05fr 0.95fr; }
    .about-grid { grid-template-columns: 0.8fr 1.2fr; }
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
}

@media (min-width: 1024px) {
    .navbar__toggle { display: none; }
    .nav { display: block !important; position: static; }
    .navbar.is-open .nav { position: static; inset: auto; background: transparent; padding: 0; box-shadow: none; max-height: none; overflow: visible; }
    .nav__list { flex-direction: row; align-items: center; gap: 0.35rem; }
    .nav__item--has-sub { position: relative; }
    .nav__sub { position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 260px; background: #fff; border: 1px solid rgba(11, 27, 43, 0.1); border-radius: 14px; padding: 0.5rem; margin: 0; box-shadow: 0 20px 50px rgba(11, 27, 43, 0.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
    .nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__item--has-sub:hover .nav__chevron, .nav__item--has-sub:focus-within .nav__chevron { transform: rotate(180deg); }
    .nav__item--cta { margin-top: 0; margin-left: 0.5rem; }
    .nav__item--cta .btn { width: auto; }
    .nav__item--social { margin-top: 0; margin-left: 0.35rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero__scroll { display: none; }
}
