* {
    box-sizing: border-box;
}

html {
    --primary: #550e7c;
    --secondary: #ffd600;
    --bg-color: #eee6f2;
    --light: #9864d0;
    --conteiner-width: 1170px;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    transition: .2s;
}
a:hover {
    text-decoration: none;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    margin: 0;
    padding: 0;
    padding-left: 15px;
    padding-right: 15px;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    z-index: 100;
}

main {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
}

.mx-40 {
    margin-right: 40px;
    margin-left: 40px;
}

.overlay {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(100, 100, 100, 0.9);
    width: 100%;
    min-height: 100vh;
    display: none;
    z-index: 1000;
}

.header-conteiner {
    width: 100%;
    max-width: var(--conteiner-width);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo__img {
    height: 85px;
}
.header__link:hover {
    color: var(--light);
}

.header-links {
    margin: 0;
    margin-left: auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.header__link {
    margin-right: 40px;
    color: white;
    font-size: 18px;
}

.header__link:last-child {
    margin-right: 0;
}

.header-instagram {
    height: 40px;
    width: 40px;
}

.header-phones {
    display: flex;
    flex-direction: column;
}

.header-phones__link {
    color: white;
    transition: .2s;
    font-size: 18px;
}
.header-phones__link:hover {
    color: var(--light);
}

.m-menu__btn {
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    background-image: url("/img/m-btn.svg");
    background-repeat: no-repeat;
    background-position: center center;
    display: none;
}
.m-menu__btn:focus {
    outline: none;
}

.header-m-menu {
    display: none;
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
    background-color: var(--primary);
    position: relative;
    right: -100%;
}

#intro {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    padding: 40px;
    background-image: url("/img/intro.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

h1 {
    font-size: 120px;
    letter-spacing: 1px;
    line-height: 90px;
    color: var(--secondary);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,0,0,0.31);
    margin: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
}

.route {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.route-conainer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.intro-main-mobile-pict {
    display: none;
    position: relative;
    right: 40px;
}

.route-cities {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.route-cities__li {
    padding: 0;
    margin: 0;
    margin-right: 40px;
    font-size: 45px;
    color: var(--primary);
    list-style: none;
}
.route-cities__li:last-child {
    margin: 0;
}
.route-cities__li::before {
    content: "";
    background-image: url("/img/location.svg");
    width: 35px;
    height: 35px;
    display: inline-block;
}

.route-label {
    margin: 0;
    margin-left: 40px;
    padding: 0;
    font-size: 30px;
    color: var(--primary);
    max-width: calc(var(--conteiner-width) * 0.8);
}

.intro-main {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.intro-main-list {
    width: 45%;
}

.intro-main-list__li {
    list-style: disc;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
    list-style-position: inside;
}

.intro-main-pict {
    position: relative;
    width: 60%;
}

.intro-btns {
    width: 100%;
    max-width: var(--conteiner-width);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.primary-btn {
    border: none;
    background-color: var(--secondary);
    min-width: 240px;
    padding: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
    text-align: center;
}
.primary-btn:active {
    outline: none;
}
.primary-btn:hover {
    background-color: #fff010;
}

#catalog {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

h3 {
    padding: 0;
    margin: 40px auto;
    font-size: 60px;
    line-height: 60px;
    color: var(--primary);
}

.card-conteiner {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
}

.card {
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    padding: 0;
    margin-top: 0px;
}

.card-die {
    position: relative;
    padding: 10px;
    background-color: var(--primary);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
}

.card__img {
    margin: auto;
    border-radius: 5px;
    width: 100%;
}

.card-die__label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px;
    padding-left: 30px;
    padding-right: 5px;
    background-color: var(--secondary);
    border-top-left-radius: 40px;
    border-bottom-right-radius: 5px;
    text-transform: uppercase;
    font-size: 30px;
    color: var(--primary);
}

.card-die-price {
    color: var(--primary);
}

#route {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.route__img {
    width: 100%;
    max-width: 600px;
}

#galary {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.galary-conteiner {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    margin-left: -15px;
    margin-right: -15px;
} 

.galary__img {
    width: 100%;
    max-width: 350px;
    margin: 15px;
    margin-top: 0;
}

#contacts {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: url("/img/contacts-bgc.png");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 25% auto;
}

.contacts-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
}

.contacts-row {
    display: flex;
    margin: 0;
    margin-bottom: 20px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.contact-title {
    font-size: 30px;
    color: var(--primary);
}

address {
    font-size: 30px;
    color: var(--primary);
    font-style: normal;
    text-align: center;
}

.contacts__link {
    font-size: 40px;
    color: var(--primary);
    text-decoration: underline;
}

footer {
    width: 100%;
    background-color: var(--primary);
    padding: 15px;
}

.foot-container {
    width: 100%;
    max-width: var(--conteiner-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.foot__img {
    height: 60px;
}

.foot__link {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 30px;
}
.foot__link:hover {
    color: var(--light);
}

form {
    position: relative;
    margin: auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: white;
}

#order-form {
    display: none;
}

.form-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.form-close__btn {
    border: none;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    font-size: 30px;
}
.form-close__btn:focus {
    outline: none;
}

.form-label {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 20px;
}

.form-input {
    margin-top: 10px;
    width: 100%;
    padding: 5px;
    font-size: 20px;
}

.form-textarea {
    width: 100%;
    padding: 5px;
}

.form-submit {
    border: none;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    width: 140px;
    justify-content: center;
    align-items: center;
}
.form-submit:focus {
    outline: none;
}

.form-submit-wait {
    width: 140px;
    height: 40px;
    background-color: var(--secondary);
    margin-top: 20px;
    display: none;
    justify-content: center;
    align-items: center;
}

.success-transaction {
    background-color: #33ff66;
}

.error-transaction {
    background-color: red;
}

video {
    max-width: var(--conteiner-width);
    max-height: 400px;
}

@media (max-width: 1201px) {
    html {
        --conteiner-width: 900px;
    }

    .header__link {
        margin-right: 30px;
        font-size: 16px;
    }

    .header-phones__link {
        font-size: 14px;
    }

    .intro {
        padding: 0 40px;
    }

    .intro-main {
        margin-top: -30px;
    }

    .intro-main-pict__img {
        width: 120%;
    }

    h1 {
        font-size: 90px;
        letter-spacing: 1px;
        line-height: 90px;
    }

    .route-cities__li {
        margin-right: 20px;
        font-size: 32px;
    }
    .route-cities__li::before {
        content: "";
        background-image: url("/img/location.svg");
        width: 24px;
        height: 24px;
        display: inline-block;
    }

    .route-label {
        font-size: 20px;
    }

    .intro-main-list__li {
        font-size: 16px;
        color: var(--primary);
        font-weight: bold;
        margin-bottom: 4px;
    }

    .primary-btn {
        min-width: 210px;
        padding: 10px;
        font-size: 20px;
    }

    .card-conteiner {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .card {
        width: 100%;
    }
}

@media (max-width: 899px) {
    html {
        --conteiner-width: 768px;
    }

    .header-logo__img {
        height: 50px;
    }

    .header-right {
        margin-left: 0px;
    }

    h1 {
        font-size: 70px;
        letter-spacing: 0px;
        line-height: 70px;
    }

    .intro-main-pict__img {
        width: 160%;
    }

    h3 {
        margin: 30px auto;
        font-size: 45px;
        line-height: 45px;
    }

    .route-cities__li {
        margin-right: 16px;
        font-size: 28px;
    }

    .route-cities__li::before {
        width: 24px;
        height: 24px;
    }

    .route-label {
        margin-left: 25px;
    }

    .intro-main-list {
        margin-top: 30px;
    }

    .card {
        max-width: 670px;
    }

    .foot__link {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    html {
        --conteiner-width: 414px;
    }

    .header-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .m-menu__btn {
        display: flex;
    }

    .header__link {
        margin: 0;
        padding-bottom: 10px;
    }

    .intro {
        padding: 15px;
    }

    .intro-main {
        margin-top: 0px;
    }

    .intro-main-pict {
        display: none;
    }

    .intro-main-mobile-pict {
        width: 100%;
        display: block;
    }

    .intro-main-mobile-pict__img {
        width: 230px;
    }

    h1 {
        font-size: 40px;
        line-height: 40px;
        padding: 0;
        margin: 0 auto;
        margin-bottom: 15px;
        letter-spacing: 0px;
        font-weight: bold;
    }

    h3 {
        font-size: 30px;
        line-height: 30px;
        margin: 0;
        margin-bottom: 15px;
    }

    .route {
        margin: 0;
    }

    .route-cities {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .route-cities__li {
        margin: 0;
        font-size: 30px;
        font-weight: bold;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 6px;
    }

    .route-label {
        font-size: 16px;
        margin: 0;
    }

    .intro-main-list {
        width: 100%;
        padding: 0;
    }


    .intro-main-list__li {
        font-size: 16px;
        color: var(--primary);
        font-weight: bold;
        margin-bottom: 6px;
        list-style-position: inside;
    }

    .intro-btns {
        margin: 0 auto;
        justify-content: center;
    }

    .primary-btn {
        min-width: 210px;
        padding: 10px;
        font-size: 20px;
    }

    .mx-40 {
        margin: 10px 0;
    }

    .card {
        max-width: 320px;
    }

    .card-die__label {
        font-size: 20px;
        padding: 6px;
        padding-left: 15px;
        border-top-left-radius: 25px;
    }

    .contact-title {
        font-size: 20px;
    }

    .contacts__link {
        font-size: 30px;
    }

    address {
        font-size: 20px;
    }

    .foot-container {
        width: 100%;
        max-width: var(--conteiner-width);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .foot__link {
        font-size: 16px;
    }
}

@media (max-width: 413px) {
    html {
        --conteiner-width: 375px;
    }

    .header-conteiner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-logo__img {
        height: 35px;
    }

    .intro-main-mobile-pict__img {
        width: 220px;
        position: relative;
        bottom: 60px;
        right: 16px;
    }

     .contact-title {
        font-size: 16px;
    }

    .contacts__link {
        font-size: 20px;
    }

    address {
        font-size: 16px;
    }
}

@media (max-width: 374px) {
    html {
        --conteiner-width: 320px;
    }

    .intro-main-mobile-pict__img {
        width: 170px;
        position: relative;
        bottom: 75px;
        right: 60px;
    }
}