/* =========================================
   Global Test - main stylesheet
   Paleta: odcienie niebieskiego + biel
   ========================================= */

:root {
    --c-blue-900: #062554;
    --c-blue-800: #0a3a7a;
    --c-blue-700: #0e4f9e;
    --c-blue-600: #1e6fd9;
    --c-blue-500: #3b8fec;
    --c-blue-100: #e6f0fb;
    --c-blue-50:  #f4f8fd;
    --c-white:    #ffffff;
    --c-text:     #1a2740;
    --c-muted:    #5b6a85;
    --c-border:   #d7e3f2;
    --c-error:    #c0392b;
    --c-success:  #1e8449;

    --shadow-sm: 0 2px 8px rgba(10, 58, 122, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 58, 122, 0.10);
    --shadow-lg: 0 20px 50px rgba(10, 58, 122, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --container: 1200px;
    --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--c-text);
    background: var(--c-white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--c-blue-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-blue-600); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
    border-bottom-color: var(--c-border);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--c-text);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
}
.main-nav a:hover { color: var(--c-blue-700); background: var(--c-blue-50); }

.main-nav .nav-cta {
    background: var(--c-blue-700);
    color: #fff;
    padding: 10px 18px;
    margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--c-blue-800); color: #fff; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--c-blue-50);
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--c-blue-800);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--c-blue-700);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: var(--c-blue-800);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-ghost {
    background: transparent;
    color: var(--c-blue-800);
    border-color: var(--c-blue-700);
}
.btn-ghost:hover {
    background: var(--c-blue-700);
    color: #fff;
}
.btn-ghost-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.65);
}
.btn-ghost-light:hover {
    background: #ffffff;
    color: var(--c-blue-800);
    border-color: #ffffff;
    transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 100px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(59, 143, 236, 0.45), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(30, 111, 217, 0.35), transparent 50%),
        linear-gradient(135deg, var(--c-blue-900) 0%, var(--c-blue-800) 60%, var(--c-blue-700) 100%);
    z-index: -1;
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

.hero-inner { max-width: 820px; }
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #d7e6fa;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: #d7e6fa;
    max-width: 680px;
    margin-bottom: 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 28px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stats span { color: #b8cdec; font-size: 14px; }

/* ---------- Sections ---------- */

.section { padding: 100px 0; position: relative; }
.section-geo { background: var(--c-white); }
.section-construction { background: var(--c-blue-50); }
.section-materials { background: var(--c-white); }
.section-about {
    background: linear-gradient(135deg, var(--c-blue-900), var(--c-blue-700));
    color: #fff;
}
.section-contact { background: var(--c-blue-50); }

.section-head { max-width: 800px; margin: 0 auto 60px; text-align: center; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-blue-600);
    margin-bottom: 14px;
}
.section-tag-primary {
    background: var(--c-blue-700);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 1.5px;
}
.section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--c-blue-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}
.section-about h2 { color: #fff; }
.section-about .section-tag { color: var(--c-blue-500); }

.section-lead {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--c-muted);
}
.section-about .section-lead { color: #c5d6ee; }

/* ---------- Cards (geotechnika) ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-blue-500);
}
.card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--c-blue-100);
    color: var(--c-blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-blue-900);
    margin-bottom: 12px;
    line-height: 1.35;
}
.card p { color: var(--c-muted); font-size: 15px; }

.card-highlight {
    background: linear-gradient(135deg, var(--c-blue-700), var(--c-blue-800));
    border-color: transparent;
    color: #fff;
}
.card-highlight h3 { color: #fff; }
.card-highlight p { color: #d7e6fa; }
.card-highlight .card-icon { background: rgba(255,255,255,0.15); color: #fff; }
.card-highlight:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.card-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Construction services ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--c-blue-600);
    transition: transform .2s, box-shadow .2s;
}
.service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-blue-800);
    margin-bottom: 10px;
}
.service p { color: var(--c-muted); font-size: 14.5px; }

/* ---------- Materials ---------- */

.materials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.material {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--c-blue-50);
    border: 1px solid var(--c-border);
    transition: background .25s, transform .2s;
}
.material:hover {
    background: var(--c-blue-100);
    transform: translateY(-3px);
}
.material h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-blue-800);
    margin-bottom: 8px;
}
.material p { color: var(--c-muted); font-size: 14.5px; }

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { color: #fff; margin-bottom: 22px; }
.about-text p { color: #c5d6ee; margin-bottom: 18px; font-size: 1.02rem; }
.about-points {
    list-style: none;
    margin-top: 24px;
    display: grid;
    gap: 10px;
}
.about-points li {
    color: #e6f0fb;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}
.about-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 16px; height: 8px;
    border-left: 2px solid var(--c-blue-500);
    border-bottom: 2px solid var(--c-blue-500);
    transform: rotate(-45deg);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.about-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.about-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.about-card span { color: #b8cdec; font-size: 13.5px; }

/* ---------- Contact ---------- */

.contact-single {
    max-width: 720px;
    margin: 0 auto;
}
.contact-head { text-align: center; margin-bottom: 32px; }
.contact-head h2 { margin-bottom: 16px; }
.contact-head > p { color: var(--c-muted); max-width: 560px; margin: 0 auto; }

.contact-direct {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 36px;
    margin-bottom: 40px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-direct-item img {
    display: block;
    height: auto;
    max-width: 100%;
    max-height: 56px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
}
.form-row { margin-bottom: 18px; }
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-row label,
.consent {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--c-blue-900);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--c-border);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--c-text);
    transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--c-blue-600);
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea { border-color: var(--c-error); }

.form-error {
    display: block;
    color: var(--c-error);
    font-size: 13px;
    margin-top: 6px;
    min-height: 16px;
}

.form-consent .consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.5;
}
.form-consent input[type=checkbox] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--c-blue-700);
    flex-shrink: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-captcha label { display: block; }
.form-captcha #captchaQuestion {
    font-weight: 700;
    color: var(--c-blue-700);
}
.form-captcha input[type=text] {
    max-width: 140px;
}

.form-status {
    margin-top: 16px;
    font-size: 14.5px;
    min-height: 22px;
    padding: 0 4px;
}
.form-status.is-success { color: var(--c-success); font-weight: 600; }
.form-status.is-error { color: var(--c-error); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--c-blue-900);
    color: #c5d6ee;
    padding: 60px 0 30px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
}
.footer-brand img { background: #fff; padding: 8px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; width: 200px; height: auto; }
.footer-brand p { color: #97afd2; max-width: 380px; font-size: 14.5px; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.footer-cols h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: #c5d6ee; font-size: 14.5px; }
.footer-cols a:hover { color: #fff; }

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13.5px;
    color: #97afd2;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero { padding: calc(var(--header-h) + 60px) 0 70px; }
    .hero-stats { gap: 30px; }
    .form-row-split { grid-template-columns: 1fr; }
    .contact-form { padding: 26px; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.is-open { max-height: 80vh; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
    }
    .main-nav a { padding: 12px 16px; }
    .main-nav .nav-cta { margin-left: 0; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .about-visual { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
