/* css/style.css */

html { scroll-behavior: smooth; }
body {
    background-color: #0D1117;
    color: white;
    font-family: sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ГЛОБАЛЬНЫЕ СТИЛИ И УТИЛИТЫ --- */

/* --- Trusted By Logos --- */
.trusted-logo {
    max-height: 75px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
    opacity: 1;
}
.trusted-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}
.trusted-logo-placeholder {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568; /* Tailwind gray-600 */
    opacity: 0.6;
}

.gradient-text {
    background-image: linear-gradient(to right, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.glow-border {
    position: relative;
    z-index: 1;
}
/* Обновленный стиль свечения для карточки Business */
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 10px; /* Должен совпадать с `rounded-lg` */
    background: #a855f7; /* Сплошной фиолетовый для свечения */
    filter: blur(8px);
    z-index: -1;
    opacity: 0.6;
    animation: none; /* Убрана анимация пульсации */
}


.gradient-border-top { position: relative; }
.gradient-border-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Карточки с эффектом "Прожектора" (Spotlight) */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background-color: #161b22;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.spotlight-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}
.spotlight-card .spotlight {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 60%);
    width: 400px;
    height: 400px;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.2s ease-out;
    pointer-events: none;
}
.spotlight-card:hover .spotlight {
    opacity: 1;
}

/* Улучшенная анимация кнопок */
.btn-glow-hover {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn-glow-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
}

/* --- СТИЛИ КОМПОНЕНТОВ --- */
/* Модальные окна */
.modal { transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-content { transition: transform 0.3s ease; }

/* Анимация "Аврора" для главного экрана */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    z-index: 0;
    background: radial-gradient(at 20% 20%, hsla(216, 89%, 60%, 0.3) 0px, transparent 50%),
                radial-gradient(at 80% 20%, hsla(283, 89%, 60%, 0.3) 0px, transparent 50%),
                radial-gradient(at 20% 80%, hsla(216, 89%, 60%, 0.2) 0px, transparent 50%),
                radial-gradient(at 80% 80%, hsla(283, 89%, 60%, 0.2) 0px, transparent 50%);
    filter: blur(100px);
}

/* FAQ Аккордеон */
.faq-item.open .faq-question i {
    transform: rotate(180deg);
}
.faq-question i {
     transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Accessibility Focus Styles --- */
:focus-visible {
    outline: 3px solid #60a5fa; /* Tailwind blue-400 */
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Layout Fixes --- */

/* 1. Общее правило для лучшего переноса длинных слов */
p, li, h3, h4 {
    word-wrap: break-word; /* Для старых браузеров */
    overflow-wrap: break-word; /* Стандартное свойство */
}

/* 2. Делаем карточки в секции Pricing одной высоты */
#pricing .grid > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#pricing .grid > div > .spotlight-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#pricing .grid .spotlight-card > .flex-1 {
    flex-grow: 1;
}

/* Language switcher */
.lang-btn { transition: all 0.2s ease; border: 1px solid transparent; }
.lang-btn:hover { border-color: rgba(59,129,246,.4); transform: translateY(-1px); }

/* Ukraine section cards - симметричное выравнивание */
.ukraine-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ukraine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ukraine-card:hover::before {
    opacity: 1;
}

.ukraine-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 32px -8px rgba(59, 130, 246, 0.2);
}

.ukraine-card h3 {
    min-height: 60px;
    align-items: flex-start;
    gap: 0.5rem;
}

.ukraine-card p, .ukraine-card div {
    flex-grow: 1;
}

/* Hero title адаптивность для разных языков */
.hero-title {
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-line-1 {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
    word-spacing: 0.1em;
}

/* Адаптивные размеры для разных языков */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem; /* text-4xl уменьшен */
        line-height: 1.2;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem; /* text-5xl */
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem; /* text-6xl */
        line-height: 1.1;
    }
}

/* Стабильность текста при переключении языков */
[data-i18n] {
    transition: none !important;
    transform: none !important;
}

/* --- Ukrainian Section Styles --- */
.ukraine-flag {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

