/* === VARIABLES & RESET === */
:root {
    /* Colors - Light Theme (Apple Style) */
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #f8f8fa;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #000000;
    --accent-hover: #333333;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow: rgba(0, 0, 0, 0.08);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 60px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* === DARK THEME === */
body.dark {
    --bg-color: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1c1c1e;
    --text-main: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    --glass: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.4);
}

body.dark .header {
    background: var(--glass);
    border-bottom-color: var(--glass-border);
}

body.dark .hero {
    background: radial-gradient(circle at center, #0a0a0a 0%, #141414 100%);
}

body.dark .btn--small {
    background: var(--bg-card);
    color: var(--text-main);
}

body.dark .btn--small:hover {
    background: #2a2a2a;
}

body.dark .bento-card {
    background: var(--bg-card);
    border-color: var(--card-border);
}

body.dark .modal,
body.dark .gallery-modal {
    background: var(--bg-secondary);
}

body.dark .input-field {
    background: var(--bg-card);
    border-color: var(--card-border);
    color: var(--text-main);
}

body.dark .auth-tabs {
    background: var(--bg-card);
}

body.dark .auth-tab.active {
    background: var(--bg-secondary);
}

/* === RTL SUPPORT === */
html[dir="rtl"] .header__container,
html[dir="rtl"] .nav,
html[dir="rtl"] .header__actions,
html[dir="rtl"] .bento-card__actions,
html[dir="rtl"] .bento-card__meta,
html[dir="rtl"] .footer__container,
html[dir="rtl"] .how-steps {
    flex-direction: row-reverse;
}

html[dir="rtl"] .how-step__arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .modal__close {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .burger {
    margin-left: 0;
    margin-right: 12px;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
}

/* === NAVIGATION === */
.nav--desktop {
    display: flex;
    gap: 30px;
}

.nav--mobile {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav--mobile.active {
    transform: translateY(0);
    opacity: 1;
}

.nav__link {
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav__link:hover {
    opacity: 1;
}

/* === BURGER MENU === */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav--desktop {
        display: none;
    }

    .nav--mobile {
        display: flex;
    }

    .burger {
        display: flex;
    }

    #login-btn {
        display: none;
    }
}

/* === LANGUAGE SELECTOR === */
.lang-selector {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px var(--shadow);
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lang-option:hover {
    background: var(--bg-secondary);
}

/* === UI ELEMENTS === */
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    border-radius: 99px;
    transition: all var(--transition-normal);
}

.btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 18px;
    border-radius: 50%;
}

.btn--icon:hover {
    background: var(--bg-card);
    transform: scale(1.05);
}

.btn--small {
    padding: 8px 16px;
    font-size: 13px;
    background: #f5f5f7;
    color: var(--text-main);
}

.btn--small:hover {
    background: #e8e8ed;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-color);
    padding: 12px 24px;
}

.btn--primary:hover {
    background: var(--accent-hover);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at center, #ffffff 0%, #f5f5f7 100%);
    transition: background var(--transition-normal);
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero__eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: -20px;
}

.hero__visual {
    position: relative;
    margin: 20px 0;
}

.hero__logo-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.hero__logo-img:hover {
    transform: scale(1.02);
}

.hero__subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-main);
    max-width: 600px;
    line-height: 1.4;
    margin-top: -10px;
}

/* --- Premium Button --- */
.btn--premium {
    margin-top: 20px;
    padding: 18px 48px;
    font-size: 18px;
    background: linear-gradient(145deg, #4a4a4a, #2b2b2b);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn--premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn--premium:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #5a5a5a, #333333);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn--premium:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(20px, 20px);
}

.btn--premium:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === CATEGORY FILTER === */
.category-filter-wrapper {
    text-align: center;
    margin-bottom: 48px;
}

.category-filter__hint {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.category-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-pill {
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.category-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--text-secondary);
}

.category-pill:hover::before {
    left: 100%;
}

.category-pill.active {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.dark .category-pill.active {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    color: #0a0a0a;
}

.category-pill.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* === SERVICES (BENTO GRID) === */
.services {
    padding: 60px 0;
    background: var(--bg-color);
    transition: background var(--transition-normal);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

/* Bento Card Base */
.bento-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--card-border);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow);
}

/* Card Sizes */
.bento-card--large {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card--small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 160px;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-grid .bento-card--large:nth-child(1) {
        grid-column: span 2;
    }

    .bento-grid .bento-card--large:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Content */
.bento-card__content {
    position: relative;
    z-index: 1;
}

.bento-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bento-card__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
}

/* Icon for small cards */
.bento-card__icon {
    font-size: 48px;
    opacity: 0.9;
    transition: transform 0.3s;
}

.bento-card:hover .bento-card__icon {
    transform: scale(1.1);
}

