
.testimonials-section { padding: 80px 0; background: #e8f4f8; }
.testimonials-subtitle { text-align: center; color: #1e1e1e; font-size: 1.15rem; margin-bottom: 2.5rem; }

.testimonials-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 2rem;
  max-width: 100vw;
  overflow: visible;
}
.slider-arrow {
  background: #0d3b66;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13,59,102,0.10);
  transition: background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0 8px;
}
.slider-arrow:hover {
  background: #1a5490;
  box-shadow: 0 4px 16px rgba(13,59,102,0.18);
}
.testimonials-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  transition: transform 0.5s cubic-bezier(.4,2,.3,1);
  box-sizing: border-box;
  justify-content: center;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(13,59,102,0.08);
  padding: 1.2rem 0.8rem;
  min-width: 320px;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s;
  color: #1e1e1e;
  will-change: transform;
}
.testimonial-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(13,59,102,0.15);
  z-index: 1;
}
.testimonials-slider, .testimonials-track {
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .testimonials-track { max-width: 900px; }
}
@media (max-width: 1000px) {
  .testimonials-track { max-width: 700px; }
  .testimonial-card { min-width: 180px; max-width: 200px; padding: 1rem 0.5rem; }
}
@media (max-width: 800px) {
  .testimonials-track { max-width: 98vw; }
  .testimonial-card { min-width: 140px; max-width: 160px; }
}
@media (max-width: 600px) {
  .testimonials-section { padding: 40px 0; }
  .testimonials-slider { max-width: 100vw; }
  .testimonials-track { gap: 0.5rem; max-width: 100vw; }
  .testimonial-card { min-width: 100vw; max-width: 100vw; padding: 1rem 0.5rem; border-radius: 12px; }
  .testimonial-photo { width: 48px; height: 48px; }
  .slider-arrow { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 1.3rem; }
}
.testimonial-card h3 { font-size: 1.2rem; font-weight: 600; margin: 1rem 0 0.5rem; color: #0d3b66; }
.testimonial-role { color: #666; font-size: 0.98rem; margin-bottom: 0.7rem; display: block; }
.testimonial-card p { color: #1e1e1e; font-size: 1rem; margin-bottom: 0.7rem; }
.testimonial-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid #0d3b66; }
.testimonial-stars { color: #0d3b66; font-size: 1.2rem; margin-bottom: 0.5rem; }
.testimonials-pagination { text-align: center; margin-top: 1.5rem; }
.testimonials-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ccc; margin: 0 5px; cursor: pointer; transition: background 0.3s; }
.testimonials-dot.active { background: #0d3b66; }


@media (max-width: 1200px) {
  .testimonials-track { max-width: 900px; }
}
@media (max-width: 1000px) {
  .testimonials-track { max-width: 700px; }
  .testimonial-card { min-width: 260px; max-width: 260px; padding: 1.5rem 1rem; }
}
@media (max-width: 800px) {
  .testimonials-track { max-width: 98vw; }
  .testimonial-card { min-width: 220px; max-width: 220px; }
}
@media (max-width: 600px) {
  .testimonials-section { padding: 40px 0; }
  .testimonials-track { gap: 0.5rem; max-width: 100vw; }
  .testimonial-card {
    min-width: 100vw;
    max-width: 100vw;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    box-sizing: border-box;
  }
  .testimonial-card p {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    font-size: 0.92rem;
    padding: 0 8px;
    line-height: 1.35;
    box-sizing: border-box;
    text-align: left;
    margin: 0 auto;
  }
  .testimonial-card p {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    font-size: 0.92rem;
    padding: 0 8px;
    line-height: 1.35;
    box-sizing: border-box;
  }
  .testimonial-card p {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.92rem;
    padding: 0 8px;
    line-height: 1.35;
    max-width: 100%;
    box-sizing: border-box;
  }
  .testimonial-photo { width: 48px; height: 48px; }
}
/* CSS Variables */
:root {
    --primary-bg: #ffffff;
    --primary-text: #1e1e1e;
    --accent-blue: #0d3b66;
    --light-bg: #f5f7fa;
    --shadow-color: rgba(0,0,0,0.05);
    --cta-bg: #0d3b66;
    --cta-text: #ffffff;
}

/* Modern Reset */
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--primary-bg);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate { animation: slideUp 0.8s ease-out forwards; }
.fade-in { animation: fadeIn 1s ease-out forwards; }

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

/* Header */
header { 
  position: fixed;
  top: 0; 
  width: 100%; 
  background: rgba(255, 255, 255, 0.892); 
  backdrop-filter: blur(10px); 
  z-index: 1000; 
  border-bottom: 1px solid var(--shadow-color); 
}
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; gap: 2rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--accent-blue); text-decoration: none; }
nav { display: flex; align-items: center; }
nav ul { display: flex; list-style: none; gap: 2rem; margin: 0; }
nav a { text-decoration: none; color: var(--primary-text); font-weight: 500; transition: color 0.3s ease; }
nav a:hover { color: var(--accent-blue); }

/* Language Switcher */
.language-switcher {
  /* On desktop: positioned after nav by flexbox */
  margin-left: 2rem;
}
.lang-btn {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--accent-blue);
  min-height: 32px;
  white-space: nowrap;
  font-size: 0.8rem;
}
.lang-btn:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.2);
}
.lang-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(13, 59, 102, 0.3);
}
.lang-btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.flag-icon {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}
.lang-code {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.cta-button { background: var(--cta-bg); color: var(--cta-text); padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; display: inline-block; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(13, 59, 102, 0.3); }
.cta-button.large { padding: 1rem 2rem; font-size: 1.125rem; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4f8 100%); padding: 80px 0 40px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; color: var(--primary-text); }
.hero-text p { font-size: clamp(1.125rem, 2.5vw, 1.5rem); color: #666; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-visual { height: 400px; border-radius: 20px; background: radial-gradient(circle at center, var(--accent-blue) 0%, #1a5490 50%, #0d3b66 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-visual::before { content: ''; position: absolute; width: 200px; height: 200px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; top: 20%; right: 20%; }
.hero-visual::after { content: ''; position: absolute; width: 100px; height: 100px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; bottom: 30%; left: 30%; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 3rem; color: var(--primary-text); }

/* Features */
.features { background: var(--primary-bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.feature-card { text-align: center; padding: 2rem; border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-color); }
.feature-icon { width: 80px; height: 80px; background: var(--accent-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: white; }
.feature-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary-text); }
.feature-card p { color: #666; font-size: clamp(1rem, 2vw, 1.125rem); }

/* Chart Section */
/* Removed empty .chart-section rule */
.chart-container { height: 300px; background: linear-gradient(45deg, var(--accent-blue) 0%, #1a5490 50%, #4a90c2 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 600; position: relative; overflow: hidden; }
.chart-container::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(255,255,255,0.1) 0%, transparent 100%); clip-path: polygon(0% 100%, 20% 80%, 40% 90%, 60% 70%, 80% 85%, 100% 60%, 100% 100%); }

/* How it works */
.how-it-works { background: var(--primary-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.step { text-align: center; padding: 2rem; }
.step-number { font-size: 4rem; font-weight: 700; color: var(--accent-blue); margin-bottom: 1rem; line-height: 1; }
.step h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary-text); }
.step p { color: #666; font-size: clamp(1rem, 2vw, 1.125rem); }

/* Contact CTA */
.contact-cta { text-align: center; }
.contact-form { max-width: 500px; margin: 2rem auto 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-form input { flex: 1; min-width: 250px; padding: 1rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; }
.contact-form input:focus { outline: none; border-color: var(--accent-blue); }
.contact-form button { flex-shrink: 0; }

/* Footer */
footer { background: var(--primary-text); color: white; padding: 3rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: white; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon { display: inline-block; width: 40px; height: 40px; background: var(--accent-blue); border-radius: 50%; text-align: center; line-height: 40px; color: white; text-decoration: none; transition: transform 0.3s ease; }
.social-icon:hover { transform: scale(1.1); }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; color: #ccc; }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content { 
        flex-direction: row; 
        gap: 1rem; 
        padding: 0.75rem 0;
        justify-content: center;
        position: relative;
    }
    .logo {
        margin: 0 auto;
        text-align: center;
    }
    /* Hide only navigation menu on mobile, not the language switcher */
    nav ul {
        display: none;
    }
    nav {
        display: none;
    }
    /* Move language switcher to top right on mobile */
    .language-switcher {
        position: absolute;
        top: 0.25rem;
        right: 0;
        z-index: 1001;
        margin-left: 0;
    }
    .lang-btn {
        padding: 3px 6px;
        min-height: 28px;
        gap: 3px;
        border-radius: 4px;
        font-size: 0.7rem;
    }
    .flag-icon {
        width: 14px;
        height: 10px;
    }
    .lang-code {
        font-size: 0.7rem;
        font-weight: 600;
    }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-visual { height: 250px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .contact-form { flex-direction: column; }
    .contact-form input { min-width: 100%; }
    section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .header-content {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    /* Ensure navigation is hidden on small screens */
    nav {
        display: none;
    }
    /* Language switcher positioning for mobile */
    .language-switcher {
        position: absolute;
        top: 0.2rem;
        right: 0;
        z-index: 1001;
        margin-left: 0;
    }
    .lang-btn {
        padding: 2px 5px;
        min-height: 24px;
        gap: 2px;
        border-radius: 3px;
        font-size: 0.65rem;
    }
    .flag-icon {
        width: 12px;
        height: 9px;
    }
    .lang-code {
        font-size: 0.65rem;
        font-weight: 600;
    }
    .hero { padding: 70px 0 30px; } /* Увеличили отступ сверху из-за фиксированного хедера */
    .feature-card,
    .step { padding: 1.5rem; }
    section { padding: 40px 0; }
}

/* Ultra small screens and older devices */
@media (max-width: 320px) {
    .lang-btn {
        padding: 2px 4px;
        min-height: 22px;
        gap: 2px;
    }
    .flag-icon {
        width: 10px;
        height: 8px;
    }
    .lang-code {
        font-size: 0.6rem;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .language-switcher {
        position: absolute;
        top: 0.1rem;
        right: 0;
        z-index: 1001;
        margin-left: 0;
    }
    .lang-btn {
        padding: 2px 4px;
        min-height: 24px;
        gap: 2px;
        font-size: 0.65rem;
    }
    nav {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .flag-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lang-btn {
        border-color: #4a90e2;
        color: #4a90e2;
    }
    .lang-btn:hover {
        background: #4a90e2;
        color: #1a1a1a;
    }
    .lang-btn:focus {
        outline-color: #4a90e2;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lang-btn {
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .lang-btn:hover {
        transform: none;
    }
    .lang-btn:active {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .lang-btn {
        min-height: 32px;
        padding: 4px 8px;
    }
    .lang-btn:hover {
        transform: none;
        box-shadow: none;
    }
    .lang-btn:active {
        background: var(--accent-blue);
        color: white;
        transform: scale(0.95);
    }
}
