:root {
    /* Colors */
    --primary-black-color: #2A2A2A;
    --primary-text-color: #AFAFAF;
    --primary-white-color: #FFFFFF;
    --accent-color: #0d6efd;
    --link-color: #4b8ef1;

    /* Transition */
    --transition-bg-color: background-color 250ms linear;
    --transition-effect: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 30px;
    font-weight: 300;
    color: #afafaf;
    margin: 0;
    padding: 0;
    background-color: var(--primary-white-color);
}

/* Reset styles */

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* Common */

.section {
    margin: 30px 0;
    padding: 100px 0;

    transform: translateY(100px);
    opacity: 0;
    transition: 750ms var(--transition-effect);
}

.section.appear {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;

    @media (min-width: 576px) {
        max-width: 540px;
    }

    @media (min-width: 768px) {
        max-width: 720px;
    }

    @media (min-width: 992px) {
        max-width: 960px;
    }

    @media (min-width: 1200px) {
        max-width: 1140px;
    }

    @media (min-width: 1400px) {
        max-width: 1320px;
    }
}

.section-title {
    @media (max-width: 320px) {
        font-size: 26px;
    }

    position: relative;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
    color: #2a2a2a;
}

.section-title.privacy-title {
    margin-bottom: 75px;
}

.section-title::after {
    content: url("../images/title-line.svg");
    position: absolute;
    bottom: -30px;
    left: calc(50% - 45px / 2);
}

.text {
    @media (max-width: 576px) {
        font-size: 14px;
    }

    font-size: 15px;
    line-height: 2;
    font-weight: 300;
    color: var(--primary-text-color);
}

/* Header */

.header {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 0 15px;
    height: 80px;
    text-align: center;
    border-bottom: 1px solid rgba(42, 42, 42, 0.2);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    -webkit-transition: all .5s ease 0s;
    -moz-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.03);
    background-color: transparent;
    transition: background-color 0.5s ease-in-out;
}

.header__wrapper {
    padding: 0 30px;
}

.logo {
    cursor: pointer;
}

.header__burger-btn {
    display: none;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 32px;
    height: 40px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, bacground-color 0.3s ease-in-out, width 0.3s ease-in-out;
}

.burger-btn__row-first {
    width: 75%;
    height: 2px;
    top: 10px;
    position: absolute;
    display: block;
    transition: all 0.4s;
    background-color: var(--primary-black-color);
    opacity: 1;
}

.burger-btn__row-second {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-black-color);
    opacity: 1;
}

.burger-btn__row-third {
    position: absolute;
    display: block;
    width: 75%;
    height: 2px;
    bottom: 10px;
    transition: all 0.4s;
    background-color: var(--primary-black-color);
    opacity: 1;
}

.header.open .burger-btn__row-first {
    transform: translateY(10px) rotate(45deg);
    width: 100%;
}

.header.open .burger-btn__row-second {
    opacity: 0;
}

.header.open .burger-btn__row-third {
    transform: translateY(-8px) rotate(-45deg);
    width: 100%;
}

.logo {
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    display: none;
}

.header__item {
    display: block;
    background: #f7f7f7;
}

.header__link {
    text-transform: capitalize;
    color: #191a20;
}

.header__link:hover {
    color: var(--link-color);
}

@media screen and (max-width: 768px) {
    .header.open .menu {
        transform: translateY(205px);
    }

    .header__burger-btn {
        display: flex;
    }

    .menu {
        display: block;
        position: absolute;
        top: -105px;
        left: 5%;
        opacity: 0;
        width: 90%;
        transition: all 0.3s ease-in-out 0.3s;
    }

    .header.open .menu {
        opacity: 1;
    }

    .header__item {
        border-bottom: 1px solid #e7e7e7;
    }
}

@media screen and (min-width:768px) {

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

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

    .header__item {
        justify-content: space-between;
        background-color: transparent;
        border-bottom: none;
    }

    .header__item>.header__link:active {
        border-bottom: 2px solid var(--link-color);
        padding-bottom: 30px;
    }


    .header__item:not(:last-child) {
        padding-right: 24px;
    }

    .header__link {
        letter-spacing: 1px;
        height: 40px;
        line-height: 40px;
        border: transparent;
        color: var(--primary-black-color);
    }
}

