/* ========== VARIABLES ========== */
:root {
    /* Цвета */
    --primary-color: #4a89dc;
    --secondary-color: #3bafda;
    --dark-blue: #1800f3;
    --white: #fff;
    --gradient-bg: linear-gradient(135deg, #5bc9b3, #1800f3);
    --gradient-btn: linear-gradient(135deg, #223BFF, #D50DFA);
    --text-dark: #2B2D42;
    --text-light: #6C757D;
    
    /* Цвета текста */
    --text-header: #ffffff;
    --text-card-title: #333333;
    --text-card-body: #495057;
    --text-card-footer: #6c757d;
    --text-badge: #ffffff;
    --text-footer: #ffffff;
    --text-filter-btn-active: red;
    --text-filter-title: #fff;
    --text-send-btn: #fff;
    --text-no-result: #fff;
    --text-gradient-btn: #fff;
    
    /* Размеры шрифтов */
    --text-header-size: 1.3rem;
    --text-card-title-size: 1.1rem;
    --text-base-size: 1rem;
    --text-sm-size: 0.95rem;
    --text-xs-size: 0.9rem;
    --text-lg-size: 1.1rem;
    --text-xl-size: 1.3rem;
    --text-2xl-size: 1.5rem;
    --text-3xl-size: 1.8rem;
    --text-4xl-size: 2.2rem;
    --text-5xl-size: 2.5rem;
    --text-6xl-size: 3.5rem;
    
    /* Жирность шрифтов */
    --text-header-weight: bold;
    --text-normal-weight: normal;
    --text-medium-weight: 500;
    --text-semibold-weight: 600;
    --text-bold-weight: 700;
    
    /* Остальные переменные */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --card-padding: 30px;
    --transition: all 0.3s ease;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--gradient-bg) fixed;
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base-size);
    font-weight: var(--text-normal-weight);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 20px;
    color: var(--text-header);
}

/* ========== TYPOGRAPHY SCALE ========== */
h1 {
    font-size: var(--text-6xl-size);
    font-weight: var(--text-bold-weight);
}

h2 {
    font-size: var(--text-5xl-size);
    font-weight: var(--text-bold-weight);
}

h3 {
    font-size: var(--text-4xl-size);
    font-weight: var(--text-bold-weight);
}

h4 {
    font-size: var(--text-3xl-size);
    font-weight: var(--text-semibold-weight);
}

h5 {
    font-size: var(--text-2xl-size);
    font-weight: var(--text-semibold-weight);
}

h6 {
    font-size: var(--text-xl-size);
    font-weight: var(--text-semibold-weight);
}

p {
    font-size: var(--text-base-size);
    font-weight: var(--text-normal-weight);
    line-height: 1.6;
}

/* ========== BUTTON STYLES ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-btn);
    color: var(--text-gradient-btn);
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--text-base-size);
    font-weight: var(--text-semibold-weight);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ========== HEADER & NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    padding-left: 20px;
    padding-right: 20px;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo {
    color: var(--primary-color);
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

header.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-3xl-size);
    font-weight: var(--text-bold-weight);
    color: var(--text-header);
    text-decoration: none;
    transition: var(--transition);
}

.logo span {
    color: var(--dark-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-header);
    font-size: var(--text-header-size);
    font-weight: var(--text-medium-weight);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #D50DFA;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    background: var(--dark-blue);
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: var(--text-header-size);
    font-weight: var(--text-header-weight);
    color: var(--text-header);
    white-space: nowrap;
    flex-shrink: 0;
}

.language-switcher:hover { 
    background: var(--dark-blue);
}

.language-switcher:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--dark-blue);
    opacity: 0;
    border-radius: 100%;
    transform-origin: 50% 50%;
    animation: var(--ripple-animation);
}

.current-language, .fa-globe {
    font-size: var(--text-header-size);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    font-weight: var(--text-header-weight);
    color: var(--text-header);
}

.section-title {
    text-align: center;
}



/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/images/common/hero.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    margin-top: 50px;
    position: relative;
    z-index: 1;
    max-width: 70%
}

.hero-title {
    font-size: var(--text-6xl-size);
    font-weight: var(--text-bold-weight);
    margin-bottom: 20px;
    line-height: 1.2;
    
}

.hero-subtitle {
    font-size: var(--text-2xl-size);
    font-weight: var(--text-medium-weight);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-text-block {
    margin-top: 25px;
}

.hero-text {
    font-size: var(--text-lg-size);
    font-weight: var(--text-normal-weight);
    line-height: 1.6;
    margin-bottom: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
    opacity: 0.8;
}

/* ========== CARD STYLES (Shared for features, tech, benefits) ========== */
.feature-card,
.tech-item,
.benefit-item,
.demo-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--card-padding);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.tech-item:hover,
.benefit-item:hover,
.demo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* ========== Logs SECTION ========== */
.logs {
    padding:20px;
    margin-top: 60px;
}


