@import url("fonts.css");

:root {
    --navy: #112444;
    --red: #df1d31;
    --bg: #f0f3f8;
    --white: #ffffff;
    --text: #17253b;
    --muted: #66738a;
    --line: #dce3ec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Manrope, Arial, sans-serif;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.header {
    position: relative;
    z-index: 30;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    width: 132px;
    height: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    position: relative;
    padding: 27px 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--red);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
}

/* =========================
   LANGUAGE MENU
========================= */

.language-menu {
    position: relative;
    flex-shrink: 0;
}

.language-menu summary {
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--white);
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 165px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(17, 36, 68, .12);
    overflow: hidden;
    z-index: 100;
}

.language-list a {
    display: block;
    padding: 13px 18px;
    font-size: 14px;
}

.language-list a:hover,
.language-list a[aria-current="page"] {
    background: var(--bg);
    color: var(--red);
}

.mobile-nav {
    display: none;
}

/* =========================
   MAIN
========================= */

.main {
    width: 100%;
    padding-bottom: 60px;
}

.main-form {
    width: 100%;
}

.main-title {
    margin: 0;
    padding: 55px 20px 85px;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(
        110deg,
        #112444,
        #203e65
    );
    border-bottom: 4px solid var(--red);
}

.main-blok {
    position: relative;
    width: calc(100% - 64px);
    max-width: 1080px;
    margin: -40px auto 0;
    padding: 40px 50px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(17, 36, 68, .07);
    overflow-wrap: anywhere;
}

.main-title__two {
    margin: 0 0 35px;
    font-size: 26px;
    line-height: 1.4;
    text-align: center;
    color: var(--navy);
}

.main-subtitle {
    margin: 35px 0 18px;
    padding-left: 15px;
    border-left: 4px solid var(--red);
    font-size: 22px;
    line-height: 1.4;
    color: var(--navy);
}

.main-blok p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #394960;
}

.main-blok strong {
    color: var(--navy);
}

.main-list,
.main-list-tabl {
    padding-left: 25px;
    margin: 15px 0 25px;
}

.main-list li,
.main-list-tabl li {
    padding-left: 4px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
    color: #394960;
}

.main-list li::marker,
.main-list-tabl li::marker {
    color: var(--red);
}

/* Содержание */

.main-blok > .main-list:first-of-type {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 24px 24px 42px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--navy);
    color: var(--white);
}

.footer:empty {
    display: none;
}

.footer-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-inner a {
    font-size: 14px;
    color: #dce3ec;
}

.footer-inner a:hover {
    color: var(--white);
}

/* =========================
   TABLET / 1024px
========================= */

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 18px;
    }

    .desktop-nav a {
        font-size: 14px;
    }

    .header-inner {
        gap: 18px;
    }

    .main-blok {
        padding: 35px;
    }
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 760px) {
    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .brand img {
        width: 108px;
    }

    .desktop-nav {
        display: none;
    }

    .language-menu {
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
        position: relative;
    }

    .mobile-nav > summary {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        list-style: none;
        padding: 8px;
    }

    .mobile-nav > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav > summary span {
        width: 25px;
        height: 2px;
        background: var(--navy);
        border-radius: 2px;
    }

    .mobile-nav nav {
        position: absolute;
        right: 0;
        top: calc(100% + 15px);
        width: 230px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 12px 30px rgba(17, 36, 68, .15);
        z-index: 200;
    }

    .mobile-nav nav a {
        padding: 12px;
        border-radius: 6px;
        font-size: 14px;
    }

    .mobile-nav nav a:hover,
    .mobile-nav nav a.active {
        color: var(--red);
        background: var(--bg);
    }

    .main-blok {
        width: calc(100% - 30px);
        padding: 25px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 0;
    }
}

/* =========================
   MOBILE / 530px
========================= */

@media (max-width: 530px) {
    .main {
        padding-bottom: 30px;
    }

    .main-title {
        font-size: 27px;
        padding: 35px 15px 65px;
    }

    .main-blok {
        width: calc(100% - 24px);
        margin-top: -30px;
        padding: 22px 17px;
        border-radius: 12px;
    }

    .main-title__two {
        font-size: 21px;
        margin-bottom: 25px;
    }

    .main-subtitle {
        font-size: 19px;
        margin-top: 25px;
        padding-left: 10px;
    }

    .main-blok p,
    .main-list li,
    .main-list-tabl li {
        font-size: 15px;
        line-height: 1.7;
    }

    .main-blok > .main-list:first-of-type {
        padding: 18px 15px 18px 32px;
    }

    .language-menu summary {
        padding: 9px 12px;
        font-size: 13px;
    }
}