@media screen and (min-width: 992px) {
    .header {
        overflow: hidden;
        -webkit-animation-duration: 0.3s;
        -moz-animation-duration: 0.3s;
        animation-duration: 0.3s;
        -webkit-animation-delay: 0s;
        -moz-animation-delay: 0s;
        animation-delay: 0s;
        transform: translateY(0%);
        visibility: hidden;
        -webkit-animation: slideDown 1s forwards 0.3s;
        -moz-animation: slideDown 1s forwards 0.3s;
        animation: slideDown 1s forwards 0.3s;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        visibility: visible;
    }

    to {
        transform: translateY(0);
        visibility: visible;
    }
}


/* Hero */

.hero {
    position: relative;
    /*padding: 226px 0 30px;*/
    padding: 250px 0 150px;
}

@media (min-width: 992px) {
    .hero:before {
        content: '';
        background-image: url(../images/hero-bg.png);
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        visibility: hidden;
        -webkit-animation-duration: 1s;
        -moz-animation-duration: 1s;
        animation-duration: 1s;
        -webkit-animation-delay: 0.65s;
        -moz-animation-delay: 0.65s;
        animation-delay: 0.65s;
        -webkit-animation-fill-mode: forwards;
        -moz-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
        -webkit-animation-name: fadeIn;
        animation-name: fadeIn;
    }

    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
            visibility: visible;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
            visibility: visible;
        }
    }

}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 45px;

    @media (min-width: 992px) {
        flex-direction: row;
    }
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (min-width:992px) {
        visibility: hidden;
        -webkit-animation-duration: 1s;
        -moz-animation-duration: 1s;
        animation-duration: 1s;
        -webkit-animation-delay: 1s;
        -moz-animation-delay: 1s;
        animation-delay: 1s;
        -webkit-animation-fill-mode: forwards;
        -moz-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
        -webkit-animation-name: slideInFromLeft;
        animation-name: slideInFromLeft;
    }

}

@-webkit-keyframes slideInFromLeft {
    from {
        visibility: visible;
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
        visibility: visible;
    }
}

@keyframes slideInFromLeft {
    from {
        visibility: visible;
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
        visibility: visible;
    }
}

.hero-title {
    @media (max-width: 320px) {
        font-size: 32px;
    }

    font-weight: 700;
    font-size: 50px;
    line-height: 1.4;
    text-align: center;
    color: var(--primary-black-color);
}

.hero-subtitle {
    font-weight: 400;
    width: 100%;

    @media (min-width: 992px) {
        color: var(--primary-black-color);
    }
}

.hero-btn-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    border-radius: 25px;
    background-color: #4b8ef1;
    color: #fff;
    transition: var(--transition-bg-color);
}

.hero-link:hover {
    background-color: #0a58ca;
}

.hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    visibility: visible;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-delay: 0.5s;
    -moz-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@media (min-width: 992px) {

    .hero-image-wrapper,
    .hero-text-wrapper {
        width: 50%;
    }

    .hero-image-wrapper>img {
        transform: translateX(-100%);
        visibility: hidden;
        -webkit-animation: slideIn 1s forwards 0.5s;
        -moz-animation: slideIn 1s forwards 0.5s;
        animation: slideIn 1s forwards 0.5s;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        visibility: visible;
    }

    to {
        transform: translateX(0);
        visibility: visible;
    }
}

/* Privacy */

.privacy-container {
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;

    @media (max-width: 1200px) {
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .privacy-container::after {
        content: url("../images/privacy-bg.jpg");
        position: absolute;

        right: 0;
        bottom: 0;
        z-index: -1;
    }
}

.privacy-title {
    @media (min-width: 992px) {
        width: 50%;
        text-align: start;
    }
}

@media (min-width: 992px) {
    .privacy-title::after {
        left: 0;
    }
}

.privacy-list-wrapper {
    @media (min-width: 1200px) {
        width: calc(50% - 30px);
    }
}

.privacy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.privacy-list-item {
    padding: 18px 30px 10px;
    border-radius: 25px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    background-color: var(--primary-white-color);

    @media (min-width: 992px) {
        width: calc(50% - 15px);
    }
}

.privacy-item-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black-color);
}

.privacy-link {
    color: var(--primary-black-color);
    transition: color 250ms linear;
}

.privacy-link:hover {
    color: var(--link-color);
}

.btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.privacy-btn {
    display: block;
    padding: 10px 20px;
    width: fit-content;
    font-size: 15px;
    color: var(--primary-white-color);
    text-transform: capitalize;
    background: rgb(19, 175, 240);
    background: linear-gradient(105deg, rgba(91, 104, 235, 1) 0%, rgba(40, 225, 253, 1) 100%);
    border: none;
    border-radius: 20px;
    font-weight: 500;
}

.privacy-span {
    font-size: 14px;
    color: #7a7a7a;
}

/* Terms */

