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

/* Height of the fixed chrome (top bar + header); pages offset their content by it */
:root {
    --chrome-h: 116px;
}

body {
    font-family: 'Sofia Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #22313F;
}

.top-bar a:focus-visible, .header a:focus-visible, .header button:focus-visible,
.footer a:focus-visible, #cookieBanner a:focus-visible, #cookieBanner button:focus-visible {
    outline: 3px solid #1A7F45;
    outline-offset: 3px;
}

.top-bar a:focus-visible, .footer a:focus-visible {
    outline-color: white;
}

/* Chat widget — keep it out of the reading area. The embed centres itself
   vertically on the left with an inline transform, hence the reset. */
iframe[src*="call.aiployees.com"] {
    top: auto !important;
    bottom: 16px !important;
    left: auto !important;
    right: 16px !important;
    transform: none !important;
}

/* Top Bar Styles */
.top-bar {
    background: #12395A;
    color: white;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 8px 0;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-item:hover {
    color: white;
    text-decoration: underline;
}

.top-bar-item svg {
    opacity: 0.8;
}

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

.top-bar-youtube,
.top-bar-viber {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.top-bar-youtube:hover,
.top-bar-viber:hover {
    color: white;
    text-decoration: underline;
}

/* Header Styles */
.header {
    position: fixed;
    top: 36px;
    width: 100%;
    background: white;
    border-bottom: 1px solid #DCE3EA;
    z-index: 1000;
    padding: 0.4rem 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* The logo PNG has an opaque #F9F9FA background; a 3% lift turns it pure white so it
   disappears into the header, and multiply hides any remaining edge */
.logo img {
    height: 70px;
    width: auto;
    filter: brightness(1.03);
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #12395A;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a:hover {
    color: #1B5788;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1A7F45;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#langToggle {
    background: none;
    border: 2px solid #1B5788;
    color: #1B5788;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: inherit;
}

#langToggle:hover {
    background: #1B5788;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #12395A;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer Styles */
.footer {
    background: #12395A;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-legal {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #A9BCCD;
    max-width: 920px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #D5E0EA;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #9FD4B4;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Phone, e-mail and socials stay in the footer — the first screen keeps only logo + menu */
    :root {
        --chrome-h: 58px;
    }

    .top-bar {
        display: none;
    }

    .header {
        top: 0;
    }

    .logo img {
        height: 44px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 12px 24px rgba(18, 57, 90, 0.12);
        border-top: 1px solid #DCE3EA;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        text-align: center;
    }

    .nav-links a:hover {
        background: #F3F6F9;
    }

    .nav-links a::after {
        display: none;
    }

    .footer-content {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* "Накратко" block at the top of articles */
.lead-answer {
    font-size: 1.15em;
    font-weight: 600;
    color: #12395A;
}

aside.summary {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: #E6F3EA;
    border-left: 4px solid #1A7F45;
    border-radius: 6px;
}

aside.summary h2 {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
    color: #12395A;
}

aside.summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

aside.summary li {
    margin: 0.3rem 0;
}
