/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #0fa15a;
    --accent-alt: #15c972;
    --accent-hover: #12b965;
    --accent-glow: rgba(21, 201, 114, 0.55);
    --bg-grad1: #0d3d2a;
    --bg-grad2: #155d3f;
    --bg-grad3: #1d7d54;
    --text: #f0f9f4;
    --text-dim: #a8d4c0;
    --text-faint: #7fb39a;
    --border: #3a7a5f;
    --border-strong: #4a9a6f;
    --radius: 22px;
    --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
    --focus-ring: 0 0 0 2px #0b2219, 0 0 0 6px rgba(21, 201, 114, 0.55);
    --shadow-soft: 0 4px 14px -6px rgba(22, 56, 38, 0.18), 0 2px 4px -2px rgba(22, 56, 38, 0.12);
    --shadow-hover: 0 14px 32px -14px rgba(22, 56, 38, 0.25), 0 4px 10px -4px rgba(22, 56, 38, 0.18);
    --telegram-blue: #0088cc;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.45;
    background: linear-gradient(140deg, var(--bg-grad1), var(--bg-grad2) 55%, var(--bg-grad3) 90%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Упрощенный параллакс фон для лучшей производительности */
.parallax-root {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -20;
    pointer-events: none;
}

.px-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Упрощенные блобы - только 2 вместо 4 */
.px-blobs span {
    position: absolute;
    width: 40vmax;
    height: 40vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(34, 197, 94, 0.8), rgba(15, 161, 90, 0.3) 70%);
    mix-blend-mode: screen;
    filter: blur(12px);
    opacity: 0.5;
    animation: blobFlow 30s ease-in-out infinite;
}

.px-blobs span:nth-child(1) {
    left: -10vmax;
    top: -8vmax;
    animation-duration: 35s;
}

.px-blobs span:nth-child(2) {
    right: -12vmax;
    bottom: -8vmax;
    background: radial-gradient(circle at 60% 40%, rgba(21, 201, 114, 0.9), rgba(15, 161, 90, 0.4) 72%);
    animation-duration: 40s;
    animation-delay: -15s;
}

@keyframes blobFlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3vmax, -2vmax, 0) scale(1.1); }
}

/* Упрощенные волны */
.px-waves::before {
    content: "";
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 70% 25%, rgba(34, 197, 94, 0.3), rgba(15, 161, 90, 0.1) 55%);
    animation: wavesFloat 25s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

@keyframes wavesFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}

/* Упрощенная текстура */
.texture-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;
    background: repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.btn {
    font-size: 16px;
    font-weight: 600;
}

