/*==================================================================//
// 📄 frontend/core/landing.css
// Версія: 20.7262 — Виправлено логіку скролла, бургер тільки для мобільної версії, збільшено іконки в футері
// Оновлено: 2025-11-25 — Футер тепер внизу всього контенту, скроллбари невидимі
//==================================================================*/

:root {
    /* Основна палітра з HorecaOS */
    --primary-color: #5a7f68;
    --primary-dark: #466652;
    --primary-light: #81A18D;
    --accent-bg: #F6F7FB;

    /* Тексти - більш насичені для кращого контрасту */
    --text-main: #000000;
    --text-secondary: #1F2937;
    --text-light: #4B5563;

    /* UI Елементи */
    --border-color: #E5E7EB;
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 25px 50px -12px rgba(90, 127, 104, 0.2);

    /* Градієнти */
    --hero-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --green-gradient: linear-gradient(135deg, #5a7f68 0%, #4a6f58 100%);
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    /* Дозволяємо pull-to-refresh */
    scrollbar-width: none;
    /* Firefox - приховуємо скроллбар */
    -ms-overflow-style: none;
    /* IE/Edge - приховуємо скроллбар */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari - приховуємо скроллбар */
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: transparent;
    /* Фон головної сторінки (Hero) - тільки якщо НЕ сторінка допомоги */
    background-image: url('/frontend/assets/images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    line-height: 1.6;
    transition: background-image 0.3s ease;
}

/* Коли активна сторінка допомоги, міняємо фон */
body.help-page-active {
    background-image: url('/frontend/assets/images/help-background.png') !important;
}

html {
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    /* Дозволяємо pull-to-refresh */
    scrollbar-width: none;
    /* Firefox - приховуємо скроллбар */
    -ms-overflow-style: none;
    /* IE/Edge - приховуємо скроллбар */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari - приховуємо скроллбар */
}

/* Приховуємо скроллбари для всіх елементів */
*,
*::before,
*::after {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--accent-bg);
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--green-gradient);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(90, 127, 104, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.btn-white {
    background: #F0F5F2 !important;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 44px;
    padding: 0 32px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #E8F0EC !important;
}

.full-width {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed !important;
    /* Завжди прибитий */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Колір хедера */
    background: #becdbc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    border-bottom: none !important;
}

/* Хедер при прокрутці - той самий колір */
.navbar.navbar-scrolled,
nav.navbar.navbar-scrolled {
    background: #becdbc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: none !important;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 40px;
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
}

.brand-highlight {
    color: var(--primary-color);
}

/* Збільшуємо контраст для навігації на прозорому фоні */
/* Контраст для тексту в хедері */
.navbar .brand-text,
.navbar .nav-links a,
.navbar .support-link {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.nav-links a.active {
    color: var(--text-main) !important;
    text-decoration: underline !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.support-link {
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    transition: all 0.2s;
    align-items: center;
}

.support-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.support-link.active {
    color: var(--text-main) !important;
    text-decoration: underline !important;
}

/* Бургер-меню для мобільних */
.mobile-menu-toggle {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1001;
    position: relative;
    color: #1F2937 !important;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-menu-toggle img {
    display: none !important;
}

.mobile-menu-toggle i {
    font-size: 32px;
    display: block;
    line-height: 1;
}

.mobile-menu-toggle.hidden {
    display: none !important;
}

.mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    /* Фон sidebar (бургер-меню) */
    background-image: url('/frontend/assets/images/sidebar-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Зелений напівпрозорий шар поверх зображення */
    background-color: rgba(90, 127, 104, 0.15);
    background-blend-mode: overlay;
    border-left: 1px solid rgba(90, 127, 104, 0.3);
    /* Зелений контур */
    backdrop-filter: blur(10px) saturate(150%);
    /* Матовий ефект */
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    box-shadow: -2px 0 20px rgba(90, 127, 104, 0.3);
    z-index: 1002;
    padding: 60px 20px 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: visible;
}

.mobile-menu.active {
    transform: translateX(0) !important;
    /* Показуємо меню */
    visibility: visible !important;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-close i {
    font-size: 24px;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-overlay {
    display: block !important;
    /* Показуємо overlay */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    /* Приховано за замовчуванням */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    /* Ефект матового скла (glassmorphism) */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content a:hover,
.mobile-menu-content a.active {
    /* Підсилений ефект при наведенні */
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(90, 127, 104, 0.4);
    box-shadow: 0 4px 12px rgba(90, 127, 104, 0.2);
    transform: translateY(-2px);
    color: var(--text-main);
}

@media(max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .mobile-menu-toggle.hidden {
        display: none !important;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 20px 0 40px !important;
    /* 20px від верху для головної сторінки лендингу */
    background: transparent;
    min-height: 100vh;
    max-height: 100vh;
    /* Обмежуємо висоту секції, щоб вона не виходила за межі екрана */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-grid {
    display: grid;
    grid-template-columns: 33.33% 66.67%;
    /* Точніше: ліва 1/3, права 2/3 */
    gap: 0;
    align-items: center;
    position: relative;
    min-height: auto;
    max-height: calc(100vh - 180px);
    /* Обмежуємо висоту, щоб grid не виходив за межі */
    box-sizing: border-box;
}

/* Ліва область - фонове зображення з HOS та гексагональною структурою */
.hero-left-area {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    position: relative;
    z-index: 0;
    /* Фон видно через прозорий контейнер - зображення на body */
}

/* Права область - вся інформація */
.hero-right-area {
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Без відступів між назвою платформи та формою */
    align-items: center;
    /* Вирівнюємо по центру - спільна вертикальна лінія центру */
    /* Центр контейнера (разом з контентом) має бути на 66.67% від лівого краю екрана, зміщений на 70px вліво */
    margin-left: calc(33.34vw - 210px - 70px);
    /* 33.34vw - початок правої області, 210px - половина ширини контенту (420px/2), 70px - зміщення вліво */
}

/* Заголовок платформи */
.hero-platform-header {
    margin-bottom: 0;
    /* Без відступу внизу - форма одразу під нею */
    width: 100%;
    max-width: 420px;
    /* Така ж ширина, як у форми - для вирівнювання по центру */
    text-align: center;
    /* Вирівнюємо по центру - спільна вертикальна лінія */
}

.hero-platform-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    line-height: 1;
}

.brand-name {
    color: #1F2937;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.brand-os {
    color: #5a7f68;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-platform-subtitle {
    font-size: 1.25rem;
    color: #4B5563;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Мобільна версія */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-left-area {
        display: none;
        /* На мобільному приховуємо ліву область */
    }

    .hero-right-area {
        padding-left: 0;
    }

    .hero-platform-title {
        font-size: 3rem;
        text-align: center;
    }

    .hero-platform-subtitle {
        text-align: center;
    }
}

/* Hero Text */
.badge {
    display: none;
    /* Приховано - прибрано фразу "Вітаємо в майбутньому HoReCa" */
}

.hero-title {
    font-size: 2.5rem;
    color: #000000;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(120deg, transparent 0%, transparent 60%, #A8D5BA 60%, #A8D5BA 90%, transparent 90%);
    background-repeat: no-repeat;
    background-position: 0 90%;
    background-size: 100% 10px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #1F2937;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Hero Auth Card */
.hero-auth-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
}

/* Форма входу на веб-версії - опускаємо на 40px */
@media (min-width: 769px) {

    /* Надпис "HorecaOS - Єдина операційна система для HoReCa" - опускаємо на 80px */
    .hero-platform-header {
        transform: translateY(80px) !important;
        /* Опускаємо надпис на 80px вниз */
    }

    .hero-auth-card:not(.register-mode) {
        margin-top: 100px !important;
        /* Опускаємо форму входу на 100px (було 60px + 40px) */
    }
}

/* Коли активна реєстрація - форма розтягується (десктоп) */
@media (min-width: 769px) {
    .hero-auth-card.register-mode {
        padding: 20px;
        max-height: calc(100vh - 160px);
        margin-top: 120px !important;
        overflow-y: auto;
        position: relative;
        z-index: 10;
        transform: translateY(0) !important;
    }

    /* Ховаємо заголовок платформи при реєстрації на десктопі */
    .hero-right-area:has(.hero-auth-card.register-mode) .hero-platform-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Ховаємо заголовок платформи при реєстрації (загальне правило для всіх екранів) */
body:has(.hero-auth-card.register-mode) .hero-platform-header {
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card-header {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
    overflow: visible;
    /* Для форми входу - не розтягується */
}

/* Для режиму реєстрації - форма займає весь простір */
.hero-auth-card.register-mode .auth-form-wrapper {
    flex: 1;
    justify-content: space-between;
}

/* Форма всередині wrapper */
.auth-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group {
    margin-bottom: 4px;
}

/* Реєстрація — мінімальні відступи для no-scroll */
.hero-auth-card.register-mode .auth-form-wrapper form {
    gap: 4px;
}

.hero-auth-card.register-mode .form-group {
    margin-bottom: 2px;
}

.hero-auth-card.register-mode .form-row {
    gap: 6px;
    margin-bottom: 2px;
}

/* На мобільних — компактніший login-form */
@media (max-width: 768px) {
    #login-form .form-group {
        margin-bottom: 4px !important;
    }

    #login-form .form-group:last-of-type {
        margin-bottom: 2px !important;
    }

    #login-msg {
        margin-bottom: 2px !important;
        min-height: 14px !important;
        padding: 0 !important;
    }

    /* Приховуємо login-form-wrapper коли активна реєстрація */
    .hero-auth-card.register-mode #login-form-wrapper {
        display: none !important;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-main);
    opacity: 0.85;
}

/* Реєстрація — ще компактніші лейбли */
.hero-auth-card.register-mode .form-group label {
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
    z-index: 1;
    /* Іконка поверх тексту */
    pointer-events: none;
    /* Не блокує кліки */
}

input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #F0F5F2;
}

/* Реєстрація — трохи компактніші інпути */
.hero-auth-card.register-mode input {
    height: 40px;
    font-size: 0.9rem;
}

.input-wrapper input {
    padding-left: 50px !important;
    /* Збільшено для мобільних, щоб текст не перекривав іконку */
    padding-right: 12px !important;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #F0F5F2;
}

.form-message {
    font-size: 0.85rem;
    margin-bottom: 2px;
    min-height: 18px;
}

.hero-auth-card.register-mode .form-message {
    min-height: 14px;
    font-size: 0.8rem;
    margin-bottom: 1px;
}

/* На мобільних ще менше */
@media (max-width: 768px) {
    .form-message {
        margin-bottom: 2px !important;
    }
}

.form-message.error {
    color: #EF4444;
}

.form-message.success {
    color: #10B981;
}

.legal-text {
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Tenants List */
.tenant-selection-header {
    margin-bottom: 20px;
    text-align: center;
}

.tenant-selection-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.tenant-selection-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tenants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.tenant-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tenant-card:hover {
    border-color: var(--primary-color);
    background: var(--accent-bg);
}

.tenant-icon {
    width: 40px;
    height: 40px;
    background: rgba(90, 127, 104, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 12px;
}

.tenant-info {
    flex: 1;
}

.tenant-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.tenant-domain {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.arrow-icon {
    color: var(--text-light);
}

/* --- FEATURES --- */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: transparent;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--accent-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Мінімалістичний стиль для сторінки Переваги */
.features-grid-minimal {
    grid-template-columns: repeat(3, 1fr);
    /* 3 колонки - 2 ряди по 3 */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.feature-card-minimal {
    background: transparent !important;
    /* Прозорий фон */
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Легкий контур */
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card-minimal:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card-minimal h3 {
    color: #000000 !important;
    /* Чорний заголовок */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-minimal p {
    color: #1F2937 !important;
    /* Темний текст */
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Мобільна версія */
@media (max-width: 992px) {
    .features-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
        /* 2 колонки на планшеті */
    }
}

@media (max-width: 768px) {
    .features-grid-minimal {
        grid-template-columns: 1fr;
        /* 1 колонка на мобільному */
    }
}

/* --- SOLUTIONS (Mockup) --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.solutions-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.solutions-list i {
    font-size: 28px;
    color: var(--primary-color);
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

/* CSS-Only Mockup */
.interface-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid #E5E7EB;
}

.mockup-header {
    background: #F9FAFB;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #F59E0B;
}

.dot.green {
    background: #10B981;
}

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: #F3F4F6;
    border-right: 1px solid #E5E7EB;
}

.mockup-content {
    flex: 1;
    padding: 20px;
}

.skeleton-hero {
    height: 100px;
    background: #E5E7EB;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-row {
    height: 20px;
    background: #F3F4F6;
    border-radius: 6px;
    margin-bottom: 10px;
    width: 80%;
}

.mobile-mockup {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 240px;
    background: #111827;
    border-radius: 20px;
    border: 4px solid #374151;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mobile-mockup .screen {
    background: white;
    height: 100%;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.mobile-mockup .notch {
    width: 40%;
    height: 10px;
    background: black;
    margin: 0 auto;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.app-header {
    height: 20px;
    background: #F3F4F6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.app-icon {
    height: 40px;
    background: #E5E7EB;
    border-radius: 8px;
}

/* --- CTA --- */
.cta-section {
    background: var(--green-gradient);
    color: white;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- MAIN CONTENT --- */
#page-content {
    padding-top: 70px;
    /* Відступ для fixed navbar */
}

/* Для сторінок Help - мінімальна висота, щоб футер був нижче екрану */
#page-content:has(.help-catalog),
#page-content:has(.help-instructions-page),
#page-content:has(.help-question-detail),
#app-content:has(.help-catalog),
#app-content:has(.help-instructions-page),
#app-content:has(.help-question-detail) {
    min-height: calc(100vh - 70px + 400px);
    /* Висота екрану + додатковий простір, щоб футер гарантовано був нижче */
    padding-bottom: 4rem;
    /* Додатковий відступ перед футером */
}

/* --- FOOTER --- */
.footer {
    background: #111827;
    color: #D1D5DB;
    padding: 40px 0 20px !important;
    /* Зменшено верхній padding з 60px до 40px */
    width: 100%;
    position: relative;
    margin-top: 0 !important;
    /* Убрано величезний margin-top */
    /* Футер показується тільки після прокрутки контенту */
}

/* Футер завжди видимий на всіх сторінках */
.footer {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    display: block !important;
}

/* Приховуємо футер на початку всіх сторінок */
body:not(.scrolled) .footer {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Показуємо футер після прокрутки на всіх сторінках */
body.scrolled .footer {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    padding: 40px 0 20px !important;
    /* Зменшено верхній padding з 60px до 40px */
    margin-top: 0 !important;
    /* Убрано величезний margin-top */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: relative !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-top: 20px;
}

.footer h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: #9CA3AF;
}

.footer-links a:hover {
    color: white;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.socials a {
    font-size: 1.5rem;
}

.socials a img {
    width: 48px !important;
    height: 48px !important;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* --- CONTACT US FAB (Кругла кнопка "Зв'яжись з нами") --- */
.contact-us-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.contact-us-menu {
    position: relative;
    display: inline-block;
}

.contact-us-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF80 !important;
    border: 2px solid var(--primary-color, #5a7f68);
    color: var(--primary-color, #5a7f68);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(90, 127, 104, 0.3);
    font-size: 1.8rem;
    position: relative;
}

.contact-us-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 127, 104, 0.4);
    background: rgba(255, 255, 255, 0.6) !important;
}

.contact-us-btn i {
    filter: drop-shadow(0 2px 4px rgba(90, 127, 104, 0.2));
}

.contact-us-dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    align-items: center;
}

.contact-us-menu.open .contact-us-dropdown {
    display: flex;
}

.contact-us-dropdown a,
.contact-us-dropdown button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF80 !important;
    border: 2px solid var(--primary-color, #5a7f68);
    color: var(--primary-color, #5a7f68);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(90, 127, 104, 0.2);
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
}

.contact-us-dropdown a:hover,
.contact-us-dropdown button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 127, 104, 0.3);
    background: rgba(255, 255, 255, 0.6) !important;
}

.contact-us-dropdown a i,
.contact-us-dropdown button i {
    filter: drop-shadow(0 2px 4px rgba(90, 127, 104, 0.2));
    font-weight: 700;
    font-size: 1.6rem;
}

.contact-us-dropdown a img,
.contact-us-dropdown button img {
    width: 48px !important;
    height: 48px !important;
}

.contact-us-dropdown .close-btn {
    display: none !important;
}

/* --- DEV BANNER --- */
/* Неінвазивний баннер демо-режиму (між хедером і контентом) */
.demo-banner {
    display: none;
    /* Приховано - оранжево-червоний банер */
    background: transparent;
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.demo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
}

.demo-banner-content i {
    font-size: 1rem;
    opacity: 0.9;
}

.demo-banner-content span {
    opacity: 0.95;
}

/* --- WIDGETS SECTION --- */
.widgets-section {
    background: var(--accent-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-main);
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.widget-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.widget-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: transparent;
}

.widget-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-bg);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.widget-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.widget-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* --- FULL PAGE SECTIONS --- */
.full-page-section {
    min-height: calc(100vh - 200px);
    padding: 90px 0 80px;
    /* 90px від верху (navbar ~70px + 20px), як на головній сторінці */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Фон для сторінки "Переваги" (Features) */
    background-image: url('/frontend/assets/images/features-background.png');
}

/* Фон для сторінки "Рішення" (Solutions) */
body.solutions-page .full-page-section {
    background-image: url('/frontend/assets/images/solutions-background.png') !important;
}

/* Фон для сторінки "Про нас" (About) */
body.about-page .full-page-section {
    background-image: url('/frontend/assets/images/about-background.png') !important;
}

/* Фон для сторінки "Підтримка" (Support) */
body.support-page .full-page-section {
    background-image: url('/frontend/assets/images/support-background.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Фон для сторінки "Довідник" (Help Hub) на лендингу - розтягнутий на всю сторінку */
body:has(.navbar).help-page-active {
    /* Фон Help Hub на всю сторінку */
    background-image: url('/frontend/assets/images/help-background.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Ховаємо hero-section, коли активна сторінка допомоги */
body.help-page-active .hero-section {
    display: none !important;
}

/* Показуємо контент допомоги */
body.help-page-active #page-content .help-catalog,
body.help-page-active #page-content .help-instructions-page,
body.help-page-active #page-content .help-module-page,
body.help-page-active #page-content .help-question-detail {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: calc(100vh - 100px) !important;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* Контейнер page-content має бути видимим */
body.help-page-active #page-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
    padding-bottom: 0 !important;
}

/* Футер має бути після контенту, не в хедері */
/* Footer на сторінці help - прихований до прокрутки, опущений нижче */
body.help-page-active .footer {
    position: relative !important;
    margin-top: auto !important;
    /* Опускаємо footer вниз */
    z-index: 0 !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    padding-bottom: 40px !important;
    /* Додатковий відступ знизу */
}

/* Footer прихований до прокрутки на help */
body.help-page-active:not(.scrolled) .footer {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.help-page-active.scrolled .footer {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

/* Переконаємося, що контент допомоги має достатньо місця */
body.help-page-active #page-content .help-catalog {
    margin-bottom: 50px !important;
    padding-bottom: 80px !important;
}

/* Переконаємося, що контент видимий і займає місце */
body.help-page-active #page-content {
    overflow: visible !important;
}

/* Переконаємося, що help-catalog займає місце */
body.help-page-active .help-catalog .help-modules-accordion {
    min-height: 400px !important;
}

/* Ховаємо "Кар'єра" в футері на сторінці допомоги */
body.help-page-active .footer-links a {
    display: block;
}

body.help-page-active .footer-links a[href="#"] {
    display: none !important;
}

/* Стилі для сторінки Оновлення - такі ж шрифти як у Рішення */
.update-item h2.update-title,
.update-title {
    font-size: 1.1rem !important;
    /* Як у feature-card-minimal h3 */
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #000000 !important;
}

.update-description {
    font-size: 0.9rem !important;
    /* Як у feature-card-minimal p */
    color: #1F2937 !important;
    line-height: 1.5 !important;
}

/* "Напишіть нам" - розмір як у назв тарифів */
.contact-form-card-minimal h3,
.support-form-card h3 {
    font-size: 1.25rem !important;
    /* Як у pricing-title */
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 20px !important;
}

/* Ховаємо "Кар'єра" в футері на сторінці допомоги */
body.help-page-active .footer a[href="#"]:contains("Кар'єра"),
body.help-page-active .footer-links a:contains("Кар'єра") {
    display: none !important;
}

/* Альтернативний спосіб - через селектор тексту */
body.help-page-active .footer-links a {
    display: block;
}

body.help-page-active .footer-links a:has-text("Кар'єра") {
    display: none !important;
}

/* Контейнери Help Hub без власного фону */
body:has(.navbar) .help-catalog,
body:has(.navbar) .help-instructions-page,
body:has(.navbar) .help-module-page,
body:has(.navbar) .help-question-detail {
    background: transparent !important;
    min-height: calc(100vh - 200px);
    padding: 120px 0 80px;
}

/* Фон для сторінки "Ціни" (Pricing) */
body.pricing-page .full-page-section {
    background-image: url('/frontend/assets/images/pricing-background.png') !important;
}

/* Фон для сторінки "Оновлення" (Updates) */
body.updates-page .full-page-section {
    background-image: url('/frontend/assets/images/updates-background.png') !important;
}

/* Фон для сторінки "Контакти" (Contacts) */
body.contacts-page .full-page-section {
    background-image: url('/frontend/assets/images/contacts-background.png') !important;
}

/* Форма підтримки - обмежена по ширині, по центру (щоб по боках був простір) */
.support-form-wrapper {
    max-width: 600px !important;
    margin: 40px auto 0 !important;
}

.support-form-wrapper select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
}

.support-form-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
}

/* Стилі для сторінки Контакти - мінімалістичний стиль */
.contacts-grid-minimal {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    /* Дві колонки: ліва і права */
    gap: 40px !important;
    /* Відступ між блоками */
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start !important;
}

/* Лівий блок - Email, Telegram, Години роботи */
.contacts-left-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    /* Відступ між картками всередині блоку */
}

/* Правий блок - форма */
.contacts-right-block {
    display: flex !important;
    flex-direction: column !important;
}

.contact-card-minimal,
.contact-form-card-minimal {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 16px;
    /* Менший padding як в основному інтерфейсі */
    border-radius: 16px;
    /* Стандартний radius */
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-self: start;
    width: 100%;
    height: fit-content;
    min-height: auto;
    flex-shrink: 0;
}

.contact-card-minimal:hover,
.contact-form-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

.contact-card-minimal h3,
.contact-form-card-minimal h3 {
    color: var(--color-text-primary);
    margin-bottom: 4px;
    font-size: 0.875rem;
    /* 14px - як в основному інтерфейсі */
    font-weight: 600;
}

.contact-card-minimal p,
.contact-form-card-minimal p {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    /* 13px - як в основному інтерфейсі */
    line-height: 1.4;
    margin: 0;
}

.contact-card-minimal a {
    color: #5a7f68;
    text-decoration: none;
    font-weight: 600;
}

.contact-card-minimal a:hover {
    text-decoration: underline;
}

/* Форма не займає обидві колонки на веб-версії - вона в правій колонці */
.contact-form-card-minimal {
    /* grid-column вже не потрібен - форма в своїй колонці */
    display: block;
}

.contact-form-card-minimal .form-group {
    margin-bottom: 15px;
}

.contact-form-card-minimal .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.contact-form-card-minimal .form-group input,
.contact-form-card-minimal .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #F0F5F2;
    color: var(--text-main);
}

.contact-form-card-minimal .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-card-minimal .form-group input:focus,
.contact-form-card-minimal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #F0F5F2;
}

.contact-form-card-minimal .form-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.contact-form-card-minimal .form-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #10B981;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-form-card-minimal .form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* На веб-версії - дві колонки */
@media (min-width: 769px) {
    .contacts-grid-minimal {
        grid-template-columns: 1fr 1fr !important;
        /* Дві колонки: ліва і права */
        display: grid !important;
        gap: 40px !important;
    }

    .contacts-left-block,
    .contacts-right-block {
        width: 100% !important;
    }
}

/* На мобільній версії - один стовпчик */
@media (max-width: 768px) {
    .contacts-grid-minimal {
        grid-template-columns: 1fr !important;
        /* Одна колонка на мобільній */
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .contacts-left-block,
    .contacts-right-block {
        width: 100% !important;
    }
}

.full-page-section h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
    /* Заголовок по центру */
}

.full-page-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* --- INTERNATIONAL PHONE INPUT --- */
.intl-phone-input {
    width: 100%;
    position: relative;
}

.intl-phone-input .phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: visible;
    background: transparent;
}

.intl-phone-input .phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: transparent;
}

.intl-phone-input .country-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #F0F5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    position: relative;
    height: 45.33px;
    box-sizing: border-box;
    font-weight: 400;
    color: var(--text-light, #4B5563);
    transition: all 0.2s;
}

.intl-phone-input .country-selector:hover {
    background: #E8F0EC;
    border-color: var(--primary-color);
}

.intl-phone-input .country-selector:focus {
    outline: none;
    border-color: var(--primary-color);
}

.intl-phone-input .country-selector.open {
    border-color: var(--primary-color);
    background: #E8F0EC;
}

.intl-phone-input .country-selector .country-code {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light, #4B5563);
}

.intl-phone-input .phone-number-input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
    font-family: inherit;
    background: #F0F5F2;
    color: var(--text-main);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.intl-phone-input .phone-number-input:focus {
    outline: none;
    background: #F0F5F2;
}

.intl-phone-input .country-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #F0F5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.intl-phone-input .country-dropdown.open {
    display: block;
}

.intl-phone-input .country-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.intl-phone-input .country-dropdown-item:hover {
    background: #E8F0EC;
}

.intl-phone-input .country-dropdown-item.active {
    background: rgba(90, 127, 104, 0.1);
}

.intl-phone-input .country-dropdown-item .flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.intl-phone-input .country-dropdown-item .country-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.intl-phone-input .country-dropdown-item .country-dial {
    font-size: 0.85rem;
    color: var(--text-light, #4B5563);
    font-weight: 500;
}

.intl-phone-input .country-selector .flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 6px;
    flex-shrink: 0;
}

.intl-phone-input .country-selector .caret {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--text-light, #4B5563);
    transition: transform 0.2s;
}

.intl-phone-input .country-selector.open .caret {
    transform: rotate(180deg);
}

.widget-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: #F0F5F2;
}

.widget-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #F0F5F2;
}

