:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #000000;
    --border: #E0E0E0;
    --font-sans: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --font-logo: 'Alumni Sans', sans-serif;
}

html {
    scroll-padding-top: 0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans), sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 2.25rem;
    /* Mobile size */
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
        /* Desktop size */
    }
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.header {
    display: none;
    /* Safely hide any old usage */
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.header-metrics {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Removed .hero as we use .apple-scroll-container now */

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 4vw;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
    font-size: 0.85rem;
    align-items: flex-start;

    /* Магия Noth.in: инверсия цвета */
    mix-blend-mode: difference;
    color: #fff;
}

.global-header>* {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .global-header {
        font-size: 0.75rem;
        padding: 16px 4vw;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .header-intro {
        text-align: center;
    }

    .header-right {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 16px;
        right: 4vw;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .global-header.scrolled .header-right {
        opacity: 1;
        visibility: visible;
    }

    .header-left {
        width: 100%;
        position: static;
    }

    .header-logo {
        top: 16px;
        left: 4vw;
        width: auto;
        text-align: left;
        transform: none;
    }
}

.header-left {
    position: relative;
}

.header-intro {
    font-weight: 500;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    line-height: 1.4;
}

.btn-header-cta {
    background-color: #fff;
    border: 1px solid #fff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    padding: 12px 24px;
    margin-top: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-header-cta:hover {
    background-color: transparent;
    color: #fff;
}

.header-logo {
    font-family: var(--font-logo);
    font-size: 46px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.global-header.scrolled .header-intro {
    opacity: 0;
    visibility: hidden;
}

.global-header.scrolled .header-logo {
    opacity: 1;
    visibility: visible;
}

.btn-text {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #fff;
    line-height: 1.2;
}

/* Minimalist Hero Layout */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    min-height: 600px;
    cursor: none;
    position: relative;
    overflow: hidden;
    /* Скрываем стандартный курсор */
}

/* Clinical Lens Cursor */
#lens-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    /* Увеличили на 25% */
    height: 300px;
    border-radius: 50%;
    background-color: #000;
    overflow: hidden;
    pointer-events: none;
    z-index: 90;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}

/* Отключаем линзу на мобильных и тач-экранах */
@media (hover: none) and (pointer: coarse) {
    #lens-cursor {
        display: none !important;
    }
}

.inverted-world {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.inverted-world .giant-logo {
    color: #fff;
    z-index: 2;
    /* Магия: выносим текст поверх бутылки внутри линзы */
}

.inverted-world .bottle-container {
    display: none;
    /* Прячем бутылку внутри линзы */
}

.hero-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.giant-logo {
    font-family: var(--font-sans), sans-serif;
    font-size: 40vw;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.02em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    text-align: center;
    z-index: 0;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .giant-logo {
        font-size: 60vw;
    }
}

@media (min-width: 1440px) {
    .giant-logo {
        font-size: 22vw;
    }
}

.bottle-container {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bottle {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    animation: bottleReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: scale(1.2);
}

@keyframes bottleReveal {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .hero-bottle {
        max-height: 70vh;
    }
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--border);
}

.hero-footer .footer-right {
    display: flex;
    gap: 16px;
}

.hero-footer .footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.hero-footer .footer-slash {
    color: var(--border);
}

@media (max-width: 768px) {
    .hero-footer {
        padding: 16px 4vw;
        align-items: flex-end;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-footer .footer-right {
        gap: 8px;
        align-items: flex-end;
    }
}

/* Standard Content Block */
.content-block {
    margin-bottom: 120px;
    margin-top: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #F0F0F0;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    border-radius: 4px;
}

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

/* Clinical Protocol Section */
.protocol-section {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 120px 24px;
    margin-bottom: 0;
}

.protocol-section h1 {
    color: var(--bg-color);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .protocol-section h1 {
        font-size: 4rem;
    }
}

.protocol-desc {
    color: #A0A0A0;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.protocol-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    color: var(--bg-color);
    border: 1px solid var(--bg-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.protocol-section .metrics-grid {
    border-bottom: 1px solid #333;
    border-top: 1px solid #333;
    padding: 40px 0;
}

.protocol-section .m-label {
    color: #A0A0A0;
}

.protocol-section .authority-badge {
    color: #A0A0A0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 40px auto;
}

.protocol-section .protocol-btn {
    background-color: var(--bg-color);
    color: var(--text-primary);
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.protocol-section .protocol-btn:hover {
    background-color: #E0E0E0;
}

.centered-metrics {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

@media (min-width: 768px) {
    .bottle-container {
        max-width: 500px;
    }
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    background: #EAEAEA;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 5rem;
    }
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.m-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.m-value {
    font-size: 1.5rem;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 18px 32px;
    background-color: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0;
    /* Sharp corners like the mockup */
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
}

/* Sections */
section {
    margin-bottom: 120px;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
}

@media (min-width: 768px) {
    section h2 {
        font-size: 3.5rem;
    }
}

.efficacy, .protocol, .acquisition {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
    padding: 80px 4vw;
}
.protocol {
    background-color: #F9F9F9;
}

@media (min-width: 768px) {
    .efficacy, .protocol, .acquisition {
        padding: 120px 4vw;
    }
}

.efficacy-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.efficacy .col {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}
.efficacy .col:first-child {
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .efficacy-content {
        grid-template-columns: 1fr 1fr;
    }
    .efficacy .col {
        padding: 48px;
        border-bottom: 1px solid var(--border);
        border-top: 1px solid var(--border);
    }
    .efficacy .col:first-child {
        border-right: 1px solid var(--border);
        padding-left: 0;
    }
    .efficacy .col:last-child {
        padding-right: 0;
    }
}

.efficacy-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.efficacy-content p {
    color: var(--text-secondary);
}

.protocol-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.step {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.step:last-child {
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .protocol-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .step {
        padding: 40px;
        border-top: 1px solid var(--border);
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .step:first-child {
        padding-left: 0;
    }
    .step:last-child {
        border-right: none;
        padding-right: 0;
    }
}

.step-num {
    font-family: var(--font-mono);
    color: #CCC;
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
}

.step h4 {
    margin-bottom: 8px;
}

.acquisition-content {
    max-width: 680px;
    margin: 0 auto;
}

/* Pricing - Row Layout */
.pricing-list {
    display: flex;
    flex-direction: column;
}

.tier-row {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 24px 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #FFF;
}

.tier-row:hover {
    border-color: #999;
}

.tier-row.active {
    border-color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--text-primary);
}

.tier-info {
    flex: 2;
}

.tier-row h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-row .desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tier-price {
    flex: 1;
    text-align: right;
}

.tier-price .price {
    font-size: 1.5rem;
    font-weight: 500;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    background: #000;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.optimal-badge {
    position: absolute;
    top: -12px;
    left: 24px;
}

.free-shipping {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.tier-cta-container {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.tier-cta-container button {
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .tier-row {
        padding: 32px 40px;
    }
    .tier-row h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .tier-price .price {
        font-size: 2rem;
    }
}

/* Modal - Native Dialog */
.modal-container {
    margin: auto;
    background: #FFF;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    opacity: 0;
    transform: scale(0.95);
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-behavior: allow-discrete;
}

.modal-container[open] {
    opacity: 1;
    transform: scale(1);

    @starting-style {
        opacity: 0;
        transform: scale(0.95);
    }
}

.modal-container::backdrop {
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-container[open]::backdrop {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);

    @starting-style {
        background-color: rgba(255, 255, 255, 0);
        backdrop-filter: blur(0px);
    }
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.region-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.warning-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 16px;
    background: #F8F9FA;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
}

.hidden {
    display: none !important;
}

/* Authority Badge */
.authority-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
    padding-left: 20px;
    position: relative;
}

.authority-badge::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

/* Animations (Handled by GSAP, keeping structural only) */

/* loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility / UX Heuristic */
@media (prefers-reduced-motion: reduce) {
    .bottle-mockup {
        animation: none;
        transform: none;
    }

    .btn-primary,
    .btn-secondary {
        transition: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }

    .modal-container,
    .modal-container::backdrop {
        transition-duration: 0.1s;
    }

    .modal-container[open] {
        transform: none;
    }

    @starting-style {
        .modal-container[open] {
            transform: none;
        }
    }
}

/* Editorial Footer */
.editorial-footer {
    background-color: #000;
    color: #FFF;
    padding: 80px 4vw 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
    overflow: hidden;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-left h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #FFF;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-family: var(--font-mono);
}

.btn-outline:hover {
    border-color: #FFF;
    background: #FFF;
    color: #000;
}

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

.footer-social a {
    color: #FFF;
    text-decoration: none;
    font-size: 1.25rem;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-bottom {
    margin-top: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.giant-text {
    font-size: 23vw;
    line-height: 0.75;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-align: center;
    width: 100%;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
    text-align: center;
    font-family: var(--font-mono);
}

@media (min-width: 768px) {
    .editorial-footer {
        min-height: 100vh;
    }
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer-left h3 {
        font-size: 4rem;
    }
    .footer-buttons {
        flex-direction: row;
    }
    .footer-social {
        text-align: right;
    }
    .copyright {
        align-self: flex-start;
        margin-top: 16px;
    }
}

.lang-selector {
    position: absolute;
    bottom: 24px;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 8px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.lang-selector:hover {
    border-color: #FFF;
    color: #FFF;
}

@media (min-width: 768px) {
    .lang-selector {
        bottom: 16px;
    }
}

.gdpr-text {
    margin-top: 12px;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.no-payment-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    margin-top: -16px;
    max-width: 80%;
}

/* Prevent FOUT (Flash of Unstyled Text) and prepare for GSAP intro */
html.fonts-loading .giant-logo,
html.fonts-loading .bottle-container,
html.fonts-loading .global-header,
html.fonts-loading .hero-footer {
    opacity: 0;
    visibility: hidden;
}
