﻿
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500&display=swap');

* {
    margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: #ffffff;
line-height: 1.5;
background: #000000;
font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
opacity: 1;
}

html {
    overflow: overlay;
}

/* Кастомный минималистичный скроллбар поверх контента */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Blur overlay для загрузки страницы */
.blur-overlay {
    position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
background: rgba(0, 0, 0, 0.8);
z-index: 9999;
pointer-events: none;
opacity: 0;
display: none;
}


/* Анимация появления элементов при скролле */
/* Header */
header {
    position: fixed;
top: 0;
width: 100%;
background: transparent;
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
z-index: 1000;
padding: 36px 24px;
border-bottom: none;
opacity: 0;
transform: translateY(-100%);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.8s ease;
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) calc(100% - 30px), rgba(0, 0, 0, 0.98) calc(100% - 28.5px), rgba(0, 0, 0, 0.95) calc(100% - 27px), rgba(0, 0, 0, 0.93) calc(100% - 25.5px), rgba(0, 0, 0, 0.9) calc(100% - 24px), rgba(0, 0, 0, 0.88) calc(100% - 22.5px), rgba(0, 0, 0, 0.85) calc(100% - 21px), rgba(0, 0, 0, 0.84) calc(100% - 19.5px), rgba(0, 0, 0, 0.82) calc(100% - 18px), rgba(0, 0, 0, 0.8) calc(100% - 16.5px), rgba(0, 0, 0, 0.78) calc(100% - 15px), rgba(0, 0, 0, 0.7) calc(100% - 13.5px), rgba(0, 0, 0, 0.5) calc(100% - 12px), rgba(0, 0, 0, 0.4) calc(100% - 10.5px), rgba(0, 0, 0, 0.1) calc(100% - 9px), rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) calc(100% - 30px), rgba(0, 0, 0, 0.98) calc(100% - 28.5px), rgba(0, 0, 0, 0.95) calc(100% - 27px), rgba(0, 0, 0, 0.93) calc(100% - 25.5px), rgba(0, 0, 0, 0.9) calc(100% - 24px), rgba(0, 0, 0, 0.88) calc(100% - 22.5px), rgba(0, 0, 0, 0.85) calc(100% - 21px), rgba(0, 0, 0, 0.84) calc(100% - 19.5px), rgba(0, 0, 0, 0.82) calc(100% - 18px), rgba(0, 0, 0, 0.8) calc(100% - 16.5px), rgba(0, 0, 0, 0.78) calc(100% - 15px), rgba(0, 0, 0, 0.7) calc(100% - 13.5px), rgba(0, 0, 0, 0.5) calc(100% - 12px), rgba(0, 0, 0, 0.4) calc(100% - 10.5px), rgba(0, 0, 0, 0.1) calc(100% - 9px), rgba(0, 0, 0, 0) 100%);
}

header.visible {
    opacity: 1;
transform: translateY(0);
}

nav {
    display: flex;
justify-content: center;
align-items: center;
max-width: 1440px;
margin: -10px auto;
}

.nav-links {
    display: flex;
gap: 40px;
list-style: none;
align-items: center;
margin-top: -10px;
}

.nav-links a {
    text-decoration: none;
color: rgba(255, 255, 255, 0.5);
font-size: 16px;
font-weight: 400;
transition: color 0.2s ease;
letter-spacing: 0.01em;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: rgba(255, 255, 255, 1);
}

.nav-links a.active {
    color: rgba(255, 255, 255, 1);
    font-size: inherit;
}

.nav-icon {
    display: none;
}

.nav-links a svg {
    flex-shrink: 0;
}

.nav-login-btn {
    position: absolute;
right: 24px;
top: 16px;
color: rgba(255, 255, 255, 0.5);
font-size: 16px;
font-weight: 400;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
text-decoration: none;
cursor: pointer;
transition: color 0.2s ease;
white-space: nowrap;
}

.nav-login-btn:hover {
    color: rgba(255, 255, 255, 1);
}

/* Modal Styles */
.page-fade-overlay {
    position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0);
z-index: 9998;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 5s ease-in-out, background 5s ease-in-out;
}

.page-fade-overlay.active {
    opacity: 1;
visibility: visible;
background: rgba(0, 0, 0, 1);
}

.page-fade-overlay.fast-transition {
    transition: opacity 0.5s ease-in-out, background 0.5s ease-in-out;
}

body.fading {
    overflow: hidden;
filter: blur(0px);
transition: filter 5s ease-in-out;
}

body.fading.active {
    filter: blur(15px);
}

body.fading.fast-transition {
    transition: filter 0.5s ease-in-out;
}

.modal-overlay {
    position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
visibility: visible;
}

.modal-overlay.showing-success {
    z-index: 100001 !important;
}

.modal-content {
    position: relative;
z-index: 1000;
}

.close-login-btn {
    position: fixed;
top: 20px;
right: 20px;
width: 44px;
height: 44px;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
color: #ffffff;
cursor: pointer;
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s ease, background 0.2s ease;
opacity: 1;
}

.close-login-btn:hover {
    opacity: 1;
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
}

.close-login-btn:active {
    opacity: 0.8;
}

.close-login-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: block;
margin: 0 auto;
}

.close-login-btn:hover svg {
    transform: rotate(90deg);
}

.modal-content {
    background: transparent;
backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 32px;
max-width: 480px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.9) translateY(20px);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-title {
    font-size: 32px;
font-weight: 400;
color: #ffffff;
margin-bottom: 4px;
text-align: center;
letter-spacing: -0.5px;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-subtitle {
    font-size: 16px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 20px;
text-align: center;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-step {
    animation: fadeIn 0.3s ease;
position: relative;
z-index: 1;
}

#successStep {
    z-index: 1000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
transform: translateY(10px);
}
    to {
        opacity: 1;
transform: translateY(0);
}
}

.modal-change-phone {
    text-align: center;
margin-top: 0;
margin-bottom: -8px;
font-size: 14px;
}

.modal-change-phone a {
    color: rgba(255, 255, 255, 0.4);
text-decoration: none;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
transition: color 0.2s ease;
}

.modal-change-phone a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.modal-form {
    display: flex;
flex-direction: column;
gap: 16px;
}

.modal-input {
    width: 100%;
padding: 16px 20px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
color: #ffffff;
font-size: 16px;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
transition: all 0.2s ease;
box-sizing: border-box;
text-align: left;
}

.modal-input:focus {
    outline: none;
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.code-input-container {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
transform: translateY(-10px);
}
    to {
        opacity: 1;
transform: translateY(0);
}
}

.code-inputs-wrapper {
    display: flex;
gap: 12px;
justify-content: center;
}

.code-digit {
    width: 50px;
height: 50px;
text-align: center;
font-size: 24px;
font-weight: 500;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
color: #ffffff;
caret-color: transparent;
transition: all 0.2s ease;
box-sizing: border-box;
}

.code-digit:focus {
    outline: none;
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
}

.code-digit.filled {
    border-color: rgba(255, 255, 255, 0.3);
}

.code-digit.error {
    border-color: rgba(255, 0, 0, 0.8);
animation: errorPulse 1s ease-out;
}

@keyframes errorPulse {
    0% {
        border-color: rgba(255, 0, 0, 0.8);
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
}
    50% {
        border-color: rgba(255, 0, 0, 1);
box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.2);
}
    100% {
        border-color: rgba(255, 0, 0, 0.3);
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}

.loading-animation {
    display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
margin-bottom: 30px;
}

.loading-spinner {
    display: flex;
gap: 10px;
align-items: center;
justify-content: center;
}

.spinner-circle {
    width: 14px;
height: 14px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.9);
animation: loadingWave 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.3);
}

.spinner-circle:nth-child(1) {
    animation-delay: 0s;
}

.spinner-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingWave {
    0%, 100% {
        transform: translateY(0) scale(1);
opacity: 0.6;
}
    50% {
        transform: translateY(-20px) scale(1.2);
opacity: 1;
}
}

.modal-btn {
    width: 100%;
padding: 16px 24px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
color: rgba(255, 255, 255, 0.9);
font-size: 16px;
font-weight: 400;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
cursor: pointer;
transition: all 0.3s ease;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: rgba(255, 255, 255, 1);
}

.modal-btn:active {
    transform: scale(0.98);
}

/* Hero Section */
.hero {
    margin-top: 0;
padding: 140px 24px 120px;
text-align: center;
background: #000000;
color: #ffffff;
position: relative;
overflow: hidden;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

.hero-video {
    position: absolute;
top: -300px;
left: 0;
width: 100%;
height: calc(100% + 300px);
object-fit: cover;
object-position: top;
z-index: 0;
opacity: 0;
transition: opacity 1.5s ease-out;
}

.hero-video.visible {
    opacity: 0.4;
}

.hero::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
pointer-events: none;
z-index: 1;
}

.hero::after {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: transparent;
pointer-events: none;
z-index: 1;
}

.hero-wordmark {
    position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
width: 538px;
max-width: 90vw;
pointer-events: auto;
margin: 0;
padding: 0;
cursor: none;
opacity: 0;
transition: opacity 1.5s ease-out;
}

.hero-wordmark.visible {
    opacity: 1;
}

.flow-container {
    position: relative;
width: 100%;
height: 100%;
}

.flow-base-img {
    width: 100%;
height: auto;
display: block;
position: relative;
z-index: 1;
}

.flow-canvas {
    position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
mix-blend-mode: screen;
}

.flow-canvas.active {
    opacity: 1;
}


@media (max-width: 768px) {
    .hero-wordmark {
        width: 358px;
top: 45%;
}
}

.hero-content {
    max-width: 900px;
margin: 0 auto;
position: relative;
z-index: 4;
margin-top: 200px;
opacity: 0;
transform: translateY(20px);
transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.hero-content.visible {
    opacity: 1;
transform: translateY(0);
}

.update-badge {
    display: inline-block;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
font-weight: 400;
margin-bottom: 32px;
color: #ffffff;
letter-spacing: 0.3px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 80px;
font-weight: 300;
margin-bottom: 24px;
letter-spacing: -3px;
line-height: 1.1;
color: #ffffff;
}

.hero h2 {
    font-size: 32px;
font-weight: 400;
margin-bottom: 32px;
color: rgba(255, 255, 255, 0.87);
letter-spacing: -0.5px;
}

.hero p {
    font-size: 20px;
margin-bottom: 16px;
color: rgba(255, 255, 255, 0.87);
font-weight: 400;
}

.create-badge {
    display: inline-block;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
padding: 8px 16px;
border-radius: 20px;
font-size: 0.9rem !important;
font-weight: 400;
color: #ffffff;
letter-spacing: 0.3px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .subtext {
    font-size: 14px;
margin-top: 24px;
background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.45) 20%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0.45) 80%,
        rgba(255, 255, 255, 0.4) 100%
    );