/* Product Card Variant */
.bento-card--product {
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card with cover image */
.bento-card--has-cover {
    color: #fff;
    border-radius: 20px;
    /* Background is handled by inner elements now */
    border: none;
    /* Remove border for cleaner look with full img */
}

.bento-card__background-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    /* Match card radius */
}

.bento-card__background-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1.5px);
    transform: scale(1.02);
    /* Compensate blur edges */
}

.bento-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    transition: background 0.3s ease;
    border-radius: 20px;
}

.bento-card:hover .bento-card__overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.95) 100%);
}

.bento-card__content,
.bento-card__footer {
    position: relative;
    z-index: 2;
}

.bento-card--has-cover .bento-card__title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.bento-card--has-cover .bento-card__desc {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bento-card--has-cover .bento-card__price {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.bento-card--has-cover .bento-card__time {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bento-card--has-cover .bento-card__footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.bento-card--has-cover .btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

.bento-card--has-cover .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.bento-card__emoji {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.bento-card__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.bento-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bento-card__price {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.bento-card__time {
    font-size: 13px;
    color: var(--text-secondary);
}

.bento-card__actions {
    display: flex;
    gap: 8px;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
}

.btn--ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* === ABOUT SECTION === */
.about {
    padding: 60px 0;
    background: var(--bg-secondary);
    transition: background var(--transition-normal);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--shadow);
}

.about-card__icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.about-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.about-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* How it works */
.section-subtitle {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-main);
}

.how-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.how-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

.how-step__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
}

.how-step__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.how-step__arrow {
    font-size: 24px;
    color: var(--text-secondary);
    animation: pulse 2s infinite;
}

@media (max-width: 700px) {
    .how-step__arrow {
        display: none;
    }

    .how-steps {
        flex-direction: column;
    }
}

/* === GALLERY MODAL === */
.gallery-modal {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.gallery-item {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.gallery-item.active {
    display: flex;
}

.gallery-item img,
.gallery-item video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    object-fit: contain;
}

.gallery-caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.gallery-nav__btn {
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background var(--transition-fast);
    color: var(--text-main);
}

.gallery-nav__btn:hover {
    background: var(--bg-card);
}

.gallery-nav__counter {
    font-size: 14px;
    color: var(--text-secondary);
}

.gallery-file {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.gallery-file a {
    color: var(--text-main);
    font-weight: 500;
}

/* Visual for large cards */
.bento-card__visual {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Music Waves Animation */
.bento-visual__music {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.music-wave {
    width: 12px;
    background: linear-gradient(180deg, #666 0%, #999 100%);
    border-radius: 6px;
    animation: wave 1.2s ease-in-out infinite;
}

.music-wave:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.music-wave:nth-child(2) {
    height: 70%;
    animation-delay: 0.1s;
}

.music-wave:nth-child(3) {
    height: 100%;
    animation-delay: 0.2s;
}

.music-wave:nth-child(4) {
    height: 60%;
    animation-delay: 0.3s;
}

.music-wave:nth-child(5) {
    height: 30%;
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

/* Photo Animation */
.photo-frame {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.photo-icon {
    font-size: 36px;
}

.photo-arrow {
    font-size: 24px;
    color: var(--text-secondary);
    animation: pulse 2s infinite;
}

/* === CATALOG & FOOTER === */
.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
}

.catalog {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.footer {
    padding: 50px 0;
    border-top: 1px solid var(--card-border);
    background: var(--bg-color);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.footer__copy {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer__link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--text-main);
}

/* === MODAL & AUTH === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: background var(--transition-normal);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.modal__close:hover {
    color: var(--text-main);
}

.modal__title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--bg-color);
    color: var(--text-main);
    box-shadow: 0 2px 5px var(--shadow);
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: var(--bg-color);
    color: var(--text-main);
    transition: border var(--transition-fast), background var(--transition-fast);
}

.input-field:focus {
    border-color: var(--accent);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* === ORDER SUCCESS MODAL === */
.modal--success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: white;
    border-radius: 50%;
    font-size: 40px;
    font-weight: bold;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-msg {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.success-order-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.success-contact {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* === UTILITY === */
.hidden {
    display: none !important;
}

.loading,
.error,
.empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.error {
    color: #ef4444;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero__subtitle {
        font-size: 20px;
    }

    .hero__logo-img {
        max-width: 300px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn--premium {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* === TRAINING PROMO SECTION (PREMIUM) === */
.training-promo {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    overflow: hidden;
    position: relative;
}

/* Section Header */
.training-header {
    text-align: center;
    margin-bottom: 32px;
}

.training-header__badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
    margin-bottom: 16px;
}

.training-header__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-main);
}

.training-header__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(90deg, #c8ff00, #a855f7, #c8ff00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Premium Bento Layout */
.training-bento--premium {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

/* Hero Card */
.training-bento__hero {
    background: linear-gradient(145deg, #c8ff00 0%, #a8e600 50%, #7cb800 100%);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #000;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 4px 20px rgba(200, 255, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.training-bento__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.training-bento__hero:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 30px 60px rgba(200, 255, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.training-bento__hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.training-bento__hero-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.training-bento__hero h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.training-bento__hero p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
    line-height: 1.4;
}

.training-bento__hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.training-bento__hero-cta:hover {
    background: #000;
    transform: translateX(4px);
}

.training-bento__hero-cta svg {
    transition: transform 0.3s ease;
}

.training-bento__hero:hover .training-bento__hero-cta svg {
    transform: translateX(4px);
}

/* Floating Icons */
.training-bento__hero-visual {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    font-size: 48px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
}

.float-icon--1 {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.float-icon--2 {
    top: 30%;
    right: 0;
    animation-delay: 0.5s;
}

.float-icon--3 {
    bottom: 20%;
    left: 0;
    animation-delay: 1s;
}

.float-icon--4 {
    bottom: 0;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Feature Cards */
.training-bento__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card {
    padding: 18px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card__icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Gradient Card */
.feature-card--gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.feature-card--gradient:hover {
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.25);
}

/* Purple Card */
.feature-card--purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
}

.feature-card--purple:hover {
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.35);
}

/* Dark Card */
.feature-card--dark {
    background: linear-gradient(145deg, #1f1f1f 0%, #0a0a0a 100%);
    color: #fff;
    border: 1px solid #333;
}

.feature-card--dark:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

/* Format Text (inline) */
.training-format-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 2;
}

.training-format-text span {
    white-space: nowrap;
}

.training-format-text .separator {
    color: var(--card-border);
    opacity: 0.5;
}

/* Training Section Responsive */
@media (max-width: 900px) {
    .training-bento--premium {
        grid-template-columns: 1fr;
    }

    .training-bento__hero {
        padding: 36px;
    }

    .training-bento__hero-content {
        max-width: 100%;
    }

    .training-bento__hero-visual {
        display: none;
    }

    .training-bento__features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .training-header__title {
        font-size: 28px;
    }

    .training-bento__features {
        flex-direction: column;
    }

    .feature-card {
        min-width: auto;
    }

    .training-formats {
        gap: 8px;
    }

    .format-pill {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* === HOW IT WORKS - PREMIUM TIMELINE === */
.how-section {
    margin-top: 48px;
    text-align: center;
}

.how-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-top: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.how-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 240px;
    padding: 24px 20px;
    background: var(--bg-color);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    position: relative;
}

.how-timeline__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px var(--shadow);
    border-color: rgba(168, 85, 247, 0.3);
}

.how-timeline__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: 16px;
    font-size: 26px;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.how-timeline__content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.how-timeline__content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.how-timeline__line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #c8ff00 0%, #a855f7 100%);
    align-self: center;
    margin-top: 44px;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .how-timeline {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .how-timeline__line {
        width: 2px;
        height: 40px;
        margin-top: 0;
    }

    .how-timeline__item {
        max-width: 100%;
        width: 100%;
    }
}

/* === FOOTER EXTENDED === */
.footer__col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer__container {
    gap: 48px;
}

@media (max-width: 600px) {
    .footer__container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-color);
    border-top: 1px solid var(--card-border);
    padding: 16px 20px;
    box-shadow: 0 -10px 40px var(--shadow);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner__content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    font-size: 14px;
    color: var(--text-main);
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 600px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* === HEADER PHONE === */
.header__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header__phone:hover {
    opacity: 0.7;
}

.header__phone-icon {
    font-size: 16px;
}

.header__phone-number {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .header__phone-number {
        display: none;
    }
}

.btn--header {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .btn--header {
        display: none;
    }
}

/* === VERTICAL PRODUCT CARDS === */
.bento-card--product {
    min-height: 360px;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-card--product .bento-card__content {
    margin-top: auto;
}

.bento-card--product .bento-card__desc {
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cards without cover - subtle gradient */
.bento-card--product:not(.bento-card--has-cover) {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

/* === ORDER MODAL STYLES === */
.modal--order {
    max-width: 420px;
}

.modal__product-info {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.modal__product-info:empty {
    display: none;
}

.modal__product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.modal__product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* Telegram Bonus Box */
.telegram-bonus {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1) 0%, rgba(0, 136, 204, 0.05) 100%);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

body.dark .telegram-bonus {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 136, 204, 0.05) 100%);
}

.telegram-bonus__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.telegram-bonus p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.telegram-bonus strong {
    color: #0088cc;
}

/* Telegram Button */
.btn--telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    border: none;
    font-size: 15px;
    padding: 14px 24px;
}

.btn--telegram:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0088cc 100%);
    transform: translateY(-1px);
}

.btn--telegram svg {
    flex-shrink: 0;
}

/* Phone alternative in modal */
.modal__phone-alt {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.modal__phone-alt a {
    color: var(--accent);
    font-weight: 500;
}

/* Footer phone */
.footer__phone {
    font-weight: 500;
}

/* === RESPONSIVE GRID ADJUSTMENTS === */
@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}