/* ===== ГЛАВНАЯ СТРАНИЦА ===== */

.home-page {
    padding-top: 70px;
    background: #fff;
}

.home-block--2 {
    background: #fff;
}

/* --- Блоки --- */

.home-block {
    padding: 48px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.home-block--1 {
    display: flex;
    flex-direction: column;
}

.home-block--2 {
    max-width: 100%;
    padding: 48px 0;
}

.home-block--2 > .home-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home-block--3 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px;
}

.home-short-divider {
    width: 400px;
    height: 1px;
    background: #ccc;
    margin: 0 auto;
}

.block-divider {
    width: 400px;
    height: 1px;
    background: #ccc;
    margin: 40px auto;
}

/* --- Секции --- */

.home-section {
    margin-bottom: 44px;
}

.home-section:last-child {
    margin-bottom: 0;
}

/* --- Hero --- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.hero__content {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.hero__adv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.hero__adv-item {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero__adv-item:nth-child(1) { background: #fdf0ef; }
.hero__adv-item:nth-child(2) { background: #eef7ee; }
.hero__adv-item:nth-child(3) { background: #fff8ec; }
.hero__adv-item:nth-child(4) { background: #eef4fc; }

.hero__adv-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 16px;
}

.hero__adv-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.hero__adv-text {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.hero__label {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.12;
    margin: 0 0 18px;
}

.hero__subtitle {
    font-size: 17px;
    font-weight: 300;
    color: #555;
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 520px;
}

.hero__btn {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    background: #A1312B;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 13px 36px;
    border-radius: 30px;
    transition: background 0.18s;
}

.hero__btn:hover {
    background: #8a2823;
}

/* --- Факты под hero --- */

.hero-facts {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
}

.hero-fact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-fact__value {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
}

.hero-fact__label {
    font-size: 12px;
    font-weight: 300;
    color: #999;
}

.hero-fact__divider {
    width: 1px;
    height: 32px;
    background: #ddd;
    margin: 0 28px;
}

/* --- Шапка секции --- */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}

.section-link {
    color: #A1312B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.section-link:hover {
    opacity: 0.7;
}

/* --- Ряд продуктов --- */

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* --- Преимущества --- */

.advantages-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.adv-item__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.adv-item__title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.adv-item__text {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* --- Как это работает --- */

.how-section__title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
}

.how-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.how-step {
    flex: 1;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.how-step:nth-child(1) { background: #f9f9f9; }
.how-step:nth-child(3) { background: #f9f9f9; }
.how-step:nth-child(5) { background: #f9f9f9; }

.how-step__num {
    font-family: 'Oswald', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #ececec;
    line-height: 1;
    position: absolute;
    top: 12px;
    right: 16px;
    user-select: none;
}

.how-step__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.how-step__title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.how-step__text {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.how-step__connector {
    font-size: 24px;
    color: #A1312B;
    padding: 0 20px;
    flex-shrink: 0;
    opacity: 0.4;
}

/* --- Акции --- */

.promo-section {
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 36px 40px;
}

.promo__label {
    font-size: 12px;
    font-weight: 300;
    color: #A1312B;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.promo__text {
    font-size: 15px;
    font-weight: 300;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.promo__btn {
    display: inline-block;
    border: 1.5px solid #A1312B;
    color: #A1312B;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 11px 28px;
    border-radius: 30px;
    transition: background 0.18s, color 0.18s;
}

.promo__btn:hover {
    background: #A1312B;
    color: white;
}

/* --- Карта доставки --- */

.delivery-map-section {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 28px 36px 0;
}

.delivery-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.delivery-map-label {
    font-size: 11px;
    font-weight: 300;
    color: #999;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.delivery-map-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.delivery-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 300;
    color: #444;
    white-space: nowrap;
}

#delivery-map,
.delivery-map-wrapper {
    width: calc(100% + 72px);
    margin: 0 -36px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media (max-width: 880px) {
    .home-page {
        padding-top: 60px;
        padding-bottom: 100px;
    }

    .home-block {
        padding: 32px 12px;
    }

    .home-block--1 {
        min-height: calc(100vh - 80px);
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .home-block--2 {
        padding: 32px 0;
    }

    .home-block--2 > .home-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-block--3 {
        padding: 32px 12px;
    }

    .hero-facts {
        flex-wrap: wrap;
        gap: 12px 0;
        margin-bottom: 32px;
    }

    .hero-fact__divider {
        display: none;
    }

    .hero-fact {
        width: 50%;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }

    .hero__adv {
        grid-template-rows: auto;
    }

    .advantages-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .how-steps {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .how-step {
        width: 100%;
        box-sizing: border-box;
    }

    .how-step__connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .block-divider {
        margin: 28px 12px;
    }

    .promo-section {
        padding: 24px 20px;
    }

    .delivery-map-section {
        padding: 20px 20px 0;
    }

    .delivery-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .delivery-chip {
        font-size: 12px;
        padding: 5px 11px;
    }

    #delivery-map,
    .delivery-map-wrapper {
        width: calc(100% + 40px);
        margin: 0 -20px;
        /* верхний бар(60px) + нижний бар(100px) + паддинг(20px) + шапка блока(~110px) */
        height: calc(100vh - 290px);
        height: calc(100svh - 290px);
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .advantages-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 4px;
    }

    .promo-section {
        padding: 20px 16px;
    }
}