.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  box-shadow: var(--box-shadow);
}

#logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--text-card-body);
}

#logs-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--primary-color);
}

#logs-table th {
  padding: 12px 8px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  border-bottom: 2px solid var(--secondary-color);
  font-size: 0.9rem;
}

#logs-table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--gray-light);
}

#logs-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

#logs-table tbody tr:nth-child(odd) {
  background-color: var(--white);
}

#logs-table tbody tr:hover {
  background-color: #e9ecef;
}

#logs-table td {
  padding: 10px 8px;
  vertical-align: top;
  line-height: 1.4;
}

/* Стили для кликабельных элементов */
.forum-id,
.ip-address,
.session-id,
.telegram-user {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

.forum-id:hover,
.ip-address:hover,
.session-id:hover,
.telegram-user:hover {
  background-color: var(--accent-light);
  color: var(--accent-color);
  transform: translateY(-1px);
}

/* ========== FEATURES SECTION ========== */
.features {
    background: var(--gradient-btn);
    backdrop-filter: blur(15px);
    padding: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feature-title {
    font-size: var(--text-2xl-size);
    font-weight: var(--text-semibold-weight);
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-header);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 15px;
}

.feature-list li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: var(--text-lg-size);
    font-weight: var(--text-normal-weight);
    position: relative;
    z-index: 2;
    text-align: left;
}

.feature-list strong {
    color: var(--white);
    font-weight: var(--text-semibold-weight);
    display: block;
    margin-bottom: 3px;
}

.feature-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    opacity: 0.06;
    color: var(--white);
    z-index: 1;
    transition: all 0.5s ease;
    pointer-events: none;
    width: 100%;
    text-align: center;
    animation: 
        floating-icon 6s ease-in-out infinite,
        glow-pulse 4s ease-in-out infinite;
}

