html, body {
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #133740;
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px;
    background: #eaf4fe; /* СТАРЫЙ ФОН! */
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 100;
    box-shadow: 0 8px 40px #3270a312, 0 1.5px 6px #1341800a;
}
.header.scrolled {
    background: #eaf4fe; /* такой же цвет после скрола */
    box-shadow: 0 8px 40px #3270a312, 0 1.5px 6px #1341800a;
}
.header__logo img {
    height: 44px;
    margin-left: 30px;
}
.nav {
    display: flex;
    gap: 25px;
    margin: 0 auto;
    justify-content: center;
}

/* КНОПКИ НАВИГАЦИИ (современные, квадратные с малым округлением) */
.nav-link {
    background: #1569aa;
    color: #fff;
    text-decoration: none;
    padding: 7px 16px;     /* было 10px 24px — сделай меньше */
    border-radius: 7px;
    font-weight: 700;
    font-size: 1.03rem;    /* было 1.10rem — чуть меньше */
    transition: background 0.17s, color 0.17s, transform 0.17s;
    border: none;
    outline: none;
    box-shadow: none;
    display: inline-block;
    cursor: pointer;
}
.nav-link.active {
    background: #60bbff;
    color: #fff;
}
.nav-link:hover, .nav-link:focus {
    background: #e52628;
    color: #fff;
    transform: translateY(-2px);
}
.nav-link-contact {
    background: #e52628 !important;
    color: #fff !important;
    border-radius: 7px !important;
    border: none;
    cursor: pointer;
    padding: 7px 18px !important;
    font-size: 1.03rem !important;
}
.nav-link-contact:hover, .nav-link-contact:focus {
    background: #a71919 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.04);
}

/* ============ HAMBURGER & MOBILE NAV ============ */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    margin-left: 8px;
    padding: 0;
    position: relative;
    right: 0;
}
.burger-btn span {
    width: 28px;
    height: 4px;
    margin: 3px 0;
    background: #1569aa;
    border-radius: 2px;
    display: block;
    transition: all 0.24s;
}
.mobile-nav-bg {
    display: none;
}
.mobile-nav {
    display: none;
}
@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .burger-btn {
        display: flex;
        margin-right: 10px;
        margin-left: 0;
        right: 12px;
    }
    .mobile-nav-bg {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(30,60,75,0.32);
        z-index: 101;
        transition: background 0.2s;
    }
    .mobile-nav-bg.show {
        display: block;
    }
    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78vw;
        max-width: 370px;
        min-width: 210px;
        background: #eaf4fe;
        box-shadow: -3px 0 32px #17437318;
        z-index: 102;
        padding: 18px 15px 0 11px;
        padding-top: 48px;
        transform: translateX(100%);
        transition: transform 0.22s cubic-bezier(.55,1.09,.58,1);
        border-radius: 0;
        overflow-y: auto;
    }
    .mobile-nav.open {
        transform: translateX(0);
        display: flex;
    }
    .mobile-nav .nav-link {
        display: block;
        margin-bottom: 13px;
        font-size: 1.12em;
        padding: 12px 5px 12px 7px;
        background: none;
        color: #1569aa;
        border-radius: 7px;
        text-align: left;
        font-weight: 700;
        box-shadow: none;
    }
    .mobile-nav .nav-link-contact {
        background: #e52628 !important;
        color: #fff !important;
        text-align: center;
        margin-top: 20px;
        font-size: 1.08em;
        padding: 14px 0;
        border-radius: 7px !important;
        border: 2.4px solid #c81b1b !important;  /* <--- Добавляем красную обводку */
        box-shadow: 0 1.5px 9px #a7191915;       /* Мягкая тень для эффекта */
        transition: background 0.14s, border 0.17s, box-shadow 0.18s;
    }
    .mobile-nav .nav-link-contact:hover,
    .mobile-nav .nav-link-contact:focus {
        background: #a71919 !important;
        border: 2.4px solid #911212 !important;  /* Более тёмная обводка при ховере */
        color: #fff !important;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 5px 18px #e526281c;
    }
    .mobile-nav .nav-link.active {
        color: #1569aa;
        background: #eaf4fe;
    }
    .close-btn {
        position: absolute;
        top: 6px;
        right: 16px;
        font-size: 2.1em;
        background: none;
        border: none;
        color: #1569aa;
        cursor: pointer;
        z-index: 2;
        line-height: 1;
        padding: 0;
    }
    .mobile-nav .close-btn:focus {
        outline: none;
    }
}
body.nav-open {
    overflow: hidden;
}

/* FOOTER */
.footer {
    background: #eaf4fe;
    padding: 22px 0 20px 0;
    text-align: center;
    box-shadow: 0 -2px 14px #3270a312, 0 1.5px 6px #1341800a;
}
.footer-container {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    font-size: 1rem;
    color: #133740;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.footer-link {
    color: #133740;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: none;
}
.footer-link a {
    color: #133740;
    text-decoration: underline;
}

/* --- Адаптив --- */
@media (max-width: 700px) {
    .header {
        padding: 7px 2vw;
    }
    .header__logo img {
        height: 30px;
    }
    .footer-container {
        font-size: 0.95em;
        padding: 0 5px;
    }
}
.header__logo a {
    display: inline-block;
}
.header__logo img {
    display: block;
}