/* Mentify Health — health.mentify.ru */
/* Макет: Figma — Александр (Copy) */

:root {
    --color-white: #FFFFFF;
    --color-white-hover: rgba(255, 255, 255, 0.8);
    --color-bg: #171C23;
    --color-header: #272C33;
    --color-primary: #5156BE;
    --color-primary-hover: #4348a8;
    --color-text: #FFFFFF;
    --color-text-dark: #171C23;
    --color-text-muted: rgba(255, 255, 255, 0.8);
    --color-border: rgba(255, 255, 255, 0.2);
    --radius-pill: 100px;
    --radius-btn: 20px;
    --font: 'TT Hoves', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Header — по макету Figma */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 50px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 5px 5px 15px;
    background: var(--color-header);
    border-radius: var(--radius-pill);
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 21px;
    width: auto;
}

.logo-partner {
    font-size: 14px;
    color: var(--color-text-muted);
    opacity: 0.6;
    line-height: 1;
}

.logo-lab {
    height: 24px !important;
    width: 24px !important;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.85;
}

.btn {
    margin-top: 20px;
}

.btn-header {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-header:hover {
    background: var(--color-primary-hover);
}

@media (max-width: 404px) {
    .btn-header {
        display: none;
    }

    .header-inner {
        justify-content: center;
    }
}

/* Hero — по макету Figma */
.hero {
    padding: 50px 50px 80px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 0 0 490px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    width: fit-content;
}

.hero-badge span {
    font-size: 14px;
    font-weight: 400;
}

.hero-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text-muted);
    max-width: 352px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: var(--color-primary);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.hero-cta .btn {
    margin-top: 0;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-weight: 400;
}

.price-current {
    color: var(--color-primary);
}

.hero-disclaimer {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin: 16px 0 0;
    max-width: 400px;
}

.hero-image {
    flex: 0 0 557px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Адаптив hero */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex: none;
        align-items: center;
        max-width: 100%;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-title {
        text-align: center;
    }

    .hero-desc {
        text-align: center;
        max-width: 100%;
    }

    .hero-disclaimer {
        text-align: center;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        flex: none;
        max-width: 100%;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header-inner {
        padding: 5px 10px 5px 15px;
    }

    .hero {
        padding: 30px 20px 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }
}

/* Biomarkers — по макету Figma */
.section-biomarkers {
    padding: 50px 50px 80px;
}

.biomarkers-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.biomarkers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.biomarkers-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 522px;
}

.biomarkers-slider {
    position: relative;
}

.biomarkers-arrow-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.biomarkers-arrow-btn:hover {
    background: var(--color-primary-hover);
}

.biomarkers-arrow-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.biomarkers-arrow-prev {
    left: -25px;
}

.biomarkers-arrow-next {
    right: -25px;
}

.biomarkers-arrow-btn svg {
    display: block;
}

@media (min-width: 769px) {
    .biomarkers-arrow-btn {
        display: flex;
    }
}

.biomarkers-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.biomarkers-track::-webkit-scrollbar {
    display: none;
}

.biomarker-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: min(85vw, 550px);
    position: relative;
    min-height: 340px;
    padding: 40px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.biomarker-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.biomarker-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.biomarker-card-header {
    flex-shrink: 0;
}

.biomarker-card-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.biomarker-card-desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
}

.biomarker-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.biomarker-tag {
    display: inline-block;
    padding: 6px 10px 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
}

@media (min-width: 769px) {
    .biomarker-card {
        width: 550px;
    }
}

