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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #0891b2;
    --secondary-color: #06b6d4;
    --accent-color: #fffb02;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #fefefe;
    --bg-secondary: #f0f9ff;
    --border-color: #bae6fd;
    --shadow: 0 10px 15px -3px rgba(8, 145, 178, 0.1), 0 4px 6px -2px rgba(8, 145, 178, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(8, 145, 178, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    padding-top: 80px; /* Отступ для фиксированного меню */
    width: 100%;
    max-width: 100vw;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    margin-left: 3rem;
}

.nav-logo picture{
    width: auto;
    height: 70px;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
    position: relative;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    padding: 3px;
}

.logo-img:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3), 0 0 15px rgba(255, 251, 2, 0.2);
    transform: rotate(5deg);
    animation: logoSpinGlow 2s ease-in-out infinite;
}

@keyframes logoSpinGlow {
    0% {
        background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
        filter: hue-rotate(0deg);
    }
    50% {
        background: conic-gradient(from 180deg, var(--accent-color), var(--primary-color), var(--secondary-color), var(--accent-color));
        filter: hue-rotate(45deg);
    }
    100% {
        background: conic-gradient(from 360deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
        filter: hue-rotate(0deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #38bdf8 25%, #06b6d4 50%, #fcd34d 75%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0; /* Убираем отступ для hero секции */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: 100% 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
    margin-left: 3rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.highlight {
    color: white;
}

.sparkle-emoji {
    display: inline-block;
    font-size: 1.1em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #0891b2, #06b6d4, #fbbf24, #f59e0b);
    background-size: 200% 200%;
    color: white;
    box-shadow: var(--shadow);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.4), 0 10px 25px rgba(8, 145, 178, 0.3);
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #0891b2, #06b6d4);
}

.btn-secondary {
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.2), rgba(8, 145, 178, 0.2));
    color: white;
    border: 2px solid;
    border-image: linear-gradient(45deg, #fbbf24, #0891b2) 1;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary:hover {
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.3), rgba(8, 145, 178, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-left: 4rem;
}

.bruno-image {
    width: 410px;
    height: 410px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 10%; left: 5%; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; }
.floating-icon:nth-child(3) { bottom: 20%; left: 10%; }
.floating-icon:nth-child(4) { bottom: 10%; right: 10%; }

/* Problems Slider Section */
.problems-slider-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.problems-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: 100% 100%;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.slider-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    padding: 0 1rem;
}

.slide {
    flex: 0 0 calc((100% - 3rem) / 3); /* Точно 3 слайда видно */
    max-width: calc((100% - 3rem) / 3);
}

.slide-content {
    background: white;
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.1);
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 251, 2, 0.1), transparent);
    transition: left 0.5s;
}

.slide-content:hover::before {
    left: 100%;
}

.slide-content:hover {
    animation: slideColorShift 2s ease-in-out infinite;
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.2);
}

.slide-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(8, 145, 178, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn:disabled {
    background: rgba(8, 145, 178, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
}

.slider-btn:disabled:hover {
    background: rgba(8, 145, 178, 0.3);
    transform: none;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transform: scale(1.2);
}

.dot:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transform: scale(1.1);
}

/* Sections */
section {
    padding: 3rem 0;
    scroll-margin-top: 80px; /* Дополнительная компенсация для старых браузеров */
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
    scroll-margin-top: 5px; /* Большой отступ для четкого позиционирования */
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.card-icon {
    width: 340px;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0;
    background: transparent;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

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

.card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Coming Soon Cards */
.feature-card.coming-soon {
    opacity: 0.6;
    position: relative;
}

.feature-card.coming-soon .card-icon img {
    filter: grayscale(30%);
}

.coming-soon-badge {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    font-style: italic;
}

.card-highlight {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(45deg, var(--accent-color), #f97316);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #38bdf8 100%);
    color: white;
    padding: 5rem 0;
    scroll-margin-top: 10px; /* Увеличенный отступ для четкого позиционирования */
}

.reviews-section .section-title {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
}

.reviews-section .section-subtitle {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    font-size: 1.3rem;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-align: center;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.review-stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.review-author strong {
    color: white;
    font-size: 1rem;
}

.review-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Global Community Section */
.languages {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.world-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.world-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.world-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    transition: var(--transition);
}

.world-image img:hover {
    transform: scale(1.05);
}

.world-bruno-image {
    flex: 1;
    max-width: 250px;
    text-align: center;
}

.world-bruno-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
    transition: var(--transition);
}

.world-bruno-image img:hover {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    color: var(--text-color);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--text-light);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #0891b2, #06b6d4);
    background-size: 300% 300%;
    animation: gradientShift 2.5s ease infinite;
    border: none;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.4), 0 10px 25px rgba(8, 145, 178, 0.3);
    animation-duration: 1.5s;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    color: var(--text-color);
}

.cta-feature i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-logo picture{
    width: auto;
}
.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 251, 2, 0.2);
}

