/* БАЗА */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {

    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    margin-bottom: 15px;
}
body.no-scroll {
    overflow: hidden;
}
.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}
/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 12px 20px;

    background: #2c2c2c;
    color: #fff;

    border: none;
    border-radius: 6px;

    font-size: 14px;
    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s ease;
}
.btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn--small {
    padding: 10px 16px;
    font-size: 13px;
}

.btn--light {
    background: transparent;
    border: 1px solid #fff;
}

/* HERO Lamoda */
.hero--lamoda {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url(../img/bg-3.png) bottom / cover no-repeat;
    z-index: -1;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

/* сетка */
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
}

/* визуал */
.hero__visual {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    justify-content: end;
    max-width: 600px;
    margin-left: auto;
    position: relative;
    /*transform: translateY(5px);*/
    transform: translate(-140px, 5px);
}

/* главное фото */
.hero__main {
    height: 520px;
    max-width: 100%;
    width: auto;
    justify-content: center;
}

/* главное фото */
.hero__main img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* состояние загрузки */
.hero__main img.is-loading {
    opacity: 0;
    transform: scale(0.98);
}
/* легкий zoom */
.hero__main img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

/* правые фото */
.hero__side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}
.hero__side picture{
    background: #dcd0c4;
    /*opacity: 0.8;*/
    padding: 3px;
    border-radius: 5px;
}
.hero__side img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}
.hero__side img:hover {
    opacity: 1;
}
.hero__side img.active {
    opacity: 1;
    outline: 2px solid #c0392b;
}

/* текст */
.hero__content{z-index: 1}
.hero__content h1 {
    font-size: 42px;
}

.hero__content span {
    display: block;
    font-size: 24px;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__visual {
        margin: 30px auto 0;
    }
}

@media (max-width: 768px) {
    .hero__visual {
        grid-template-columns: 1fr 160px;
        transform: translate(-20px, 55px);
    }

    /* 👉 ГЛАВНОЕ: порядок */
    .hero__main {
        order: 1;
        height: auto;
        margin-bottom: 15px;
    }

    .hero__side {
        order: 2;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        width: 100%;
    }

    .hero__main img {
        width: 100%;
        height: auto;
        max-width: 260px;
    }

    .hero__side img {
        width: 70px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 4px;
    }

    .hero__content h1 {
        font-size: 24px;
    }

    .hero__content span {
        font-size: 16px;
    }
}
@media (min-width: 1025px) {
    .hero__visual {
        transform: translate(-200px, 120px);
    }
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

/* ТРИГГЕРЫ */
.triggers {
    background: #111;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* КАРТОЧКИ */
.products {
    padding: 50px 10px;
}

.products h2 {
    text-align: center;
}

.card {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    overflow: hidden;
}

.card img {
    width: 100%;
    transition: transform 0.4s ease;
    display: block;
}
.card:hover img {
    transform: scale(1.08);
}

.price {
    color: #c0392b;
    font-weight: bold;
}

/* TRUST */
.trust {
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    padding: 50px 10px;
}

.trust__item {
    padding: 25px 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    text-align: center;
}

.trust__item:hover {
    transform: translateY(-6px);
}

.trust__value {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.trust__label {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* CTA */
.cta {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

/* МОДАЛКА */
.modal {
    position: fixed;
    inset: 0;
    opacity: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px); /* даёт “дорогой” эффект */
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal .btn{max-width: 100%;}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* КОНТЕНТ */
.modal__content {
    background: #fff;
    padding: 30px 25px;
    width: 90%;
    max-width: 420px;

    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);

    position: relative;

    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: translateY(0);
}

/* ЗАКРЫТЬ */
.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;

    font-size: 18px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal__close:hover {
    color: #000;
}

/* ТЕКСТЫ */
.modal__content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.modal__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal__product {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ИНПУТЫ */
.modal input {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    font-size: 14px;
    transition: border 0.2s ease;
}

.modal input:focus {
    border-color: #000;
    outline: none;
}

/* КНОПКА */
.modal .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* КНОПКА */
.call-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    background-color: #2c2c2c; /* вместо зеленого — более премиально */
    color: white;

    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 3s infinite;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: none;
}
/* Эффект пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.call-button {
    animation: pulse 2s infinite;
}

/* АДАПТИВ */
@media (max-width: 1024px) {
    .hero__content h1 { font-size: 32px; }
    .grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
    .hero__content h1 { font-size: 24px; }
    .hero__content span { font-size: 18px; }

    .grid { gap:10px; }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
@media (max-width: 360px) {
    .grid { grid-template-columns: 1fr; }
}