:root {
    --primary: #ffffff;
    --secondary: #002654;
    --secondary-soft: #0f3d74;
    --line: #d7e1ef;
    --muted: #5a708c;
    --bg-soft: #f4f8fd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--secondary);
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 38, 84, 0.08), transparent 40%),
        radial-gradient(circle at 15% 80%, rgba(0, 38, 84, 0.08), transparent 45%),
        var(--primary);
    min-height: 100vh;
}

.container {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
}

.site-nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.brand {
    font-family: Satoshi, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--secondary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
}

.brand span {
    color: var(--secondary-soft);
}

.site-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.site-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0;
}

.site-links a:hover {
    text-decoration: underline;
}

.lang-form {
    margin: 0;
}

.lang-form-desktop {
    display: block;
}

.lang-pill-form {
    display: none;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}



.lang-pill-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
}

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

.lang-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    background: #fff;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    display: block;
}

.site-footer {
    margin-top: 42px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.site-footer-inner {
    padding: 20px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-heading {
    margin: 0 0 8px;
    font-family: Satoshi, sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary);
}

.footer-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-tools a {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease;
}

.footer-tools a:hover {
    border-color: var(--secondary-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.76rem;
    opacity: 0.85;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 0.74rem;
    color: var(--muted);
}

.cookie-banner {
    position: fixed;
    left: 14px;
    right: auto;
    bottom: 14px;
    z-index: 80;
    width: min(280px, calc(100vw - 28px));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 30px rgba(0, 38, 84, 0.12);
    padding: 14px;
    display: none;
}

.cookie-inner {
    display: grid;
    gap: 10px;
}

.cookie-icon-3d {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.2));
    margin-bottom: 2px;
}

.cookie-text {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-actions button,
.cookie-modal-actions button {
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-accept {
    background: var(--secondary);
    color: #fff;
}

.cookie-save {
    background: #f1f6fd;
    color: var(--secondary);
    border: 1px solid var(--line);
}

.cookie-reject {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--secondary);
}

.cookie-note {
    margin: 0;
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.45;
}

.cookie-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 24, 46, 0.55);
    padding: 12px;
}

.cookie-modal-wrap.open {
    display: flex;
}

.cookie-modal {
    width: min(620px, 96vw);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 34px rgba(0, 38, 84, 0.16);
    padding: 12px;
    position: relative;
}

.cookie-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cookie-modal-head h3 {
    margin: 0;
    font-family: Satoshi, sans-serif;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.cookie-modal-close {
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background: #fff;
    color: var(--secondary);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.cookie-modal-text {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.cookie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cookie-opt {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 9px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.cookie-opt input {
    width: 14px;
    height: 14px;
    accent-color: var(--secondary);
    margin: 0;
}

.cookie-opt small {
    color: var(--muted);
    font-weight: 500;
    display: block;
    font-size: 0.7rem;
    line-height: 1.4;
}

.cookie-modal-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-cancel {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--secondary);
}

.js-ad-slot {
    position: relative;
    overflow: hidden;
}

.js-ad-slot.is-loading {
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.ad-slot-placeholder {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    padding: 12px;
    background: #fafbfd;
    color: transparent;
    user-select: none;
}

.ad-banner-300 .ad-slot-placeholder {
    min-height: 250px;
}

.ad-native .ad-slot-placeholder {
    min-height: 130px;
}

.js-ad-slot.is-loaded .ad-slot-placeholder {
    display: none;
}

@media (max-width: 780px) {
    .site-nav-inner {
        padding: 10px 0;
        gap: 10px;
    }

    .brand {
        font-size: 1.35rem;
        min-width: 0;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    .site-nav-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .cookie-banner {
        right: 14px;
        width: auto;
    }

    .cookie-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 3vw;
        width: min(280px, 92vw);
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 28px rgba(0, 38, 84, 0.14);
        padding: 8px 12px;
        z-index: 50;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-links.open {
        display: flex;
    }

    .site-links a {
        display: block;
        width: 100%;
        padding: 9px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-links a:last-of-type {
        border-bottom: 0;
    }

    .lang-form-desktop {
        display: none;
    }

    .lang-pill-form {
        display: inline-flex;
    }

    .site-nav-actions {
        margin-left: auto;
        gap: 6px;
    }
}