background-size: 300% 100%;
    -webkit-background-clip: text;
background-clip: text;
    -webkit-text-fill-color: transparent;
color: transparent;
animation: smoothShimmer 4s ease-in-out infinite;
font-weight: 500;
letter-spacing: 0.5px;
}

@keyframes smoothShimmer {
    0% {
        background-position: -300% 0;
}
    100% {
        background-position: 300% 0;
}
}

/* Gradient Transition */
.gradient-transition {
    position: relative;
height: 200px;
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.7) 70%, #000000 100%);
margin-top: -200px;
z-index: 1;
pointer-events: none;
}

/* Intro Section */
.intro-section {
    background: #000000;
padding: 140px 24px 80px;
text-align: center;
position: relative;
}

.intro-section::after {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 400px;
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 80%, #000000 100%);
pointer-events: none;
z-index: 1;
}

.intro-content {
    max-width: 900px;
margin: 0 auto;
position: relative;
z-index: 2;
padding-top: 40px;
padding-bottom: 0;
}

.intro-title {
    font-size: 56px;
font-weight: 300;
color: #ffffff;
margin-bottom: 24px;
letter-spacing: -1.5px;
line-height: 1.2;
}

.intro-description {
    font-size: 20px;
color: rgba(255, 255, 255, 0.87);
line-height: 1.6;
font-weight: 400;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 120px 24px 0;
}

    .intro-title {
        font-size: 36px;
letter-spacing: -1px;
}

    .intro-description {
        font-size: 18px;
}
}

/* Main Content */
.container {
    max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}

.section {
    padding: 60px 0;
background: #000000;
position: relative;
}

#overview {
    padding-top: 240px;
}

#overview .section-title {
    margin-top: 0;
}

#capabilities::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 500px;
background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 10%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.08) 92%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
pointer-events: none;
}

#capabilities::after {
    display: none;
}

#capabilities {
    position: relative;
overflow: hidden;
background: #000000;
z-index: 1;
}

#capabilities .container {
    position: relative;
z-index: 2;
}

.section-title {
    font-size: 64px;
font-weight: 300;
text-align: center;
margin-bottom: 24px;
letter-spacing: -2px;
line-height: 1.2;
color: #ffffff;
}

.section-subtitle {
    text-align: center;
font-size: 20px;
color: rgba(255, 255, 255, 0.7);
max-width: 800px;
margin: 0 auto 48px;
font-weight: 400;
line-height: 1.6;
}

/* Category Buttons */
/* Search Input */
.search-container {
    display: flex;
justify-content: flex-start;
margin-bottom: 24px;
position: relative;
width: 100%;
}

.search-input-wrapper {
    display: flex;
align-items: center;
width: 100%;
position: relative;
}

.search-input {
    width: 100%;
padding: 12px 24px;
padding-right: 100px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
color: rgba(255, 255, 255, 0.7);
font-size: 20px;
font-weight: 400;
line-height: 1.6;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
transition: all 0.3s ease;
outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:hover {
    background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: rgba(255, 255, 255, 0.9);
}

.search-btn {
    position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%) translateX(10px);
padding: 10px 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
color: rgba(255, 255, 255, 0.7);
font-size: 16px;
font-weight: 400;
font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
cursor: pointer;
transition: all 0.3s ease;
opacity: 0;
visibility: hidden;
white-space: nowrap;
z-index: 10;
pointer-events: none;
}

.search-btn.visible {
    opacity: 1 !important;
visibility: visible !important;
transform: translateY(-50%) translateX(0) !important;
pointer-events: auto !important;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: rgba(255, 255, 255, 0.9);
}

.search-btn:active {
    transform: translateX(0) scale(0.98);
}

.categories {
    display: flex;
flex-wrap: wrap;
gap: clamp(8px, 1.5vw, 12px);
margin-bottom: clamp(40px, 8vw, 60px);
justify-content: center;
}

.category-btn {
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: clamp(16px, 2.5vw, 24px);
color: rgba(255, 255, 255, 0.7);
font-size: clamp(14px, 2vw, 20px);
font-weight: 400;
line-height: 1.6;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}

.category-btn.active {
    background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: rgba(255, 255, 255, 0.7);
}

.search-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(16px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-btn {
    padding: clamp(6px, 1.2vw, 10px) clamp(12px, 2.5vw, 20px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(12px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 1.8vw, 16px);
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.search-btn.visible {
    display: flex !important;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Video Grid */
.video-grid-wrapper {
    overflow: hidden;
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
padding: 20px 0 120px;
}

.video-grid {
    display: flex;
gap: 16px;
animation: scroll-left 240s linear infinite;
width: fit-content;
}

.video-grid:hover {
    animation-play-state: paused;
}

.video-grid.paused {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
}
    100% {
        transform: translateX(-50%);
}
}

.video-card {
    width: 300px;
aspect-ratio: 9/16;
background: transparent !important;
backdrop-filter: none;
    -webkit-backdrop-filter: none;
border-radius: 12px;
cursor: pointer;
transition: transform 0.3s ease, background 0.3s ease;
border: none;
position: relative;
flex-shrink: 0;
z-index: 1;
pointer-events: auto;
}

.video-card:hover {
    transform: scale(1.05);
background: transparent !important;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: transparent;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(128, 128, 128, 0.3) 25%,
        rgba(144, 144, 144, 0.4) 50%,
        rgba(128, 128, 128, 0.3) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
    display: block;
    opacity: 1;
}

.video-thumbnail.has-video {
    background-image: none !important;
    animation: none !important;
    background: transparent !important;
}

.video-thumbnail.video-loaded {
    background-image: none !important;
    animation: none !important;
    background: transparent !important;
}

.video-thumbnail::after {
    display: none;
}

.video-thumbnail-gradient-bottom {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background: transparent;
z-index: 3;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail-gradient-bottom {
    opacity: 0;
}

.video-title-overlay {
    position: absolute;
top: 12px;
left: 12px;
right: 12px;
color: #ffffff;
font-size: 14px;
font-weight: 300;
z-index: 3;
pointer-events: none;
line-height: 1.3;
opacity: 0;
transition: opacity 0.3s ease;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.4);
text-align: center;
}

.video-card:hover .video-title-overlay {
    opacity: 0.5;
}

.video-answers-count {
    position: absolute;
bottom: 8px;
left: 12px;
color: rgba(255, 255, 255, 0.9);
font-size: 12px;
font-weight: 400;
z-index: 3;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: center;
gap: 4px;
}

.video-answers-count svg {
    width: 14px;
height: 14px;
flex-shrink: 0;
}

.video-rating {
    position: absolute;
bottom: 8px;
right: 12px;
color: rgba(255, 255, 255, 0.9);
font-size: 12px;
font-weight: 400;
z-index: 3;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: center;
gap: 4px;
}

.video-rating svg {
    width: 14px;
height: 14px;
flex-shrink: 0;
}

.video-card:hover .video-answers-count {
    opacity: 1;
}

.video-card:hover .video-rating {
    opacity: 1;
}


.video-thumbnail::before {
    content: '▶';
    position: absolute;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
animation: none;
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
animation: pulsePlay 1.5s ease-in-out infinite;
}

@keyframes pulsePlay {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
}
    50% {
        transform: translate(-50%, -50%) scale(1.2);
}
}

.video-info {
    display: none;
}

.video-grid-carousel {
    display: none;
}

.video-grid-carousel.active {
    display: block;
}

/* Video Player Modal */
.video-player-modal {
    display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
z-index: 10000;
overflow: hidden;
}

.video-player-modal.active {
    display: flex;
align-items: center;
justify-content: center;
}

.video-player-container {
    width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
touch-action: pan-y;
}

.video-player-side-area {
    position: absolute;
top: 0;
bottom: 0;
width: 50%;
z-index: 10;
cursor: pointer;
pointer-events: auto;
}

.video-player-side-area.left {
    left: 0;
}

.video-player-side-area.right {
    right: 0;
}

.video-player-item {
    position: absolute;
width: auto;
height: auto;
max-width: 90vw;
max-height: 90vh;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
opacity: 0;
z-index: 1;
border-radius: 15px;
overflow: visible;
}

.video-player-item video {
    border-radius: 15px;
overflow: hidden;
}


.video-player-item.active {
    opacity: 1;
transform: translateY(0) scale(1);
z-index: 2;
}

.video-player-item.prev {
    transform: translateY(-100%) scale(0.95);
opacity: 0;
}

.video-player-item.next {
    transform: translateY(100%) scale(0.95);
opacity: 0;
}

.video-player-item.entering.next {
    animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.video-player-item.entering.prev {
    animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.video-player-item.exiting {
    animation: slideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%) scale(0.95);
opacity: 0;
}
    to {
        transform: translateY(0) scale(1);
opacity: 1;
}
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%) scale(0.95);
opacity: 0;
}
    to {
        transform: translateY(0) scale(1);
opacity: 1;
}
}

@keyframes slideOut {
    from {
        transform: translateY(0) scale(1);
opacity: 1;
}
    to {
        transform: translateY(var(--exit-direction, 100%)) scale(0.95);
opacity: 0;
}
}

.video-player-item video {
    width: auto;
height: auto;
max-height: 90vh;
max-width: 90vw;
object-fit: contain;
object-position: center;
background: transparent;
border-radius: 15px;
overflow: hidden;
display: block;
}

.close-video-btn {
    position: fixed;
top: 20px;
right: 20px;
width: 44px;
height: 44px;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
color: #ffffff;
cursor: pointer;
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s ease, background 0.2s ease;
opacity: 1;
}

.close-video-btn:hover {
    opacity: 1;
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
}

.close-video-btn:active {
    opacity: 0.8;
}

.close-video-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: block;
margin: 0 auto;
}

.close-video-btn:hover svg {
    transform: rotate(90deg);
}

/* Video Player Controls */
.video-player-controls {
    position: absolute;
right: 15px;
bottom: 75px;
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
justify-content: center;
z-index: 100;
background: rgba(0, 0, 0, 0.15);
backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
padding: 12px 8px;
border-radius: 15px;
opacity: 0;
animation: fadeInControls 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes fadeInControls {
    to {
        opacity: 1;
}
}

.video-control-btn {
    width: 44px;
height: 44px;
background: transparent;
border: none;
color: #ffffff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 15px;
transition: opacity 0.2s ease, background 0.2s ease;
opacity: 0.5;
position: relative;
}

.video-control-btn:hover:not(.active) {
    opacity: 0.7;
background: rgba(255, 255, 255, 0.1);
}

.video-control-btn:active:not(.active) {
    opacity: 0.8;
}

.video-control-btn.active {
    opacity: 1 !important;
}

.video-control-btn.active:hover {
    opacity: 1 !important;
}

.video-control-btn.active:active {
    opacity: 1 !important;
}

.video-control-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: block;
margin: 0 auto;
}

