/* ==========================================================================
   PROXIMA TSL — style główne
   Paleta wyprowadzona z logo: stalowy granat + błękit + srebro.
   ========================================================================== */

:root {
    --navy: #0d2a4a;
    --navy-700: #133a63;
    --blue: #1b4f8a;
    --blue-500: #2e7bc4;
    --blue-400: #3d9be0;
    --accent: #3d9be0;
    --silver: #c8d2dc;
    --silver-100: #eef3f8;
    --bg: #f5f8fb;
    --white: #ffffff;
    --ink: #16243a;
    --muted: #5b6b80;
    --line: #e2e9f1;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(13, 42, 74, .10);
    --shadow-lg: 0 24px 60px rgba(13, 42, 74, .18);
    --container: 1180px;
    --header-h: 76px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-400); }
h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
    padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
    padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-align: center;
}
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    color: #fff; box-shadow: 0 10px 24px rgba(46, 123, 196, .35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 123, 196, .45); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--silver); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: #fff; color: var(--navy); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand-logo { height: 46px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav ul a {
    display: inline-block; padding: 9px 14px; border-radius: 10px;
    color: var(--navy); font-weight: 600; font-size: .98rem;
}
.primary-nav ul a:hover { background: var(--silver-100); color: var(--blue); }
.primary-nav ul a.is-active { color: var(--blue-500); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--silver-100); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.lang-switch a.is-active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Sections ------------------------------------------------------------ */
section { padding: clamp(48px, 6vw, 92px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 54px); text-align: center; }
.section-head .eyebrow { color: var(--blue-500); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--blue-500); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(61,155,224,.45), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 55%, var(--blue) 100%);
    padding: clamp(60px, 8vw, 120px) 0 clamp(70px, 9vw, 130px);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .6;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--blue-400); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual {
    position: relative; border-radius: 22px; overflow: hidden; min-height: 340px;
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-visual .placeholder {
    position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center;
    color: rgba(255,255,255,.7);
}
.hero-visual .placeholder svg { width: 84px; height: 84px; margin: 0 auto; opacity: .8; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.hero-stats .stat {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px; padding: 18px 16px;
}
.hero-stats .stat b { display: block; font-size: 1.25rem; color: #fff; }
.hero-stats .stat span { font-size: .9rem; color: rgba(255,255,255,.78); }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon-badge {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--silver-100), #dbe8f6); color: var(--blue-500);
}
.icon-badge svg { width: 30px; height: 30px; }

/* tinted section */
.section-tinted { background: linear-gradient(180deg, #fff, var(--silver-100)); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section-navy .card p { color: rgba(255,255,255,.8); }
.section-navy .icon-badge { background: rgba(61,155,224,.18); color: var(--blue-400); }

/* ---- About --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-media {
    border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow-lg);
    background: linear-gradient(160deg, var(--navy), var(--blue)); position: relative;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-media .placeholder { position: absolute; inset: 0; display: grid; place-content: center; color: rgba(255,255,255,.6); }
.about-media .placeholder svg { width: 90px; height: 90px; }
.highlights { display: grid; gap: 16px; margin-top: 26px; }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight .dot { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--silver-100); color: var(--blue-500); }
.highlight .dot svg { width: 20px; height: 20px; }
.highlight b { color: var(--navy); display: block; }
.highlight span { color: var(--muted); font-size: .96rem; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
    background: linear-gradient(135deg, var(--blue-500), var(--blue)); color: #fff; border-radius: var(--radius);
    padding: clamp(34px, 5vw, 60px); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; }

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
    padding: clamp(54px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---- Forms --------------------------------------------------------------- */
.form-wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--silver-100); width: 100%; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-size: .95rem; }
.req { color: #d6453d; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], textarea, select {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(61,155,224,.15); }
textarea { resize: vertical; min-height: 120px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy); cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--blue-500); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error input, .field-error textarea { border-color: #d6453d; }
.error-text { color: #d6453d; font-size: .85rem; margin-top: 6px; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #e7f6ec; color: #1d7a3e; border: 1px solid #b6e3c5; }
.alert-error { background: #fdeceb; color: #c23b33; border: 1px solid #f4c4c0; }

/* contact info card */
.info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(24px,3vw,36px); box-shadow: var(--shadow-lg); }
.info-card h3 { color: #fff; }
.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(61,155,224,.2); color: var(--blue-400); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); font-weight: 700; }
.info-list a, .info-list span { color: #fff; font-weight: 600; }
.info-list a:hover { color: var(--blue-400); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: clamp(44px,5vw,72px) 22px; }
.footer-wordmark { display: inline-block; margin-bottom: 18px; color: #fff; line-height: 1; font-weight: 800; font-size: 1.95rem; letter-spacing: .02em; }
.footer-wordmark:hover { color: #fff; }
.footer-wordmark .tsl { display: block; margin-top: 7px; font-size: .8rem; font-weight: 600; letter-spacing: .58em; color: var(--blue-400); }
.footer-brand p { max-width: 360px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.78); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom .container { padding-block: 20px; }

/* ---- Utilities ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 240px; order: -1; }
    .about-media { min-height: 260px; }
    .form-wrap { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 22px;
        transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-nav ul a { padding: 13px 14px; font-size: 1.05rem; }
    .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 12px; }
    .lang-switch { justify-content: center; }
    .nav-cta { width: 100%; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .grid-3, .grid-2, .field-row, .hero-stats { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