.feature-card:hover .feature-bg-icon {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ========== TECHNOLOGIES SECTION ========== */
.technologies {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    padding: 20px;
    min-height: 100vh;
   
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(74,137,220,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(213,13,250,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 2;
    
}

.tech-item {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
}

.tech-icon {
    font-size: var(--text-4xl-size);
    color: var(--white);
    margin-bottom: 25px;
    background: var(--gradient-btn);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-item h3 {
    font-size: var(--text-2xl-size);
    font-weight: var(--text-semibold-weight);
    margin-bottom: 20px;
    color: var(--text-header);
}

.tech-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--text-base-size);
    font-weight: var(--text-normal-weight);
    text-align: justify;
}

.tech-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-btn);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover::after {
    opacity: 1;
}

/* ========== BENEFITS SECTION ========== */
.benefits {
    background: var(--gradient-btn);
    color: white;
    padding: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item h3 {
    font-size: var(--text-xl-size);
    font-weight: var(--text-semibold-weight);
    margin-bottom: 15px;
    color: var(--text-header);
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: var(--text-base-size);
    font-weight: var(--text-normal-weight);
}

/* ========== DEMO GALLERY SECTION ========== */
.demo-gallery {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.demo-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(213,13,250,0.08) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(74,137,220,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.demo-subtitle {
    text-align: center;
    font-size: var(--text-xl-size);
    font-weight: var(--text-normal-weight);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.demo-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-cta h3 {
    font-size: var(--text-3xl-size);
    font-weight: var(--text-semibold-weight);
    margin-bottom: 15px;
    color: var(--text-header);
}

.demo-cta p {
    font-size: var(--text-lg-size);
    font-weight: var(--text-normal-weight);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background-color: transparent;
    margin-top: auto;
    gap: 15px;
    padding: 20px;
}

.networks {
    display: flex; 
    align-items: center; 
    gap: 15px;
    padding: 5px 0;
}

/* ========== FORUM ITEMS STYLES ========== */
.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    width: 100%;
}

.item {
    background-color: #ffffff;
    color: var(--text-card-body);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 300px;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item > * { cursor: auto; }

.item-image {
    width: 100%;
    border-radius: 6px;
    max-height: 200px;
    object-fit: cover;
}

.item-title {
    font-size: var(--text-card-title-size);
    font-weight: var(--text-semibold-weight);
    color: var(--dark-blue);
    margin: 0;
}

.item-main {
    gap: 10px;
    height: 100%;
    display: flex; 
    flex-direction: column; 
    cursor: pointer; /* Добавляем курсор-указатель */
}
.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    padding-top: 0;
}

.badge {
    background-color: var(--dark-blue);
    color: var(--text-badge);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--text-xs-size);
    font-weight: var(--text-normal-weight); 
}

.location-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-sm-size);
    font-weight: var(--text-normal-weight);
}

.location-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.location-link i { 
    flex-shrink: 0; 
}

.item-description-container { 
    position: relative;
}

.item-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    transition: var(--transition);
    line-height: 1.4;
    font-size: var(--text-sm-size);
    font-weight: var(--text-normal-weight);
    margin: 0;
    color: var(--text-card-body);
}

.item-description[data-expanded="true"] {
    -webkit-line-clamp: unset;
    display: block;
}

.read-more-btn {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.read-more-text {
    color: var(--dark-blue);
    cursor: pointer;
    font-size: var(--text-xs-size);
    font-weight: var(--text-medium-weight);
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(213, 13, 250, 0.1);
}

.read-more-text:hover { 
    background-color: rgba(213, 13, 250, 0.2); 
}

.item-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--text-card-footer);
    font-size: var(--text-xs-size);
    font-weight: var(--text-normal-weight);
    padding-top: 5px;
    border-top: 1px solid rgba(24, 0, 243, 0.2);
}

.item-footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-footer-left, .item-footer-right { 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

/* ========== ANIMATIONS ========== */
@keyframes floating-icon {
    0% {
        opacity: 0.06;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.08;
        transform: translate(-50%, -52%) scale(1.02) rotate(2deg);
    }
    50% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1.03) rotate(0deg);
    }
    75% {
        opacity: 0.08;
        transform: translate(-50%, -48%) scale(1.02) rotate(-2deg);
    }
    100% {
        opacity: 0.06;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    }
}

