/* =========================================================
   MAKŠĶERĒŠANAS NOTEIKUMI
========================================================= */

.rules-premium,
.rules-premium *,
.carp-cta,
.carp-cta * {
    box-sizing: border-box;
}

.rules-premium {
    width: 100%;
    padding: 78px clamp(24px, 4vw, 76px) 70px;
    background:
        radial-gradient(circle at 4% 12%, rgba(216, 170, 45, .07), transparent 22%),
        #f7f2e8;
}

.rules-premium__inner {
    width: min(1770px, 100%);
    margin: 0 auto;
}

.rules-premium__header {
    margin-bottom: 31px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
}

.rules-premium__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 11px;
    color: #ba8520;
    font: 800 12px/1.4 "DM Sans", sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.rules-premium__eyebrow::after {
    content: "";
    width: 58px;
    height: 1px;
    background: #c99a32;
}

.rules-premium__header h2 {
    margin: 0;
    color: #063e31;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.rules-premium__header > p {
    max-width: 520px;
    margin: 0 0 4px;
    color: #66716d;
    font: 500 15px/1.65 "DM Sans", sans-serif;
}

.rules-premium__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.rule-card {
    min-width: 0;
    padding: clamp(30px, 2.7vw, 42px);
    border: 1px solid rgba(186, 133, 32, .18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 100%, rgba(6, 62, 49, .035), transparent 28%),
        rgba(255, 253, 248, .96);
    box-shadow: 0 14px 34px rgba(32, 60, 50, .07);
}

.rule-card--green {
    position: relative;
    overflow: hidden;
    border-color: #0c5443;
    background:
        radial-gradient(circle at 84% 14%, rgba(245, 198, 63, .06), transparent 28%),
        linear-gradient(145deg, #0a5a46 0%, #084436 52%, #06382d 100%);
    box-shadow: 0 18px 42px rgba(20, 55, 44, .17);
}

.rule-card--green > * {
    position: relative;
    z-index: 1;
}

.rule-card--green::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 26%;
    opacity: .22;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120' fill='none'%3E%3Cg stroke='%23f5c63f' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M112 20c41-16 84-20 128-10'/%3E%3Cpath d='M74 34c54-23 113-31 175-22' opacity='.88'/%3E%3Cpath d='M46 50c67-31 135-40 204-31' opacity='.72'/%3E%3Cpath d='M78 70c51-19 101-24 153-17' opacity='.58'/%3E%3C/g%3E%3C/svg%3E") right top / contain no-repeat;
}

.rule-card--green::after {
    content: "";
    position: absolute;
    right: -2%;
    bottom: -1px;
    width: 74%;
    height: 34%;
    opacity: .92;
    pointer-events: none;
    background: url("../images/zivju-saudzeshana-bg.png") right bottom / contain no-repeat;
}

.rule-card__heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rule-card__heading > div {
    min-width: 0;
}

.rule-card__icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6dfa0;
    color: #063e31;
}

.rule-card:nth-child(2) .rule-card__icon {
    background: #e5ecd8;
}

.rule-card--green .rule-card__icon {
    background: #f5d46c;
}

.rule-card__icon svg,
.rules-premium__family-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rule-card h3 {
    margin: 0;
    color: #063e31;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 2vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.rule-card__accent {
    width: 48px;
    height: 3px;
    display: block;
    margin-top: 13px;
    border-radius: 999px;
    background: #e0b12f;
}

.rule-card ul {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.rule-card li {
    position: relative;
    margin-top: 17px;
    padding-left: 24px;
    color: #5f6b66;
    font: 500 15px/1.58 "DM Sans", sans-serif;
}

.rule-card li:first-child {
    margin-top: 0;
}

.rule-card li::before {
    content: "";
    position: absolute;
    top: .63em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddb126;
}

.rule-card strong {
    color: #063e31;
    font-weight: 800;
}

.rule-card--green h3,
.rule-card--green strong {
    color: #fff;
}

.rule-card--green .rule-card__accent {
    background: #f5c63f;
}

.rule-card--green li {
    color: rgba(255, 255, 255, .84);
}

.rule-card--green ul {
    padding-bottom: 132px;
}

.rules-premium__bottom {
    margin-top: 22px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(186, 133, 32, .18);
    border-radius: 20px;
    background: rgba(255, 253, 248, .90);
    box-shadow: 0 10px 30px rgba(32, 60, 50, .045);
}

.rules-premium__family-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6edda;
    color: #063e31;
}

.rules-premium__family {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}

.rules-premium__family strong {
    color: #063e31;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 700;
    line-height: 1.08;
}

.rules-premium__family p {
    margin: 0;
    padding-left: 26px;
    border-left: 1px solid rgba(6, 62, 49, .16);
    color: #5f6b66;
    font: 500 14px/1.65 "DM Sans", sans-serif;
}


