/* =========================================
   PRICING
========================================= */

.pricing {
    padding: 80px 0;
    background: #fff;
    color: #171717;
}

.pricing .container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================
   TOP
========================================= */

.pricing__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 36px;
}

.pricing__heading {
    grid-column: 2;
    text-align: center;
}

.pricing__eyebrow {
    display: none;
}

.pricing__title {
    position: relative;
    color: #851523;
    font-weight: 500;
}

.pricing__subtitle {
    display: none;
}

/* =========================================
   DISCOUNT
========================================= */

.pricing-discount {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 360px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-discount__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
    background: #941827;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    transform: rotate(-5deg);
}

.pricing-discount__title {
    margin: 0 0 8px;
    color: #841423;
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-discount__list {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.pricing-discount__list li + li {
    margin-top: 7px;
}

/* =========================================
   TABLE WRAPPER
========================================= */

.pricing-table-wrapper {
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #e6e1df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(33, 25, 25, 0.08);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* szerokości kolumn */

.pricing-table th:nth-child(1),
.pricing-table td:nth-child(1) {
    width: 25%;
}

.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
    width: 21%;
}

.pricing-table th:nth-child(3),
.pricing-table td:nth-child(3) {
    width: 17%;
}

.pricing-table th:nth-child(4),
.pricing-table td:nth-child(4) {
    width: 18%;
}

.pricing-table th:nth-child(5),
.pricing-table td:nth-child(5) {
    width: 19%;
}

/* =========================================
   TABLE HEAD
========================================= */

.pricing-table thead {
    background: linear-gradient(135deg, #821422, #9c1d2c);
    color: #fff;
}

.pricing-table thead th {
    height: 74px;
    padding: 16px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
    vertical-align: middle;
}

.pricing-table thead th:last-child {
    border-right: 0;
}

.pricing-table__heading {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.pricing-table thead small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* =========================================
   TABLE BODY
========================================= */

.pricing-table tbody tr {
    background: rgba(255, 255, 255, 0.96);
    transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: #fdf8f8;
}

.pricing-table tbody th,
.pricing-table tbody td {
    height: 84px;
    padding: 16px 22px;
    border-right: 1px solid #ebe6e4;
    border-bottom: 1px solid #ebe6e4;
    vertical-align: middle;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.pricing-table tbody th:last-child,
.pricing-table tbody td:last-child {
    border-right: 0;
}

.pricing-table tbody th {
    text-align: left;
    font-weight: 500;
}

.pricing-table tbody td {
    text-align: center;
}

/* =========================================
   NAME + ICON
========================================= */

.pricing-table__name {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pricing-table__name > span:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.3;
}

.pricing-table__name strong {
    display: block;
    color: #171717;
    font-weight: 800;
}

.pricing-table__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #8e1625;
    background: transparent;
    font-size: 30px;
}

/* =========================================
   PRICES
========================================= */

.pricing-table__price {
    display: block;
    color: #861523;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(27px, 2vw, 35px);
    font-weight: 500;
    line-height: 1;
}

.pricing-table td small {
    display: block;
    margin-top: 5px;
    color: #262626;
    font-size: 14px;
    line-height: 1.25;
}

.pricing-table__empty {
    color: #222;
    font-size: 20px;
}

/* =========================================
   BENEFITS
========================================= */

.pricing-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 22px;
    padding: 20px 26px;
    border: 1px solid #e9e3e1;
    border-radius: 14px;
    background: #fffaf9;
    box-shadow: 0 8px 24px rgba(33, 25, 25, 0.06);
}

.pricing-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 4px 26px;
    border-right: 1px solid #d8cdca;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.pricing-benefit:last-child {
    border-right: 0;
}

.pricing-benefit:hover {
    transform: none;
}

.pricing-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: #8c1725;
    font-size: 32px;
}

.pricing-benefit h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}

.pricing-benefit p {
    margin: 0;
    color: #252525;
    font-size: 13px;
    line-height: 1.35;
}

/* =========================================
   FOOTER
========================================= */

.pricing__footer {
    text-align: center;
}

.pricing__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 355px;
    min-height: 58px;
    margin-bottom: 14px;
    padding: 15px 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #821422, #a42031);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(133, 21, 35, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pricing__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(133, 21, 35, 0.3);
}

.pricing__note {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .pricing {
        padding: 70px 0;
    }

    .pricing__top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
    }

    .pricing__heading,
    .pricing-discount {
        grid-column: 1;
    }

    .pricing-discount {
        justify-self: center;
    }

    .pricing-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table {
        min-width: 1000px;
    }

    .pricing-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-benefit:nth-child(2) {
        border-right: 0;
    }

    .pricing-benefit:nth-child(-n + 2) {
        padding-bottom: 18px;
        border-bottom: 1px solid #d8cdca;
    }

    .pricing-benefit:nth-child(n + 3) {
        padding-top: 18px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .pricing {
        padding: 56px 0;
    }

    .pricing .container {
        width: min(100% - 24px, 1440px);
    }

    .pricing__top {
        margin-bottom: 26px;
    }

    .pricing__title {
        font-size: 66px;
    }

    .pricing__title::after {
        width: 260px;
        margin-top: 12px;
    }

    .pricing-discount {
        width: 100%;
        max-width: 420px;
        gap: 14px;
    }

    .pricing-discount__icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 28px;
    }

    .pricing-discount__title {
        font-size: 18px;
    }

    .pricing-discount__list {
        font-size: 14px;
    }

    .pricing-table-wrapper {
        margin-right: -12px;
        margin-left: -12px;
        border-radius: 10px;
    }

    .pricing-table {
        min-width: 950px;
    }

    .pricing-table thead th {
        height: 66px;
        padding: 14px 18px;
    }

    .pricing-table tbody th,
    .pricing-table tbody td {
        height: 76px;
        padding: 14px 18px;
    }

    .pricing-table__price {
        font-size: 28px;
    }

    .pricing-benefits {
        grid-template-columns: 1fr;
        padding: 8px 20px;
    }

    .pricing-benefit,
    .pricing-benefit:nth-child(2) {
        padding: 18px 4px;
        border-right: 0;
        border-bottom: 1px solid #d8cdca;
    }

    .pricing-benefit:last-child {
        border-bottom: 0;
    }

    .pricing__button {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .pricing__note {
        padding: 0 10px;
        font-size: 14px;
        line-height: 1.5;
    }
}