body {
    background: url(../images/bg.jpg) fixed;
    background-size: cover;
    background-position: center;
    font-family: "Roboto", "Arial", sans-serif;
}

@font-face {
    font-family: 'Bebas';
    src: url('../fonts/BebasNeueBold.eot');
    src: url('../fonts/BebasNeueBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BebasNeueBold.woff') format('woff'),
        url('../fonts/BebasNeueBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
    left: 50%;
    transform: translate(-50%, 0);
    pointer-events: none;
    z-index: 1;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 45px;
}

.logo {
    max-width: 177px;
    pointer-events: all;
}

.logo img {
    width: 100%;
}

.label {
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    max-width: 138px;
}

.contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 45px;
}

.phone a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    pointer-events: all;
}

.icon {
    width: 40px;
    height: 40px;
    background: #ec6916;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone a svg {
    color: #ffffff;
    width: 18px;
    height: 20px;
    fill: none;
    stroke: #020202;
    stroke-width: 63.6667;
    stroke-miterlimit: 333.3333;
}

.btn {
    display: inline-block;
    background: #ec6916;
    color: #ffffff;
    font-size: 18px;
    padding: 16px 46px;
    border-radius: 40px;
    text-transform: uppercase;
    text-align: center;
    pointer-events: all;
    border: 1px solid #65361800;
}

.btn-grey {
    background: #aeb4c1;
}

.btn:hover {
    background: #ffffff;
    color: #ec6916;
    border: 1px solid #ec6916;
}

.btn-grey:hover {
    background: #ffffff;
    color: #aeb4c1;
    border: 1px solid #aeb4c1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.container-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 100vh;
    width: 100%;
    gap: 0;
}

.container-title {
    position: absolute;
    width: 100%;
    max-width: 1720px;
    padding: 0 40px;
    margin: 0 auto;
    top: 145px;
    color: #003f87;
    font-family: "Bebas", sans-serif;
    font-weight: 700;
    font-size: 50px;
    text-transform: uppercase;
    box-sizing: border-box;
    text-align: center;
}

.container-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    cursor: pointer;
    padding-top: 270px;
    padding-bottom: 70px;
    height: 100%;
    min-height: 500px;
    box-sizing: border-box;
    background-color: 0;
    transition: all 0.5s ease-in-out;
}

.container-item:hover {
    background-color: rgb(0 63 135 / 20%);
}

.container-image {
    aspect-ratio: 2 / 1;
    width: 55%;
    height: auto;
}

.container-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: bottom;
}

.container-item-title {
    font-family: "Bebas", sans-serif;
    font-weight: 700;
    font-size: 50px;
    text-align: center;
    text-transform: uppercase;
    color: #003f87;
}

/* Popup */

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 21 71 / 90%);
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 10px;
    padding: 70px;
    width: 100%;
    max-width: 810px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
    box-sizing: border-box;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-size: 28px;
    color: #2a2a2a;
}

.popup-content i {
    font-style: italic;
}

.popup-btn-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.popup-btn-wrap .btn {
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Инструкции */

.content-wrapper {
    max-width: 1720px;
    margin: 0 auto;
    padding: 150px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.content {
    line-height: 1.4;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.content h1 {
    font-size: 20px;
    font-weight: bold;
}

.content h2 {
    font-size: 18px;
    font-weight: bold;
}

.content h3 {
    font-size: 16px;
    font-weight: bold;
}

.content p:not(:last-child),
.content ul:not(:last-child),
.content ol:not(:last-child),
.content blockquote:not(:last-child) {
    margin-bottom: 0.5em;
}

.content ul,
.content ol {
    margin-left: 20px;
}

.content ul {
    list-style: disc;
}

.content ol {
    list-style: auto;
}

.sidebar {
    display: block;
    position: relative;
}

.content-list-wrapper {
    position: sticky;
    height: calc(100vh - 20px);
    overflow: auto;
    top: 20px;
}

.content-list-wrapper p {
    display: block;
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 0.6em;
}

ul.content-list {
    list-style: disc;
}

ul.content-list li a {
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

ul.content-list li a:hover {
    color: #ec6916;
}

ul.content-list li {
    margin-left: 20px;
}

/* Инструкции конец */

@media (max-width: 960px) {

    .btn {
        font-size: 14px;
        padding: 12px 46px;
    }

    header {
        flex-direction: column;
        padding: 20px;
    }

    .container-title {
        top: 220px;
        font-size: 34px;
    }

    .container-item-title {
        font-size: 30px;
    }

    .popup-content {
        padding: 30px;
        gap: 20px;
        font-size: 20px;
        margin: 0;
        width: calc(100% - 40px);
    }

    .popup-btn-wrap {
        flex-wrap: wrap;
        gap: 10px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .content {
        order: 1;
    }

    .sidebar {
        order: 0;
    }

    .content-list-wrapper {
        position: relative;
        height: auto;
        overflow: visible;
        top: 0;
    }

    .content-list-wrapper p {
        position: relative;
        display: block;
        font-size: 18px;
        font-weight: bold;
        padding-bottom: 0.6em;
        padding: 20px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0px 0px 20px #0000002e;
        z-index: 1;
    }

    .content-list-wrapper ul {
        display: none;
        position: absolute;
        background: #ffffff;
        padding: 20px;
        border-radius: 20px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0px 0px 8px #0000002e;
        z-index: 0;
    }

    .content-list-wrapper:hover ul {
        display: block;
    }

    .content-list-wrapper::after {
        position: absolute;
        content: '▾';
        font-size: 24px;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .content-list-wrapper:hover::after {
        content: '▴';
    }

}

@media (max-width: 560px) {

    header {
        position: relative;
        padding: 20px 20px 40px;
    }

    .content-wrapper {
        padding: 0 20px 40px;
    }

    .logo-container {
        gap: 20px;
    }

    .contacts {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        gap: 20px;
    }

    .container-title {
        position: relative;
        top: 0;
        padding: 0 20px;
    }

    .container-list {
        grid-template-columns: repeat(1, 1fr);
        min-height: auto;
    }

    .container-item {
        height: auto;
        min-height: auto;
        padding: 20px;
    }

}