/* ============================================================
   СТОИМОСТЬ ЛЕЧЕНИЯ
   ============================================================ */

.prices {
    background: #eef6fc;
    padding: var(--space-section) var(--space-inline) 40px;
}

/* ---------- Заголовок ---------- */
.prices__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    max-width: 1220px;
    margin: 0 auto 42px;
}

.prices__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: -.025em;
    color: var(--ink, var(--text-primary));
}

.prices__lead {
    max-width: 470px;
    margin: 0 0 5px;
    color: var(--muted, var(--text-muted));
    font-size: var(--fs-body);
    line-height: 1.8;
}

/* ============================================================
   ТЁМНАЯ ПАНЕЛЬ
   ============================================================ */

.prices__panel {
    position: relative;
    overflow: hidden;
    max-width: 1220px;
    margin: 0 auto;
    padding: 14px 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-soft));
    box-shadow: 0 20px 50px rgba(7, 40, 72, .13);
}

/* ---------- Декоративные инструменты ---------- */
.prices__decor {
    position: absolute;
    inset: 0;
    color: var(--accent-on-dark-soft);
    pointer-events: none;
}

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

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

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

.prices__decor-item--implant {
    width: 58px;
    height: 112px;
    bottom: 8%;
    left: 5%;
    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__decor-item--implant::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 8px;
    right: 8px;
    height: 26px;
    border: 6px solid;
    border-radius: 9px;
}

.prices__decor-item--cross {
    top: 15%;
    left: 45%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 92px;
    line-height: 1;
    font-style: normal;
    animation-duration: 5s;
    animation-delay: -3s;
}

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

.prices__panel > .prices__row {
    position: relative;
    z-index: 1;
}

/* ---------- Строка с ценой ---------- */
.prices__row {
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 25px;
    min-height: 62px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.prices__row:last-child {
    border-bottom: 0;
}

.prices__name {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-on-dark);
    font-size: var(--fs-small);
    line-height: 1.5;
}

.prices__num {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--accent-on-dark-soft);
    font-size: var(--fs-nano);
    font-weight: 800;
    font-style: normal;
    border: 1px solid rgba(255, 255, 255, .22);
}

.prices__value {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

/* ============================================================
   КНОПКА И ПРИМЕЧАНИЕ
   ============================================================ */

.prices__more {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 1220px;
    margin: 24px auto 0;
}

.prices__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 28px;
    color: #fff;
    font-size: var(--fs-caption);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--blue, var(--accent));
    box-shadow: 0 12px 30px var(--accent-glow-soft);
    transition: background .25s, transform .2s;
    white-space: nowrap;
}

.prices__btn span {
    font-size: 17px;
    transition: transform .25s;
}

.prices__btn:hover {
    background: var(--blue-hover, var(--accent-hover));
    transform: translateY(-3px);
}

.prices__btn:hover span {
    transform: translateX(5px);
}

.prices__note {
    color: var(--muted, var(--text-muted));
    font-size: var(--fs-micro);
    line-height: 1.5;
}

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

@media (max-width: 900px) {
    .prices__head {
        display: block;
    }

    .prices__lead {
        margin-top: 18px;
    }
}

@media (max-width: 760px) {
    .prices__panel {
        padding: 14px 16px;
    }

    .prices__row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: 54px;
    }

    .prices__name {
        gap: 10px;
        font-size: var(--fs-micro);
    }

    .prices__num {
        width: 26px;
        height: 26px;
        font-size: var(--fs-tiny);
    }

    .prices__value {
        font-size: var(--fs-body);
    }

    .prices__more {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 28px;
    }

    .prices__btn {
        width: 100%;
    }

    .prices__note {
        text-align: center;
    }

    .prices__decor-item {
        opacity: .1;
        scale: .7;
    }

    .prices__decor-item--cross {
        display: none;
    }
}

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