.market-section {
    padding: 30px 0;
    padding-bottom: 10px;
    background-color: #f8f9fa;
}

.market-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 380px);
    gap: 20px;
}

.market-section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 48px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.market-item {
    background-color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.market-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


.text-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.market-title {
    font-family: 'Rubik', sans-serif;
    font-size: 42px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.market-description {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.market-button {
    font-family: 'Rubik', sans-serif;
    background-color: #F97316;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.market-button:hover {
    background-color: #EA580C;
}

.image-item {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item .market-item-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.pricing-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.pricing-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-group-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #F97316;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.pricing-group-title:first-child {
    margin-top: 0;
}

.market-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Rubik', sans-serif;
}

.market-pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px; 
}

.market-pricing-list li:last-child {
    border-bottom: none;
}

.market-pricing-list span:first-child {
    font-weight: 400;
    color: #eee;
}

.market-pricing-list span:last-child {
    font-weight: 500;
    color: white;
}

.market-item-title {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    color: white;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #F97316;
    width: 100%;
}

.market-item-button {
    color: white;
    margin-top: auto;
    align-self: center;
    font-size: 20px;
}

.market-item .advantage-button::after {
    opacity: 1;
    background: #F97316;
}

.market-item:hover .advantage-button::after {
    background: #EA580C;
    height: 6px;
    bottom: -6px;
}


/* Мобильные стили для устройств шириной 768px и меньше */
@media (max-width: 768px) {
    .market-section {
        padding: 40px 0;
        padding-bottom: 20px;
    }

    .market-container {
        padding: 0 15px;
    }

    .market-section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .market-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .market-item {
        min-height: 280px;
    }

    .text-item {
        padding: 30px 20px;
        text-align: center;
        align-items: center;
        min-height: 300px;
    }

    .market-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .market-description {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .market-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .image-item .market-item-details {
        padding: 15px;
    }

    .market-item-title {
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .pricing-container {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-group-title {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .market-pricing-list li {
        font-size: 14px;
        padding: 6px 0;
    }

    .market-item-button {
        font-size: 16px;
        margin-top: 15px;
    }
}

/* Стили для очень маленьких экранов 480px и меньше */
@media (max-width: 480px) {
    .market-section {
        padding: 30px 0;
        padding-bottom: 15px;
    }

    .market-container {
        padding: 0 10px;
    }

    .market-section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .market-grid {
        gap: 15px;
    }

    .market-item {
        min-height: 260px;
    }

    .text-item {
        padding: 25px 15px;
        min-height: 280px;
    }

    .market-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .market-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .market-button {
        font-size: 15px;
        padding: 10px 20px;
    }

    .image-item .market-item-details {
        padding: 12px;
    }

    .market-item-title {
        font-size: 20px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .pricing-group-title {
        font-size: 15px;
        margin-top: 8px;
        margin-bottom: 4px;
    }

    .market-pricing-list li {
        font-size: 13px;
        padding: 5px 0;
    }

    .market-item-button {
        font-size: 15px;
        margin-top: 12px;
        padding: 8px 16px;
    }
}

/* Дополнительные стили для очень узких экранов 360px и меньше */
@media (max-width: 360px) {
    .market-section-title {
        font-size: 22px;
    }

    .market-title {
        font-size: 20px;
    }

    .market-description {
        font-size: 14px;
    }

    .market-item-title {
        font-size: 18px;
    }

    .pricing-group-title {
        font-size: 14px;
    }

    .market-pricing-list li {
        font-size: 12px;
    }
}
