/* Astra Child – страница «Гарантии»
   Mobile First, брейкпоинты 545px / 922px по инструкции */

.guarantees-page {
    width: 100%;
    overflow-x: hidden;
}

/* =============================================================================
   Hero
   ============================================================================= */
.guarantees-page .guarantees-hero {
    background: var(--gradient-hero) !important;
    padding: var(--spacing-hero-top, 28px) 20px 0 !important;
    margin: 0 !important;
}

.guarantees-page .guarantees-hero__flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
}

.guarantees-page .guarantees-hero__content {
    text-align: center !important;
    width: 100% !important;
    max-width: 800px;
}

.guarantees-page .guarantees-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--ast-global-color-2) !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.03em !important;
}

.guarantees-page .guarantees-hero__subtitle {
    font-size: 1.25rem !important;
    color: var(--color-text-body) !important;
    line-height: 1.6 !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    opacity: 0.9;
}

.guarantees-page .guarantees-hero__image {
    width: 100% !important;
    max-width: 540px !important;
    margin-top: 20px !important;
    line-height: 0 !important;
}

.guarantees-page .guarantees-hero__image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
}

/* =============================================================================
   Сетка гарантий (переопределение _components.css под страницу)
   ============================================================================= */
.guarantees-page .guarantees-list {
    padding: 100px 20px !important;
    background: var(--color-bg-light) !important;
}

.guarantees-page .guarantees-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    max-width: var(--container-max) !important;
    margin: 0 auto !important;
}

.guarantees-page .guarantee-card {
    background: var(--color-white) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 32px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden;
}

.guarantees-page .guarantee-card:hover {
    border-color: var(--color-primary-light) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.guarantees-page .guarantee-card__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.guarantees-page .guarantee-card__icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.guarantees-page .guarantee-card__icon--handshake { color: var(--color-primary) !important; background: rgba(37, 99, 235, 0.1) !important; }
.guarantees-page .guarantee-card__icon--lock { color: #6366f1 !important; background: rgba(99, 102, 241, 0.1) !important; }
.guarantees-page .guarantee-card__icon--edit { color: #f59e0b !important; background: rgba(245, 158, 11, 0.1) !important; }
.guarantees-page .guarantee-card__icon--users { color: #ec4899 !important; background: rgba(236, 72, 153, 0.1) !important; }
.guarantees-page .guarantee-card__icon--clock { color: #06b6d4 !important; background: rgba(6, 182, 212, 0.1) !important; }
.guarantees-page .guarantee-card__icon--check { color: var(--color-success) !important; background: rgba(16, 185, 129, 0.1) !important; }

.guarantees-page .guarantee-card__num {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--color-text-muted) !important;
    opacity: 0.25 !important;
}

.guarantees-page .guarantee-card__title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: var(--ast-global-color-2) !important;
}

.guarantees-page .guarantee-card__text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--color-text-body) !important;
    margin: 0 !important;
}

/* =============================================================================
   Брейкпоинты (545px, 922px – строго по instructions.mdc)
   ============================================================================= */

@media (min-width: 922px) {
    .guarantees-page .guarantees-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 922px) {
    .guarantees-page .guarantees-hero {
        padding: var(--spacing-hero-top, 28px) 20px 0 !important;
    }

    .guarantees-page .guarantees-hero__flex {
        flex-direction: row !important;
        justify-content: space-between !important;
        text-align: left !important;
        align-items: flex-end !important;
        gap: 48px !important;
    }

    .guarantees-page .guarantees-hero__content {
        text-align: left !important;
        padding-bottom: var(--spacing-hero-bottom, 56px) !important;
        flex: 1 !important;
    }

    .guarantees-page .guarantees-hero__subtitle {
        margin: 0 !important;
    }

    .guarantees-page .guarantees-hero__image {
        margin-top: 0 !important;
        max-width: 500px !important;
        flex-shrink: 0 !important;
    }

    .guarantees-page .guarantees-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
    }

    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
    .guarantees-page .guarantees-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
}
