/* GOMINIAPP — общие стили сайта */

:root {
    --brand: #3dbd9a;
    --brand-hover: #f0f0f0;
    --text: #333;
    --muted: #666;
    --surface: #f8f9fa;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* чтобы фиксированное меню не перекрывало заголовки секций */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
}

img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

#features a:focus-visible,
#faq [role="button"]:focus-visible {
    outline-color: var(--brand);
}

#navigation {
    position: fixed !important;
    z-index: 1000 !important;
}

/* ---------- Hero ---------- */

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1 1 320px;
    min-width: 280px;
    text-align: left;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 4.6vw, 3rem);
    line-height: 1.2;
    margin: 0 0 20px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.9;
    margin: 0 0 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-images {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hero-images img {
    width: 45%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15em;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #fff;
    color: var(--brand);
    border: 2px solid #fff;
}

.btn-primary:hover { background-color: var(--brand-hover); transform: translateY(-2px); }

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

/* ---------- Мобильная версия ---------- */

@media (max-width: 768px) {
    #hero-section { padding: 110px 20px 50px !important; }

    .hero-grid { flex-direction: column; gap: 30px; }
    .hero-text { text-align: center; padding-right: 0 !important; }
    .hero-subtitle { margin-bottom: 30px; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-actions .btn { width: 100%; padding: 15px 25px; font-size: 1.05em; }

    .hero-images { gap: 15px; }
    .hero-images img { width: 42%; max-width: 170px; }

    .desktop-menu { display: none !important; }
    .burger-btn { display: block !important; }

    .logo span { font-size: 1.2em !important; }

    .language-switcher { gap: 8px !important; }
    .language-switcher a,
    .language-switcher span {
        padding: 4px 8px !important;
        font-size: 0.8em !important;
    }

    .social-links { gap: 20px !important; margin-bottom: 40px !important; }
    .social-links a { min-width: 120px !important; padding: 20px 15px !important; }

    #social-section h2 { font-size: 2em !important; margin-bottom: 15px !important; }
    #social-section p  { font-size: 1em !important; }
    #social-section h3 { font-size: 1.4em !important; margin-bottom: 15px !important; }
    #social-section div[style*="gap: 40px"] { gap: 30px !important; }

    #features h2, #faq h2 { font-size: 1.9em !important; }
    #features section, #faq div { }
}

@media (max-width: 480px) {
    #features > div > div[style*="margin-bottom: 60px"] { margin-bottom: 35px !important; }
}

/* ---------- Десктоп ---------- */

@media (min-width: 769px) {
    .burger-btn { display: none !important; }
    .mobile-menu { display: none !important; }

    .logo { order: 1; }
    .language-switcher { order: 2; flex-grow: 0; margin: 0 20px; }
    .desktop-menu { order: 3; }
}

/* Уважаем системную настройку «уменьшить анимацию» */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