.like-btn.active {
    color: #ffffff;
}

.like-btn.active svg path {
    stroke: #ffffff;
}

.dislike-btn.active {
    color: #ffffff;
}

.dislike-btn.active svg path {
    stroke: #ffffff;
}

.save-btn.active {
    color: #ffffff;
}

.save-btn.active svg path {
    stroke: #ffffff;
}

.repeat-btn.active svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .video-player-controls {
        right: 10px;
bottom: 40px;
padding: 10px 6px;
gap: 8px;
}

    .video-control-btn {
        width: 40px;
height: 40px;
}

    .video-control-btn svg {
        width: 20px;
height: 20px;
}
}

.video-title {
    font-size: 13px;
font-weight: 500;
color: #ffffff;
margin-bottom: 2px;
line-height: 1.3;
display: -webkit-box;
    -webkit-line-clamp: 2;
line-clamp: 2;
    -webkit-box-orient: vertical;
overflow: hidden;
}

.video-duration {
    font-size: 11px;
color: rgba(255, 255, 255, 0.6);
font-weight: 400;
}

/* Features Grid */
.features-grid {
    display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 80px 40px;
margin-top: 0;
}

.feature-card {
    text-align: left;
margin-top: 0;
}

.feature-card:first-child {
    margin-top: 0;
}

.feature-title {
    margin-top: 0;
padding-top: 0;
font-size: 28px;
font-weight: 400;
margin-bottom: 16px;
color: #ffffff;
letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 17px;
color: rgba(255, 255, 255, 0.7);
line-height: 1.6;
font-weight: 400;
}

/* Filmmakers Section */
.filmmakers {
    background: #0a0a0a;
padding: 120px 0;
}

.filmmaker-grid {
    display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 80px;
}

.filmmaker-card {
    background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s, background 0.3s;
cursor: pointer;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.filmmaker-card:hover {
    transform: translateY(-4px);
background: rgba(255, 255, 255, 0.08);
}

.filmmaker-image {
    width: 100%;
height: 240px;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}

.filmmaker-info {
    padding: 20px;
}

.filmmaker-info h4 {
    font-size: 18px;
font-weight: 400;
color: #ffffff;
}

.film-grid {
    display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}

.film-card {
    aspect-ratio: 16/9;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.7);
font-size: 16px;
font-weight: 400;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.film-card:hover {
    background: rgba(255, 255, 255, 0.1);
transform: scale(1.02);
}

/* Pricing Section */
.pricing {
    background: #000000;
padding: 120px 0;
}

.pricing-intro {
    text-align: center;
margin-bottom: 80px;
}

.pricing-intro h3 {
    font-size: 48px;
font-weight: 300;
margin-bottom: 16px;
letter-spacing: -1.5px;
color: #ffffff;
}

.pricing-intro p {
    font-size: 18px;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
}

.pricing-grid {
    display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
max-width: 1100px;
margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 40px;
transition: border-color 0.3s, background 0.3s;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
    border: 2px solid rgba(26, 115, 232, 0.5);
background: rgba(26, 115, 232, 0.1);
}

.pricing-card.featured:hover {
    border-color: rgba(26, 115, 232, 0.7);
background: rgba(26, 115, 232, 0.15);
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h4 {
    font-size: 28px;
font-weight: 400;
margin-bottom: 16px;
color: #ffffff;
letter-spacing: -0.5px;
}

.pricing-price {
    display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 8px;
}

.pricing-price .price {
    font-size: 48px;
font-weight: 300;
color: #ffffff;
letter-spacing: -1px;
}

.pricing-price .period {
    font-size: 18px;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
}

.pricing-price .discount {
    font-size: 16px;
color: #81c995;
font-weight: 400;
}

.pricing-features {
    list-style: none;
margin-bottom: 24px;
}

.pricing-features li {
    padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
font-size: 16px;
color: rgba(255, 255, 255, 0.87);
font-weight: 400;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
color: #81c995;
font-weight: 500;
margin-right: 12px;
}

.pricing-benefits {
    background: rgba(255, 255, 255, 0.05);
padding: 24px;
border-radius: 8px;
margin-bottom: 24px;
}

.pricing-benefits h5 {
    font-size: 15px;
font-weight: 500;
margin-bottom: 12px;
color: #ffffff;
}

.pricing-benefits ul {
    list-style: none;
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
}

.pricing-benefits li {
    padding: 6px 0;
font-weight: 400;
}

.cta-button {
    width: 100%;
padding: 14px 24px;
background: #1a73e8;
color: #ffffff;
border: none;
border-radius: 8px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
letter-spacing: 0.25px;
}

.cta-button:hover {
    background: #1765cc;
}

/* Footer */
footer {
    background: #000000;
padding: 30px 24px;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
justify-content: center;
gap: 32px;
margin-bottom: 12px;
flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
text-decoration: none;
font-size: 13px;
transition: color 0.2s;
font-weight: 400;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links-vertical {
    flex-direction: column;
    gap: 8px;
}

.footer-disclaimer {
    font-size: 12px;
color: rgba(255, 255, 255, 0.5);
margin-top: 12px;
font-weight: 400;
}

/* Animated Blur Background */
.overview-bg-image,
.training-bg-image {
    position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
pointer-events: none;
opacity: 0.8;
}

#overview {
    position: relative;
z-index: 1;
background: #000000;
overflow: hidden;
}

#overview::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 500px;
background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 10%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.08) 92%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
pointer-events: none;
}

#overview .container {
    position: relative;
z-index: 2;
}

#overview-copy {
    position: relative;
z-index: 1;
background: #000000;
overflow: hidden;
padding-top: 320px;
padding-bottom: 60px;
}

#overview-copy::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 500px;
background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 10%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.08) 92%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
pointer-events: none;
}

#overview-copy::after {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 300px;
background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
z-index: 1;
pointer-events: none;
}

#overview-copy .container {
    position: relative;
z-index: 2;
}

#overview .categories {
    position: relative;
z-index: 2;
}

#overview .video-grid-wrapper {
    position: relative;
z-index: 2;
}

#overview::after {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 300px;
background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
z-index: 1;
pointer-events: none;
}

/* Training section styles (same as overview) */
#training {
    position: relative;
z-index: 1;
background: #000000;
overflow: hidden;
padding-top: 120px;
}

#training::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 500px;
background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 10%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.08) 92%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
pointer-events: none;
}

#training .container {
    position: relative;
z-index: 2;
}

#training .section-title {
    margin-top: 80px;
}

#training-copy {
    position: relative;
z-index: 1;
background: #000000;
overflow: hidden;
padding-top: 320px;
padding-bottom: 60px;
}

#training-copy::before {
    content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 500px;
background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 10%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.08) 92%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
pointer-events: none;
}

#training-copy::after {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 300px;
background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
z-index: 1;
pointer-events: none;
}

#training-copy .container {
    position: relative;
z-index: 2;
}

#training .categories {
    position: relative;
z-index: 2;
}

#training .video-grid-wrapper {
    position: relative;
z-index: 2;
}

#training::after {
    content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 300px;
background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
z-index: 1;
pointer-events: none;
}


/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
gap: 60px;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: -1px;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .nav-links {
        display: none;
    }

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

    .pricing-intro h3 {
        font-size: 28px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 18px;
    }

    .categories {
        gap: 8px;
        margin-bottom: 32px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 14px;
    }

    body.training-page .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
    }
    
    body.training-page #overview {
        padding-top: 0 !important;
        margin-top: 0 !important;
        display: none !important;
    }
    
    body.training-page .container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body.training-page .section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.training-page .categories {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 12px 16px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.78) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.84) 80%, rgba(0, 0, 0, 0.85) 85%, rgba(0, 0, 0, 0.88) 90%, rgba(0, 0, 0, 0.9) 93%, rgba(0, 0, 0, 0.93) 95%, rgba(0, 0, 0, 0.95) 98%, rgba(0, 0, 0, 1) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.78) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.84) 80%, rgba(0, 0, 0, 0.85) 85%, rgba(0, 0, 0, 0.88) 90%, rgba(0, 0, 0, 0.9) 93%, rgba(0, 0, 0, 0.93) 95%, rgba(0, 0, 0, 0.95) 98%, rgba(0, 0, 0, 1) 100%);
    }

    body.training-page .categories::-webkit-scrollbar {
        display: none;
    }

    body.training-page .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.5);
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        text-shadow: none;
        transition: color 0.2s ease;
        cursor: pointer;
    }

    body.training-page .category-btn:hover {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: rgba(255, 255, 255, 0.7);
        transform: none;
    }
    
    body.training-page .category-btn.active {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: rgba(255, 255, 255, 1);
        font-weight: 400;
        box-shadow: none;
    }
}

.intro-overlay {
    display: none;
}

