.izh-widget {
    --izh-navy: #0e2446;
    --izh-gold: #b7771f;
    --izh-line: #ead4b8;
    --izh-paper: #fffaf2;
    --izh-soft: #f8efe2;
    color: var(--izh-navy);
    font-family: Georgia, "Times New Roman", serif;
    margin: 32px auto;
    max-width: 1380px;
}

.izh-widget * {
    box-sizing: border-box;
}

.izh-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
}

.izh-heading__line {
    background: var(--izh-gold);
    display: block;
    height: 1px;
    width: min(170px, 28vw);
}

.izh-heading__star {
    color: var(--izh-gold);
    font-size: 18px;
    line-height: 1;
}

.izh-tabs {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(12, minmax(82px, 1fr));
    margin-bottom: 34px;
    overflow-x: auto;
    padding: 2px 2px 10px;
}

.izh-tab {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--izh-navy);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 10px;
    min-height: 132px;
    min-width: 112px;
    padding: 18px 10px 16px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.izh-tab:hover,
.izh-tab:focus-visible {
    border-color: rgba(183, 119, 31, 0.42);
    outline: 0;
}

.izh-tab.is-active {
    background: linear-gradient(180deg, #0b2345 0%, #061831 100%);
    border-color: var(--izh-gold);
    box-shadow: 0 10px 24px rgba(14, 36, 70, 0.18);
    color: #fffaf2;
}

.izh-tab__icon {
    color: var(--izh-gold);
    font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
}

.izh-sign-image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.izh-sign-image--tab {
    height: 58px;
    width: 58px;
}

.izh-tab__name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: normal;
    text-align: center;
    white-space: nowrap;
}

.izh-panels {
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(75, 51, 19, 0.12);
    overflow: hidden;
}

.izh-panel {
    align-items: stretch;
    background: rgba(255, 250, 242, 0.78);
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(190px, 0.85fr) minmax(260px, 1.4fr) minmax(250px, 1fr);
    min-height: 330px;
    padding: 36px 48px;
}

.izh-panel[hidden] {
    display: none;
}

.izh-panel__icon,
.izh-panel__content,
.izh-ratings {
    min-width: 0;
}

.izh-panel__icon {
    align-items: center;
    border-right: 1px solid var(--izh-line);
    display: flex;
    justify-content: center;
    padding-right: 28px;
}

.izh-panel__icon span {
    align-items: center;
    border: 1px solid rgba(183, 119, 31, 0.35);
    border-radius: 50%;
    color: var(--izh-gold);
    display: flex;
    font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
    font-size: clamp(108px, 12vw, 170px);
    height: min(250px, 30vw);
    justify-content: center;
    line-height: 1;
    min-height: 176px;
    min-width: 176px;
    width: min(250px, 30vw);
}

.izh-panel__icon span:has(.izh-sign-image) {
    padding: 24px;
}

.izh-sign-image--panel {
    max-height: 100%;
    max-width: 100%;
}

.izh-panel__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.izh-panel__content h3 {
    color: var(--izh-navy);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    margin: 0 0 12px;
}

.izh-panel__date {
    color: var(--izh-navy);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
}

.izh-panel__content p:not(.izh-panel__date) {
    color: var(--izh-navy);
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.65;
    margin: 0;
}

.izh-panel__link {
    align-items: center;
    align-self: center;
    border: 1px solid var(--izh-gold);
    border-radius: 6px;
    color: var(--izh-gold);
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    gap: 28px;
    justify-content: center;
    margin-top: 32px;
    min-height: 58px;
    min-width: min(100%, 360px);
    padding: 14px 24px;
    text-decoration: none;
}