.widget-form .btn-sm {
    padding: 12px;
    font-size: 0.9rem;
    width: 100%;
}

/* ==================================================================//
// MOBILE FIRST — КРИТИЧНО ВАЖЛИВО
// Адаптивність для мобільних пристроїв: 320px, 375px, 414px
// ==================================================================*/

/* Базові стилі для мобільних (Mobile First) */
.container {
    padding: 0 16px !important;
    /* Зменшений padding для мобільних */
    max-width: 100% !important;
}

/* --- HERO SECTION — Mobile First --- */
@media (max-width: 992px) {
    .hero-section {
        padding: 20px 0 40px !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-height: none !important;
    }

    .hero-left-area {
        display: none !important;
    }

    .hero-right-area {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-platform-header {
        max-width: 100% !important;
        padding: 0 16px;
        margin-bottom: 0 !important;
        /* Текст майже вплотну до форми */
        transform: translateY(80px) !important;
        /* Опускаємо текст на 80px вниз */
    }

    .hero-platform-title {
        font-size: 10rem !important;
        /* Великий шрифт */
        line-height: 1 !important;
    }

    .hero-platform-title .brand-name,
    .hero-platform-title .brand-os {
        font-size: 10rem !important;
    }

    .hero-platform-subtitle {
        font-size: 1.1rem !important;
    }

    /* На мобільних - уніфіковані форми */
    @media (max-width: 768px) {
        .hero-section {
            min-height: 100vh !important;
            max-height: 100vh !important;
            overflow: hidden !important;
            padding: 20px 0 0 !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
        }

        .hero-right-area {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            justify-content: center !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            min-height: calc(100vh - 60px) !important;
            box-sizing: border-box !important;
        }

        .hero-platform-header {
            padding: 0 8px !important;
            margin-bottom: 0 !important;
            transform: translateY(160px) !important;
        }

        .hero-platform-title {
            font-size: 5rem !important;
            line-height: 1 !important;
        }

        .hero-platform-title .brand-name,
        .hero-platform-title .brand-os {
            font-size: 5rem !important;
        }

        /* === ОБИДВІ ФОРМИ — однакова ширина === */
        .hero-auth-card {
            width: calc(100% - 16px) !important;
            max-width: calc(100% - 16px) !important;
            margin-left: 8px !important;
            margin-right: 8px !important;
            padding: 18px !important;
            box-sizing: border-box !important;
            border-radius: 16px !important;
            background: rgba(255, 255, 255, 0.95) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        }

        /* Форма входу — по центру */
        .hero-auth-card:not(.register-mode) {
            max-height: calc(100vh - 200px) !important;
            margin-top: auto !important;
            margin-bottom: auto !important;
            transform: translateY(-30px) !important;
        }

        /* Форма реєстрації — компактна, no-scroll */
        .hero-auth-card.register-mode {
            max-height: calc(100vh - 80px) !important;
            margin-top: 120px !important;
            margin-bottom: auto !important;
            transform: translateY(-80px) !important;
            overflow-y: visible !important;
        }

        /* Реєстрація — ультра-компактний макет */
        .hero-auth-card.register-mode .auth-card-header {
            margin-bottom: 8px !important;
        }

        .hero-auth-card.register-mode .auth-tab {
            padding: 8px 4px !important;
            font-size: 0.85rem !important;
        }

        .hero-auth-card.register-mode .auth-form-wrapper {
            flex: 1 !important;
            display: flex !important;
            flex-direction: column !important;
            min-height: 0 !important;
            overflow-y: visible !important;
        }

        .hero-auth-card.register-mode #register-form {
            display: flex !important;
            flex-direction: column !important;
            gap: 2px !important;
            padding: 0 !important;
        }

        .hero-auth-card.register-mode .form-group {
            margin-bottom: 2px !important;
        }

        .hero-auth-card.register-mode .form-row {
            gap: 6px !important;
            margin-bottom: 2px !important;
        }

        .hero-auth-card.register-mode .form-group label {
            font-size: 0.75rem !important;
            margin-bottom: 2px !important;
        }

        .hero-auth-card.register-mode input {
            height: 38px !important;
            padding: 0 10px !important;
            font-size: 0.88rem !important;
        }

        .hero-auth-card.register-mode #register-msg {
            margin: 1px 0 !important;
            min-height: 12px !important;
            font-size: 0.75rem !important;
        }

        .hero-auth-card.register-mode #register-btn {
            margin-top: 4px !important;
            height: 44px !important;
            font-size: 0.95rem !important;
            flex-shrink: 0 !important;
        }

        .hero-auth-card.register-mode .legal-text {
            margin-top: 3px !important;
            font-size: 0.58rem !important;
            line-height: 1.2 !important;
        }

        /* Приховуємо login-form-wrapper коли активна реєстрація */
        .hero-auth-card.register-mode #login-form-wrapper {
            display: none !important;
        }
    }
}

