/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #f8fafc;
    background-color: #0f1318;
    overflow-x: hidden;
}

/* высота фикс-хедера */
[id] {
    scroll-margin-top: 10px;
}

/* CSS Variables - Design System */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --background: #0f1318;
    --surface: #1a1d29;
    --surface-light: #252837;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --accent: #22d3ee;
    --error: #f75c39;
    --success: #29ee22;

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;

    /* Effects */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-hero: linear-gradient(135deg, rgb(0 0 0 / 40%), rgb(26 29 41 / 40%));
    --shadow-primary: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 20px -4px rgba(15, 19, 24, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Utilities */
.left {
    text-align: left;
}

.pleft {
    padding-left: 32px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.animate-element.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(15, 19, 24, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.nav-container.scrolled {
    background: rgba(15, 19, 24, 0.8);
    backdrop-filter: blur(20px);
    /*border-bottom: 1px solid var(--border);*/
    transform: translate(0, -95%);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 140px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem var(--container-padding);
}

.mobile-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-link {
    padding: 0.5rem 0;
}

.mobile-btn {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-large.btn-photo, .btn-large.btn-video {
    position: relative;
    padding-left: 3rem;
}

.btn-large.btn-video::before {
    content: url("../img/video.svg");
    position: absolute;
    left: 1rem;
    transition: var(--transition);
}

.btn-large.btn-photo::before {
    content: url("../img/photo.svg");
    position: absolute;
    /*top: 0;*/
    left: 1rem;
    transition: var(--transition);
}

.btn-large.btn-video:hover::before, .btn-large.btn-photo:hover::before {
    transform: scale(1.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-padding);
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Features Section */
.about-section {
    padding: var(--section-padding);
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 auto 1rem auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    list-style: none;

    li {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    li::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
        margin-right: .5rem;
        /* content: ""; */
        display: block;
        /* background: #0573af; */
        /* width: 10px; */
        /* height: 10px; */
        /* border-radius: 5px; */
        position: relative;
        left: -1rem;
        top: 18px;
    }

}

.features-grid {
}

.feature-cards {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    padding-bottom: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    max-width: 354px;

    img {
        width: 100%;
        height: auto;
        min-height: 63.33%;
        object-fit: cover;
    }
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--surface);
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;

    img {
        border-radius: 10px;
        padding: 1rem;
        border: 1px solid var(--primary);
        background: var(--text-primary);
        width: 120px;

        /* изначально — без blur, полупрозрачно */
        opacity: .8;
        filter: blur(0px);

        /* плавные переходы */
        transition:var(--transition);

        will-change: opacity, filter, transform;

        &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-primary);
            opacity: 1;
            filter: blur(0px); // остаётся без блюра
        }
    }

    /* блюрим и приглушаем всех, когда курсор НА какой-то картинке */
    &:has(img:hover) {
        img {
            opacity: .4;
            filter: blur(2px);
            transform: translateY(0) skewY(-2deg) scale(.8);
            box-shadow: none;

        }

        /* активная — чёткая и яркая */
        img:hover {
            opacity: 1;
            filter: blur(0px);
            transform: translateY(-2px);
            box-shadow: var(--shadow-primary);
        }
    }
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    /*background: var(--gradient-primary);*/
    min-height: 100vh;
    background: url("../img/SoulDuo-StandingOvations.jpg") center/cover no-repeat;
    text-align: center;
}

.cta-content {
    margin: 0 auto;
    padding: var(--container-padding);
    border-radius: 16px;
    background: var(--gradient-hero);
    backdrop-filter: blur(8px);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-primary);

    a {
        color: var(--text-primary);
    }
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-primary {
    background: white;
    color: var(--surface);
}

.cta-section .btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-section .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-title {
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-item {
    .contact-item-block {
        background: var(--surface);
        box-shadow: 2px 2px 20px var(--surface);
        border-radius: 10px;
        padding: 10px;
    }
}

/*form*/
#order-form {
    scroll-margin-top: 150px;
    font-size: 1.125rem;
}

#order-form label {
    line-height: 1.5em;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 3px;
    stroke: var(--text-primary);
    stroke-width: 0.1;
    /* z-index: 1; */
    fill: var(--text-primary);
}


input[type="text"],
input[type="tel"],
input[type="file"],
textarea {
    width: 100%;
    padding: 15px 15px 15px 35px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--surface);
    opacity: .85;
    font-size: 1.12rem;
}

input::placeholder, textarea::placeholder {
    color: var(--surface);
    opacity: .6;
    transition: opacity .2s ease-in-out;
    font-size: 1.1rem;
    padding-left: 5px;
    /*color: var(--primary);*/
}

