/* ============================================================
   СТРАНИЦА /prices/
   ============================================================ */

/* ---------- ИНТРО ---------- */

.prices-intro {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 75px;
    margin: 0 auto;
    padding: 58px max(24px, 50vw - 660px) 54px;
}

.prices-intro__title {
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--ink, var(--text-primary));
}

.prices-intro__title em {
    color: var(--blue, var(--accent));
    font-style: normal;
    font-weight: 400;
}

.prices-intro__lead {
    margin: 0 0 10px;
    color: #294863;
    font-size: var(--fs-body);
    line-height: 1.65;
}

.prices-intro > div:last-child p:not(.prices-intro__lead) {
    margin: 0;
    color: var(--muted, var(--text-muted));
    font-size: var(--fs-small);
    line-height: 1.65;
}

/* ============================================================
   ТАБЛИЦА
   ============================================================ */

.prices-table {
    position: relative;
    overflow: hidden;
    padding: 54px max(24px, 50vw - 660px) 62px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-soft));
}

/* ---------- Декоративные инструменты ---------- */

.prices-table__decor {
    position: absolute;
    inset: 0;
    color: var(--accent-on-dark-soft);
    pointer-events: none;
}

.prices-table__decor-item {
    position: absolute;
    display: block;
    opacity: .18;
    animation: pricesFloat 5.2s ease-in-out infinite;
}

.prices-table__decor-item--mirror {
    width: 78px;
    height: 78px;
    border: 7px solid;
    border-radius: 50%;
    top: 8%;
    right: 12%;
    animation-duration: 4.7s;
}

.prices-table__decor-item--mirror::after {
    content: "";
    position: absolute;
    top: 60px;
    left: -20px;
    width: 7px;
    height: 105px;
    background: currentColor;
    border-radius: 6px;
    transform: rotate(38deg);
}

.prices-table__decor-item--implant {
    width: 58px;
    height: 112px;
    bottom: 7%;
    left: 9%;
    border-radius: 24px 24px 15px 15px;
    background: repeating-linear-gradient(
        0deg, currentColor 0 7px, transparent 7px 13px
    );
    animation-duration: 4.4s;
    animation-delay: -2.2s;
}

.prices-table__decor-item--implant::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 8px;
    right: 8px;
    height: 26px;
    border: 6px solid;
    border-radius: 9px;
}

.prices-table__decor-item--cross {
    top: 11%;
    left: 9%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 112px;
    line-height: 1;
    font-style: normal;
    animation-duration: 5s;
    animation-delay: -3s;
}

.prices-table__decor-item--probe {
    width: 142px;
    height: 62px;
    bottom: 12%;
    left: 39%;
    border-top: 7px solid;
    border-radius: 55% 0 0 0;
    transform: rotate(18deg);
    animation-duration: 6.2s;
    animation-delay: -.8s;
}

.prices-table__decor-item--probe::after {
    content: "";
    position: absolute;
    top: -7px;
    right: -54px;
    width: 72px;
    height: 7px;
    background: currentColor;
    border-radius: 6px;
}

.prices-table__decor-item--syringe {
    width: 124px;
    height: 34px;
    border: 6px solid;
    bottom: 9%;
    right: 7%;
    transform: rotate(-24deg);
    animation-duration: 5.8s;
    animation-delay: -.6s;
}

@keyframes pricesFloat {
    0%, 100% {
        translate: 0;
        rotate: -3deg;
    }
    35% {
        translate: 20px -26px;
        rotate: 8deg;
    }
    70% {
        translate: -14px 16px;
        rotate: -7deg;
    }
}

/* ---------- Заголовок и вводный текст ---------- */

.prices-table__head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: end;
    gap: 75px;
    max-width: 1220px;
    margin: 0 auto 30px;
}

.prices-table__head .kicker {
    margin-bottom: 12px;
}

.prices-table__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #fff;
}

.prices-table__title em {
    color: var(--accent-on-dark-soft);
    font-style: normal;
    font-weight: 400;
}

.prices-table__head > p {
    max-width: 620px;
    margin: 0;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-small);
    line-height: 1.75;
}

/* ---------- Тело таблицы ---------- */

.prices-table__body {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    background: rgba(4, 28, 52, .3);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---------- Строка ---------- */

.prices-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) repeat(3, 150px);
    align-items: center;
    min-height: 63px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.prices-row:last-child {
    border-bottom: 0;
}

.prices-row > span,
.prices-row > b {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 14px 18px;
}

.prices-row__name {
    gap: 15px;
    color: #e4eff8;
    font-size: var(--fs-small);
    line-height: 1.4;
}

.prices-row__name i {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: var(--fs-nano);
    font-style: normal;
    background: var(--accent);
    border-radius: 50%;
}

.prices-row > b {
    justify-content: center;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: var(--fs-body-lg);
    line-height: 1.2;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .13);
}

/* ---------- Шапка таблицы ---------- */

.prices-row--head {
    min-height: 48px;
    background: rgba(255, 255, 255, .08);
}

.prices-row--head span,
.prices-row--head b {
    color: var(--accent-on-dark-soft);
    font-family: Arial, sans-serif;
    font-size: var(--fs-nano);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.prices-row--head span {
    padding-left: 65px;
}

/* ---------- Примечание ---------- */

.prices-table__note {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 17px auto 0;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-micro);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
    .prices-row {
        grid-template-columns: minmax(270px, 1fr) repeat(3, 125px);
    }
}

@media (max-width: 900px) {
    .prices-intro {
        gap: 50px;
    }
}

@media (max-width: 760px) {
    .prices-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 42px 18px 40px;
    }

    .prices-table {
        padding: 42px 14px 50px;
    }

    .prices-table__head {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 26px;
    }

    .prices-table__body {
        overflow-x: auto;
    }

    .prices-row {
        min-width: 760px;
    }

    .prices-table__head,
    .prices-table__note {
        padding: 0 4px;
    }

    .prices-table__decor-item {
        opacity: .1;
        scale: .7;
    }

    .prices-table__decor-item--probe {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prices-table__decor-item {
        animation: none !important;
    }
}