.section-terms {
    margin-top: 130px;
    position: relative;

    @media (min-width:992px) {
        visibility: hidden;
        -webkit-animation-duration: 1s;
        animation-duration: 1s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.section-terms.animated {
    @media (min-width:992px) {
        visibility: visible;
        opacity: 1;
        -webkit-animation-name: fadeInDown;
        animation-name: fadeInDown;
    }
}

.section-terms::before {
    content: '';
    background-image: url(../images/terms-bg-top.png);
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 0;
    width: 1136px;
    height: 244px;
    z-index: -1;
}

.terms-section-title {
    margin-bottom: 50px;
}

.terms-section-title::after {
    @media (min-width: 992px) {
        left: calc(50% - 45px / 2);
    }
}

.terms-text {
    @media (max-width: 767px) {
        max-width: 330px;
    }

    margin: 0 auto;
    max-width: 445px;
}

.section-terms::after {
    content: '';
    background-image: url(../images/terms-bg-bottom.png);
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    bottom: -300px;
    width: 261px;
    height: 368px;
    z-index: -1;
}

/* Footer */

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 45px;

    background-image: url("../images/footer-bg.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 130px;
    padding-top: 300px;
    padding-bottom: 60px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

.footer-text {
    @media (max-width: 576px) {
        font-size: 24px;
    }

    @media (max-width: 768px) {
        color: var(--primary-black-color)
    }

    font-size: 30px;
    line-height: 1.5;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--primary-white-color);
    text-align: center;

    @media (min-width: 576px) {
        width: 370px;
    }

    @media (min-width: 768px) {
        width: 520px;
    }

    @media (min-width: 1200px) {
        width: 635px;
    }
}

.footer-form {
    display: flex;
    gap: 24px;
    width: 100%;

    @media (max-width: 576px) {
        flex-direction: column;
    }

    @media (min-width: 992px) {
        width: 60%;
    }
}

.footer-inputs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;

    @media (min-width: 768px) {
        gap: 0;
    }
}

.footer-form-input {
    padding: 5px 30px;
    width: 100%;
    height: 46px;
    font-size: 15px;
    border: 1px solid #eee;
    color: #afafaf;
    background-color: #fff;
    border-radius: 20px;
    outline: transparent;
    transition: var(--transition-bg-color);
}

@media (max-width: 768px) {
    .footer-form-input:hover {
        background-color: #e7e7e7;
    }
}

@media (min-width: 768px) {
    .footer-form-input {
        padding: 2px;
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        background-color: transparent;
        color: #fff;
    }

    .footer-form-input::placeholder {
        color: rgba(204, 204, 204, 0.7);
    }
}

.footer-form-btn-wrapper {
    flex: 1;
}

.footer-form-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 50px;
    border-radius: 25px;
    font-size: 15px;
    line-height: 1.7;
    border: 1px solid transparent;
    transition: var(--transition-bg-color), color 250ms linear;
    background-color: var(--primary-white-color);

    @media (min-width: 768px) {
        border: 1px solid var(--primary-white-color);
        color: var(--primary-white-color);
        background-color: transparent;
    }
}

.footer-form-btn-icon {
    transition: fill 250ms linear;

    @media (min-width: 768px) {
        fill: var(--primary-white-color)
    }
}

.footer-form-btn:hover {
    background-color: var(--primary-white-color);
    color: var(--accent-color);

    .footer-form-btn-icon {
        fill: #4b8ef1;
    }
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 65px;
    padding: 45px 0 20px;

    @media (max-width: 768px) {
        text-align: center;
    }

    @media (min-width: 768px) {
        margin-right: auto;
    }

    @media (min-width: 992px) {
        flex-direction: row;
        gap: 140px;
    }
}

.footer-item {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.footer-link {
    color: var(--accent-color);
    transition: color 250ms linear;
}

.footer-link:hover {
    color: #0a58ca;
}

.footer-copyright {
    color: var(--primary-white-color);
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.6);
}


.modal-content {
    text-align: center;
    margin: 25%;
    top: 0;
    left: 0;
    position: relative;
    padding: 100px 60px;
    font-weight: bold;
    border-radius: 32px;
    background-color: #F4F4F2;
    border-bottom: 1px solid #DDD;
}

.modal-content>span {
    font-size: 16px;
    text-transform: uppercase;
}

.close {
    float: right;
    top: 10%;
    right: 6%;
    position: absolute;
    color: var(--primary-white-color);
    font-size: 16px;
    border: none;
    padding: 10px 15px;
    background: var(--link-color);
    font-weight: 900;
    cursor: pointer;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}