@media (max-width: 768px) {
    /* Контейнер для видео в стиле Instagram Reels */
    .reels-video-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
        background: #000;
    }

    .reels-video-item {
        width: 100%;
        height: 100vh;
        position: relative;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }

    .reels-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Контейнер для текстовых блоков ленты (мобильная версия) */
    .tape-posts-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        z-index: 10;
        background: #000;
    }

    .tape-post-item {
        width: 100%;
        height: 100vh;
        position: relative;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        padding: 20px;
        box-sizing: border-box;
    }

    .tape-post-content {
        max-width: 100%;
        width: 100%;
        max-height: 100%;
        overflow-y: auto;
        color: #ffffff;
        padding: 20px 20px 20px 8px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .tape-post-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #ffffff;
        line-height: 1.3;
    }

    .tape-post-text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.9);
    }

    .tape-post-text:last-child {
        margin-bottom: 0;
    }

    .reels-video-actions {
        position: absolute;
        right: 16px;
        bottom: 30%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 10;
        pointer-events: none;
    }


    /* Blur эффект для элементов перед открытием чата */
    body.reviews-page.chat-opening .mobile-categories-container,
    body.reviews-page.chat-opening header,
    body.reviews-page.chat-opening .reels-video-container,
    body.reviews-page.chat-opening .reels-video,
    body.reviews-page.chat-opening .tape-posts-container,
    body.reviews-page.chat-opening .tape-post-item,
    body.reviews-page.chat-opening .review-go-btn {
        filter: blur(50px);
        -webkit-filter: blur(50px);
        transition: filter 0.6s ease-in-out, -webkit-filter 0.6s ease-in-out;
    }

    body.reviews-page .reels-video-actions {
        display: none;
    }

    body.reviews-page .tape-post-actions {
        display: none;
    }

    /* Кнопка "Перейти к разбору" на странице разборов */
    body.reviews-page .review-go-btn {
        position: absolute;
        z-index: 20;
        padding: 10px 14px;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.01em;
        line-height: 1.4;
        color: #ffffff;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        pointer-events: all;
        overflow: hidden;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    body.reviews-page .review-go-btn::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -200%;
        width: 250%;
        height: 200%;
        background: linear-gradient(
            45deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 60%,
            transparent 100%
        );
        animation: shimmer 5s infinite;
        transform: skewX(-25deg);
    }

    @keyframes shimmer {
        0% {
            left: -200%;
        }
        100% {
            left: 200%;
        }
    }

    body.reviews-page .review-go-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
    }

    body.reviews-page .review-go-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Кнопка на видео - снизу по центру */
    body.reviews-page .review-go-btn-video {
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 120px;
        width: auto;
        font-size: 16px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        line-height: 1.4 !important;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }

    /* Кнопка на постах - под текстом */
    body.reviews-page .review-go-btn-post {
        position: relative;
        margin-top: 16px;
        margin-bottom: 0;
        left: auto;
        transform: none;
        width: auto;
        min-width: 200px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Поддержка постов в контейнере видео на странице разборов */
    .reels-video-container .tape-post-item {
        width: 100%;
        height: 100vh;
        position: relative;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        padding: 20px;
        box-sizing: border-box;
    }

    .reels-action-btn {
        width: 52.8px;
        height: 52.8px;
        border-radius: 50%;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: all;
        transition: all 0.2s ease;
        color: rgba(255, 255, 255, 0.5);
        padding: 0;
    }

    .reels-action-btn svg {
        width: 26.4px;
        height: 26.4px;
        flex-shrink: 0;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
    }

    .reels-action-btn:hover,
    .reels-action-btn:focus {
        color: rgba(255, 255, 255, 1);
    }

    .reels-action-btn.active {
        color: #ffffff !important;
        transform: none;
    }

    .reels-action-btn[data-action="like"].active {
        color: #ffffff !important;
    }

    .reels-action-btn[data-action="dislike"].active {
        color: #ffffff !important;
    }

    .reels-action-btn[data-action="save"].active {
        color: #ffffff !important;
    }

    .reels-action-btn[data-action="share"].active {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    /* Кнопки действий для постов ленты (tape.html) */
    .tape-post-actions {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        margin-top: 0;
        margin-left: -12px;
        padding: 4px 0 0 0;
        border-top: none;
        pointer-events: all;
    }

    .tape-action-btn {
        width: 52.8px;
        height: 52.8px;
        border-radius: 50%;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: all;
        transition: all 0.2s ease;
        color: rgba(255, 255, 255, 0.5);
        padding: 0;
        margin-right: -8px;
    }

    .tape-action-btn svg {
        width: 26.4px;
        height: 26.4px;
        flex-shrink: 0;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
    }

    .tape-action-btn:hover,
    .tape-action-btn:focus {
        color: rgba(255, 255, 255, 1);
    }

    .tape-action-btn.active {
        color: #ffffff !important;
        transform: none;
    }

    .tape-action-btn[data-action="like"].active {
        color: #ffffff !important;
    }

    .tape-action-btn[data-action="dislike"].active {
        color: #ffffff !important;
    }

    .tape-action-btn[data-action="save"].active {
        color: #ffffff !important;
    }

    .tape-action-btn[data-action="share"].active {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    /* Мобильный контейнер категорий - копируем стилистику мобильного меню */
    .mobile-categories-container {
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 16px 0;
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.999) 0%,
            rgba(0, 0, 0, 0.7) 15%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.0) 70%,
            transparent 100%
        ) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        z-index: 1000000 !important;
        width: 100% !important;
        display: block !important;
        height: auto !important;
        min-height: 60px !important;
    }
    
    .agent-query-header.show-header ~ * .mobile-categories-container,
    body:has(.agent-query-header.show-header) .mobile-categories-container {
        z-index: 999999 !important;
    }

    .mobile-categories-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.99) 6.25%,
            rgba(0, 0, 0, 0.98) 12.5%,
            rgba(0, 0, 0, 0.97) 18.75%,
            rgba(0, 0, 0, 0.96) 25%,
            rgba(0, 0, 0, 0.95) 31.25%,
            rgba(0, 0, 0, 0.94) 37.5%,
            rgba(0, 0, 0, 0.93) 43.75%,
            rgba(0, 0, 0, 0.92) 50%,
            rgba(0, 0, 0, 0.91) 56.25%,
            rgba(0, 0, 0, 0.9) 62.5%,
            rgba(0, 0, 0, 0.8) 68.75%,
            rgba(0, 0, 0, 0.7) 75%,
            rgba(0, 0, 0, 0.6) 81.25%,
            rgba(0, 0, 0, 0.4) 87.5%,
            rgba(0, 0, 0, 0.2) 93.75%,
            rgba(0, 0, 0, 0) 100%
        );
        -webkit-mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.99) 6.25%,
            rgba(0, 0, 0, 0.98) 12.5%,
            rgba(0, 0, 0, 0.97) 18.75%,
            rgba(0, 0, 0, 0.96) 25%,
            rgba(0, 0, 0, 0.95) 31.25%,
            rgba(0, 0, 0, 0.94) 37.5%,
            rgba(0, 0, 0, 0.93) 43.75%,
            rgba(0, 0, 0, 0.92) 50%,
            rgba(0, 0, 0, 0.91) 56.25%,
            rgba(0, 0, 0, 0.9) 62.5%,
            rgba(0, 0, 0, 0.8) 68.75%,
            rgba(0, 0, 0, 0.7) 75%,
            rgba(0, 0, 0, 0.6) 81.25%,
            rgba(0, 0, 0, 0.4) 87.5%,
            rgba(0, 0, 0, 0.2) 93.75%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
        z-index: 0;
    }

    .mobile-categories {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 16px;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

    .mobile-categories::-webkit-scrollbar {
        display: none;
    }

    .mobile-categories .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.01em;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.5);
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        text-shadow: none;
        transition: color 0.2s ease;
        cursor: pointer;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .mobile-categories .category-btn:hover {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: rgba(255, 255, 255, 1);
        transform: none;
    }

    .mobile-categories .category-btn.active {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: #ffffff !important;
        font-weight: 400;
        box-shadow: none;
        opacity: 1 !important;
    }

    #overview {
        padding-top: 80px;
    }

    /* Убеждаемся, что меню поверх видео */
    body.training-page .mobile-categories-container {
        z-index: 1000003 !important;
        position: fixed !important;
    }

    body.training-page header {
        z-index: 999999 !important;
        position: fixed !important;
    }

    body.training-page .reels-video-container {
        z-index: 0 !important;
    }

    /* Скрываем ненужные элементы в мобильной версии */
    body.training-page #overview {
        display: none !important;
    }

    body.training-page .intro-overlay {
        display: none !important;
    }

    body.training-page .gradient-transition {
        display: none !important;
    }

    body.training-page .intro-overlay {
        display: none !important;
    }

    body.training-page header {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0;
        right: 0;
        transform: translateY(0) !important;
        opacity: 1;
        padding: 16px 0;
        background: linear-gradient(to bottom, 
            transparent 0%,
            rgba(0, 0, 0, 0.0) 30%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.7) 85%,
            rgba(0, 0, 0, 0.999) 100%
        );
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        z-index: 10000;
        width: 100%;
    }

    body.training-page header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 6.25%,
            rgba(0, 0, 0, 0.4) 12.5%,
            rgba(0, 0, 0, 0.6) 18.75%,
            rgba(0, 0, 0, 0.7) 25%,
            rgba(0, 0, 0, 0.8) 31.25%,
            rgba(0, 0, 0, 0.9) 37.5%,
            rgba(0, 0, 0, 0.91) 43.75%,
            rgba(0, 0, 0, 0.92) 50%,
            rgba(0, 0, 0, 0.93) 56.25%,
            rgba(0, 0, 0, 0.94) 62.5%,
            rgba(0, 0, 0, 0.95) 68.75%,
            rgba(0, 0, 0, 0.96) 75%,
            rgba(0, 0, 0, 0.97) 81.25%,
            rgba(0, 0, 0, 0.98) 87.5%,
            rgba(0, 0, 0, 0.99) 93.75%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 6.25%,
            rgba(0, 0, 0, 0.4) 12.5%,
            rgba(0, 0, 0, 0.6) 18.75%,
            rgba(0, 0, 0, 0.7) 25%,
            rgba(0, 0, 0, 0.8) 31.25%,
            rgba(0, 0, 0, 0.9) 37.5%,
            rgba(0, 0, 0, 0.91) 43.75%,
            rgba(0, 0, 0, 0.92) 50%,
            rgba(0, 0, 0, 0.93) 56.25%,
            rgba(0, 0, 0, 0.94) 62.5%,
            rgba(0, 0, 0, 0.95) 68.75%,
            rgba(0, 0, 0, 0.96) 75%,
            rgba(0, 0, 0, 0.97) 81.25%,
            rgba(0, 0, 0, 0.98) 87.5%,
            rgba(0, 0, 0, 0.99) 93.75%,
            rgba(0, 0, 0, 1) 100%
        );
        pointer-events: none;
        z-index: 0;
    }


    body.training-page header nav {
        position: relative;
        z-index: 1;
    }

    body.training-page nav {
        flex-direction: column;
        align-items: stretch;
    }

    body.training-page .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0;
        position: relative;
        z-index: 1000001 !important;
        gap: 0;
        overflow-x: visible;
        overflow-y: hidden;
        width: 100%;
    }

    body.training-page .nav-links li {
        flex: 1;
        min-width: 0;
    }

    body.training-page .nav-links a {
        font-size: 12px;
        padding: 8px 12px;
    }

    body.training-page .nav-links a {
        padding: 12px 2px 2px 2px;
        font-size: 12px;
        white-space: normal;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    body.training-page .nav-links a svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
        margin-top: 15px;
        margin-bottom: 2px;
        display: block;
    }

    body.training-page .nav-icon {
        display: none;
    }

    body.training-page .nav-login-btn {
        display: none;
    }

    body.training-page .overview-bg-image {
        max-height: 100vh;
        object-fit: cover;
        width: 100%;
    }

    body.training-page .video-grid-wrapper {
        overflow: visible;
        padding: 0 !important;
        padding-top: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: 0 !important;
    }

    body.training-page .video-grid {
        display: none !important;
    }
    
    body.training-page .video-grid-carousel {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        margin-top: 0 !important;
        padding: 0;
        padding-top: 0 !important;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y mandatory;
        border-radius: 0 !important;
    }
    
    body.training-page .video-grid-carousel.active {
        display: flex !important;
    }
    
    /* Показываем карточки напрямую из карусели, минуя video-grid */
    body.training-page .video-grid-carousel > .video-card {
        display: flex;
        scroll-snap-align: start;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    body.training-page .video-grid-carousel > .video-card:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.training-page .video-card {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        min-height: 100vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    body.training-page .video-thumbnail {
        width: 100vw;
        height: 100vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    body.training-page .video-thumbnail video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        border-radius: 0 !important;
        background: transparent;
    }

    body.training-page .video-card::before,
    body.training-page .video-card::after {
        display: none;
    }
    
    /* Скрываем все элементы карточек кроме видео */
    body.training-page .video-card > *:not(.video-thumbnail):not(.video-controls) {
        display: none !important;
    }
    
    body.training-page .video-thumbnail > *:not(video) {
        display: none !important;
    }
    
    /* Плашка с кнопками управления видео */
    body.training-page .video-controls {
        position: absolute;
        right: 16px;
        bottom: 80px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    body.training-page .video-card.active .video-controls {
        opacity: 1;
        visibility: visible;
    }
    
    body.training-page .video-control-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #fff;
        font-size: 0;
        padding: 0;
    }
    
    body.training-page .video-control-btn svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        fill: none;
    }
    
    body.training-page .video-control-btn.liked svg {
        fill: #ff3040;
        stroke: #ff3040;
    }
    
    body.training-page .video-control-btn:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: scale(1.1);
    }
    
    body.training-page .video-control-btn.active {
        background: rgba(255, 0, 0, 0.7);
    }
    
    body.training-page .video-control-btn.liked {
        color: #ff3040;
    }
    
    body.training-page .video-control-btn.disliked {
        color: #4a90e2;
    }
    
    body.training-page .video-control-btn.disliked svg {
        stroke: #4a90e2;
    }
}

