* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Steppe-Book';
    src: url("../fonts/Steppe-Book.ttf");
}

@font-face {
    font-family: 'Steppe-ExtraBold';
    src: url("../fonts/Steppe-ExtraBold.ttf");
}

body {
    background-color: #5243F4;
    font-family: 'Steppe-Book', sans-serif;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    background-color: white;
    border-radius: 60px;
    width: 178px;
    height: 58px;
    box-sizing: border-box;
    padding: 18px;
    text-align: center;
    font-size: 18px;
    color: #5243F4;
    border: 0;
    outline: none;
    cursor: pointer;
}


.violet-button {
    background-color: #5243F4;
    color: white;
}

.button:hover {
    background-color: #eeeeee;
}

.button.violet-button:hover {
    background-color: #291af4;
}

.common-title {
    font-family: 'Steppe-ExtraBold', sans-serif;
    font-size: 60px;
    line-height: 100%;
    text-align: center;
    padding: 10px 0 100px 0;
}

.main {
    position: relative;
    overflow: hidden;
}

.header {
    padding: 40px 0;
}

.header .container {
    display: flex;
    align-items: center;
}

.logo img {
    vertical-align: bottom;
}

.menu {
    margin-left: 250px;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 50px;
}

.menu-item a {
    font-size: 16px;
    line-height: 130%;
    text-decoration: none;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.menu-item a:hover::after {
    width: 100%;
}

.menu-item a:hover {
    transform: translateY(-2px);
    color: #ffffff;
}


.main-content {
    padding-top: 161px;
    padding-bottom: 200px;
}

.main-info {
    max-width: 811px;
}

.main-title {
    font-family: 'Steppe-ExtraBold', sans-serif;
    font-size: 90px;
    line-height: 100px;
    margin-bottom: 20px;
}

.main-text {
    max-width: 690px;
    font-size: 18px;
    line-height: 130%;
    margin-bottom: 40px;
}

.main-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}

.products {
    padding: 100px 0;
    position: relative;
}

.products-items,
.products-item2,
.products2-item {
    display: grid;
    grid-template-columns: repeat(3, 384px);
    gap: 90px 24px;
    margin-top: 10px;
}


.products-item {
    background-color: white;
    color: #503427;
}

.products-item-image {
    height: 202px;
    text-align: center;
}

.products-item-image img {
    height: 272px;
    top: -70px;
    position: relative;
    max-width: 100%;
}

.products-item-details {
    padding: 24px;
}

