/* ============================================================
   RENOVA — mobile-first + CRO стилі (усі сторінки, усі мови)
   Підключається ПІСЛЯ основних стилів.
   ============================================================ */

/* ---------- Sticky mobile CTA (головна, глосарій; на послугах уже є свій) ---------- */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--color-accent, #B89F5D), #d1b874);
    color: var(--color-text, #222);
    padding: 14px 24px;
    border-radius: var(--radius-full, 50px);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(184, 159, 93, 0.25);
    z-index: 1100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}
.sticky-mobile-cta.visible {
    opacity: 1;
    transform: translateY(0);
}
.sticky-mobile-cta .sticky-cta-arrow { transition: transform 0.3s ease; }

@media (max-width: 768px) {
    .sticky-mobile-cta { display: flex; }

    /* Cookie-банер не перекриває sticky CTA: піднімаємо його вище кнопки */
    #cookieConsent { bottom: 76px !important; }
    #cookieConsent > div { margin: 0 12px 8px 12px !important; max-width: none !important; }
}

/* ---------- Форми: без авто-зуму iOS (шрифт контролів >= 16px) ---------- */
@media (max-width: 768px) {
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .glossary-contact-form input,
    .glossary-contact-form select,
    .glossary-contact-form textarea {
        font-size: 16px !important;
    }

    /* Зручні tap-цілі (мінімум ~44px) */
    .contact-form .submit-btn,
    .glossary-submit-btn,
    .cta-button,
    .hero-cta-btn {
        min-height: 48px;
    }
    .footer-links a {
        display: inline-block;
        padding: 10px 8px;
    }
    .faq-question,
    .article-faq-question,
    .service-faq-question {
        min-height: 48px;
    }

    /* Перемикач мов: трохи більші tap-цілі */
    .lang-switcher a { padding: 7px 10px; }
}

/* ---------- Hero: CTA у першому екрані на коротких телефонах ---------- */
@media (max-width: 768px) {
    .hero { height: auto; min-height: 100svh; padding: 96px 0 88px; }
    .scroll-down-indicator { bottom: max(16px, env(safe-area-inset-bottom)); }
    /* Швидша поява тексту й CTA (менше "порожнього" першого екрана) */
    .hero-content { animation-duration: 0.7s; }
}

/* ---------- Захист від горизонтального скролу (внутрішні сторінки без bundle) ---------- */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* ---------- Cookie-кнопка: нормальна tap-ціль ---------- */
#cookieAcceptBtn { min-height: 44px; padding: 10px 18px !important; font-size: 13px !important; }

/* ---------- Соц-іконки: tap-ціль ---------- */
.social-icons a { display: inline-flex; padding: 12px; }

/* ---------- FAQ: довгі відповіді не обрізаються (перекриває max-height:500px) ---------- */
.faq-item.active .faq-answer,
.article-faq-item.active .article-faq-answer,
.service-faq-item.active .service-faq-answer { max-height: 2400px; }

/* ---------- Статистика: перенос на вузьких екранах ---------- */
@media (max-width: 480px) {
    .stats { flex-wrap: wrap; gap: 24px 40px; }
    .stat-item .number { font-size: 3rem; }
}

/* ---------- Дуже малі екрани ---------- */
@media (max-width: 400px) {
    .sticky-mobile-cta { font-size: 0.9rem; padding: 13px 18px; }
}

/* ============================================================
   Стійкі стилі CTA-елементів.
   ВАЖЛИВО: адмінка (парасолька) при збереженні сторінки зрізає
   inline-стилі, тому ці елементи стилізуємо ТІЛЬКИ звідси —
   через класи + підстраховку атрибутними селекторами (href),
   які переживають будь-яку зачистку розмітки.
   ============================================================ */

/* Hero: мікролінк "або напишіть у Telegram" */
.hero-tg-note { margin-top: 14px; font-size: 0.85rem; }
.hero-content a[href*="t.me/"] {
    color: var(--color-accent, #B89F5D) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* FAQ: міні-CTA після кнопки "Показати ще" */
.faq-mini-cta { text-align: center; margin-top: 28px; font-size: 0.95rem; }
.faq-section a[href="#contact"] {
    color: var(--color-accent, #B89F5D) !important;
    font-weight: 600;
    text-decoration: none;
}
.faq-section a[href*="t.me/"] {
    color: var(--color-accent, #B89F5D) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Форма: траст-рядок під заголовком */
.contact-trust-note { text-align: center; font-size: 0.85rem; opacity: 0.7; margin: -8px 0 24px; }

/* Про нас: підпис засновника під фото */
.founder-sign { margin-top: 16px; text-align: center; }
.founder-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--color-text, #222); }
.founder-role { font-size: 0.85rem; opacity: 0.65; margin-top: 2px; }
.founder-insta {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 10px; padding: 8px 18px;
    border: 1px solid var(--color-accent, #B89F5D);
    border-radius: 50px;
    color: var(--color-accent, #B89F5D) !important;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}
.founder-insta:hover { background: var(--color-accent, #B89F5D); color: #fff !important; }

/* ---------- Доступність: шановуємо reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .sticky-mobile-cta { transition: none; }
    /* Таймлайн процесу — миттєва поява без каскаду */
    .timeline-vertical::before { animation-duration: 0.01s; animation-delay: 0s; }
    .timeline-item { transition: none; transform: none; }
    .timeline-item.is-visible { transition-delay: 0s !important; }
    .timeline-item.is-visible::before,
    .timeline-item.is-visible::after { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}