@media (max-width: 480px) {
    body.training-page .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Блок с видео-плеером в пропорции 9:16 - общие стили */
.video-player-section {
    padding: clamp(40px, 8vw, 80px) 0;
    background: transparent;
    display: block;
}

.video-player-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Блок с видео-плеером в пропорции 9:16 - только для мобильных */
@media (max-width: 768px) {
    .video-player-section {
        padding: 20px 0;
        background: transparent;
        display: block;
    }

    .video-player-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 9 / 16;
        position: relative;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    .video-player {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    .video-player-categories {
        display: none !important;
    }
}

/* Скрываем мобильный контейнер категорий на десктопе */
@media (min-width: 769px) {
    .mobile-categories-container {
        display: none !important;
    }

    .video-player-container {
        display: none !important;
    }

    .mobile-background-video-container {
        display: none !important;
    }

    .reels-video-container {
        display: none !important;
    }

    .tape-posts-container {
        display: none !important;
    }

    /* Показываем блок overview для ПК версии страницы video.html */
    body.training-page #overview {
        display: block !important;
    }
    
    /* Скрываем плашку общего ассистента в ПК версии */
    .agent-info-mobile {
        display: none !important;
    }
    
    /* Скрываем блок с вопросом и полем ввода в ПК версии */
    .agent-query-mobile {
        display: none !important;
    }
}

/* Стили для ПК версии */
@media (min-width: 769px) {
    .video-player-section {
        display: block;
        padding: clamp(60px, 8vw, 120px) 0;
        background: transparent;
    }

    .video-player-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 9 / 16;
        position: relative;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    .video-player {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    .video-player-categories {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px;
        z-index: 10;
        background: transparent;
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-x;
    }

    .video-player-categories:active {
        cursor: grabbing;
    }

    .video-player-categories::-webkit-scrollbar {
        display: none;
    }

    .video-player-categories .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 16px;
        font-weight: 400;
        padding: 8px 16px;
        pointer-events: auto;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: rgba(255, 255, 255, 0.5);
        text-shadow: none;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .video-player-categories .category-btn:hover {
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        text-shadow: none;
    }

    .video-player-categories .category-btn.active {
        background: transparent;
        color: rgba(255, 255, 255, 1);
        font-weight: 400;
        text-shadow: none;
    }
}

/* Модальное окно чата разборов */
.review-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    pointer-events: none;
}

.review-chat-overlay.blur-active,
.review-chat-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.review-chat-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.6s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.review-chat-overlay.blur-active .review-chat-blur,
.review-chat-overlay.active .review-chat-blur {
    background: rgba(0, 0, 0, 0);
}

.review-chat-container {
    position: fixed;
    top: 0 !important;
    bottom: 0 !important;
        left: 0;
        right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh !important;
    max-height: 100vh !important;
        background: transparent;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
        display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.review-chat-overlay.active .review-chat-container {
    transform: translateY(0);
}

.review-chat-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    border-bottom: none;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.review-chat-title {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.review-chat-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 12px;
    transition: opacity 0.2s ease;
}

.review-chat-close:hover {
    opacity: 0.7;
}

.review-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
        -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.review-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.review-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.review-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.review-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.review-chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
        width: 100%;
    max-width: 100%;
    animation: messageFadeIn 0.3s ease;
    pointer-events: all;
    flex-shrink: 0;
}

.review-chat-message .review-chat-message-content[style*="margin-left: auto"] {
    margin-left: auto !important;
    max-width: 70%;
}

.review-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.review-chat-message-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-chat-message-author {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    display: block;
}

.review-chat-message-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: left;
    font-family: inherit;
    word-wrap: break-word;
    display: block;
}

.review-chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 6px 12px;
    max-width: 100%;
        position: relative;
    margin: 20px;
    transition: all 0.5s ease;
    height: 44px;
    min-height: 44px;
}

.review-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-family: inherit;
    padding: 8px 0;
    outline: none;
    min-width: 0;
    position: relative;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    max-height: 120px;
    word-wrap: break-word;
    white-space: pre-wrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
}

.review-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.review-chat-input.error {
    border-color: rgba(255, 0, 0, 0.8);
    animation: errorPulse 1s ease-out;
}

.review-chat-input::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.review-chat-add-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: -4px;
}

.review-chat-add-btn:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.review-chat-add-btn svg {
    opacity: 0.7;
}

.review-chat-send {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    transition: color 0.2s ease;
    margin-top: 0;
    align-self: flex-start;
    transform: translateY(-2px);
}

.review-chat-send svg {
    opacity: 0.7;
}

.review-chat-send:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.review-chat-send:not(:disabled):not(.inactive) {
    color: rgba(255, 255, 255, 1);
}

.review-chat-send:disabled,
.review-chat-send.inactive {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .review-chat-container {
        height: 85vh;
        max-height: 85vh;
    }
    
    .tape-post-title {
        font-size: 20px;
        font-weight: 450;
    }
}

/* Мобильное меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
        width: 100%;
        height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
        display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

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

.mobile-menu-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.mobile-menu-close {
        background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 10px;
}

.mobile-menu-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-icon {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        z-index: 999998;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .nav-icon:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .nav-icon::before,
    .nav-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
    }

    .nav-icon::before {
        transform: translateY(-6px);
    }

    .nav-icon::after {
        transform: translateY(6px);
    }

    .nav-icon.active::before {
        transform: translateY(0) rotate(45deg);
    }

    .nav-icon.active::after {
        transform: translateY(0) rotate(-45deg);
    }

    .nav-icon span {
        width: 24px;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
    }

    .nav-icon.active span {
        opacity: 0;
    }
}

/* Чат с агентом (ChatGPT) для мобильной версии */
.agent-chat-overlay {
    position: fixed;
        top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000001 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.agent-chat-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.agent-chat-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.6s ease-in-out;
}

.agent-chat-overlay.active .agent-chat-blur {
    background: rgba(0, 0, 0, 0.5);
}

.agent-chat-container {
    position: fixed;
    bottom: 0;
        left: 0;
        right: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    max-height: 85vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
        display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10000002 !important;
}

.agent-chat-overlay.active .agent-chat-container {
    transform: translateY(0);
}

.agent-chat-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    border-bottom: none;
    position: relative;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    flex-shrink: 0;
}

.agent-chat-title {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.agent-chat-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
    z-index: 10000004 !important;
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.agent-chat-close:hover {
    opacity: 0.7;
}

.agent-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
        -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.agent-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.agent-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.agent-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.agent-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.agent-chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.agent-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 500;
    flex-shrink: 0;
}

.agent-chat-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

/* Сообщения пользователя выравниваются по правому краю */
.agent-chat-message-content[style*="margin-left: auto"] {
    align-items: flex-end;
    flex: 0 1 auto;
}

.agent-chat-message-author {
        display: none;
    }

.agent-chat-message-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.agent-chat-input-container {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    height: 44px;
    min-height: 44px;
}

.agent-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px 12px 16px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    resize: none;
    height: 44px;
    overflow-y: auto;
        -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: inherit;
    box-sizing: border-box;
}

.agent-chat-input::-webkit-scrollbar {
    display: none;
    width: 0;
}

.agent-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.agent-chat-input.error {
    border-color: rgba(255, 0, 0, 0.8);
    animation: errorPulse 1s ease-out;
}

.agent-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
        flex-shrink: 0;
    transform: translateY(-2px);
}

.agent-chat-send:hover {
    background: rgba(255, 255, 255, 0.25);
}

.agent-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Индикатор загрузки ответа */
.agent-chat-typing {
    display: flex;
    gap: 4px;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
}

.agent-chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: typingDot 1.4s infinite;
}

.agent-chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.agent-chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .agent-chat-container {
        height: 85vh;
        max-height: 85vh;
    }
    
    /* Убеждаемся, что чат поверх всех элементов на странице агентов, включая нижнее меню */
    body.training-page .agent-chat-overlay {
        z-index: 999999999 !important;
    }
    
    body.training-page .agent-chat-container {
        z-index: 999999999 !important;
    }
    
    /* Для iOS - дополнительное повышение z-index */
    @supports (-webkit-touch-callout: none) {
        body.training-page .agent-chat-overlay {
            z-index: 2147483647 !important;
        }
        
        body.training-page .agent-chat-container {
            z-index: 2147483647 !important;
        }
    }
}