.products-items-title {
    font-family: 'Steppe-ExtraBold', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.products-item-text {
    height: 110px;
    font-size: 14px;
    line-height: 120%;
    margin-bottom: 20px;
}

.products-item-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-item-price {
    font-family: 'Steppe-ExtraBold', sans-serif;
    color: #5243F4;
    font-size: 24px;
    margin-bottom: 10px;
}

.products-item-weight {
    font-size: 12px;
}

.love {
    padding: 50px 0 150px 0;
    padding-top: 5px;
}


.love-items {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.love-item {
    width: 590px;
    height: 453px;
    gap: 20px;
}

.love-item-white {
    background-color: #eeeeee;
    padding: 110px 80px;
    box-sizing: border-box;
    color: #5D3427;
}

.love-item-title {
    font-family: 'Steppe-ExtraBold', sans-serif;
    font-size: 24px;
    line-height: 110%;
    margin-bottom: 20px;
}

.live-item-text {
    font-size: 18px;
    line-height: 130%;
}

.order {
    padding-bottom: 120px;
    position: relative;
}

.order .container {
    position: relative;
}

.order-block {
    margin-top: 103px;
    background-color: rgb(255 255 255 / 30%);
    backdrop-filter: blur(50px);
    display: flex;
}

.order-form {
    margin-left: 200px;
    max-width: 387px;
    padding: 40px 0 40px 0;
    box-sizing: border-box;
}

.order-form-text {
    font-family: 'Steppe-ExtraBold', sans-serif;
    font-size: 18px;
    line-height: 130%;
}

.order-form-inputs {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.order-form-inputs input {
    border: 1px solid white;
    border-radius: 60px;
    margin-bottom: 16px;
    padding: 24px 22px;
    font-size: 18px;
    width: 385px;
    height: 68px;
    background: transparent;
    box-sizing: border-box;
    outline: none;
    color: white;
}

::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.order-form-inputs .button.violet-button {
    width: 387px;
    height: 71px;
}

.order-block-image {
    height: 501px;
    margin-left: 109px;
}

.order-image {
    height: 559px;
    top: -50px;
    position: relative;
}

.order-bg-image {
    position: absolute;
    top: 0;
    right: calc(100% - 800px);
    z-index: -1;
}

.footer {
    padding: 126px 0 50px 0;
    text-align: center;
}

.rights {
    margin-top: 14px;
    font-size: 18px;
    line-height: 130%;
}

.line1 {
    position: absolute;
    z-index: -1;
    top: 0;
    left: calc(100% - 960px);
}

.line2 {
    position: absolute;
    z-index: -1;
    top: -40px;
    left: 0;
}

.line3 {
    position: absolute;
    z-index: -1;
    top: -920px;
    left: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1e0ff3; /* Фон кнопки */
    color: white; /* Цвет стрелки */
    border-radius: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1); /* Увеличение кнопки при наведении */
    background-color: #5043ed; /* Более насыщенный фон при наведении */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .products-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .main-title {
        font-size: 60px;
        line-height: 70px;
    }

    .order-block {
        flex-direction: column;
        align-items: center;
    }

    .order-form {
        margin-left: 0;
        padding: 40px;
    }

    .order-block-image {
        margin-left: 0;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .menu-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .products-items {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 40px;
        line-height: 50px;
    }

    .love-items {
        flex-direction: column;
    }

    .love-item {
        width: 100%;
        height: auto;
    }

    .love-item-white {
        padding: 60px 30px;
    }

    .order-form-inputs input,
    .order-form-inputs .button {
        width: 100%;
    }

    .order-bg-image {
        display: none;
    }

    .line1, .line2, .line3 {
        display: none;
    }
}
/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .main-title {
        font-size: 60px;
        line-height: 70px;
    }

    .main-image {
        width: 500px;
    }

    .products-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .order-block {
        flex-direction: column;
        align-items: center;
    }

    .order-form {
        margin-left: 0;
        width: 100%;
        max-width: 500px;
    }

    .order-block-image {
        margin-left: 0;
        margin-top: 30px;
    }

    .order-image {
        width: 100%;
        height: auto;
        top: 0;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .menu-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .main-title {
        font-size: 40px;
        line-height: 50px;
    }

    .main-text {
        font-size: 16px;
    }

    .main-image {
        display: none;
    }

    .common-title {
        font-size: 36px;
        line-height: 45px;
        padding: 10px 0 50px 0;
    }

    .products-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-item-image img {
        height: 200px;
        top: -50px;
    }

    .love-items {
        flex-direction: column;
    }

    .love-item {
        width: 100%;
        height: auto;
    }

    .love-item-white {
        padding: 40px 20px;
    }

    .order-form {
        padding: 30px 20px;
    }

    .order-form-inputs input {
        width: 100%;
        padding: 15px 20px;
        height: 50px;
    }

    .order-form-inputs .violet-button {
        width: 100%;
        height: 50px;
    }

    .order-image {
        display: none;
    }

    .footer {
        padding: 60px 0 30px 0;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .main-title {
        font-size: 32px;
        line-height: 40px;
    }

    .common-title {
        font-size: 28px;
        line-height: 35px;
    }

    .menu-list {
        gap: 10px;
    }

    .menu-item a {
        font-size: 14px;
        padding: 5px 10px;
    }

    .love-item-title {
        font-size: 20px;
    }

    .live-item-text {
        font-size: 16px;
    }

    .order-form-text {
        font-size: 16px;
    }
}
