/* ===== СТИЛИ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Основной контент */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0 0 60px;
    background: #fff;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Banner */
.hero-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 400px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    margin: 0 -15px 40px;
    position: relative;
}
.banner-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 35px;
    background: #e31e24;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

.banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Быстрые ссылки */
.quick-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 60px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 2px solid transparent;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e31e24;
}

.quick-link i {
    font-size: 32px;
    color: #e31e24;
}

.quick-link span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Секция История */
.history-section {
    margin-bottom: 10px;
    scroll-margin-top: 120px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e31e24;
}

/* Баннер слайдер */
.banner-slider {
    position: relative;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 100%);
    min-height: 350px;
}

.banner-slide .banner-image {
    flex: 1;
    height: 350px;
    overflow: hidden;
}

.banner-slide .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигация слайдера */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50px;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #5a4a3a;
    border-radius: 50%;
    background: transparent;
    color: #5a4a3a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #5a4a3a;
    color: #fff;
}

/* Текстовый контент истории */
.history-text {
    max-width: 100%;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 35px;
}

.history-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.history-text p:last-child {
    margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-banner {
        flex-direction: column;
        min-height: auto;
    }
    
    .banner-content {
        padding: 30px;
        text-align: center;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-image {
        width: 100%;
        height: 250px;
    }
    
    .banner-image::after {
        display: none;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-slide {
        flex-direction: column;
        min-height: auto;
    }
    
    .banner-slide .banner-image {
        width: 100%;
        height: 250px;
    }
    
    .slider-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 0 40px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .history-text {
        padding: 20px;
    }
    
    .history-text p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}

/* ===== СЕКЦИЯ 5 ШАГОВ ЗАКАЗА ===== */

.steps-section {
    padding: 30px 0;
    background: #fff;
}

.steps-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

/* Карточка шага */
.step-card {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* Номер шага */
.step-number {
    display: inline-block;
    background: #fff;
    color: #e31e24;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

/* Название шага */
.step-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Описание шага */
.step-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Кнопка в первой карточке */
.step-btn {
    display: inline-block;
    background: #e31e24;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s;
    width: fit-content;
}

.step-btn:hover {
    background: #c62828;
}

/* Выделенная карточка (5 шаг) */
.step-highlight {
    background: #e31e24;
    color: #fff;
}

.step-highlight .step-name {
    color: #fff;
}

.step-highlight .step-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Иконка галочки */
.step-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon i {
    color: #e31e24;
    font-size: 18px;
}

/* Информационный блок */
.step-info {
    background: #fff;
    border: 2px solid #e31e24;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-info-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        min-height: auto;
    }
    
    .steps-title {
        font-size: 18px;
    }
}
/* ===== СЕТКА ИСТОРИИ С КАРТИНКАМИ ===== */

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.history-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.history-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.history-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.history-card:hover .history-card-img img {
    transform: scale(1.04);
}

.history-card-text {
    padding: 14px 16px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ПОПУЛЯРНЫЕ ТОВАРЫ ===== */

.popular-section {
    background: #f9f9f9;
    padding: 50px 0;
    margin-top: 10px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-img {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7cb342;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
}

.product-card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.product-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
}

.product-card-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.product-card-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 11px;
    background: #e31e24;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    background: #c62828;
}

/* ===== ПОЧЕМУ СТОИТ ПОКУПАТЬ У НАС ===== */

.why-us-section {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.why-us-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.why-us-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #e31e24;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e31e24;
    font-size: 24px;
    flex-shrink: 0;
}

.why-us-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.why-us-text {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* Планшет */
@media (max-width: 992px) {

    /* Быстрые ссылки */
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        margin: 30px 0;
        gap: 15px;
    }

    /* История */
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Баннер слайдер */
    .banner-slide {
        flex-direction: column;
        min-height: auto;
    }

    .banner-slide .banner-image {
        width: 100%;
        height: 250px;
    }

    .slider-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    /* Популярные товары */
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Почему у нас */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 5 шагов */
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-title {
        font-size: 20px;
    }
}

/* Большие телефоны */
@media (max-width: 768px) {

    .main-content {
        padding: 0 0 40px;
    }

    /* Быстрые ссылки */
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px 0;
    }

    .quick-link i {
        font-size: 24px;
    }

    .quick-link span {
        font-size: 12px;
    }

    /* Заголовки секций */
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .steps-title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    /* История */
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-card-img {
        height: 180px;
    }

    /* Популярные товары */
    .popular-section {
        padding: 30px 0;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-img {
        height: 130px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .product-card-price {
        font-size: 14px;
    }

    /* Почему у нас */
    .why-us-section {
        padding: 30px 0;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .why-us-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .why-us-title {
        font-size: 13px;
    }

    /* 5 шагов */
    .steps-section {
        padding: 20px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .step-card {
        padding: 20px;
        min-height: auto;
    }

    .step-name {
        font-size: 14px;
    }

    .step-description {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== АДАПТИВНОСТЬ ГЛАВНОЙ СТРАНИЦЫ ===== */

@media (max-width: 992px) {
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        margin: 30px 0;
        gap: 15px;
    }

    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-slide {
        flex-direction: column;
        min-height: auto;
    }

    .banner-slide .banner-image {
        width: 100%;
        height: 250px;
    }

    .slider-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px 0 40px;
    }

    /* Отступ чтобы контент не прилипал к шапке */
    .content-container {
        padding-top: 20px;
    }

    /* Быстрые ссылки */
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px 0;
        gap: 12px;
    }

    .quick-link {
        padding: 12px 10px;
        gap: 8px;
    }

    .quick-link i {
        font-size: 24px;
    }

    .quick-link span {
        font-size: 12px;
    }

    /* Баннер — кнопки навигации */
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
        border-width: 1px;
    }

    .slider-nav {
        bottom: 10px;
        gap: 6px;
    }

    /* Заголовки */
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .steps-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* История */
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-card-img {
        height: 180px;
    }

    /* Популярные товары */
    .popular-section {
        padding: 30px 0;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-img {
        height: 130px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .product-card-price {
        font-size: 14px;
    }

    /* Почему у нас */
    .why-us-section {
        padding: 30px 0;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .why-us-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .why-us-title {
        font-size: 13px;
    }

    /* 5 шагов */
    .steps-section {
        padding: 20px 0;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .step-card {
        padding: 20px;
        min-height: auto;
    }

    .step-name {
        font-size: 14px;
    }

    .step-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 15px 0;
    }

    /* Баннер — совсем маленькие кнопки */
    .slider-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }

    .history-card-img {
        height: 150px;
    }

    .history-card-text {
        font-size: 11px;
        padding: 10px 12px;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card-img {
        height: 110px;
    }

    .product-card-info {
        padding: 8px;
    }

    .product-card-desc {
        display: none;
    }

    .add-to-cart-btn {
        padding: 9px;
        font-size: 11px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 16px;
    }

    .steps-title {
        font-size: 16px;
    }
}