/* Секция с сеткой агентов */
.agents-grid-section {
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

.agents-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.agent-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.agent-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
}

.agent-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.agent-card-name {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.agent-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex: 1;
}

.agent-card-btn {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-card-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.agent-card-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .agents-grid-section {
        padding: 20px 0 100px 0;
    }
    
    .agents-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }
    
    .agent-card {
        padding: 24px 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }
    
    .agent-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }
    
    .agent-card-avatar {
        width: 72px;
        height: 72px;
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }
    
    .agent-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .agent-card-name {
        font-size: 18px;
        font-weight: 500;
        margin: 0 0 8px 0;
    }
    
    .agent-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .agent-card-description {
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 12px 0;
        color: rgba(255, 255, 255, 0.75);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .agent-card-btn {
        width: auto;
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 8px;
        align-self: flex-start;
    }
}

/* Блок информации об агенте для мобильной версии */
.agent-info-mobile {
    display: none;
    padding: 20px 16px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.agent-info-mobile.active {
        display: block;
    }

.agent-info-content {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.agent-info-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
    margin: 0 auto 20px;
}

.agent-info-name {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: left;
}

.agent-info-description {
        font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    text-align: left;
}

.agent-info-btn {
    position: relative;
    width: auto;
    min-width: 120px;
    max-width: 280px;
    padding: 10px 14px;
    margin-top: 16px;
    margin-left: 0;
    margin-right: 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.agent-info-btn::before {
    content: '';
        position: absolute;
    top: -50%;
    left: -200%;
    width: 250%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: shimmer 5s infinite;
    transform: skewX(-25deg);
}

.agent-info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.agent-info-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .agents-grid-section {
        display: none;
    }
    
    /* Блок с вопросом и полем ввода для мобильной версии */
    .agent-query-mobile {
        display: none;
        padding: 0;
        margin-top: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 80px;
        z-index: 1000000 !important;
        pointer-events: none;
        flex-direction: column;
    }
    
    .agent-query-mobile.active {
        pointer-events: all;
    }
    
    .agent-query-mobile.active {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .agent-query-header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 21px 0 16px 0;
        border-bottom: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-shrink: 0;
        width: 100% !important;
        z-index: 2147483647 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: all !important;
    }
    
    .agent-query-header,
    .mobile-categories-container + .agent-query-header,
    body:has(.mobile-categories-container) .agent-query-header {
        z-index: 2147483647 !important;
    }
    
    .agent-query-mobile.active .agent-query-header {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }
    
    .agent-query-header.show-header {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        z-index: 2147483647 !important;
    }
    
    /* Уменьшаем z-index mobile-categories-container, когда шапка видна */
    body:has(.agent-query-header.show-header) .mobile-categories-container,
    body.chat-header-visible .mobile-categories-container {
        z-index: 999999 !important;
    }
    
    /* Также уменьшаем для всех вариантов mobile-categories-container */
    body.chat-header-visible body.training-page .mobile-categories-container {
        z-index: 999999 !important;
    }
    
    .agent-query-header-title {
        font-size: 16px;
        font-weight: 400;
        color: #ffffff;
        margin: 0;
        letter-spacing: 0.01em;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .agent-query-close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        transition: opacity 0.2s ease;
        z-index: 2147483647 !important;
    }
    
    .agent-query-close:hover {
        opacity: 0.7;
    }
    
    .agent-query-content {
        padding: 20px;
        text-align: center;
        position: relative;
        z-index: 1000001 !important;
        width: 100%;
        max-width: 100%;
        transition: all 0.5s ease;
    }
    
    .agent-query-messages {
        position: fixed;
        top: 60px;
        left: 20px;
        right: 20px;
        bottom: 120px;
        z-index: 1000002 !important;
        display: none; /* Скрыт по умолчанию, показывается только когда есть сообщения */
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        max-width: calc(100% - 40px);
        pointer-events: auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        padding-right: 1px;
        padding-top: 20px;
        padding-bottom: 20px;
        height: calc(100vh - 140px);
        min-height: calc(100vh - 140px);
        max-height: calc(100vh - 140px);
    }
    
    .agent-query-messages::-webkit-scrollbar {
        width: 8px;
    }
    
    .agent-query-messages::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .agent-query-messages::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    .agent-query-messages::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
        height: 0;
    }
    
    .agent-query-message {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 8px 12px;
        max-width: 70%;
        animation: messageFadeIn 0.3s ease;
        pointer-events: all;
        margin-left: 0;
        flex-shrink: 0;
        min-height: fit-content;
    }
    
    /* Сообщения пользователя выравниваются по правому краю */
    .agent-query-message:not(.agent-query-message-gpt) {
        margin-left: auto;
        margin-right: 0;
    }
    
    .agent-query-message-gpt {
        align-self: flex-start;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 12px 0 12px 8px;
        margin-left: 0;
        margin-right: auto;
        max-width: 100%;
        width: 100%;
        min-height: 24px;
        box-sizing: border-box;
        contain: layout style;
        animation: messageFadeIn 0.3s ease;
        flex-shrink: 0;
    }
    
    #gptTypingIndicator {
        min-height: 24px;
        height: auto;
        contain: layout style;
    }
    
    .agent-query-message-text {
        font-size: 16px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        text-align: left;
        font-family: inherit;
    }
    
    .agent-query-message-gpt .agent-query-typing-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0 !important;
        text-align: left !important;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-weight: 400 !important;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.9) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.9) 75%,
            rgba(255, 255, 255, 0.6) 100%
        ) !important;
        background-size: 200% 100% !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        animation: textShimmer 2s ease-in-out infinite !important;
        will-change: background-position !important;
    }
    
    @keyframes textShimmer {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    @keyframes messageFadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .agent-query-title {
        font-size: 20px;
        font-weight: 450;
        color: #ffffff;
        margin: 0 0 10px 0;
        text-align: center;
        line-height: 1.3;
        transition: opacity 5s ease, transform 5s ease;
    }
    
    .agent-query-title.hidden {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        height: 0;
        margin: 0;
    }
    
    .agent-query-subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 40px;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        transition: opacity 5s ease, transform 5s ease;
    }
    
    .agent-query-subtitle.hidden {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        height: 0;
        margin: 0;
    }
    
    .agent-query-content.compact {
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .agent-query-input-container {
        transition: all 0.5s ease;
    }
    
    .agent-query-input-container.moved-down {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: calc(100% - 40px);
    }
    
    .agent-query-input-container {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 6px 12px;
        max-width: 100%;
        position: relative;
        z-index: 1000002 !important;
        transition: all 5s ease;
        height: 44px;
        min-height: 44px;
    }
    
    .agent-query-input-container.moved-down {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: calc(100% - 40px);
        z-index: 1000003 !important;
        border-radius: 10px;
    }
    
    .agent-query-add-btn,
    .agent-query-mic-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        margin-left: -4px;
    }
    
    .agent-query-add-btn:hover,
    .agent-query-mic-btn:hover {
        opacity: 1;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .agent-query-add-btn svg,
    .agent-query-mic-btn svg,
    .agent-query-send-btn svg {
        opacity: 0.7;
    }
    
    .agent-query-input {
        flex: 1;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
        font-family: inherit;
        padding: 8px 0;
        outline: none;
        min-width: 0;
        position: relative;
        z-index: 1000003 !important;
        resize: none;
        overflow-y: auto;
        line-height: 1.5;
        max-height: 120px;
        word-wrap: break-word;
        white-space: pre-wrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .agent-query-input::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .agent-query-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .agent-query-send-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 1000004 !important;
        pointer-events: all !important;
        transition: color 0.2s ease;
        margin-top: 0;
        align-self: flex-start;
        transform: translateY(-2px);
    }
    
    .agent-query-send-btn:disabled,
    .agent-query-send-btn.inactive {
        color: rgba(255, 255, 255, 0.5);
        cursor: not-allowed;
        pointer-events: none;
    }
    
    .agent-query-send-btn:not(:disabled):not(.inactive) {
        color: rgba(255, 255, 255, 1);
    }
    
    .agent-query-send-btn:not(:disabled):not(.inactive) svg {
        opacity: 1;
    }
    
    .agent-query-send-btn:hover:not(:disabled):not(.inactive) {
        background: transparent;
        color: rgba(255, 255, 255, 1);
    }
    
    .agent-query-send-btn:hover:not(:disabled):not(.inactive) svg {
        opacity: 1;
    }
    
    .agent-query-mic-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 1000004 !important;
        pointer-events: all !important;
    }
    
    .agent-query-mic-btn:hover {
        opacity: 0.7;
    }
    
    .agent-query-add-btn {
        position: relative;
        z-index: 1000003 !important;
    }
    
    /* Скрываем посты на странице агентов в мобильной версии */
    body.agents-page .tape-posts-container {
        display: none !important;
    }
}