.izh-ratings {
    border-left: 1px solid var(--izh-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding-left: 48px;
}

.izh-rating {
    align-items: center;
    border-bottom: 1px solid var(--izh-line);
    display: grid;
    gap: 18px;
    grid-template-columns: 115px 1fr;
    padding: 18px 0;
}

.izh-rating:last-child {
    border-bottom: 0;
}

.izh-rating dt {
    font-size: 24px;
    font-weight: 700;
}

.izh-rating dd {
    color: rgba(183, 119, 31, 0.45);
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 32px;
    gap: 9px;
    line-height: 1;
    margin: 0;
}

.izh-rating span.is-filled {
    color: var(--izh-gold);
}

.izh-sign-page {
    --izh-navy: #0e2446;
    --izh-gold: #b7771f;
    --izh-line: #ead4b8;
    color: var(--izh-navy);
    font-family: Georgia, "Times New Roman", serif;
    margin: 32px auto;
    max-width: 1120px;
}

.izh-sign-page * {
    box-sizing: border-box;
}

.izh-sign-page__header {
    align-items: center;
    background: linear-gradient(135deg, #0e2446 0%, #18345c 100%);
    border: 1px solid rgba(183, 119, 31, 0.4);
    border-radius: 8px;
    color: #fffaf2;
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    padding: 34px 40px;
}

.izh-sign-page__symbol {
    align-items: center;
    border: 1px solid rgba(255, 250, 242, 0.35);
    border-radius: 50%;
    color: var(--izh-gold);
    display: flex;
    flex: 0 0 118px;
    font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
    font-size: 78px;
    height: 118px;
    justify-content: center;
    line-height: 1;
    width: 118px;
}

.izh-sign-page__symbol:has(.izh-sign-image) {
    padding: 14px;
}

.izh-sign-image--page {
    max-height: 100%;
    max-width: 100%;
}

.izh-sign-page__eyebrow {
    color: #e6c99f;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.izh-sign-page h1 {
    color: #fffaf2;
    font-size: clamp(44px, 6vw, 78px);
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.izh-sign-page__grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
}

.izh-sign-page__description,
.izh-sign-page__score {
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(75, 51, 19, 0.1);
    padding: 32px;
}

.izh-sign-page h2 {
    color: var(--izh-navy);
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 18px;
}

.izh-sign-page__description p {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.75;
    margin: 0;
}

.izh-detail-ratings {
    margin: 0;
    min-width: 0;
}

.izh-detail-ratings .izh-rating {
    gap: 12px;
    grid-template-columns: 104px minmax(118px, 1fr);
}

.izh-detail-ratings .izh-rating dt {
    font-size: 21px;
}

.izh-detail-ratings .izh-rating dd {
    flex-wrap: wrap;
    font-size: clamp(20px, 1.85vw, 25px);
    gap: 3px;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
}

@media (max-width: 1100px) {
    .izh-tabs {
        grid-template-columns: repeat(12, 104px);
    }

    .izh-panel {
        grid-template-columns: 180px 1fr;
    }

    .izh-ratings {
        border-left: 0;
        border-top: 1px solid var(--izh-line);
        grid-column: 1 / -1;
        padding-left: 0;
    }
}

@media (max-width: 720px) {
    .izh-widget {
        margin: 24px auto;
    }

    .izh-panel {
        gap: 24px;
        grid-template-columns: 1fr;
        padding: 26px 20px;
    }

    .izh-panel__icon {
        border-right: 0;
        padding-right: 0;
    }

    .izh-panel__icon span {
        height: 170px;
        min-height: 170px;
        min-width: 170px;
        width: 170px;
    }

    .izh-panel__content h3,
    .izh-panel__date,
    .izh-panel__content p {
        text-align: center;
    }

    .izh-panel__content p:not(.izh-panel__date) {
        font-size: 17px;
    }

    .izh-ratings {
        padding-top: 6px;
    }

    .izh-rating {
        grid-template-columns: 96px 1fr;
    }

    .izh-rating dt {
        font-size: 20px;
    }

    .izh-rating dd {
        font-size: 25px;
        gap: 5px;
    }

    .izh-sign-page__header {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .izh-sign-page__symbol {
        flex-basis: 96px;
        font-size: 62px;
        height: 96px;
        width: 96px;
    }

    .izh-sign-page__grid {
        grid-template-columns: 1fr;
    }

    .izh-sign-page__description,
    .izh-sign-page__score {
        padding: 24px 20px;
    }

    .izh-detail-ratings .izh-rating {
        grid-template-columns: 92px minmax(108px, 1fr);
    }

    .izh-detail-ratings .izh-rating dt {
        font-size: 18px;
    }

    .izh-detail-ratings .izh-rating dd {
        font-size: clamp(18px, 5.8vw, 22px);
        gap: 2px;
    }

    .izh-sign-page__description p {
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .izh-detail-ratings .izh-rating {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .izh-detail-ratings .izh-rating dd {
        justify-content: flex-start;
    }
}

.izh-matrix {
    --izh-navy: #0e2446;
    --izh-gold: #b7771f;
    --izh-line: #ead4b8;
    --izh-paper: #fffaf2;
    --izh-soft: #f8efe2;
    --izh-pink: #d92578;
    color: var(--izh-navy);
    font-family: Georgia, "Times New Roman", serif;
    margin: 32px auto;
    max-width: 1220px;
}

.izh-matrix * {
    box-sizing: border-box;
}

.izh-matrix__intro {
    align-items: center;
    display: grid;
    gap: 54px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
    justify-content: center;
    margin: 22px auto 44px;
    max-width: 980px;
}

.izh-matrix__photo {
    aspect-ratio: 0.82;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(75, 51, 19, 0.14);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.izh-matrix__form {
    min-width: 0;
}

.izh-matrix__form h2 {
    color: var(--izh-navy);
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 26px;
}

.izh-matrix__gender {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
}

.izh-matrix__gender label {
    display: block;
}

.izh-matrix__gender input {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.izh-matrix__gender span {
    align-items: center;
    background: var(--izh-navy);
    border: 1px solid var(--izh-navy);
    border-radius: 6px;
    color: #fffaf2;
    cursor: pointer;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    min-height: 54px;
    padding: 14px 18px;
    text-transform: uppercase;
}

.izh-matrix__gender input:checked + span {
    background: var(--izh-pink);
    border-color: var(--izh-pink);
}

.izh-matrix__field {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}

.izh-matrix__field span {
    display: block;
    margin-bottom: 7px;
}

.izh-matrix__field input {
    background: #fff;
    border: 1px solid rgba(217, 37, 120, 0.35);
    border-radius: 6px;
    color: var(--izh-navy);
    font: 500 17px/1.2 Arial, sans-serif;
    min-height: 52px;
    padding: 12px 14px;
    width: 100%;
}

.izh-matrix__form button {
    background: var(--izh-pink);
    border: 1px solid var(--izh-pink);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: 700 16px/1 Arial, sans-serif;
    min-height: 56px;
    padding: 16px 24px;
    text-transform: uppercase;
    width: 100%;
}

.izh-matrix__form button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.izh-matrix__error {
    color: #b42318;
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin: 12px 0 0;
}

.izh-matrix__result {
    display: grid;
    gap: 26px;
}

.izh-matrix__summary {
    text-align: center;
}

.izh-matrix__eyebrow,
.izh-matrix__summary p {
    color: var(--izh-gold);
    font: 700 17px/1.3 Arial, sans-serif;
    margin: 0 0 8px;
}

.izh-matrix__summary h3 {
    color: var(--izh-navy);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
    margin: 0 0 8px;
}

.izh-matrix__grid {
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(75, 51, 19, 0.12);
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
    padding: 28px;
}

.izh-matrix-chart {
    aspect-ratio: 1;
    margin: auto;
    max-width: 480px;
    position: relative;
    width: 100%;
}

.izh-matrix-chart svg {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.izh-matrix-chart circle,
.izh-matrix-chart line,
.izh-matrix-chart polygon {
    fill: none;
    stroke: rgba(14, 36, 70, 0.42);
    stroke-width: 0.5;
}

.izh-matrix-node,
.izh-matrix-pill {
    align-items: center;
    border: 2px solid rgba(14, 36, 70, 0.48);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-style: normal;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    line-height: 1;
    width: 48px;
}

.izh-matrix-node {
    position: absolute;
    transform: translate(-50%, -50%);
}

.izh-matrix-node--gold {
    background: #f3c62d;
}

.izh-matrix-node--pink,
.izh-matrix-pill--pink {
    background: var(--izh-pink);
}

.izh-matrix-node--blue,
.izh-matrix-pill--blue {
    background: #2f80ed;
}

.izh-matrix-node--violet,
.izh-matrix-pill--violet {
    background: #7c4bd8;
}

.izh-matrix-node--light {
    background: #fff;
    color: var(--izh-navy);
}

.izh-matrix-chakras {
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    width: 100%;
}

.izh-matrix-chakras th,
.izh-matrix-chakras td {
    border-bottom: 1px solid var(--izh-line);
    padding: 13px 10px;
    text-align: center;
}

.izh-matrix-chakras th:first-child,
.izh-matrix-chakras td:first-child {
    text-align: left;
}

.izh-matrix-chakras th {
    background: rgba(14, 36, 70, 0.06);
    color: var(--izh-navy);
    font-size: 14px;
    text-transform: uppercase;
}

.izh-matrix-chakras td:first-child {
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 28px 1fr;
}

.izh-matrix-chakras td:first-child span {
    align-items: center;
    background: var(--izh-pink);
    color: #fff;
    display: flex;
    font-weight: 800;
    grid-row: 1 / 3;
    justify-content: center;
}

.izh-matrix-chakras strong {
    font-size: 15px;
}

.izh-matrix-chakras small {
    color: rgba(14, 36, 70, 0.68);
    display: block;
    font-size: 13px;
}

.izh-matrix__lines {
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    overflow: hidden;
}

.izh-matrix-line {
    align-items: center;
    display: flex;
    font-family: Arial, sans-serif;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 26px;
}

.izh-matrix-line + .izh-matrix-line {
    border-top: 1px solid var(--izh-line);
}

.izh-matrix-line strong {
    font-size: 18px;
}

.izh-matrix-line span,
.izh-matrix__triads article div {
    display: flex;
    gap: 10px;
}

.izh-matrix__triads {
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
}

.izh-matrix__triads article {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    min-height: 170px;
    padding: 24px;
    text-align: center;
}

.izh-matrix__triads article + article {
    border-left: 1px solid var(--izh-line);
}

.izh-matrix__triads h4,
.izh-matrix__reading h4 {
    color: var(--izh-navy);
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.izh-matrix__reading {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.izh-matrix__reading article {
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    padding: 24px;
}

.izh-matrix__reading p {
    font: 17px/1.65 Arial, sans-serif;
    margin: 12px 0 0;
}

@media (max-width: 860px) {
    .izh-matrix__intro,
    .izh-matrix__grid,
    .izh-matrix__reading {
        grid-template-columns: 1fr;
    }

    .izh-matrix__photo {
        margin: 0 auto;
        max-width: 420px;
    }

    .izh-matrix__triads {
        grid-template-columns: 1fr;
    }

    .izh-matrix__triads article + article {
        border-left: 0;
        border-top: 1px solid var(--izh-line);
    }
}

@media (max-width: 560px) {
    .izh-matrix__intro {
        gap: 28px;
    }

    .izh-matrix__gender {
        gap: 10px;
    }

    .izh-matrix__grid {
        padding: 18px;
    }

    .izh-matrix-node,
    .izh-matrix-pill {
        font-size: 16px;
        height: 38px;
        width: 38px;
    }

    .izh-matrix-chakras {
        font-size: 13px;
    }

    .izh-matrix-chakras th,
    .izh-matrix-chakras td {
        padding: 10px 6px;
    }

    .izh-matrix-line {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
}

.izh-tarot {
    --izh-navy: #0e2446;
    --izh-gold: #b7771f;
    --izh-line: #ead4b8;
    --izh-paper: #fffaf2;
    --izh-soft: #f8efe2;
    --izh-rose: #b83f61;
    color: var(--izh-navy);
    font-family: Georgia, "Times New Roman", serif;
    margin: 32px auto;
    max-width: 1180px;
}

.izh-tarot * {
    box-sizing: border-box;
}

.izh-tarot__intro {
    margin: 18px auto 28px;
    max-width: 760px;
    text-align: center;
}

.izh-tarot__eyebrow {
    color: var(--izh-gold);
    font: 700 16px/1.3 Arial, sans-serif;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.izh-tarot__intro h2 {
    color: var(--izh-navy);
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 12px;
}

.izh-tarot__intro p:not(.izh-tarot__eyebrow) {
    color: rgba(14, 36, 70, 0.78);
    font: 18px/1.6 Arial, sans-serif;
    margin: 0;
}

.izh-tarot__spreads {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 28px;
    max-width: 1040px;
}

.izh-tarot-spread {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.88), rgba(248, 239, 226, 0.74)),
        radial-gradient(circle at 50% 28%, rgba(183, 119, 31, 0.16), transparent 34%);
    border: 1px solid rgba(183, 119, 31, 0.42);
    border-radius: 8px;
    color: var(--izh-navy);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    min-height: 270px;
    padding: 22px;
    position: relative;
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.izh-tarot-spread:hover,
.izh-tarot-spread:focus-visible,
.izh-tarot-spread.is-active {
    border-color: var(--izh-gold);
    box-shadow: 0 16px 30px rgba(75, 51, 19, 0.16);
    outline: 0;
    transform: translateY(-2px);
}

.izh-tarot-spread.is-active {
    background:
        linear-gradient(180deg, #0e2446 0%, #081936 100%),
        radial-gradient(circle at 50% 28%, rgba(183, 119, 31, 0.22), transparent 34%);
    color: #fffaf2;
}

.izh-tarot-spread__number {
    color: rgba(183, 119, 31, 0.55);
    font: 700 28px/1 Georgia, "Times New Roman", serif;
    position: absolute;
    right: 18px;
    top: 18px;
}

.izh-tarot-spread__icon {
    align-items: center;
    border: 1px solid rgba(183, 119, 31, 0.42);
    border-radius: 50%;
    color: var(--izh-gold);
    display: flex;
    font: 700 22px/1 Arial, sans-serif;
    height: 92px;
    justify-content: center;
    margin: 8px auto 18px;
    width: 92px;
}

.izh-tarot-spread strong {
    color: inherit;
    font-size: 25px;
    line-height: 1.12;
    margin-bottom: 9px;
}

.izh-tarot-spread span:not(.izh-tarot-spread__number):not(.izh-tarot-spread__icon) {
    color: inherit;
    font: 15px/1.55 Arial, sans-serif;
    opacity: 0.78;
}

.izh-tarot-spread small {
    border-top: 1px solid rgba(183, 119, 31, 0.28);
    color: var(--izh-gold);
    font: 700 13px/1.2 Arial, sans-serif;
    margin-top: auto;
    padding-top: 16px;
    text-transform: uppercase;
}

.izh-tarot__form {
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(180px, 0.55fr) minmax(180px, 0.55fr) minmax(280px, 1fr) minmax(170px, 0.42fr);
    margin: 0 auto 34px;
    max-width: 1040px;
    padding: 24px;
}

.izh-tarot__field {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    min-width: 0;
}

.izh-tarot__field span {
    display: block;
    margin-bottom: 7px;
}

.izh-tarot__field input,
.izh-tarot__field select,
.izh-tarot__field textarea {
    background: #fff;
    border: 1px solid rgba(183, 119, 31, 0.35);
    border-radius: 6px;
    color: var(--izh-navy);
    display: block;
    font: 500 16px/1.35 Arial, sans-serif;
    min-height: 52px;
    padding: 12px 14px;
    resize: vertical;
    width: 100%;
}

.izh-tarot__field--wide {
    grid-column: span 1;
}

.izh-tarot__form button {
    align-self: end;
    background: var(--izh-navy);
    border: 1px solid var(--izh-navy);
    border-radius: 6px;
    color: #fffaf2;
    cursor: pointer;
    font: 700 15px/1 Arial, sans-serif;
    min-height: 52px;
    padding: 15px 18px;
    text-transform: uppercase;
}

.izh-tarot__form button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.izh-tarot__error {
    color: #b42318;
    font-family: Arial, sans-serif;
    grid-column: 1 / -1;
    margin: 0;
}

.izh-tarot__result {
    display: grid;
    gap: 28px;
}

.izh-tarot__summary {
    text-align: center;
}

.izh-tarot__summary h3 {
    color: var(--izh-navy);
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 auto;
    max-width: 920px;
}

.izh-tarot__summary p:not(.izh-tarot__eyebrow) {
    color: rgba(14, 36, 70, 0.78);
    font: 18px/1.65 Arial, sans-serif;
    margin: 16px auto 0;
    max-width: 860px;
}

.izh-tarot__cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.izh-tarot-card {
    aspect-ratio: 0.68;
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(248, 239, 226, 0.96)),
        repeating-linear-gradient(45deg, rgba(183, 119, 31, 0.14) 0 1px, transparent 1px 13px);
    border: 1px solid rgba(183, 119, 31, 0.62);
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(75, 51, 19, 0.14);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    min-height: 330px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    text-align: center;
}

.izh-tarot-card::before,
.izh-tarot-card::after {
    border: 1px solid rgba(14, 36, 70, 0.24);
    border-radius: 50%;
    content: "";
    height: 128px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
}

.izh-tarot-card::after {
    border-color: rgba(184, 63, 97, 0.3);
    height: 88px;
    width: 88px;
}

.izh-tarot-card.is-reversed {
    background:
        linear-gradient(135deg, rgba(14, 36, 70, 0.96), rgba(24, 52, 92, 0.96)),
        repeating-linear-gradient(45deg, rgba(183, 119, 31, 0.16) 0 1px, transparent 1px 13px);
    color: #fffaf2;
}

.izh-tarot-card__position,
.izh-tarot-card em {
    font: 700 13px/1.2 Arial, sans-serif;
    letter-spacing: 0;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

.izh-tarot-card__position {
    color: var(--izh-gold);
}

.izh-tarot-card__number {
    color: rgba(14, 36, 70, 0.72);
    font: 700 24px/1 Georgia, "Times New Roman", serif;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.izh-tarot-card.is-reversed .izh-tarot-card__number {
    color: rgba(255, 250, 242, 0.8);
}

.izh-tarot-card__symbol {
    align-items: center;
    color: var(--izh-rose);
    display: flex;
    font: 700 clamp(52px, 7vw, 82px)/1 Georgia, "Times New Roman", serif;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.izh-tarot-card strong {
    color: inherit;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.05;
    position: relative;
    z-index: 1;
}

.izh-tarot-card em {
    color: rgba(14, 36, 70, 0.7);
    font-style: normal;
    margin-top: 16px;
}

.izh-tarot-card.is-reversed em {
    color: rgba(255, 250, 242, 0.72);
}

.izh-tarot__spreads {
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 63, 97, 0.16), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(183, 119, 31, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(14, 36, 70, 0.08), rgba(255, 250, 242, 0.46));
    border: 1px solid rgba(183, 119, 31, 0.18);
    border-radius: 8px;
    padding: 18px;
}

.izh-tarot-spread {
    background:
        linear-gradient(180deg, rgba(10, 21, 44, 0.96) 0%, rgba(20, 14, 42, 0.96) 100%),
        radial-gradient(circle at 50% 26%, rgba(183, 119, 31, 0.24), transparent 35%);
    border-color: rgba(183, 119, 31, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.08), 0 14px 30px rgba(14, 36, 70, 0.12);
    color: #fffaf2;
    overflow: hidden;
}

.izh-tarot-spread::before {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 250, 242, 0.22) 48%, transparent 62%);
    content: "";
    height: 100%;
    left: -120%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 520ms ease;
    width: 70%;
}

.izh-tarot-spread:hover::before,
.izh-tarot-spread:focus-visible::before,
.izh-tarot-spread.is-active::before {
    left: 120%;
}

.izh-tarot-spread.is-active {
    background:
        linear-gradient(180deg, #30134d 0%, #0a132f 100%),
        radial-gradient(circle at 50% 26%, rgba(183, 119, 31, 0.32), transparent 35%);
}

.izh-tarot__form {
    background:
        linear-gradient(135deg, rgba(14, 36, 70, 0.92), rgba(47, 25, 75, 0.88)),
        radial-gradient(circle at 80% 0%, rgba(183, 119, 31, 0.22), transparent 32%);
    border-color: rgba(183, 119, 31, 0.38);
    box-shadow: 0 18px 44px rgba(14, 36, 70, 0.2);
    color: #fffaf2;
}

.izh-tarot__field input,
.izh-tarot__field select,
.izh-tarot__field textarea {
    background: rgba(255, 250, 242, 0.96);
    border-color: rgba(183, 119, 31, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.izh-tarot__form button {
    background: linear-gradient(135deg, #b7771f 0%, #d7a548 48%, #8f5212 100%);
    border-color: rgba(255, 250, 242, 0.24);
    box-shadow: 0 12px 26px rgba(183, 119, 31, 0.26);
    overflow: hidden;
    position: relative;
}

.izh-tarot__form button::after {
    background: linear-gradient(120deg, transparent, rgba(255, 250, 242, 0.46), transparent);
    content: "";
    height: 100%;
    left: -120%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 520ms ease;
    width: 70%;
}

.izh-tarot__form button:hover::after,
.izh-tarot__form button:focus-visible::after,
.izh-tarot.is-reading .izh-tarot__form button::after {
    left: 120%;
}

.izh-tarot.is-reading .izh-tarot__form {
    animation: izh-tarot-form-pulse 1200ms ease-in-out infinite;
}

.izh-tarot-card {
    animation: izh-tarot-card-rise 700ms ease both;
    aspect-ratio: 0.68;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    min-height: 440px;
    overflow: visible;
    padding: 0;
    perspective: 1200px;
}

.izh-tarot-card::before,
.izh-tarot-card::after {
    content: none;
}

.izh-tarot-card__inner {
    animation: izh-tarot-card-open 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--izh-card-delay, 200ms);
    height: 100%;
    position: relative;
    transition: transform 240ms ease;
    transform-style: preserve-3d;
    width: 100%;
}

.izh-tarot-card__face {
    backface-visibility: hidden;
    border: 1px solid rgba(219, 172, 93, 0.72);
    border-radius: 8px;
    box-shadow: 0 22px 44px rgba(14, 36, 70, 0.26), inset 0 0 0 1px rgba(255, 250, 242, 0.12);
    height: 100%;
    inset: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.izh-tarot-card__back {
    align-items: center;
    background:
        radial-gradient(circle at 50% 34%, rgba(183, 119, 31, 0.34), transparent 34%),
        repeating-linear-gradient(45deg, rgba(255, 250, 242, 0.05) 0 1px, transparent 1px 12px),
        linear-gradient(160deg, #070d22 0%, #2c1349 54%, #080b1c 100%);
    display: flex;
    justify-content: center;
}

.izh-tarot-card__back::before {
    border: 1px solid rgba(219, 172, 93, 0.62);
    border-radius: 8px;
    content: "";
    inset: 14px;
    position: absolute;
}

.izh-tarot-card__back span {
    border: 1px solid rgba(219, 172, 93, 0.65);
    border-radius: 50%;
    height: 128px;
    position: relative;
    width: 128px;
}

.izh-tarot-card__back span::before,
.izh-tarot-card__back span::after {
    background: rgba(219, 172, 93, 0.72);
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.izh-tarot-card__back span::before {
    height: 1px;
    width: 88px;
}

.izh-tarot-card__back span::after {
    height: 88px;
    width: 1px;
}

.izh-tarot-card__front {
    background:
        radial-gradient(circle at 50% 10%, rgba(219, 172, 93, 0.18), transparent 32%),
        linear-gradient(160deg, #101936 0%, #2b1747 54%, #070d22 100%);
    color: #fffaf2;
    display: grid;
    gap: 9px;
    grid-template-rows: 20px 30px minmax(210px, 1fr) 58px 18px;
    padding: 18px 16px 16px;
    transform: rotateY(180deg);
}

.izh-tarot-card__front::before {
    border: 1px solid rgba(219, 172, 93, 0.28);
    border-radius: 6px;
    content: "";
    inset: 10px;
    position: absolute;
}

.izh-tarot-card__picture {
    align-self: center;
    background: #fffaf2;
    border: 1px solid rgba(219, 172, 93, 0.62);
    border-radius: 6px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
    display: block;
    height: 100%;
    justify-self: center;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: min(100%, 218px);
    z-index: 1;
}

.izh-tarot-card__picture::after {
    background: rgba(12, 20, 43, 0.18);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.izh-tarot-card__picture img {
    display: block;
    height: 112%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.izh-tarot-card__position,
.izh-tarot-card em,
.izh-tarot-card__number,
.izh-tarot-card strong {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.izh-tarot-card__number {
    color: rgba(255, 250, 242, 0.86);
    margin-top: 0;
}

.izh-tarot-card strong {
    align-items: center;
    color: #fffaf2;
    display: flex;
    font-size: clamp(20px, 2.35vw, 27px);
    justify-content: center;
}

.izh-tarot-card em,
.izh-tarot-card.is-reversed em {
    align-self: end;
    color: rgba(255, 250, 242, 0.8);
    margin-top: 0;
}

.izh-tarot-card:hover .izh-tarot-card__inner {
    transform: rotateY(180deg) translateY(-6px);
}

@keyframes izh-tarot-card-open {
    0% {
        transform: rotateY(0deg) translateY(16px);
    }
    54% {
        transform: rotateY(178deg) translateY(-8px);
    }
    100% {
        transform: rotateY(180deg) translateY(0);
    }
}

@keyframes izh-tarot-card-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes izh-tarot-form-pulse {
    0%, 100% {
        box-shadow: 0 18px 44px rgba(14, 36, 70, 0.2);
    }
    50% {
        box-shadow: 0 24px 54px rgba(183, 119, 31, 0.28);
    }
}

.izh-tarot__reading {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.izh-tarot__reading article {
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid var(--izh-line);
    border-radius: 8px;
    padding: 24px;
}

.izh-tarot__reading h4 {
    color: var(--izh-navy);
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.izh-tarot__reading p {
    font: 17px/1.65 Arial, sans-serif;
    margin: 12px 0 0;
}

@media (max-width: 860px) {
    .izh-tarot__spreads,
    .izh-tarot__form,
    .izh-tarot__cards,
    .izh-tarot__reading {
        grid-template-columns: 1fr;
    }

    .izh-tarot-card {
        aspect-ratio: auto;
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    .izh-tarot__form,
    .izh-tarot__reading article {
        padding: 18px;
    }

    .izh-tarot-card {
        min-height: 400px;
        padding: 0;
    }
}

.izh-tarot {
    background:
        radial-gradient(circle at 8% 12%, rgba(184, 63, 97, 0.28), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(58, 119, 172, 0.22), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(183, 119, 31, 0.16), transparent 34%),
        linear-gradient(145deg, #050712 0%, #100821 42%, #061429 100%);
    border-top: 1px solid rgba(219, 172, 93, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.06);
    color: #fffaf2;
    margin: 0 calc(50% - 50vw);
    max-width: none;
    overflow: hidden;
    padding: clamp(48px, 6vw, 82px) max(18px, calc((100vw - 1180px) / 2)) clamp(56px, 7vw, 96px);
    position: relative;
    width: 100vw;
}

.izh-tarot::before {
    background-image:
        radial-gradient(circle, rgba(255, 250, 242, 0.75) 0 1px, transparent 1.5px),
        linear-gradient(90deg, transparent, rgba(219, 172, 93, 0.08), transparent);
    background-position: 0 0, 50% 0;
    background-size: 110px 92px, 100% 100%;
    content: "";
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
}

.izh-tarot::after {
    border: 1px solid rgba(219, 172, 93, 0.14);
    border-radius: 50%;
    content: "";
    height: 620px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: -310px;
    transform: translateX(-50%);
    width: 620px;
}

.izh-tarot > * {
    position: relative;
    z-index: 1;
}

.izh-tarot .izh-heading__line {
    background: linear-gradient(90deg, transparent, #d7a548, transparent);
}

.izh-tarot .izh-heading__star,
.izh-tarot__eyebrow {
    color: #d7a548;
}

.izh-tarot__intro {
    margin-bottom: 34px;
}

.izh-tarot__intro h2,
.izh-tarot__summary h3,
.izh-tarot__reading h4 {
    color: #fffaf2;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
}

.izh-tarot__intro p:not(.izh-tarot__eyebrow),
.izh-tarot__summary p:not(.izh-tarot__eyebrow) {
    color: rgba(255, 250, 242, 0.74);
}

.izh-tarot__spreads {
    background:
        linear-gradient(145deg, rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.03)),
        radial-gradient(circle at 50% 0%, rgba(219, 172, 93, 0.18), transparent 42%);
    border-color: rgba(219, 172, 93, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 250, 242, 0.08);
    margin-bottom: 30px;
}

.izh-tarot-spread {
    min-height: 286px;
}

.izh-tarot-spread__icon {
    background:
        radial-gradient(circle, rgba(219, 172, 93, 0.18), transparent 58%),
        rgba(255, 250, 242, 0.03);
}

.izh-tarot__form {
    align-items: end;
    background:
        linear-gradient(145deg, rgba(255, 250, 242, 0.12), rgba(255, 250, 242, 0.045)),
        radial-gradient(circle at 18% 0%, rgba(184, 63, 97, 0.2), transparent 35%),
        radial-gradient(circle at 85% 100%, rgba(183, 119, 31, 0.18), transparent 38%);
    border: 1px solid rgba(219, 172, 93, 0.28);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 250, 242, 0.1);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(180px, 0.55fr);
    max-width: 1040px;
    padding: 26px;
}

.izh-tarot__field {
    color: #fffaf2;
}

.izh-tarot__field--wide {
    grid-column: 1 / 3;
}

.izh-tarot__form button {
    align-self: stretch;
    min-height: 58px;
    width: 100%;
}

.izh-tarot__field input,
.izh-tarot__field select,
.izh-tarot__field textarea {
    background: rgba(8, 12, 27, 0.78);
    border-color: rgba(219, 172, 93, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.08), 0 10px 24px rgba(0, 0, 0, 0.16);
    color: #fffaf2;
}

.izh-tarot__field input:focus,
.izh-tarot__field select:focus,
.izh-tarot__field textarea:focus {
    border-color: #d7a548;
    box-shadow: 0 0 0 3px rgba(215, 165, 72, 0.18), inset 0 1px 0 rgba(255, 250, 242, 0.08);
    outline: 0;
}

.izh-tarot__field textarea {
    min-height: 116px;
}

.izh-tarot__field textarea::placeholder {
    color: rgba(255, 250, 242, 0.42);
}

.izh-tarot__cards {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
}

.izh-tarot-card__face {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 250, 242, 0.1);
}

.izh-tarot__reading {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
}

.izh-tarot__reading article {
    background:
        linear-gradient(145deg, rgba(255, 250, 242, 0.11), rgba(255, 250, 242, 0.045)),
        radial-gradient(circle at 100% 0%, rgba(183, 119, 31, 0.13), transparent 36%);
    border-color: rgba(219, 172, 93, 0.22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    color: #fffaf2;
}

.izh-tarot__reading p {
    color: rgba(255, 250, 242, 0.78);
}

@media (max-width: 980px) {
    .izh-tarot__form {
        grid-template-columns: 1fr 1fr;
    }

    .izh-tarot__field--wide {
        grid-column: 1 / -1;
    }

    .izh-tarot__form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .izh-tarot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .izh-tarot__spreads,
    .izh-tarot__form {
        padding: 14px;
    }

    .izh-tarot__form {
        grid-template-columns: 1fr;
    }

    .izh-tarot__field--wide {
        grid-column: auto;
    }
}
