/* ===== VARIABLES ===== */
:root {
    --paper: #E9E4D6;
    --ink:   #15191A;
    --muted: rgba(21, 25, 26, .55);
    --line:  rgba(21, 25, 26, .18);
    --blue:  #2446F2;
    --gold:  #B79C6B;
    --dark:  #080C13;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, Arial, sans-serif;
    background-color: var(--paper);
    background-image: url("/images/фон.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
}

.mono { font-family: 'IBM Plex Mono', 'Space Mono', Menlo, monospace; }

/* ===== HERO GRID ===== */
.f-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    padding: 0 7vw 56px;
    position: relative;
    background-image: url("/images/фон_с_точками.webp");
    background-size: cover;
    background-position: center;
}

/* ===== NAV ===== */
.f-nav {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.f-logo { width: 44px; height: auto; display: block; }

.f-nav-links { display: flex; gap: 44px; }
.f-nav-links a, .f-cart {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s;
}
.f-nav-links a:hover, .f-cart:hover { color: var(--blue); }

.f-cart { display: flex; align-items: center; gap: 5px; }
.f-dot  { color: var(--blue); font-size: 14px; }

/* ===== HERO LEFT ===== */
.f-hero-left {
    padding: 6vh 6vw 6vh 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.f-index {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .08em;
    margin-bottom: 0;
}

.f-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(88px, 12.5vw, 190px);
    line-height: .84;
    letter-spacing: -.06em;
    font-weight: 300;
    color: var(--ink);
    margin: 6vh 0 28px;
    margin-left: -22px;
}

.f-subtitle {
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.3;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 32px;
}

.f-copy {
    max-width: 310px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 52px;
}

.f-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .10em;
    font-weight: 700;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    width: fit-content;
}

.f-cta-img {
    height: 72px;
    width: auto;
    display: block;
    transition: transform .2s;
}
.f-cta:hover .f-cta-img { transform: translateX(4px); }

.f-hero-meta {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ===== PRODUCTS RIGHT ===== */
.f-products {
    padding: 6vh 0 6vh 52px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.f-products::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='8' y1='0' x2='8' y2='200' stroke='%232446F2' stroke-width='1'/%3E%3Cpath d='M4 178 L8 190 L12 178' stroke='%232446F2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 16px 200px;
    background-position: center top;
}

.f-product {
    display: grid;
    grid-template-columns: 40px 1fr 130px;
    gap: 16px 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    position: relative;
}
.f-product:first-child { padding-top: 0; }
.f-product:last-child  { border-bottom: none; }

.f-product-locked {
    display: block;
    padding: 0;
    position: relative;
}

.f-product-locked .f-product-inner {
    display: grid;
    grid-template-columns: 40px 1fr 130px;
    gap: 16px 20px;
    padding: 28px 0;
    align-items: start;
}

.f-product-locked:last-child .f-product-inner {
    border-bottom: none;
}

.f-product-locked .f-buy {
    pointer-events: none;
    opacity: 0.45;
    cursor: default;
}

.f-product-locked::after {
    content: 'СКОРО';
    position: absolute;
    top: 10px; bottom: 10px; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(233, 228, 214, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        16px 12px 32px rgba(0, 0, 0, 0.28),
        6px 4px 10px rgba(0, 0, 0, 0.16);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(21, 25, 26, 0.55);
    pointer-events: none;
}

.f-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    padding-top: 2px;
    letter-spacing: .04em;
}

.f-product-clickable {
    cursor: pointer;
    transition: background .18s;
}
.f-product-clickable:hover {
    background: rgba(36, 70, 242, 0.03);
}

.f-product-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}

.f-formula {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink);
}

.f-result {
    color: var(--blue);
    font-weight: 700;
}

.f-product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.f-pattern {
    width: 110px;
    opacity: .9;
}

.f-price-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 6px;
}

.f-price-new {
    color: var(--ink);
    font-weight: 700;
}

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

.f-buy {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    background: transparent;
}
.f-buy:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.f-buy-accent {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.f-buy-accent:hover {
    background: #1a35d9;
    border-color: #1a35d9;
    color: #fff;
}

/* ===== ABOUT DARK ===== */
.f-about {
    margin: 0 3vw 40px;
    border-radius: 18px;
    background-color: var(--dark);
    background-image: url("/images/черный_фон2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 36px 4vw;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4vw;
}

.f-about-text {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
}

.f-about-line {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 14px 0;
    width: 80px;
}

.f-about-list {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-left: auto;
    margin-right: 0;
    gap: 12px;
    align-self: center;
}

.f-about-visual {
    display: none;
}

.f-about-net {
    display: none;
}

.f-about .f-index { color: var(--blue); }

.f-about h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    letter-spacing: -.02em;
    margin: 4px 0 8px;
}

.f-about p {
    max-width: 280px;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.f-stats {
    display: flex;
    gap: 28px;
}

.f-stat { display: flex; flex-direction: column; gap: 3px; }

.f-stat-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

.f-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,.38);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ===== FAQ ===== */
.f-faq {
    padding: 80px 10vw;
    font-family: 'Montserrat', sans-serif;
}

.f-section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.f-faq h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: -.03em;
    margin-bottom: 48px;
}

.f-faq-list { max-width: 680px; }

.f-faq-item {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}
.f-faq-item:last-child { border-bottom: 1px solid var(--line); }