/* Header */
.header {
    background: rgba(13, 61, 42, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: pulse 2s infinite;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.nav-icon {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.nav-link:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-text {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.dropdown-btn:hover::before {
    left: 100%;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.dropdown-icon {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.dropdown-btn:hover .dropdown-icon {
    transform: scale(1.1) rotate(5deg);
}

.dropdown-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(11, 45, 34, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s var(--ease);
    z-index: 1000;
    padding: 1.5rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-section {
    margin-bottom: 1.5rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dim);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.dropdown-item-icon {
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.1) rotate(5deg);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}

.dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--text-faint);
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Online Counter */

.online-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 100, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 128, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: onlinePulse 3s ease-in-out infinite;
}

.online-icon {
    font-size: 0.8rem;
    animation: onlineBlink 2s ease-in-out infinite;
}

.online-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.online-count {
    color: #ffd700;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: countGlow 2s ease-in-out infinite;
}

.telegram-header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 136, 204, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 136, 204, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.telegram-header-btn:hover {
    background: rgba(0, 136, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.telegram-text {
    font-size: 0.95rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
    border-radius: 1px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mobile-nav-link::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 ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    color: var(--text);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-right: 3px solid var(--accent);
    color: var(--text);
}

.mobile-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-dropdown-btn::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 ease;
}

.mobile-dropdown-btn:hover::before {
    left: 100%;
}

.mobile-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px;
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.mobile-dropdown-item::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 ease;
}

.mobile-dropdown-item:hover::before {
    left: 100%;
}

.mobile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateX(10px);
}

.mobile-telegram-section {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-telegram-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0088cc 0%, #006ba6 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    justify-content: center;
}

.mobile-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

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

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

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title-main {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-title-brand {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-icon {
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background: var(--bg-gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-tag {
    background: var(--bg-gray-100);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price Info Section */
.price-info {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.price-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* THC Info Section */
.thc-info {
    padding: 5rem 0;
    background: var(--bg-gray-50);
}

.thc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.thc-column h3 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.thc-column ul {
    list-style: none;
}

.thc-column li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.green {
    background: #10b981;
}

.dot.yellow {
    background: #f59e0b;
}

.icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Catalog Section */
.catalog {
    padding: 5rem 0;
    background: var(--bg-gray-50);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.catalog-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.4s var(--ease);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text);
    min-width: 250px;
    padding-right: 3rem;
}

.search-box input::placeholder {
    color: var(--text-dim);
    opacity: 0.8;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    background: rgba(255, 255, 255, 0.08);
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--bg-gray-100);
    color: var(--primary-green);
}

#sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

#sort-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    background: rgba(255, 255, 255, 0.15);
}

.filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    background: rgba(255, 255, 255, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.product-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 2px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(135deg, #10b981, #059669, #047857),
                      linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    min-height: 300px;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4), 
                0 0 0 3px rgba(255, 215, 0, 0.6);
}

.product-image {
    height: 120px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.product-card:hover .product-image {
    border-color: rgba(255, 215, 0, 0.5);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    padding: 0.5rem;
    box-sizing: border-box;
    border-radius: var(--radius);
}

/* Психоактивные наклейки */
.psychoactive-sticker {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    z-index: 10;
    animation: psychoactivePulse 2s ease-in-out infinite alternate;
}

.psychoactive-sticker.very-strong {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: veryPsychoactivePulse 1.5s ease-in-out infinite alternate;
}

@keyframes psychoactivePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    }
    100% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
    }
}

@keyframes veryPsychoactivePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    100% { 
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.7);
    }
}

.product-placeholder {
    text-align: center;
    color: white;
}

.product-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.product-placeholder-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.product-name {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(255, 215, 0, 0.3),
                 0 1px 3px rgba(0, 0, 0, 1);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.price-uah {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.8);
}

.price-eur {
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.6);
    text-decoration: line-through;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.product-details {
    margin-bottom: 1rem;
}

.product-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.product-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-detail-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 80px;
}

.product-detail-value {
    color: var(--text-dark);
}

.product-options {
    margin-bottom: 1rem;
}

.product-options-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.product-tag {
    background: var(--bg-gray-100);
    color: var(--primary-green);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-minimum-order {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fef3c7;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-gold);
}

.product-description {
    color: #7f8c8d;
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Telegram Button */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006ba6 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Специальные стили для кнопки заказа в карточке товара */
.telegram-btn.order-btn {
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: auto;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a5c3a;
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.telegram-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.telegram-btn:active::before {
    width: 300px;
    height: 300px;
}

.telegram-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.telegram-btn.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.telegram-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.telegram-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.telegram-btn:hover .telegram-icon {
    transform: scale(1.1);
}

.telegram-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.telegram-btn:hover .telegram-logo {
    transform: scale(1.1);
}

.telegram-btn.order-btn .telegram-logo {
    width: 20px;
    height: 20px;
}

.telegram-btn.order-btn .telegram-icon {
    font-size: 1.2rem;
}

.product-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.product-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-gold);
}

.legal-info {
    font-size: 0.875rem;
    line-height: 1.6;
}

.legal-note {
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes cardGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 60%;
}

.skeleton-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.skeleton-image {
    height: 200px;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

/* Scroll animations */
.category-card, .product-card, .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card.animate-in, 
.product-card.animate-in, 
.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.category-card:nth-child(1) { transition-delay: 0.1s; }
.category-card:nth-child(2) { transition-delay: 0.2s; }
.category-card:nth-child(3) { transition-delay: 0.3s; }
.category-card:nth-child(4) { transition-delay: 0.4s; }
.category-card:nth-child(5) { transition-delay: 0.5s; }
.category-card:nth-child(6) { transition-delay: 0.6s; }

/* AI Assistant */
.ai-assistant {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 9999 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ai-assistant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s var(--ease);
    border: 3px solid #b8860b;
    overflow: hidden;
    position: relative;
}

.ai-assistant-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 50%;
    z-index: -1;
    animation: leprechaunGlow 2s ease-in-out infinite alternate;
}

@keyframes leprechaunGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.ai-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
}

.ai-assistant-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    animation: leprechaunDance 0.5s ease-in-out;
}