input:focus::placeholder, textarea:focus::placeholder {
    opacity: .3;
}

input[type="file"] {
    border: none;
}

textarea {
    resize: vertical;
}

.message, .captcha-error {
    margin: 10px 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    border-radius: 5px;
    font-size: 0;
    transition: all 0.5s ease-in-out;
}

.success {
    background-color: var(--success);
    color: var(--text-primary);
}

.error,
.captcha-error {
    background-color: var(--error);
    color: var(--text-primary);
}

.show-message {
    opacity: 1;
    visibility: visible;
    padding: 10px;
    font-size: 14px;
}

.captcha__img--btn {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
    margin: 20px 0;
}

.captcha__img--btn img {
    max-height: 50px;
}

.captcha__img--btn button {
    background: url("../img/update.svg") no-repeat center center;
    fill: #fff;
    display: block;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    border: none;
}

.captcha__img--btn button:hover {
    transform: scale(1.1);
}

/* --- Кнопка c лоудером --- */

.submit-btn:disabled {
    cursor: default;
    opacity: 0.85;
    transform: translateY(0);
}

.submit-btn .btn-text {
    display: inline-block;
    transition: opacity .18s ease;
    /*display: none;*/
}

.submit-btn .btn-loading {
    display: none;
    gap: 10px;
    width: 98%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-width: 150px;
}

.submit-btn.submitBtn .btn-text {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.submit-btn.submitBtn .btn-loading {
    display: flex;

    svg {
        position: absolute;
        right: -10px;
    }
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/*form*/

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 140px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-social {
    display: flex;
    width: 100%;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;

    a {
        text-decoration: none;
        transition: var(--transition);

        &:hover {
            scale: 1.1;
        }
    }
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

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

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

/* Universal Media Lightbox */

.video-preloader {
    position: absolute;
    inset: 0;
    display: none; /* по умолчанию скрыт */
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 5;
}

.video-preloader img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Спиннер для случая без постера */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* общий fade-out для прелоадеров */
.video-preloader,
.photo-preloader {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-preloader.hidden,
.photo-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.photo-preloader .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}


.media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.5);*/
    background: var(--gradient-hero);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.media-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    /*width: 90%;*/
    /*max-width: 95vw;*/
    /*max-height: 90vh;*/
    /*background: #000;*/
    padding: .5rem;
    /*border-radius: 10px;*/
    /*overflow: hidden;*/
}

.lightbox-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: none;
}

.photo-slider, #lightboxVideo {
    position: relative;
    display: none;
    overflow: hidden;
    width: 96vw;
    height: 90vh;
    justify-content: center;
    align-items: center;

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        cursor: pointer;
        z-index: 1;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        position: absolute;
        display: flex;
        gap: 0.5rem;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        animation: pulse 2s infinite;
        transition: var(--transition);
    }

    .slider-dots .dot.active {
        background: #fff;
    }

}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.slider-track img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* фото всегда целиком видно */
    border-radius: 8px;
}

/*policy*/
/* Ссылка-лейбл в футере */
.policy-link {
    cursor: pointer;
    text-decoration: underline;
}

/* Блок политики — свернутый по умолчанию */
.modal-window {
    display: block;
    box-sizing: border-box;

    max-height: 0; /* спрятан */
    overflow: hidden;
    opacity: 0;
    pointer-events: none;

    padding: 0; /* ВАЖНО: без отступов в закрытом состоянии */
    margin-top: 0;

    transition: max-height .45s ease, opacity .3s ease,
    padding .3s ease, border-color .3s ease;
}

/* Контент внутри */
.modal-window > div {
    padding: var(--container-padding);
    /*border-radius: 16px;*/
    background: var(--surface-light);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

/* Открытое состояние: когда чекбокс отмечен */
#policy-toggle:checked ~ #policy {
    max-height: 4000px; /* достаточно большой лимит */
    opacity: 1;
    pointer-events: auto;
    margin-top: 1rem;
}

/* Крестик — это label, переключающий чекбокс */
.modal-close {
    float: right;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 10px;
    line-height: 1;
    background: var(--surface-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-muted);
    background: var(--text-primary);
}

/* Доп. косметика */
#policy h1 {
    margin-top: 0;
}

#policy .updated {
    color: var(--text-muted, #646b7a);
    margin-bottom: 16px;
}

#policy section {
    margin: 14px 0;
}

#policy code {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 2px 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {

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

    .slider-btn {
        /*display: none;*/
    }
}