.f-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}
.f-faq-q::-webkit-details-marker { display: none; }
.f-faq-toggle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    color: var(--blue);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .2s;
}
details[open] .f-faq-toggle { transform: rotate(45deg); }

.f-faq-a {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    max-width: 580px;
}

/* ===== FOOTER ===== */
.f-footer {
    padding: 28px 7vw 36px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.f-footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.f-footer-links { display: flex; gap: 24px; }
.f-footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.f-footer-links a:hover { color: var(--ink); }

/* ===== PRODUCT PAGE ===== */
.fp-bg-wrapper {
    background-image: url("/images/фон_с_точками.webp");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.fp-page {
    min-height: calc(100vh - 100px);
    padding: 3vh 4vw 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-card {
    width: 100%;
    max-width: 1200px;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid rgba(21,25,26,0.10);
}

.fp-card-top {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
}

.fp-card-image {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    position: relative;
    gap: 14px;
}

.fp-card-image::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 88px;
    height: 56px;
    bottom: auto;
    width: 1px;
    background: var(--blue);
}

.fp-img-frame {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.26), 0 4px 12px rgba(0,0,0,0.14);
}

.fp-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity .18s;
}

.fp-gallery-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px 8px;
}

.fp-counter-current,
.fp-counter-slash,
.fp-counter-total {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 300;
    color: var(--blue);
    letter-spacing: .04em;
    line-height: 1;
}

.fp-card-bottom {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 20px;
}

.fp-card-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 17px;
    right: 17px;
    height: 1px;
    background: var(--blue);
}

.fp-left {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
}

.fp-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 6.5vw, 100px);
    font-weight: 300;
    line-height: .88;
    letter-spacing: -.05em;
    color: var(--ink);
    margin: 10px 0 18px;
}

.fp-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fp-tagline-line {
    display: block;
    height: 1px;
    background: var(--blue);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    width: 7ch;
    margin-bottom: 10px;
}

.fp-formula-divider {
    display: block;
    height: 1px;
    background: var(--blue);
    margin: 6px 0 1px;
    width: 7ch;
}

.fp-formula {
    white-space: pre-line;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink);
    margin-bottom: 28px;
}

.fp-slide-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 68px;
}

.fp-slide-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .10em;
    text-transform: uppercase;
    transition: opacity .2s;
}

.fp-slide-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    transition: opacity .2s;
}

.fp-slide-separator {
    border: none;
    border-top: 1px solid var(--blue);
}

.fp-img-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.fp-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 18px;
}

.fp-price-new {
    font-size: 26px;
    font-weight: 700;
    color: var(--blue);
}

.fp-price-old {
    font-size: 15px;
    color: var(--muted);
    text-decoration: line-through;
}

.fp-cta-btn {
    width: fit-content;
    padding: 10px 28px;
    font-size: 11px;
    margin-bottom: 14px;
}

.fp-note {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    letter-spacing: .04em;
}

/* Gallery */
.fp-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-gallery-main {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s;
}

.fp-gallery-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-arrow {
    background: none;
    border: none;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    color: var(--blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: opacity .2s;
}
.fp-arrow:hover { opacity: 0.5; }

.fp-thumbs-wrap {
    flex: 1;
    overflow: hidden;
}

.fp-thumbs {
    display: flex;
    gap: 12px;
    transition: transform .3s ease;
}

.fp-thumb {
    flex: 0 0 calc(25% - 9px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-thumb-frame {
    border: 1px solid rgba(21,25,26,0.15);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: border-color .2s;
}

.fp-thumb.active .fp-thumb-frame { border-color: var(--blue); }

.fp-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.fp-thumb-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    text-align: center;
}

.fp-thumb-soon .fp-thumb-soon-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid rgba(21,25,26,0.15);
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 16px;
}

.fp-dot-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background .2s;
    display: inline-block;
}
.fp-dot-item.active { background: var(--blue); }

/* ===== PAYMENT PAGE ===== */
.fp-payment-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 7vw;
}

.fp-payment-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.fp-payment-box {
    width: 380px;
    font-family: 'Montserrat', sans-serif;
    padding: 48px 44px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(233, 228, 214, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}

.fp-payment-locked {
    position: relative;
    pointer-events: none;
    background: rgba(233, 228, 214, 0.82) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

.fp-payment-locked::after {
    content: 'СКОРО';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(233, 228, 214, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 16px 12px 32px rgba(0,0,0,0.28), 6px 4px 10px rgba(0,0,0,0.16);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(21,25,26,0.55);
}

.fp-payment-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 8px 0 0;
}

.fp-payment-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 24px;
}

.fp-payment-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.fp-payment-placeholder {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.fp-back-link {
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s;
}
.fp-back-link:hover { color: var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .f-grid {
        grid-template-columns: 1fr;
        padding: 0 6vw 48px;
    }
    .f-products {
        border-left: none;
        border-top: 1px solid var(--line);
        padding: 40px 0;
        margin-top: 0;
    }
    .f-product {
        grid-template-columns: 36px 1fr;
    }
    .f-product-right {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .f-pattern { width: 80px; }
    .f-nav-links { display: none; }
    .f-title { margin-top: 3vh; }
    .f-stats { gap: 28px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .f-about { padding: 40px 6vw; margin: 0 2vw 24px; }
    .f-faq { padding: 60px 6vw; }
}
