/* ====================================================
   VARIABLES
   ==================================================== */
:root {
    --gold-color: #BFA15C;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f9fafb;
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* ====================================================
   BASE STYLES
   ==================================================== */
body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: #f3f4f6;
}

.rental-offer-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 
      0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.header-section h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--dark-gray);
    margin: 0 0 0.75rem;
}

.header-section p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0;
}

/* ====================================================
   STEPS GRID / CAROUSEL (MOBILE-FIRST)
   ==================================================== */
.steps-grid {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding-left: 1rem !important;
    padding-bottom: 1rem !important;
}

.step-card {
    flex: 0 0 85% !important;
    scroll-snap-align: start !important;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.icon-container {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(229, 231, 235, 0.8);
    z-index: 1;
}

.icon-wrapper {
    z-index: 2;
}

.icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke: var(--gold-color);
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ====================================================
   TABLET (≥ 640px): показываем по 2 карточки
   ==================================================== */
@media (min-width: 640px) {
    .steps-grid .step-card {
        flex: 0 0 48% !important;
    }
}

/* ====================================================
   DESKTOP (≥ 1024px): возвращаем сетку 4×1
   ==================================================== */
@media (min-width: 1024px) {
    .steps-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .steps-grid .step-card {
        flex: none !important;
        scroll-snap-align: none !important;
    }
    .header-section h2 {
        font-size: 3rem !important;
    }
}
