/* Reset and base styles  */
* {
    padding: 0;
    margin: 0;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

/* Links */

a, a:link, a:visited  {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

a:hover  {
    color: inherit;
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
    display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}

ul, ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img, svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

/* Form */

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}
/* End reset css */

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #2b2a40;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1170px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
    scroll-behavior: smooth;
}

.main-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 70px 0;
}

.header {
    width: 100%;
    background-color: white;
    transition: .25s ease-in-out;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1170px;
    padding: 20px;
    margin: auto;
}

.header.sticky {
    position: fixed;
    top: 0;
    z-index: 2;
    box-shadow: 2px 3px 9px #1a112617;
}

nav {
    flex-grow: 1;
}

.menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.menu-item a {
    padding: 8px 20px;
    font-size: 18px;
    line-height: 24px;
    border-radius: 30px;
    transition: .2s all;
    color: #574f89;
    cursor: pointer;
}

.menu-item:hover a,
.menu-item a[aria-current="page"] {
    background-color: #374dab33;
}

.menu-item:not(:last-of-type) {
    margin-right: 20px;
}

.menu-btn {
    display: none;
    padding: 2px;
    width: 30px;
    background-color: #574f89;
    position: relative;
    z-index: 5;
    transition: .3s ease;
}

.menu-btn::before,
.menu-btn::after {
    content: '';
    position: absolute;
    display: inline-block;
    padding: 2px;
    width: 30px;
    background-color: #574f89;
}

.menu-btn::before {
    top: -7px;
    left: 0;
}

.menu-btn::after {
    bottom: -7px;
    left: 0;
}

.menu-btn.active {
    transform: rotate(45deg) translate(0, 15%);
}

.menu-btn.active::before {
    top: 0;
    transform: rotateZ(90deg);
}

.menu-btn.active::after {
    display: none;
}

.logo {
    width: 140px;
}

.main-text {
    flex: 1;
    align-self: center;
    font-size: 18px;
    line-height: 26px;
}

.main-text h1 {
    padding: 20px 0;
    font-weight: 700;
    font-size: 42px;
    line-height: 64px;
}

.main-description ul {
    padding-left: 30px;
    padding-top: 12px;
}

.main-description li {
    position: relative;
    padding-bottom: 7px;
}

.main-description li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: -30px;
    top: 5px;
    background-image: url(../images/icons/check.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image {
    flex: 0 1 700px;
    width: 100%;
    height: 500px;
    background-image: url(../images/frame.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 20px solid #fff;
    box-shadow: 5px 10px 35px #3f58b657;
    position: relative;
    overflow: hidden;
}

.authorization-section {
    margin: 40px 0;
}

.authorization-section h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.social-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 40px 0;
}

.social-list-item {
    box-shadow: 3px 4px 15px -6px #453a60;
    transition: .5s linear;
    backface-visibility: hidden;
    will-change: transform;
}

.social-list-item:hover {
    transform: scale(1.05) translate3d( 0, 0, 0) perspective(0);
    box-shadow: 3px 4px 15px -6px #2b2a40;
}

.social-list-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 22px;
    line-height: 28px;
    text-transform: capitalize;
}

.social-list-item a::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.social-list-item.google a::before {
    background: url(../images/icons/google.svg) center no-repeat;
}

.social-list-item.facebook a::before {
    background: url(../images/icons/facebook.svg) center no-repeat;
}

.social-list-item.twitter a::before {
    background: url(../images/icons/twitter.svg) center no-repeat;
}

.social-list-item.linkedin a::before {
    background: url(../images/icons/linkedin.svg) center no-repeat;
}

.social-list-item.telegram a::before {
    background: url(../images/icons/telegram.svg) center no-repeat;
}

.social-list-item.steam a::before {
    background: url(../images/icons/steam.svg) center no-repeat;
}

.social-list-item.vkontakte a::before {
    background: url(../images/icons/vkontakte.svg) center no-repeat;
}

.social-list-item.odnoklassniki a::before {
    background: url(../images/icons/odnoklassniki.svg) center no-repeat;
}

.social-list-item.yandex a::before {
    background: url(../images/icons/yandex.svg) center no-repeat;
}

.social-list-item.mailru a::before {
    background: url(../images/icons/mailru.svg) center no-repeat;
}

.page-section {
    flex-grow: 1;
    padding-top: 50px;
}

.page-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #4a4870;
    line-height: 38px;
}

.list {
    padding: 30px 0;
}

.list-item {
    margin-bottom: 25px;
    line-height: 24px;
}

.list-item-title {
    padding-bottom: 15px;
    font-size: 24px;
    text-decoration: underline;
}

.list-link {
    color: #574f89 !important;
}

.sublist {
    padding-left: 30px;
    counter-reset: list;
}

.sublist li {
    position: relative;
}

.sublist li:not(:last-of-type) {
    padding-bottom: 10px;
}

.sublist li::before {
    counter-increment: list;
    content: counter(list)'.';
    position: absolute;
    left: -20px;
    color: #574f89;
    font-size: 20px;
    font-weight: 700;
}

.footer {
    margin: 30px auto 0;
    padding: 20px;
    text-align: center;
}

.footer-copyright {
    padding: 15px 0;
    font-size: 17px;
    font-weight: 700;
    color: #574f89;
}


@media (hover: none) and (pointer: coarse) {
    .header-wrapper {
        flex-direction: row-reverse;
    }

    .header-wrapper nav {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        padding: 40px 20px;
        background: white;
        z-index: 3;
    }

    .header-wrapper nav.active {
        display: block;
    }

    .menu-btn {
        display: inline-block;
    }

    .menu {
        flex-direction: column;
    }

    .logo {
        width: 100px;
    }

    .menu-item {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .main-section {
        margin: 50px 0;
    }

    .social-list-item a {
        font-size: 18px;
        line-height: 24px;
    }
}

@media screen and (max-width: 992px) {
    .main-image {
        flex: 0 1 400px;
        height: 400px;
    }

    .social-list-item a::before {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 560px) {
    .social-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 490px) {
    .main-section {
        flex-direction: column;
    }

    .main-image {
        flex: 0 1 300px;
        height: 300px;
    }

    .social-list {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }
}
