/*
|--------------------------------------------------------------------------
| REGULAMINY — HERO
|--------------------------------------------------------------------------
*/

.regulations-hero {
    padding: 82px 0 78px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 56%,
            #fff5f8 100%
        );
    border-bottom: 1px solid var(--line);
}

.regulations-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.regulations-hero-copy {
    max-width: 780px;
}

.regulations-overline {
    margin: 0 0 15px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.regulations-hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.regulations-hero h1 em {
    display: block;
    color: var(--pink);
    font-style: normal;
    font-weight: 500;
}

.regulations-hero-description {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.regulations-hero-card {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 15px;
    min-width: 225px;
    padding: 19px 22px;
    background: #ffffff;
    border: 1px solid #f0dce5;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(42, 64, 95, 0.07);
}

.regulations-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    color: var(--pink);
    background: var(--pink-soft);
    border-radius: 13px;
}

.regulations-hero-icon i {
    font-size: 18px;
}

.regulations-hero-card > div:last-child {
    display: flex;
    flex-direction: column;
}

.regulations-hero-card span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.regulations-hero-card strong {
    margin-top: 2px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 25px;
    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| TREŚĆ
|--------------------------------------------------------------------------
*/

.regulations-page {
    padding: 90px 0 120px;
    background: #ffffff;
}

.regulations-introduction {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 790px;
    margin-bottom: 48px;
}

.regulations-introduction-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--pink);
    background: var(--pink-soft);
    border-radius: 13px;
}

.regulations-introduction h2 {
    margin: 0 0 7px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.regulations-introduction p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}


/*
|--------------------------------------------------------------------------
| KARTY DOKUMENTÓW
|--------------------------------------------------------------------------
*/

.regulations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.regulation-card {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    padding: 31px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: 0 14px 36px rgba(42, 64, 95, 0.05);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.regulation-card:hover {
    transform: translateY(-4px);
    border-color: #edc9d8;
    box-shadow: 0 20px 45px rgba(42, 64, 95, 0.09);
}

.regulation-card-featured {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fff8fa 100%
        );
    border-color: #edc9d8;
}

.regulation-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.regulation-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    color: var(--pink);
    background: var(--pink-soft);
    border-radius: 14px;
}

.regulation-card-icon i {
    font-size: 18px;
}

.regulation-card-category {
    padding: 7px 10px;
    color: #8b6d79;
    background: #faf5f7;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: right;
    text-transform: uppercase;
}

.regulation-card h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.regulation-card-description {
    margin: 0 0 27px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.regulation-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.regulation-card-date {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 190px;
    color: #8a919b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.regulation-card-date i {
    color: var(--pink);
}

.regulation-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.regulation-card-link:hover {
    gap: 13px;
    color: var(--navy);
}

.regulation-card-link i {
    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| POMOC
|--------------------------------------------------------------------------
*/

.regulations-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 70px;
    padding: 34px 36px;
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.regulations-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 57px;
    color: var(--pink);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(42, 64, 95, 0.07);
}

.regulations-help-icon i {
    font-size: 21px;
}

.regulations-help-copy span {
    display: block;
    margin-bottom: 5px;
    color: var(--pink);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.regulations-help-copy h2 {
    margin: 0 0 7px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.regulations-help-copy p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.regulations-help-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.regulations-primary-button,
.regulations-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 175px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.regulations-primary-button {
    color: #ffffff;
    background: var(--pink);
    border: 1px solid var(--pink);
}

.regulations-primary-button:hover {
    color: #ffffff;
    background: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.regulations-secondary-button {
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
}

.regulations-secondary-button:hover {
    color: var(--pink);
    border-color: #edc9d8;
    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| RESPONSYWNOŚĆ
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .regulations-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 35px;
    }

    .regulations-grid {
        grid-template-columns: 1fr;
    }

    .regulations-help {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .regulations-help-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        padding-left: 81px;
    }
}

@media (max-width: 640px) {

    .regulations-hero {
        padding: 58px 0 54px;
    }

    .regulations-hero h1 {
        font-size: 42px;
    }

    .regulations-hero-description {
        font-size: 14px;
    }

    .regulations-hero-card {
        width: 100%;
        min-width: 0;
    }

    .regulations-page {
        padding: 65px 0 85px;
    }

    .regulations-introduction {
        margin-bottom: 35px;
    }

    .regulation-card {
        min-height: 0;
        padding: 25px 22px;
    }

    .regulation-card-top {
        align-items: flex-start;
    }

    .regulation-card-category {
        max-width: 155px;
    }

    .regulation-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .regulations-help {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        margin-top: 48px;
        padding: 27px 23px;
    }

    .regulations-help-actions {
        width: 100%;
        flex-direction: column;
        padding-left: 0;
    }

    .regulations-primary-button,
    .regulations-secondary-button {
        width: 100%;
    }
}