@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0b0c0d;
    color: #e6e3d9;
    font-family: 'Onest', system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    cursor: auto;
    -moz-
    -ms-
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    line-height: 1.75;
}

.container h1 {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9dffc0;
    margin-bottom: 0.4rem;
}

.container h2 {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(157,255,192,0.75);
    margin: 1.8rem 0 0.5rem;
    border-left: 2px solid rgba(157,255,192,0.25);
    padding-left: 10px;
}

.container p, .container li {
    font-size: 0.85rem;
    color: #e6e3d9;
    margin-bottom: 0.5rem;
}

.container ul {
    padding-left: 1.4em;
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    font-size: 0.8rem;
}

.data-table th,
.data-table td {
    border: 1px solid rgba(157,255,192,0.12);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    color: #e6e3d9;
    line-height: 1.5;
}

.data-table thead th {
    background: rgba(157,255,192,0.06);
    color: rgba(157,255,192,0.7);
    letter-spacing: .04em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
}

.placeholder-stub {
    color: rgba(157,255,192,0.35);
    font-style: italic;
    border-bottom: 1px dashed rgba(157,255,192,0.2);
}

h1, h2, h3 { color: #e6e3d9; }
a { color: #63c98a; text-decoration: none; }
a:hover { text-decoration: underline; }

header, .about, footer {
    position: relative;
    z-index: 1;
}

header { text-align: center; margin-bottom: 3rem; }
.logo {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 3.5rem; font-weight: 700; letter-spacing: 0; color: #9dffc0;
    text-shadow: 0 0 7px #9dffc0, 0 0 20px #9dffc0, 0 0 40px #4e8f68, 0 0 80px #0c1219;
    display: inline-block; animation: flicker 2s infinite alternate;
}
@keyframes flicker {
    0%, 100% { text-shadow: 0 0 7px #9dffc0, 0 0 20px #9dffc0, 0 0 40px #4e8f68, 0 0 80px #0c1219; }
    50% { text-shadow: 0 0 4px #9dffc0, 0 0 15px #4e8f68, 0 0 30px #0c1219; }
}
.tagline {
    color: #e6e3d9;
    font-size: 0.85rem;
    line-height: 1.8;
    letter-spacing: 0.03em;
    max-width: 700px;
    margin: 1rem auto 0;
}

.layout { display: flex; gap: 3rem; align-items: flex-start; margin-bottom: 4rem; flex-wrap: wrap; }
.product-card { flex: 1 1 450px; }
.drop-number { text-align: center; font-size: 1rem; color: #63c98a; text-shadow: 0 0 6px #0c1219; margin-bottom: 0.8rem; }

.form-section {
    flex: 1 1 400px;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.frame {
    background: #080c11;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.product-image {
    position: relative;
    z-index: 5;
}
.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.counter-block { text-align: center; margin: 1.2rem 0 0.5rem; }
.counter-label { font-size: 0.9rem; color: #63c98a; display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
.indicator { width: 10px; height: 10px; background: #9dffc0; border-radius: 50%; box-shadow: 0 0 10px #9dffc0; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
.counter-number { font-size: 2.8rem; color: #9dffc0; }
.counter-unit { font-size: 1.5rem; color: #e6e3d9; margin-left: 0.3rem; }
.price { text-align: center; font-size: 1.3rem; color: #e6e3d9; margin-top: 0.3rem; }

/* Закрытый дроп */
.layout-closed {
    justify-content: center;
}
.product-card-closed {
    flex: 0 1 auto;
    max-width: 500px;
    width: 100%;
}

.product-image-closed {
    z-index: 1;
}
.counter-block-closed {
    margin-top: 2rem;
}
.big-timer {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 3rem;
    color: #ff5f32;
    text-align: center;
    margin-top: 0.5rem;
    text-shadow: 0 0 8px #ff5f3255;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.2rem;
    background: #181b1f;
    border: none;
    outline: none;
    color: #e6e3d9;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    caret-color: #e6e3d9 !important;
    transition: background 0.2s;
}
input:focus { background: #1e2328; }

input.valid { background: #1a2a1f; }
input.invalid { background: #2b1a1a; }

input:-webkit-autofill:not(.valid):not(.invalid),
input:-webkit-autofill:hover:not(.valid):not(.invalid),
input:-webkit-autofill:focus:not(.valid):not(.invalid) {
    -webkit-box-shadow: 0 0 0 1000px #181b1f inset !important;
    -webkit-text-fill-color: #e6e3d9 !important;
    caret-color: #e6e3d9 !important;
    transition: background-color 5000s ease-in-out 0s;
}
input.valid:-webkit-autofill,
input.valid:-webkit-autofill:hover,
input.valid:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a2a1f inset !important;
    -webkit-text-fill-color: #e6e3d9 !important;
    caret-color: #e6e3d9 !important;
    transition: background-color 5000s ease-in-out 0s;
}
input.invalid:-webkit-autofill,
input.invalid:-webkit-autofill:hover,
input.invalid:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2b1a1a inset !important;
    -webkit-text-fill-color: #e6e3d9 !important;
    caret-color: #e6e3d9 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Подсказка ошибки */
.error-hint {
    display: block;
    font-size: 0.7rem;
    color: #f0a0a0;
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    min-height: 0;
    visibility: hidden;
}
input.invalid + .error-hint {
    visibility: visible;
}

/* Чекбоксы */
.checkbox {
    display: flex; gap: 0.6rem; margin-bottom: 0.9rem; font-size: 0.8rem; color: #9ca3af; align-items: center;
    cursor: auto;
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    background: #181b1f;
    border: 1px solid #63c98a;
    border-radius: 2px;
    cursor: auto;
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked {
    background: #0c1219;
    border-color: #63c98a;
}
.checkbox input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #9dffc0;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.1s;
}
.checkbox input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

/* ===== ПОЛЗУНОК (ЗЕЛЁНЫЙ) ===== */
.neon-slider {
    text-align: center;
    margin: 1.5rem 0;
}

.slider-label {
    font-size: 0.85rem;
    color: #63c98a;
    margin-bottom: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

input[type=range]#captchaSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, #0c1219, #4e8f68);
    border-radius: 6px;
    outline: none;
    box-shadow: 0 0 10px #0c1219;
    cursor: grab;
    transition: box-shadow 0.2s;
}

input[type=range]#captchaSlider:hover {
    box-shadow: 0 0 15px #4e8f68;
}

/* Chrome, Safari, Edge */
input[type=range]#captchaSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: #9dffc0;
    border-radius: 50%;
    box-shadow: 0 0 15px #9dffc0;
    border: 2px solid #4e8f68;
    cursor: grab;
    transition: all 0.2s;
}

input[type=range]#captchaSlider::-webkit-slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 25px #9dffc0;
    transform: scale(1.1);
}

input[type=range]#captchaSlider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px #9dffc0;
}

/* Firefox */
input[type=range]#captchaSlider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: #9dffc0;
    border-radius: 50%;
    box-shadow: 0 0 15px #9dffc0;
    border: 2px solid #4e8f68;
    cursor: grab;
    transition: all 0.2s;
}

input[type=range]#captchaSlider::-moz-range-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 25px #9dffc0;
    transform: scale(1.1);
}

input[type=range]#captchaSlider::-moz-range-thumb:hover {
    box-shadow: 0 0 20px #9dffc0;
}

/* Трек ползунка */
input[type=range]#captchaSlider::-moz-range-track {
    background: transparent;
    border: none;
}

input[type=range]#captchaSlider::-moz-range-progress {
    background: linear-gradient(to right, #0c1219, #4e8f68);
    border-radius: 6px;
}

input[type=range]#captchaSlider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type=range]#captchaSlider.grabbing {
    box-shadow: 0 0 25px #4e8f68;
}

.slider-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #63c98a;
    min-height: 1.2em;
    transition: color 0.3s, text-shadow 0.3s;
}

.slider-status.success {
    color: #9dffc0;
    text-shadow: 0 0 8px #9dffc0;
    font-weight: 500;
}

/* ===== КНОПКИ И ЭЛЕМЕНТЫ ===== */
.btn-reserve {
    width: 100%; padding: 0.9rem; background: #0c1219; border: none; color: #e6e3d9;
    font-family: inherit; font-size: 1rem; letter-spacing: 0.1em; cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    outline: none;
}
.btn-reserve:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-reserve:not(:disabled):hover { background: #224a35; box-shadow: 0 0 15px #4e8f68; }

.btn-cancel {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid #f0a0a0;
    color: #f0a0a0;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-cancel:hover { background: rgba(240, 160, 160, 0.15); }

.btn-passport {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: #0c1219;
    color: #e6e3d9;
    text-decoration: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-passport:hover { background: #224a35; }

.success-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center;
}
.success-modal {
    background: #080c11; padding: 2rem; max-width: 500px; text-align: left; position: relative;
    box-shadow: 0 0 30px #0c1219;
}
.success-close { position: absolute; top: 8px; left: 8px; background: none; border: none; color: #63c98a; font-size: 1.2rem; font-weight: bold; cursor: pointer; line-height: 1; }
.success-modal h2 { color: #9dffc0; margin-bottom: 1rem; font-size: 1.4rem; }
.success-modal p { color: #e6e3d9; line-height: 1.6; }

.notification {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    background: #1a1f1c; color: #e6e3d9; padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; box-shadow: 0 0 15px #0c1219; z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s; max-width: 90vw; text-align: center;
}
.notification.show { opacity: 1; visibility: visible; }
.notification-close { background: none; border: none; color: #63c98a; font-size: 1.2rem; cursor: pointer; padding: 0 0.3rem; }

.payment-block { margin-top: 2rem; text-align: center; background: #080c11; padding: 1.5rem; box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.payment-timer { font-family: 'Fira Code', monospace; font-size: 1.5rem; color: #ff5f32; margin-bottom: 1rem; }
.qr-code { max-width: 180px; margin: 0 auto 1rem; display: block; }

.about { border-top: 1px solid #63c98a; padding-top: 3rem; margin-top: 2rem; }
.about h2 {
    font-size: 1.8rem; margin-bottom: 1.8rem; color: #9dffc0; text-align: center;
    text-shadow: 0 0 3px #9dffc0, 0 0 8px #4e8f68;
    animation: flickerSoft 3s infinite alternate;
}
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-item {
    background: #080c11; padding: 1.5rem; display: flex; gap: 0.8rem; align-items: flex-start; box-shadow: 0 0 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}
.about-icon {
    font-size: 2rem; color: #9dffc0; font-weight: 500; line-height: 1; min-width: 2.5rem;
    text-shadow: 0 0 2px #9dffc0, 0 0 6px #4e8f68;
    animation: flickerSoft 3s infinite alternate;
}
.about-item p { color: #e6e3d9; font-size: 0.85rem; line-height: 1.5; }
@keyframes flickerSoft {
    0%, 100% { text-shadow: 0 0 3px #9dffc0, 0 0 8px #4e8f68; }
    50% { text-shadow: 0 0 1px #9dffc0, 0 0 4px #4e8f68; }
}

footer { text-align: center; margin-top: 3rem; color: #6b7280; font-size: 0.8rem; border-top: 1px solid #63c98a; padding-top: 1.5rem; }
.footer-links a { color: #6b7280; margin: 0 0.5rem; }
.footer-contact a { color: #9dffc0; }
.footer-copy { margin-top: 0.5rem; color: #4b5563; }

#crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 2px,
        transparent 2px,
        transparent 4px
    );
    box-shadow: inset 0 0 150px rgba(0,0,0,0.5);
}

.drop-closed-message {
    text-align: center;
    font-size: 1.2rem;
    color: #ff5f32;
    margin-bottom: 1rem;
    text-transform: lowercase;
    width: 100%;
}

@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .logo { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .form-section { margin-top: 0; }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    .btn-reserve,
    .btn-cancel,
    .btn-passport {
        min-height: 3rem;
        padding: 1rem;
    }

    .checkbox {
        font-size: 0.9rem;
        line-height: 24px;
    }
    .checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    .checkbox input[type="checkbox"]::after {
        top: 3px;
        left: 7px;
        width: 7px;
        height: 12px;
    }

    input[type=range]#captchaSlider {
        height: 14px;
    }

    input[type=range]#captchaSlider::-webkit-slider-thumb {
        width: 35px;
        height: 35px;
    }

    input[type=range]#captchaSlider::-moz-range-thumb {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 500px) {
    .success-modal {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
}

/* Скрытие плашки Yandex SmartCaptcha Shield */
.SmartCaptcha-Shield,
[class*="SmartCaptcha-Shield"],
[class*="smartcaptcha-shield"],
[class*="Shield-"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* --- юридические страницы: длинный текст читают, а не сканируют --- */
.container p, .container li, .container td { font-family: 'Onest', system-ui, sans-serif; }
.container h1, .container h2, .container h3, .container strong, .container b {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.container a { color: #9dffc0; }