@keyframes subtle-shine {
    0%, 100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes gradient-shift {
    0% {
        background: radial-gradient(circle at center, 
            rgba(255,255,255,0.1) 0%, 
            rgba(255,255,255,0.05) 30%,
            rgba(255,255,255,0.02) 70%);
    }
    50% {
        background: radial-gradient(circle at 30% 40%, 
            rgba(255,255,255,0.12) 0%, 
            rgba(255,255,255,0.06) 30%,
            rgba(255,255,255,0.03) 70%);
    }
    100% {
        background: radial-gradient(circle at center, 
            rgba(255,255,255,0.1) 0%, 
            rgba(255,255,255,0.05) 30%,
            rgba(255,255,255,0.02) 70%);
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.feature-card,
.tech-item,
.benefit-item,
.demo-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.feature-card.visible,
.tech-item.visible,
.benefit-item.visible,
.demo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

.tech-item:nth-child(1) { transition-delay: 0.1s; }
.tech-item:nth-child(2) { transition-delay: 0.2s; }
.tech-item:nth-child(3) { transition-delay: 0.3s; }

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: var(--text-5xl-size);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl-size);
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 80%;
    }
    
    .hero-title {
        font-size: var(--text-4xl-size);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg-size);
    }
    
    .hero-image {
        width: 45%;
        opacity: 0.7;
    }
    
    .section-title {
        font-size: var(--text-4xl-size);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --card-padding: 25px;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 80%;
        text-align: left;
    }
    
    .hero-title {
        font-size: var(--text-3xl-size);
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: var(--text-lg-size);
        margin-bottom: 25px;
    }
    
    .hero-image {
        position: relative;
        width: 80%;
        margin: 40px auto 0;
        opacity: 0.6;
    }
    
    .hero-text {
        font-size: var(--text-base-size);
    }
    
    .section-title {
        font-size: var(--text-3xl-size);
        margin-bottom: 40px;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .tech-item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .demo-cta {
        padding: 30px 20px;
    }
    
    .demo-cta h3 {
        font-size: var(--text-2xl-size);
    }
    
    .demo-cta p {
        font-size: var(--text-base-size);
    }
    
    .feature-card {
        min-height: 380px;
        padding: 25px;
    }
    
    .feature-bg-icon {
        font-size: 12rem;
    }
    
    .feature-title {
        font-size: var(--text-xl-size);
        margin-bottom: 20px;
    }
    
    .feature-list {
        gap: 12px;
    }
    
    .feature-list li {
        font-size: var(--text-base-size);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Language switcher всегда виден на мобильных */
    .language-switcher {
        display: flex;
        margin-left: auto;
        order: 2;
    }
    
    .logo {
        order: 1;
        font-size: var(--text-2xl-size);
    }
    
    .mobile-menu-btn {
        order: 3;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 15px;
        --card-padding: 20px;
    }
    
    .hero-title {
        font-size: var(--text-2xl-size);
    }
    
    .hero-subtitle {
        font-size: var(--text-base-size);
    }
    
    .hero-text {
        font-size: var(--text-sm-size);
        line-height: 1.5;
    }
    
    .hero-image {
        width: 90%;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: var(--text-2xl-size);
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px;
        min-height: 360px;
    }
    
    .feature-bg-icon {
        font-size: 10rem;
    }
    
    .feature-title {
        font-size: var(--text-lg-size);
        margin-bottom: 15px;
    }
    
    .feature-list {
        gap: 10px;
    }
    
    .feature-list li {
        font-size: var(--text-sm-size);
        line-height: 1.4;
    }
    
    .tech-icon {
        width: 70px;
        height: 70px;
        font-size: var(--text-3xl-size);
        margin-bottom: 20px;
    }
    
    .tech-item h3 {
        font-size: var(--text-xl-size);
        margin-bottom: 15px;
    }
    
    .tech-item p {
        font-size: var(--text-sm-size);
        text-align: center;
    }
    
    .items {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: var(--text-xl-size);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .language-switcher {
        padding: 6px 10px;
        font-size: var(--text-xs-size);
    }
    
    .current-language {
        font-size: var(--text-xs-size);
    }
    
    .fa-globe {
        font-size: var(--text-xs-size);
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: var(--text-xl-size);
    }
    
    .hero-subtitle {
        font-size: var(--text-sm-size);
    }
    
    .hero-text {
        font-size: var(--text-xs-size);
    }
    
    .section-title {
        font-size: var(--text-xl-size);
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .tech-item {
        padding: 15px;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl-size);
        margin-bottom: 15px;
    }
    
    .tech-item h3 {
        font-size: var(--text-lg-size);
        margin-bottom: 12px;
    }
    
    .tech-item p {
        font-size: var(--text-xs-size);
        line-height: 1.5;
    }
}

/* Убедимся, что на десктопе хедер работает нормально */
@media (min-width: 769px) {
    header nav {
        justify-content: space-between;
    }
    
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ========== FOOTER ICON HOVER STYLES ========== */
.networks a {
    transition: transform 0.3s ease;
}

.networks a:hover {
    transform: scale(1.2);
}