@media (max-width: 768px) {
    .hero-platform-title {
        font-size: 5rem !important;
        /* Зменшено в 2 рази (було 10rem) */
        line-height: 1 !important;
    }

    .hero-platform-title .brand-name,
    .hero-platform-title .brand-os {
        font-size: 5rem !important;
    }

    .hero-platform-subtitle {
        font-size: 1rem !important;
    }

    .hero-auth-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .auth-tab {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 6px !important;
        font-size: 0.9rem !important;
    }

    .form-group {
        margin-bottom: 6px !important;
    }

    input {
        height: 44px !important;
        padding: 0 14px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 30px !important;
    }

    .hero-platform-title {
        font-size: 4rem !important;
        line-height: 1 !important;
    }

    .hero-platform-title .brand-name,
    .hero-platform-title .brand-os {
        font-size: 4rem !important;
    }

    .hero-platform-subtitle {
        font-size: 0.95rem !important;
    }

    .hero-auth-card {
        padding: 14px !important;
    }

    .auth-tab {
        padding: 8px 4px !important;
        font-size: 0.85rem !important;
    }

    input {
        height: 42px !important;
        padding: 0 12px !important;
        font-size: 0.9rem !important;
    }
}

/* --- FULL PAGE SECTIONS — Mobile First --- */
@media (max-width: 992px) {
    .full-page-section {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }

    .full-page-section h1 {
        font-size: 2.5rem !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 768px) {
    .full-page-section {
        padding: 80px 0 50px !important;
    }

    .full-page-section h1 {
        font-size: 2rem !important;
        margin-bottom: 25px !important;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .full-page-section {
        padding: 70px 0 40px !important;
    }

    .full-page-section h1 {
        font-size: 1.75rem !important;
        margin-bottom: 20px !important;
    }
}

/* --- FEATURES GRID — Mobile First --- */
@media (max-width: 768px) {
    .features-grid-minimal {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 16px;
    }

    .feature-card-minimal {
        padding: 20px !important;
    }

    .feature-card-minimal h3 {
        font-size: 1rem !important;
    }

    .feature-card-minimal p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid-minimal {
        gap: 12px !important;
    }

    .feature-card-minimal {
        padding: 16px !important;
    }
}

/* --- PRICING GRID — Mobile First --- */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .pricing-card-minimal {
        padding: 20px !important;
    }

    .pricing-title {
        font-size: 1.1rem !important;
    }

    .pricing-price {
        font-size: 2rem !important;
    }

    .billing-toggle-small {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .pricing-card-minimal {
        padding: 16px !important;
    }

    .pricing-title {
        font-size: 1rem !important;
    }

    .pricing-price {
        font-size: 1.75rem !important;
    }
}

/* --- UPDATES GRID — Mobile First --- */
@media (max-width: 768px) {
    .updates-grid {
        padding: 0 16px;
        gap: 16px !important;
    }

    .update-item {
        padding: 20px !important;
    }

    .update-title {
        font-size: 1.1rem !important;
    }

    .update-date {
        font-size: 0.8rem !important;
    }

    .update-description {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .update-item {
        padding: 16px !important;
    }

    .update-title {
        font-size: 1rem !important;
    }

    .update-description {
        font-size: 0.85rem !important;
    }
}

/* --- NAVBAR — Mobile First --- */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0 !important;
    }

    .brand-text {
        font-size: 20px !important;
    }

    .navbar .container {
        padding: 0 16px !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0 !important;
    }

    .brand-text {
        font-size: 18px !important;
    }
}

/* --- FOOTER — Mobile First --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 16px;
    }

    .footer {
        padding: 40px 0 20px !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px !important;
    }

    .footer h3 {
        font-size: 1.25rem !important;
    }

    .footer h4 {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }
}

/* --- SOLUTIONS — Mobile First --- */
@media (max-width: 768px) {
    .solutions-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 кнопки в ряд */
        gap: 8px !important;
        padding: 0 16px;
        border-bottom: none !important;
        /* Прибираємо підкреслення */
    }

    .solution-tab {
        width: 100% !important;
        text-align: center !important;
    }

    .solution-item {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .solution-item {
        padding: 16px !important;
    }
}

/* --- GENERAL MOBILE FIXES --- */
@media (max-width: 768px) {
    .text-center {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0 !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    .two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .image-side {
        order: -1;
    }

    .contact-us-fab {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .contact-us-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    .contact-us-dropdown a,
    .contact-us-dropdown button {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {

    .btn-primary,
    .btn-secondary,
    .btn-white {
        height: 44px !important;
        padding: 0 20px !important;
        font-size: 0.95rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
    }
}

/* --- COMPACT TENANT SELECTION --- */
.tenant-selection-header {
    margin-bottom: 12px;
}

.tenant-selection-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.tenants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Compact spacing */
    margin-bottom: 12px;
    max-height: 240px;
    /* Limit height if many tenants */
    overflow-y: auto;
}

.tenant-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    /* reduced padding */
    background: #fff;
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tenant-card:hover {
    border-color: var(--primary-color, #81A18D);
    background-color: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tenant-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100, #F3F4F6);
    color: var(--text-secondary, #4B5563);
    border-radius: 6px;
    font-size: 16px;
    flex-shrink: 0;
    /* transition: background 0.2s, color 0.2s; */
}

.tenant-card:hover .tenant-icon {
    background: var(--primary-light, #81A18D);
    color: #fff;
}

.tenant-info {
    flex: 1;
    min-width: 0;
    /* truncate text */
}

.tenant-name {
    font-weight: 700;
    font-size: 0.9em;
    color: var(--text-main, #000);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.tenant-domain {
    font-size: 0.75em;
    color: var(--text-light, #6B7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-card .arrow-icon {
    color: var(--text-light, #6B7280);
    font-size: 14px;
    opacity: 0.5;
    /* transition: color 0.2s, opacity 0.2s; */
}

.tenant-card:hover .arrow-icon {
    color: var(--primary-color, #81A18D);
    opacity: 1;
}

/* =================================================================
   PHONE INPUT STYLES (International)
================================================================= */
.intl-phone-input {
    position: relative;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 0px !important;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    transition: all 0.2s;
    overflow: hidden;
    height: 50px;
    /* Match other inputs */
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 127, 104, 0.1);
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #F9FAFB;
    border: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
    height: 100%;
}

.country-selector:hover {
    background: #F3F4F6;
}

.country-selector .flag-img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.country-selector .caret {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

.phone-number-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 16px !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    min-width: 0;
    height: 100%;
    color: var(--text-main);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 105;
    display: none;
    animation: fadeIn 0.2s ease;
}

.country-dropdown.open {
    display: block;
}

.country-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f4f6;
}

.country-dropdown-item:last-child {
    border-bottom: none;
}

.country-dropdown-item:hover {
    background: #F3F4F6;
}

.country-dropdown-item .flag-img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.country-dropdown-item .country-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.country-dropdown-item .country-dial {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 480px) {
    .country-dropdown {
        width: 100%;
    }
}