@media (max-width: 1180px) {
    .rules-premium__grid {
        grid-template-columns: 1fr 1fr;
    }

    .rule-card--green {
        grid-column: 1 / -1;
    }

    .rules-premium__bottom {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .rules-premium {
        padding: 56px 18px 50px;
    }

    .rules-premium__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .rules-premium__header > p {
        max-width: 680px;
    }

    .rules-premium__grid {
        grid-template-columns: 1fr;
    }

    .rule-card--green {
        grid-column: auto;
        background-size: cover, 86% auto;
    }

    .rules-premium__bottom {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rules-premium__family-icon {
        display: none;
    }

    .rules-premium__family {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rules-premium__family p {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .rule-card {
        padding: 25px 21px;
        border-radius: 18px;
    }

    .rule-card__heading {
        gap: 14px;
    }

    .rule-card__icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .rule-card__icon svg {
        width: 27px;
        height: 27px;
    }

    .rule-card li {
        font-size: 14px;
    }

    .rules-premium__bottom {
        padding: 22px;
    }
}

/* =========================================================
   APAKŠĒJAIS KARPAS CTA
========================================================= */

.carp-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 72px clamp(24px, 7vw, 135px);
    background: #062f27;
}

.carp-cta > img {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(1.03);
    transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}

.carp-cta__shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 40, 32, .96) 0%, rgba(3, 40, 32, .87) 31%, rgba(3, 40, 32, .48) 55%, rgba(3, 40, 32, .10) 100%),
        linear-gradient(0deg, rgba(3, 35, 28, .36), transparent 58%);
}

.carp-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: clamp(24px, 7vw, 135px);
    bottom: 54px;
    width: 84px;
    height: 2px;
    background: #f4c542;
}

.carp-cta__content {
    width: min(670px, 54%);
    color: #fff;
}

.carp-cta__content > span {
    display: block;
    margin-bottom: 14px;
    color: #f4c542;
    font: 800 11px/1.4 "DM Sans", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.carp-cta h2 {
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -.04em;
}

.carp-cta p {
    max-width: 580px;
    margin: 21px 0 0;
    color: rgba(255, 255, 255, .82);
    font: 500 16px/1.65 "DM Sans", sans-serif;
}

.carp-cta a {
    width: fit-content;
    min-width: 245px;
    min-height: 58px;
    margin-top: 30px;
    padding: 15px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 9px;
    background: #f4c542;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .22);
    color: #063e31 !important;
    font: 800 14px/1.2 "DM Sans", sans-serif;
    text-decoration: none !important;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.carp-cta a:hover,
.carp-cta a:focus-visible {
    transform: translateY(-3px);
    background: #ffd45b;
    box-shadow: 0 20px 42px rgba(0, 0, 0, .30);
}

.carp-cta a b {
    font-size: 20px;
    transition: transform .2s ease;
}

.carp-cta a:hover b,
.carp-cta a:focus-visible b {
    transform: translateX(4px);
}

@media (max-width: 1050px) {
    .rules-premium__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .rules-premium__grid {
        grid-template-columns: 1fr 1fr;
    }

    .rule-card--green {
        grid-column: 1 / -1;
    }

    .rules-premium__family {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .rules-premium__family p {
        padding-left: 0;
        border-left: 0;
    }

    .carp-cta__content {
        width: min(620px, 62%);
    }
}

@media (max-width: 720px) {
    .rules-premium {
        padding: 52px 17px 48px;
    }

    .rules-premium__eyebrow {
        font-size: 10px;
    }

    .rules-premium__header h2 {
        font-size: clamp(38px, 12vw, 49px);
    }

    .rules-premium__header > p {
        font-size: 14px;
    }

    .rules-premium__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .rule-card--green {
        grid-column: auto;
        background-size: cover, 86% auto;
    }

    .rule-card {
        padding: 26px 23px;
        border-radius: 16px;
    }

    .rule-card h3 {
        margin-top: 15px;
        font-size: 26px;
    }

    .rule-card ul {
        margin-top: 19px;
    }

    .rule-card li {
        font-size: 13px;
    }

    .rules-premium__bottom {
        padding: 22px;
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        border-radius: 15px;
    }

    .rules-premium__bottom > a {
        width: 100%;
    }

    .carp-cta {
        min-height: 650px;
        align-items: flex-end;
        padding: 44px 20px 60px;
    }

    .carp-cta > img {
        object-position: 66% center;
    }

    .carp-cta__shade {
        background:
            linear-gradient(0deg, rgba(3, 40, 32, .98) 0%, rgba(3, 40, 32, .83) 42%, rgba(3, 40, 32, .22) 74%, rgba(3, 40, 32, .08) 100%);
    }

    .carp-cta::after {
        left: 20px;
        bottom: 33px;
        width: 58px;
    }

    .carp-cta__content {
        width: 100%;
    }

    .carp-cta h2 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .carp-cta p {
        font-size: 14px;
    }

    .carp-cta a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rules-premium__bottom > a,
    .carp-cta > img,
    .carp-cta a,
    .carp-cta a b {
        transition: none;
    }
}