@media (max-width: 768px) {
    .section-biomarkers {
        padding: 40px 0 60px;
    }

    .biomarkers-inner {
        padding: 0 20px;
    }

    .biomarkers-slider {
        margin: 0 -20px;
    }

    .biomarkers-track {
        padding: 0 20px;
        scroll-padding-inline: 20px;
    }

    .biomarkers-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .biomarkers-title {
        font-size: 24px;
        max-width: 100%;
    }

    .biomarker-card {
        width: calc(100vw - 50px);
        min-width: 280px;
        min-height: 380px;
        padding: 30px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* CTA — градиентный блок */
.section-cta {
    padding: 0;
    margin-bottom: 0;
    height: 550px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(173deg, rgba(58, 60, 109, 1) 0%, rgba(21, 29, 47, 1) 100%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

.cta-content {
    flex: 0 0 439px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.text-accent {
    color: #979CFF;
}

.cta-desc {
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 339px;
}

.cta-markers-link {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline dotted;
    margin-top: 4px;
    transition: color 0.2s;
}

.cta-markers-link:hover {
    color: var(--color-primary);
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cta-image img {
    max-width: 100%;
    max-height: 505px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .section-cta {
        height: auto;
        padding: 60px 50px 0;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        flex: none;
        align-items: center;
    }

    .cta-desc {
        max-width: none;
    }

    .cta-desc {
        max-width: 100%;
    }

    .cta-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-cta {
        padding: 40px 20px 0;
    }

    .section-cta--cta-overlap {
        margin-top: -250px;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .cta-inner {
        padding: 0 20px;
    }

    .cta-title {
        font-size: 24px;
    }
}

/* Что такое Mentify */
.section-about {
    padding: 60px 50px;
}

.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 0 0 480px;
}

.about-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}

.about-list-intro {
    font-weight: 500;
    margin-top: 32px;
    color: var(--color-text);
}

.about-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.about-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-image: url('../images/badge-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.about-list li:last-child {
    margin-bottom: 0;
}

.about-disclaimer {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-disclaimer p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 8px;
}

.about-disclaimer p:last-child {
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    max-height: 750px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .about-inner {
        flex-direction: column;
    }

    .about-content {
        flex: none;
        max-width: 100%;
    }

    .about-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-about {
        padding: 0 20px 40px;
    }

    .about-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Как сдать анализ */
.section-how {
    padding: 60px 50px;
}

.how-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.how-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 40px;
}

.how-steps {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.how-step {
    flex: 0 0 200px;
    width: 200px;
    min-height: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.how-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #5156BE;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.how-step-text {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.how-cta {
    flex: 1;
    min-width: 0;
    background: #5156BE;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.how-cta-text {
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}

.btn-how {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-how:hover {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .how-steps {
        flex-wrap: wrap;
    }

    .how-step {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
    }

    .how-cta {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .section-how {
        padding: 60px 20px;
    }

    .how-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .how-steps {
        flex-direction: column;
    }

    .how-step {
        flex: none;
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }

    .how-cta {
        flex: none;
    }
}

/* Адреса клиник */
.section-addresses {
    padding: 0;
}

.addresses-inner {
    background: var(--color-bg);
    padding-bottom: 60px;
}

.addresses-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 50px 40px;
}

.addresses-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.addresses-switch {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.address-card {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 400;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.address-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.address-card.active {
    background: rgba(81, 86, 190, 0.25);
    border-color: var(--color-primary);
    color: #fff;
}

.address-card-text {
    display: block;
}

.addresses-hours {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 20px 0 0;
}

.addresses-map-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.addresses-map {
    width: 100%;
    height: 500px;
    background: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
}

.addresses-map > div {
    border-radius: 20px;
    overflow: hidden;
}

/* Таблица маркеров WHOOP */
.section-markers-table {
    padding: 60px 50px 80px;
}

.markers-table-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 50px; */
}

.markers-table-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.markers-table-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.markers-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.markers-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.markers-table th,
.markers-table td {
    padding: 14px 20px;
    text-align: left;
    border: none;
    font-size: 14px;
    line-height: 1.5;
}

.markers-table th {
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.markers-table-row-even td {
    background: rgba(255, 255, 255, 0.03);
}

.markers-table-row-odd td {
    background: var(--color-bg);
}

.markers-table-row-excluded td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-muted);
    opacity: 0.75;
}

.markers-table-row-excluded td:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.markers-table-disclaimer {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 24px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .section-markers-table {
        padding: 40px 20px 60px;
    }

    .markers-table-inner {
        padding: 0;
    }

    .markers-table th,
    .markers-table td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .addresses-inner {
        padding-bottom: 0;
    }

    .addresses-header {
        padding: 40px 20px 30px;
    }

    .addresses-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .addresses-switch {
        flex-direction: column;
        width: 100%;
    }

    .address-card {
        justify-content: center;
    }

    .addresses-map,
    .addresses-map > div {
        border-radius: 0;
    }
}

/* Footer */
.footer {
    background: var(--color-header);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 50px 40px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.footer-partner {
    font-size: 20px;
    color: var(--color-text-muted);
    opacity: 0.6;
    line-height: 1;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.9;
}

.footer-logo-lab {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin: 0 0 4px;
}

.footer-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.footer-hours {
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-notice {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    max-width: 800px;
}

.footer-notice p + p {
    margin-top: 12px;
}

.footer-whoop {
    margin: 24px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.footer-copy {
    margin: 32px 0 0;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 32px;
    }

    .footer-top {
        margin-bottom: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-notice {
        padding: 20px 0;
    }
}

/* Modal */

.modal-details:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

.modal-details {
    margin: 0 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.modal-details-section + .modal-details-section {
    margin-top: 20px;
}

.modal-details-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
}

.modal-details-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.modal-details-checkitem {
    position: relative;
    margin: 0 0 14px;
    padding-left: 28px;
}

.modal-details-checkitem::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(60, 130, 255, 0.25);
    border: 1px solid rgba(100, 170, 255, 0.45);
}

.modal-details-checkitem::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 4px;
    border-left: 2px solid rgba(140, 200, 255, 0.95);
    border-bottom: 2px solid rgba(140, 200, 255, 0.95);
    transform: rotate(-45deg);
}

.modal-details-checkitem:last-child {
    margin-bottom: 0;
}

.modal-details-checkitem strong {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.modal-details-checkitem p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.modal-details-bullets {
    margin: 0;
    padding-left: 18px;
}

.modal-details-bullets li {
    margin: 0 0 8px;
}

.modal-details-bullets li:last-child {
    margin-bottom: 0;
}

.modal-details-prose p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
}

.modal-details-prose p:last-child {
    margin-bottom: 0;
}

.modal-details-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(130, 190, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.modal-details-link:hover {
    color: #fff;
}

.modal-program-actions {
    margin-top: 8px;
    padding-top: 4px;
}

.modal-program-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
}

.modal-program-price .price-old {
    font-size: 16px;
}

.modal-note--program {
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

.modal-details-disclaimer {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-header);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-dialog.modal-dialog--program {
    max-width: min(1120px, calc(100vw - 32px));
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.modal-content {
    padding: 40px;
}

.modal-title {
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
    color: var(--color-text);
}

.modal-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    /* margin: 16px 0 0; */
}

.modal-price .price-old {
    font-size: 16px;
}

.modal-note {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 24px;
}

.modal-desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 0 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.order-clinic-field[hidden] {
    display: none !important;
}

.order-clinic-single {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.order-clinic-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-clinic-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.order-clinic-option:has(input:checked) {
    background: rgba(81, 86, 190, 0.2);
    border-color: var(--color-primary);
}

.order-clinic-option input[type="radio"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.order-clinic-option-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-text);
}

.form-field-checkbox {
    gap: 0;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-top: 8px;
    align-items: center;
    align-self: flex-start;
}

.form-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.form-checkbox-label input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-checkbox-label input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-checkbox-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-checkbox-text a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
    }
}

/* Cookie banner — компактная выпадашка сбоку */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 320px;
    margin-left: auto;
    z-index: 1000;
    padding: 16px;
    background: var(--color-header);
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-banner-text {
    margin: 0 0 12px 0;
}

.cookie-banner-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-link:hover {
    opacity: 0.9;
}

.cookie-banner-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-banner-btn:hover {
    background: var(--color-primary-hover);
}