.footer-logo img:hover {
    box-shadow: 0 4px 15px rgba(255, 251, 2, 0.4);
    transform: scale(1.1);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-info p {
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.support-link:hover {
    opacity: 0.8;
}

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

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

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

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

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

@keyframes slideColorShift {
    0% { 
        border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
        background: white;
    }
    25% { 
        border-image: linear-gradient(135deg, var(--accent-color), #38bdf8) 1;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.02), rgba(56, 189, 248, 0.02));
    }
    50% { 
        border-image: linear-gradient(225deg, #38bdf8, var(--primary-color)) 1;
        background: linear-gradient(225deg, rgba(56, 189, 248, 0.05), rgba(8, 145, 178, 0.02));
    }
    75% { 
        border-image: linear-gradient(315deg, var(--primary-color), var(--accent-color)) 1;
        background: linear-gradient(315deg, rgba(8, 145, 178, 0.02), rgba(251, 191, 36, 0.02));
    }
    100% { 
        border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
        background: white;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
        z-index: 999;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: var(--bg-secondary);
        color: var(--primary-color);
    }

    /* Mobile Language Selector */
    .nav-menu .language-selector {
        position: relative;
        display: block;
        margin: 2rem 1rem 1rem;
        width: auto;
    }

    .nav-menu .language-selector .current-language {
        background: var(--bg-secondary);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .nav-menu .language-dropdown {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
    }

    .nav-menu .language-btn {
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin: 0.5rem 0;
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-menu .language-btn:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .nav-menu .language-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-logo picture{
        height: 45px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .nav-container {
        padding: 0.6rem 15px;
        position: relative;
        z-index: 1001;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        order: 1;
        padding: 0 10px;
    }
    
    .hero-image {
        order: 2;
    }
    
    .image-container {
        margin-left: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .bruno-image {
        width: 280px;
        height: 280px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .card-icon {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .feature-card {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .slider-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slider-wrapper {
        overflow: visible;
    }
    
    .slider-track {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        transform: none !important;
        transition: none !important;
        padding: 0;
    }
    
    .slide {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .slide-content {
        height: auto;
        min-height: auto;
        padding: 0.5rem 0;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center;
    }
    
    .slide-content::before {
        display: none;
    }
    
    .slide-content:hover::before {
        display: none;
    }
    
    .slide-content:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .slide-icon {
        display: none;
    }
    
    .slide-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-color);
        margin: 0;
        font-weight: 400;
    }
    
    .slider-btn {
        display: none;
    }
    
    .slider-dots {
        display: none;
    }
    
    .problems-slider-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        padding: 0.5rem 10px;
    }
    
    .nav-container .current-language {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .nav-container .language-selector {
        margin-right: 0.5rem;
    }
    
    .nav-logo {
        font-size: 1.4rem;
        gap: 10px;
        margin-left: 15px;
    }

    .nav-logo picture{
        height: 45px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .hero-features {
        justify-content: center;
        padding: 0 5px;
    }
    
    .feature-pill {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: normal;
        text-align: center;
        margin: 0 5px;
    }
    
    .hero-text {
        padding: 0 5px;
        text-align: center;
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .bruno-image {
        width: 240px;
        height: 240px;
    }
    
    .image-container {
        margin-left: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
        gap: 1rem;
    }
    
    .feature-card {
        margin: 0 5px;
        padding: 1rem 0.5rem;
    }
    
    .card-icon {
        width: 100%;
        max-width: 280px;
        height: 180px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .review-card {
        padding: 1.5rem 1rem;
    }
    
    .world-images-container {
        gap: 0.5rem;
        margin-top: 1rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .world-image {
        max-width: 55%;
        flex: 1;
    }
    
    .world-bruno-image {
        max-width: 35%;
        flex: 0 0 auto;
    }
    
    .world-image img,
    .world-bruno-image img {
        max-width: 100%;
    }
    
    .cta-features {
        padding: 0 10px;
        gap: 0.5rem;
    }
    
    .cta-feature {
        font-size: 0.9rem;
    }
    
    .footer-content {
        padding: 0 10px;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .nav-container {
        padding: 0.4rem 8px;
    }
    
    .nav-container .current-language {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        min-width: 35px;
    }
    
    .nav-container .language-selector {
        margin-right: 0.3rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .feature-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin: 0 2px;
    }
    
    .bruno-image {
        width: 200px;
        height: 200px;
    }
    
    .image-container {
        margin-left: 0;
    }
    
    .card-icon {
        max-width: 260px;
        height: 160px;
    }
    
    .feature-card {
        padding: 0.8rem 0.4rem;
        margin: 0 2px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .features-grid,
    .reviews-grid {
        padding: 0 2px;
    }
    
    .world-images-container {
        gap: 0.3rem;
        margin-top: 0.5rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .world-image {
        max-width: 52%;
        flex: 1;
    }
    
    .world-bruno-image {
        max-width: 33%;
        flex: 0 0 auto;
    }
}

/* Ultra Small Devices */
@media (max-width: 320px) {
    .nav-logo {
        font-size: 1.1rem;
        gap: 6px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .bruno-image {
        width: 180px;
        height: 180px;
    }
    
    .card-icon {
        max-width: 240px;
        height: 140px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .world-images-container {
        gap: 0.2rem;
        margin-top: 0.5rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .world-image {
        max-width: 50%;
        flex: 1;
    }
    
    .world-bruno-image {
        max-width: 32%;
        flex: 0 0 auto;
    }
    
    .nav-container .current-language {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
        min-width: 30px;
    }
    
    .nav-container .language-selector {
        margin-right: 0.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Компенсация для фиксированной навигации */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #0891b2, #06b6d4, #fbbf24, #f59e0b);
    background-size: 200% 200%;
    border-radius: 4px;
    animation: gradientShift 4s ease infinite;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #0891b2, #06b6d4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
} 

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    justify-content: center;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 120px;
    padding: 0.5rem 0;
}

.language-selector:hover .language-dropdown,
.language-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.language-btn.active {
    background: var(--primary-color);
    color: white;
}

.language-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    height: fit-content;
    align-self: center;
}

.current-language:hover {
    border-color: var(--primary-color);
    background: white;
}

.language-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

/* Language selector in navigation - now inside nav-right */

@media (max-width: 768px) {
    /* Show language selector in navigation bar next to hamburger */
    .nav-container .language-selector {
        position: relative;
        display: flex;
        margin-left: 0.5rem;
        margin-right: 0;
    }
    
    .nav-container .hamburger {
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .nav-container .current-language {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        background: var(--primary-color);
        color: white;
        border: 1px solid var(--primary-color);
        border-radius: 20px;
        min-width: 45px;
        justify-content: center;
    }
    
    .nav-container .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        min-width: 120px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .nav-container .language-selector:hover .language-dropdown,
    .nav-container .language-dropdown:hover,
    .nav-container .language-selector.active .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-container .language-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Language selector is now always visible in nav-container */
}

/* Image optimization styles */
img {
    height: auto;
    max-width: 100%;
}

picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lazy loading enhancement */
img[loading="lazy"] {
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* WebP support detection fallback */
.no-webp picture source[type="image/webp"] {
    display: none;
}

/* Preload critical images optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Progressive image loading */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* FAQ Section Styles */
.faq-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #38bdf8 100%);
    color: white;
  
}
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-section .section-title {
    color: white !important;
    margin-bottom: 20px;
    background: none !important;
    -webkit-text-fill-color: white !important;
}

.faq-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 25px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.faq-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 25px;
}

.faq-answer p {
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    font-size: 16px;
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 15px;
        padding: 18px;
    }
    
    .faq-answer {
        padding: 0 18px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 18px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}