:root {
    --bg: #050505;
    --surface: #121212;
    --surface-strong: #0a0a0a;
    --text: #F5F5F7;
    --text-soft: #A1A1AA;
    --primary: #D90429;
    --primary-strong: #B70324;
    --accent: #00E5FF;
    --border: #2a2a2a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center 60%;
    /* lekko przesunięte w dół, by obciąć górę i dół */
    background: linear-gradient(145deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center 60%;
    box-shadow: 0 2px 8px #0001;
}
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: var(--text);
    line-height: 1.2;
}

.brand-text strong {
    font-size: 0.97rem;
    letter-spacing: 0.02em;
}

.brand-text span {
    font-size: 0.79rem;
    color: var(--text-soft);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--accent);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem;
    background: #121212;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-soft);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    font-size: 0.77rem;
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(1.9rem, 3.6vw, 3.05rem);
    line-height: 1.18;
    margin: 0.75rem 0 1rem;
}

.hero-lead {
    color: var(--text-soft);
    max-width: 62ch;
    margin-bottom: 1.6rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.72rem 1.05rem;
    font-weight: 700;
}

.hero-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #121212;
    padding: 1.4rem;
}

.hero-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-soft);
}

.section {
    padding: 6rem 0;
}

.section-muted {
    background: var(--surface-strong);
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    margin: 0.45rem 0 0;
}

.cards-grid {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card,
.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 1.1rem;
}

.card h3,
.faq-item h3 {
    font-size: 1.03rem;
    margin-bottom: 0.45rem;
}

.card p,
.faq-item p,
.about-copy p {
    color: var(--text-soft);
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.about-copy {
    display: grid;
    gap: 0.9rem;
}

.faq-list {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.85rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #050505;
}

.footer-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer p {
    color: var(--text-soft);
    font-size: 0.87rem;
    margin: 0;
}

/* Technical values and parameters styling */
.tech-value,
.param,
.metric {
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Remove shadows that won't be visible on dark background */
.brand-logo-img {
    box-shadow: none;
}

@media (max-width: 980px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero-grid,
    .cards-grid,
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .main-nav {
        gap: 0.9rem;
    }

    .main-nav a {
        font-size: 0.93rem;
    }
}