@keyframes leprechaunDance {
    0%, 100% { transform: scale(1.15) rotate(5deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
}

.ai-assistant-tooltip {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 280px;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(0, 128, 0, 0.95));
    backdrop-filter: blur(20px);
    border: 2px solid #ffd700;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 1001;
}

.ai-assistant-tooltip::before {
    content: '🍀';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 1.5rem;
    background: #ffd700;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #b8860b;
}

.ai-assistant-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.ai-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.ai-tooltip-logo {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
}

.ai-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.ai-title {
    font-weight: 700;
    color: #ffd700;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

.ai-tooltip-content {
    color: #f0f9f4;
    font-size: 0.9rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ai-tooltip-content .cannabinoid-name {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ai-tooltip-content .effect-type {
    color: #90ee90;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ai-tooltip-content .recommendation {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 0, 0.1));
    border-left: 4px solid #ffd700;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* Responsive Design */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .container {
        max-width: 1400px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .dropdown-content {
        min-width: 350px;
    }
    
    .hero-title-brand {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav {
        display: none;
    }
    
    .online-counter {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .online-text {
        display: none;
    }
    
    .online-count {
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .telegram-header-btn .telegram-text {
        display: none;
    }
    
    .telegram-header-btn {
        padding: 0.75rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .ai-assistant {
        bottom: 1rem !important;
        right: 1rem !important;
        z-index: 9999 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ai-assistant-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .ai-assistant-tooltip {
        width: 280px;
        bottom: 60px;
    }
    
    .hero-title-brand {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-controls {
        justify-content: center;
    }
    
    .search-box input {
        min-width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        min-height: auto;
    }
    
    .product-name {
        font-size: 1rem;
        min-height: 2.4em;
    }
    
    .price-uah {
        font-size: 1.25rem;
    }
    
    .telegram-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .dropdown-content {
        min-width: 300px;
        left: -50px;
    }
    
    .thc-grid {
        grid-template-columns: 1fr;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title-brand {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .mobile-menu-content {
        width: 100%;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-name {
        font-size: 0.95rem;
        min-height: 2.2em;
    }
    
    .price-uah {
        font-size: 1.125rem;
    }
    
    .telegram-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .telegram-header-btn {
        padding: 0.5rem;
        min-width: 36px;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced focus states */
button:focus, 
input:focus, 
select:focus, 
a:focus {
    outline: 2px solid var(--primary-green-light);
    outline-offset: 2px;
}

/* AI Assistant Tooltip */

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: linear-gradient(135deg, var(--bg-grad1), var(--bg-grad2));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 320px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-modal {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}

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

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-leprechaun {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: bounce 2s infinite, leprechaunGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.popup-emoji-fallback {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.popup-title {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: shimmer 2s ease-in-out infinite;
}

.popup-text {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.discount-highlight {
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.2em;
    animation: gradientShift 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.popup-code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.8rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.code-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.code-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

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

.popup-note {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.popup-cta {
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #4ecdc4);
    background-size: 200% 200%;
    color: var(--text-dark);
    border: 2px solid #ffd700;
    border-radius: var(--radius);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: gradientShift 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.popup-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    animation-play-state: paused;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes leprechaunGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
        transform: scale(1.05);
    }
}

@keyframes onlinePulse {
    0%, 100% {
        background: rgba(0, 100, 0, 0.2);
        border-color: rgba(0, 128, 0, 0.3);
    }
    50% {
        background: rgba(0, 100, 0, 0.3);
        border-color: rgba(0, 128, 0, 0.5);
    }
}

@keyframes onlineBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes countGlow {
    0%, 100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
    50% {
        text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.5), 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 768px) {
    .popup-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    .popup-close {
        top: 0.3rem;
        right: 0.3rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Product Flavors */
.product-flavors {
    margin: 0.8rem 0;
    padding: 0.7rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.flavors-header {
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.flavors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.flavor-tag {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.flavor-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 0, 0.5);
}

.flavor-tag.more-flavors {
    background: linear-gradient(135deg, #b45309, #92400e);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Substance Name Stickers */
.substance-sticker {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    z-index: 10;
    animation: substanceGlow 2s ease-in-out infinite alternate;
}

.substance-sticker.cbd {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.substance-sticker.h4cbd {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.substance-sticker.cbn {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.substance-sticker.cc9 {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.substance-sticker.cb9 {
    background: linear-gradient(135deg, #7c2d12, #dc2626);
    box-shadow: 0 2px 8px rgba(124, 45, 18, 0.4);
}

.substance-sticker.hhc {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

@keyframes substanceGlow {
    0% { 
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.6);
        transform: scale(1.02);
    }
}