/* Utility classes for inline styles */
.hidden { display: none; }
.code-input-hidden { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.footer-text { text-align: center; margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.inline-flex-center { display: inline-flex; align-items: center; gap: 4px; }

/* Главная страница - мобильная версия */
@media (max-width: 768px) {
    .home-main-content {
        padding: 20px;
        padding-top: 20px;
        padding-bottom: 100px;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
    
    /* Блок профиля */
    .home-profile-section {
        margin-bottom: 24px;
        margin-top: 0;
    }
    
    .home-profile-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .home-profile-header {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }
    
    .home-profile-avatar-wrapper {
        position: relative;
        flex-shrink: 0;
    }
    
    .home-avatar-rect {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 600;
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .home-profile-status-badge {
        position: absolute;
        bottom: -4px;
        right: -4px;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        border: 2px solid rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }
    
    .home-profile-status-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .home-profile-info {
        flex: 1;
        min-width: 0;
    }
    
    .home-profile-name-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .home-profile-name {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-profile-settings-btn {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .home-profile-settings-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        transform: rotate(90deg);
    }
    
    .home-profile-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .home-profile-badge-premium {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        color: #FFD700;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-profile-badge-premium svg {
        flex-shrink: 0;
        color: #FFD700;
    }
    
    .home-profile-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-profile-rating svg {
        flex-shrink: 0;
        color: #FFD700;
    }
    
    .home-profile-about {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .home-profile-about-text {
        font-size: 13px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        width: 100%;
    }
    
    .home-profile-about-text strong {
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .home-profile-footer {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .home-profile-balance {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        margin-left: auto;
    }
    
    .home-profile-balance svg {
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .home-profile-level {
        flex: 1;
        min-width: 120px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .home-level-badge {
        font-size: 12px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        white-space: nowrap;
    }
    
    .home-level-progress {
        flex: 1;
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        overflow: hidden;
    }
    
    .home-level-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0.4) 100%);
        border-radius: 3px;
        transition: width 0.3s ease;
    }
    
    /* Блок рейтинга пользователя */
    .home-rating-section {
        margin-bottom: 24px;
    }
    
    .home-achievements-section {
        margin-bottom: 24px;
        overflow: hidden;
    }
    
    .home-achievements-card {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 50%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: 20px;
        padding: 24px 20px;
        position: relative;
        overflow: visible;
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
    }
    
    .home-achievements-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
        animation: ratingPulse 4s ease-in-out infinite;
        z-index: 0;
    }
    
    .home-achievements-rating {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        z-index: 1;
        min-height: 80px;
    }
    
    .home-achievements-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-rating-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 0;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    .home-achievements-help {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 80px;
        margin-bottom: 24px !important;
        z-index: 1;
    }
    
    .home-achievements-help-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-help-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-help-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0 0 24px 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-help-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 24px;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    /* Новый блок: Вы прошли */
    .home-achievements-tests {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 80px;
        margin-bottom: 24px !important;
        z-index: 1;
    }
    
    .home-achievements-tests-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-tests-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-tests-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0 0 24px 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-tests-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 0;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    .home-achievements-videos {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        min-height: 80px;
        margin-bottom: 24px;
        z-index: 1;
    }
    
    .home-achievements-videos-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-videos-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-videos-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-videos-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 0;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    /* New block: Вы прочитали */
    .home-achievements-read {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 80px;
        margin-bottom: 24px;
        z-index: 1;
    }
    
    .home-achievements-read-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-read-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-read-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-read-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 24px;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    .home-achievements-participated {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 80px;
        margin-bottom: 24px;
        z-index: 1;
    }
    
    .home-achievements-participated-content {
        flex: 1;
        padding-right: 50px;
        max-width: calc(100% - 60px);
    }
    
    .home-achievements-participated-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-achievements-participated-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-achievements-participated-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        position: absolute;
        right: -40px;
        top: 24px;
        white-space: nowrap;
        z-index: 0;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        animation: numberShimmer 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    @keyframes numberShimmer {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }
    
    @keyframes ratingPulse {
        0%, 100% {
            opacity: 0.3;
            transform: scale(1);
        }
        50% {
            opacity: 0.5;
            transform: scale(1.1);
        }
    }
    
    .home-rating-card {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.15) 50%, rgba(255, 255, 255, 0.1) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 215, 0, 0.4);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .home-rating-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
        animation: thanksPulse 4s ease-in-out infinite;
    }
    
    .home-rating-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
        animation: thanksShine 3s ease-in-out infinite;
    }
    
    .home-rating-stars-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        border-radius: 20px;
        pointer-events: none;
        z-index: 1;
    }
    
    .home-rating-falling-star {
        position: absolute;
        color: #FFD700;
        line-height: 1;
        opacity: 0;
        animation: starFall linear;
        will-change: transform, opacity;
        z-index: 1;
    }
    
    .home-rating-falling-star svg {
        width: 100%;
        height: 100%;
        fill: #FFD700;
        opacity: 0.85;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    
    @keyframes starFall {
        0% {
            transform: translateY(-30px) translateX(0) rotate(0deg);
            opacity: 0;
        }
        5% {
            opacity: 0.85;
        }
        50% {
            transform: translateY(50%) translateX(var(--x-offset, 0)) rotate(180deg);
            opacity: 0.85;
        }
        60% {
            transform: translateY(60%) translateX(var(--x-offset, 0)) rotate(216deg);
            opacity: 0.7;
        }
        70% {
            transform: translateY(70%) translateX(var(--x-offset, 0)) rotate(252deg);
            opacity: 0.5;
        }
        80% {
            transform: translateY(80%) translateX(var(--x-offset, 0)) rotate(288deg);
            opacity: 0.3;
        }
        90% {
            transform: translateY(90%) translateX(var(--x-offset, 0)) rotate(324deg);
            opacity: 0.15;
        }
        100% {
            transform: translateY(120%) translateX(var(--x-offset, 0)) rotate(360deg);
            opacity: 0;
        }
    }
    
    .home-rating-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        position: relative;
        z-index: 2;
    }
    
    .home-rating-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: 12px;
        color: #FFD700;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    
    .home-rating-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .home-rating-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 20px 0;
        line-height: 1.3;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -0.01em;
    }
    
    .home-rating-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 8px 0 16px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        position: relative;
        z-index: 2;
    }
    
    .home-rating-score {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 16px;
        position: relative;
        z-index: 1;
    }
    
    .home-rating-stars {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .home-rating-stars svg {
        width: 16px;
        height: 16px;
        color: #FFD700;
        fill: #FFD700;
    }
    
    .home-rating-score-value {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
    }
    
    .home-rating-position {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    .home-rating-position-label {
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 12px;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rating-position-value {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
    }
    
    .home-rating-position-number {
        font-size: 48px;
        font-weight: 700;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        animation: numberShimmer 3s ease-in-out infinite;
    }
    
    @keyframes numberShimmer {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }
    
    .home-rating-position-total {
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rating-help {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 0;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    .home-rating-help-label {
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 12px;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rating-help-value {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .home-rating-help-number {
        font-size: 48px;
        font-weight: 700;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        animation: numberShimmer 3s ease-in-out infinite;
    }
    
    .home-rating-help-text {
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rating-stats {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: relative;
        z-index: 2;
    }
    
    .home-rating-stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 14px;
        transition: all 0.3s ease;
    }
    
    .home-rating-stat-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 215, 0, 0.3);
        transform: translateX(4px);
    }
    
    .home-rating-stat-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        color: #FFD700;
    }
    
    .home-rating-stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .home-rating-stat-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .home-rating-stat-label {
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rating-stat-value {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        white-space: nowrap;
    }
    
    /* Блок приветствия с видео */
    .home-welcome-section {
        margin-bottom: 24px;
    }
    
    .home-welcome-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-welcome-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 12px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-welcome-text {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        margin: 0 0 16px 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-welcome-video-container {
        position: relative;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.3);
        aspect-ratio: 16 / 9;
    }
    
    .home-welcome-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .home-welcome-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 64px;
        height: 64px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        padding: 0;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .home-welcome-play-btn:hover {
        color: rgba(255, 255, 255, 1);
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .home-welcome-play-btn svg {
        width: 28px;
        height: 28px;
        margin-left: 4px;
    }
    
    .home-welcome-play-btn.playing {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Блок подписки и баланса */
    .home-subscription-section {
        margin-bottom: 24px;
    }
    
    /* Блок приглашения друга */
    .home-invite-section {
        margin-bottom: 24px;
    }
    
    .home-invite-card {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 50%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
    }
    
    .home-invite-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
        animation: ratingPulse 4s ease-in-out infinite;
        z-index: 0;
    }
    
    .home-invite-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 8px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        position: relative;
        z-index: 1;
    }
    
    .home-invite-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0 0 20px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        position: relative;
        z-index: 1;
    }
    
    .home-invite-btn {
        display: inline-block;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        font-size: 15px;
        font-weight: 500;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        padding: 12px 24px;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }
    
    .home-invite-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .home-invite-btn:active {
        transform: scale(0.98);
    }
    
    .home-subscription-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
    }
    
    .home-subscription-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-subscription-badge {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .home-subscription-title {
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-subscription-badge svg {
        color: #ffffff;
        flex-shrink: 0;
    }
    
    .home-subscription-date {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-subscription-limits {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .home-limit-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .home-limit-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-limit-value {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-subscription-plans-section {
        margin-bottom: 24px;
        position: relative;
        z-index: 10;
    }
    
    .home-subscription-plans-header {
        margin-bottom: 20px;
    }
    
    .home-subscription-plans-section .home-card-title {
        margin-bottom: 8px;
    }
    
    .home-subscription-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-subscription-plans-carousel {
        margin-bottom: 0;
        position: relative;
        z-index: 10;
    }
    
    .home-subscription-plans-wrapper {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 12px;
        margin-bottom: 16px;
        position: relative;
        z-index: 10;
    }
    
    .home-subscription-plans-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .home-subscription-plan-card {
        flex: 0 0 calc(80% - 6px);
        min-width: calc(80% - 6px);
        max-width: calc(80% - 6px);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
        z-index: 11;
    }
    
    .home-subscription-plan-card.home-plan-premium {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
    
    .home-subscription-plan-card.home-plan-unlimited {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
        border: 1px solid rgba(255, 215, 0, 0.4);
    }
    
    .home-subscription-plan-card.home-plan-investor {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
        border: 1px solid rgba(255, 215, 0, 0.5);
    }
    
    .home-plan-header {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-plan-name {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-plan-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 16px 0 0 0;
    }
    
    .home-plan-price > span:first-child {
        font-size: 24px;
        font-weight: 700;
        color: #FFD700;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        text-align: center;
        line-height: 1;
    }
    
    .home-plan-price .home-plan-period {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0;
        margin-top: 0;
        padding-top: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
    }
    
    .home-plan-price-free {
        font-size: 24px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-align: center;
        margin: 16px 0 0 0;
    }
    
    .home-plan-period {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0;
        margin-top: 0;
        padding-top: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-plan-limits {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .home-plan-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        width: 100%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        margin-top: auto;
    }
    
    .home-plan-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }
    
    .home-plan-btn-premium {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
        border: 1px solid rgba(255, 215, 0, 0.4);
        color: #FFD700;
    }
    
    .home-plan-btn-premium:hover {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
        border-color: rgba(255, 215, 0, 0.5);
    }
    
    .home-subscription-plans-nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .home-plans-dots {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .home-plan-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .home-plan-dot.active {
        background: #FFD700;
        width: 24px;
        border-radius: 4px;
    }
    
    
    .home-balance-info {
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }
    
    .home-balance-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .home-balance-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-balance-value {
        font-size: 20px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-balance-price-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-balance-price-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-balance-price-value {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-ai-price-info {
        margin-bottom: 12px;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .home-ai-price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .home-ai-price-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-tokens-balance {
        margin-bottom: 16px;
    }
    
    .home-ai-price-value {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-balance-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
        transition: all 0.3s ease;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-balance-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }
    
    /* Блоки навигации */
    .home-sections-nav {
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .home-nav-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .home-nav-card:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }
    
    .home-nav-card-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #ffffff;
    }
    
    .home-nav-card-content {
        flex: 1;
        min-width: 0;
    }
    
    .home-nav-card-title {
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 4px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-nav-card-desc {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-nav-card > svg:last-child {
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
    }
    
    .home-nav-card:hover > svg:last-child {
        color: rgba(255, 255, 255, 0.8);
        transform: translateX(4px);
    }
    
    /* Блок прогресса */
    .home-progress-section {
        margin-bottom: 24px;
    }
    
    .home-progress-card {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 215, 0, 0.25);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .home-progress-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
        animation: ratingPulse 4s ease-in-out infinite;
    }
    
    .home-card-title {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 20px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        position: relative;
        z-index: 1;
    }
    
    .home-progress-items {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
        z-index: 1;
    }
    
    .home-progress-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .home-progress-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .home-progress-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-progress-value {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-progress-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
    }
    
    .home-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
        border-radius: 4px;
        transition: width 0.3s ease;
    }
    
    /* Блок дисциплины посещений */
    .home-discipline-section {
        margin-bottom: 24px;
    }
    
    .home-discipline-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
    }
    
    .home-discipline-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0 0 16px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-calendar-wrapper {
        margin-top: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }
    
    .home-calendar-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .home-calendar {
        display: flex;
        gap: 6px;
        min-width: max-content;
        padding-bottom: 4px;
    }
    
    .home-calendar-day {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        min-width: 36px;
        padding: 7px 5px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .home-calendar-day-date {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.5);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
    }
    
    .home-calendar-day-indicator {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1;
        margin-top: 1px;
    }
    
    .home-calendar-day.visited .home-calendar-day-indicator {
        background: rgba(76, 175, 80, 0.3);
        border: 1px solid rgba(76, 175, 80, 0.5);
    }
    
    .home-calendar-day.not-visited .home-calendar-day-indicator {
        background: rgba(244, 67, 54, 0.3);
        border: 1px solid rgba(244, 67, 54, 0.5);
    }
    
    .home-calendar-day.today .home-calendar-day-indicator {
        background: rgba(255, 215, 0, 0.3);
        border: 1px solid rgba(255, 215, 0, 0.5);
    }
    
    /* Блок наград */
    .home-rewards-section {
        margin-bottom: 24px;
    }
    
    .home-rewards-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
    }
    
    .home-rewards-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0 0 20px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rewards-carousel {
        position: relative;
    }
    
    .home-rewards-wrapper {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .home-rewards-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .home-reward-card {
        flex: 0 0 calc(80% - 6px);
        min-width: calc(80% - 6px);
        max-width: calc(80% - 6px);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .home-reward-card-active {
        background: rgba(255, 215, 0, 0.1);
        border: 2px solid rgba(255, 215, 0, 0.5);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }
    
    .home-reward-header {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-reward-name {
        font-size: 18px;
        font-weight: 500;
        color: #ffffff;
        margin: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-reward-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .home-reward-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 64px;
        height: 64px;
        margin: 0 auto 8px auto;
        color: #FFD700;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    
    .home-reward-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .home-reward-card-active .home-reward-icon {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
        animation: rewardGlow 2s ease-in-out infinite;
    }
    
    @keyframes rewardGlow {
        0%, 100% {
            filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
        }
        50% {
            filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
        }
    }
    
    .home-reward-description {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-reward-benefit {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 8px;
    }
    
    .home-reward-benefit-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-reward-benefit-value {
        font-size: 18px;
        font-weight: 600;
        color: #FFD700;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-reward-requirement {
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-reward-requirement-text {
        font-size: 12px;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        display: block;
        margin-bottom: 12px;
    }
    
    .home-reward-requirement-item {
        margin-bottom: 12px;
    }
    
    .home-reward-requirement-item:last-child {
        margin-bottom: 0;
    }
    
    .home-reward-requirement-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }
    
    .home-reward-requirement-label {
        font-size: 12px;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-reward-requirement-value {
        font-size: 12px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-rewards-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        align-items: center;
    }
    
    .home-reward-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .home-reward-dot.active {
        background: #FFD700;
        width: 24px;
        border-radius: 4px;
    }
    
    /* Блок благодарности */
    .home-thanks-section {
        margin-bottom: 24px;
    }
    
    .home-thanks-card {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.15) 50%, rgba(255, 255, 255, 0.1) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 215, 0, 0.4);
        border-radius: 20px;
        padding: 40px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
    }
    
    .home-thanks-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
        animation: thanksPulse 4s ease-in-out infinite;
    }
    
    .home-thanks-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
        animation: thanksShine 3s ease-in-out infinite;
    }
    
    @keyframes thanksPulse {
        0%, 100% {
            opacity: 0.4;
            transform: scale(1);
        }
        50% {
            opacity: 0.7;
            transform: scale(1.15);
        }
    }
    
    @keyframes thanksShine {
        0% {
            transform: translateX(-100%) translateY(-100%);
        }
        100% {
            transform: translateX(100%) translateY(100%);
        }
    }
    
    .home-thanks-content {
        position: relative;
        z-index: 2;
    }
    
    .home-thanks-title {
        font-size: 22px;
        font-weight: 500;
        color: #ffffff;
        margin: 0 0 20px 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .home-thanks-number-wrapper {
        position: relative;
        display: inline-block;
        margin: 20px 0;
    }
    
    .home-thanks-number {
        font-size: 96px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 0;
        line-height: 1;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
        animation: numberShimmer 3s ease-in-out infinite;
        position: relative;
        z-index: 1;
    }
    
    .home-thanks-number-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
        height: 120%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
        border-radius: 50%;
        animation: numberGlow 2s ease-in-out infinite;
        z-index: 0;
    }
    
    @keyframes numberShimmer {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }
    
    @keyframes numberGlow {
        0%, 100% {
            opacity: 0.6;
            transform: translate(-50%, -50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }
    
    .home-thanks-text {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.95);
        margin: 24px 0 0 0;
        line-height: 1.5;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .home-thanks-decoration {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 1;
    }
    
    .home-thanks-sparkle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: #FFD700;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
        animation: sparkleFloat 3s ease-in-out infinite;
    }
    
    .home-thanks-sparkle-1 {
        top: 20%;
        left: 15%;
        animation-delay: 0s;
    }
    
    .home-thanks-sparkle-2 {
        top: 30%;
        right: 20%;
        animation-delay: 0.5s;
    }
    
    .home-thanks-sparkle-3 {
        bottom: 25%;
        left: 25%;
        animation-delay: 1s;
    }
    
    .home-thanks-sparkle-4 {
        bottom: 20%;
        right: 15%;
        animation-delay: 1.5s;
    }
    
    @keyframes sparkleFloat {
        0%, 100% {
            opacity: 0.3;
            transform: translateY(0) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateY(-10px) scale(1.2);
        }
    }
    
    /* Блок интереса к категориям */
    .home-categories-section {
        margin-bottom: 24px;
    }
    
    .home-categories-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
    }
    
    .home-categories-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .home-categories-header .home-card-title {
        margin: 0;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .home-categories-toggle {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-top: -4px;
    }
    
    .home-categories-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 1);
    }
    
    .home-categories-toggle svg {
        transition: transform 0.3s ease;
    }
    
    .home-categories-card.expanded .home-categories-toggle svg {
        transform: rotate(180deg);
    }
    
    .home-categories-items {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .home-category-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .home-category-item-hidden {
        display: none;
    }
    
    .home-categories-card.expanded .home-category-item-hidden {
        display: flex;
        flex-direction: column;
        gap: 8px;
        animation: fadeInDown 0.3s ease;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .home-category-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .home-category-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-category-value {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-category-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
    }
    
    .home-category-fill {
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
        border-radius: 4px;
        transition: width 0.3s ease;
    }
    
    /* Блок бонусов */
    .home-bonus-section {
        margin-bottom: 24px;
    }
    
    .home-bonus-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
    }
    
    .home-bonus-header {
        margin-bottom: 16px;
    }
    
    .home-bonus-subtitle {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 16px 0 4px 0;
        padding: 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-bonus-content {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .home-bonus-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-bonus-item-content {
        flex: 1;
        min-width: 0;
    }
    
    .home-bonus-item-text {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        line-height: 1.4;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-bonus-item-reward {
        font-size: 24px;
        font-weight: 700;
        color: #FFD700;
        margin: 0;
        line-height: 1;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .home-bonus-history {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0;
        padding: 0;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    /* Блок настроек */
    .home-settings-section {
        margin-bottom: 24px;
    }
    
    .home-settings-link {
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
        width: 100%;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
        font-family: inherit;
    }
    
    .home-settings-link:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .home-settings-link > svg:first-child {
        flex-shrink: 0;
        color: #ffffff;
    }
    
    .home-settings-link > span {
        flex: 1;
        font-size: 16px;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    .home-settings-arrow {
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        transform: rotate(0deg);
    }
    
    .home-settings-section.expanded .home-settings-arrow {
        transform: rotate(90deg);
    }
    
    .home-settings-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: none;
        border-bottom: none;
        border-radius: 0 0 16px 16px;
        margin-top: -1px;
    }
    
    .home-settings-section.expanded .home-settings-content {
        max-height: 1000px;
        padding: 20px 16px;
    }
    
    .home-settings-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .home-settings-item:last-of-type {
        border-bottom: none;
    }
    
    .home-settings-label {
        font-size: 14px;
        color: #ffffff;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        flex: 1;
    }
    
    .home-settings-switch {
        position: relative;
        display: inline-block;
        width: 48px;
        height: 24px;
        cursor: pointer;
    }
    
    .home-settings-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .home-settings-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.2);
        transition: 0.3s;
        border-radius: 24px;
    }
    
    .home-settings-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: #ffffff;
        transition: 0.3s;
        border-radius: 50%;
    }
    
    .home-settings-switch input:checked + .home-settings-slider {
        background-color: rgba(255, 215, 0, 0.5);
    }
    
    .home-settings-switch input:checked + .home-settings-slider:before {
        transform: translateX(24px);
    }
    
    .home-settings-select {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 8px 12px;
        color: #ffffff;
        font-size: 14px;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        cursor: pointer;
        min-width: 120px;
    }
    
    .home-settings-select option {
        background: rgba(0, 0, 0, 0.9);
        color: #ffffff;
    }
    
    .home-settings-save-btn {
        width: 100%;
        margin-top: 16px;
        padding: 12px;
        background: rgba(255, 215, 0, 0.2);
        border: 1px solid rgba(255, 215, 0, 0.5);
        border-radius: 12px;
        color: #FFD700;
        font-size: 16px;
        font-weight: 500;
        font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .home-settings-save-btn:hover {
        background: rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.7);
    }
}
