* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #222;
    overflow-x: hidden;
    line-height: 1.4;
}

/* Контейнер с позиционированием по центру */
.bg-pattern-layer {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px; /* Ширина твоего холста Figma */
    pointer-events: none;
    z-index: 0;
}

/* Задаем картинке ширину 100%, чтобы она развернулась */
.bg-pattern-layer img {
    width: 100%;
    height: auto;
    display: block;
}

/* Чтобы шапка и остальной контент были НАД узором */
header, .wrapper, main {
    position: relative;
    z-index: 1;
}

header {
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #F0F0F0;
    /* Убираем padding-top: 18px и выравниваем всё строго по центру по вертикали */
    display: flex;
    align-items: center;
}

.wrapper {
    max-width: 1240px;
    width: 100%; /* Заменили fixed 1240px на 100%, чтобы не появлялся горизонтальный скролл на ноутбуках */
    margin: 0 auto;
    
    /* Магия центрирования: 3 колонки */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Колонки */
.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-center i {
    font-size: 10px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center; /* Центрируем иконку и текст относительно друг друга */
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-circle {
    background: #222;
    border-radius: 50px;
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    color: #fff;
    padding-top: 13px;
    padding-left: 15px;
}

.logo-text {
    font-size: 16px;
    font-weight: 500;
    /* Убрали padding-top: 12px, так как align-items: center уже сцентрировал текст */
}

/* Ссылки меню */
.nav-link {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link span {
    font-size: 10px;
    color: #888;
}

/* Кнопка поддержки */
.btn-support {
    background: #1A1A1A;
    color: #FFF;
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}


.main-wrapper {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.global {
    width: 100%;
    text-align: center;
}

.mini-text {
    background: #F0F0F0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 20px;
    margin-top: 100px;
    display: inline-block;
}

.mini-text-circle {
    width: 6px;
    height: 6px;
    background: rgb(14, 163, 14);
    border-radius: 50px;
}

/* Контейнер плашки */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Сочная зеленая точка */
.dot {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Яркий изумрудный цвет */
    border-radius: 50%;
    flex-shrink: 0;
    
    /* Сочность и объём за счет свечения */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Опционально: лёгкая пульсация */
.dot-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.badge-margin {
    margin-top: 105px;
}

.global h1 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 22px;
    margin-top: 24px;
}

.global p {
    font-size: 16px;
    max-width: 570px;
    margin: 0 auto;
}

.bots {
    width: 100%;
    border-radius: 20px;
    background: #F5F5F5;
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 120px;
}

.bot {
    width: calc(50% - 10px);
    background: #fff;
    border-radius: 16px;
    padding: 38px;
}

.bot-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ccc;
}

.bot h2 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 2px;
}

.bot-link {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.bot-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 34px;
    margin-bottom: 34px;
}

.bot p {
    margin-bottom: 34px;
    margin-top: 30px;
}

.bot-button {
    background: #1A1A1A;
    color: #FFF;
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    display: inline-block;
}

.page-info-block {
    width: 100%;
    border-radius: 20px;
    background: #F5F5F5;
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 120px;
}

.page-info-in {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 38px;
}

.page-info-block h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 0px;
    margin-top: 0px;
}

.how-to-use-place {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.how-to-use-block {
    width: 30%;
    display: flex;
    gap: 20px;
}

.how-to-use-circle {
    background: #1673DB;
    background: linear-gradient(0deg,rgba(22, 115, 219, 1) 0%, rgba(4, 157, 235, 1) 100%);
    border-radius: 50px;
    height: 44px;
    width: 44px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    padding-top: 10px;
}

.how-to-use-voicer {
    background: #15A48A;
    background: linear-gradient(0deg,rgba(21, 164, 138, 1) 0%, rgba(49, 228, 126, 1) 100%);
}

.how-to-use-text {
    max-width: calc(100% - 80px);
}

.page-info-in-half {
    width: calc(50% - 10px);
    background: #fff;
    border-radius: 16px;
    padding: 38px;
}

.page-info-in-half p {
    margin-bottom: 0;
    margin-top: 25px;
}

.button-in-page {
    margin-top: 30px;
}

.bg-footer-squares {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    margin-top: 100px; /* Отступ от карточек ботов сверху */
    pointer-events: none;
    z-index: 0;
}

.bg-footer-squares img {
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    border-top: 1px solid #F0F0F0;
}

.footer-content {
    padding: 12px 0;
    font-size: 12px;
    color: #686868;
}

.footer-links {
    float: right;
    padding-top: 32px;
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: #000;
}

.stickers-block {
    margin-top: 90px;
}

.stickers-block p {
    max-width: 600px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.stickers-pic {
    width: 150px;
    height: 150px;
    background: url('/images/stickers.png');
    float: right;
    margin-top: 8px;
    margin-right: 20px;
}

/* Контейнер пункта меню */
.nav-item {
    position: relative;
    display: inline-block;
}

/* Выравнивание стрелочки и ссылки */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0; /* Небольшой кликабельный область */
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000000;
}

/* Анимация поворота стрелочки */
.arrow-icon {
    transition: transform 0.2s ease;
}

.has-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Всплывающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Изначально скрыто */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: all 0.2s ease;
    z-index: 100;
}

/* Невидимый "мост" между ссылкой и меню, чтобы мышка не теряла фокус при переносе */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Показ меню при наведении */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); /* Плавное всплытие вверх */
}

/* Пункты внутри выпадающего меню */
.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 450;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #F8F9FA;
    color: #000000;
}

/* Темный фон модального окна (скрыт по умолчанию) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px); /* Размытие заднего фона */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* Скрываем окна */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Блокируем случайные клики */
    
    transition: all 0.3s ease;
}

/* Белая карточка самого окна */
.modal-window {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative; /* Чтобы крестик .modal-close-abs позиционировался от углов окна */
    
    /* Начальное положение для анимации (чуть ниже и меньше) */
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

/* Состояние открытого окна (добавляется через JS) */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Разрешаем клики */
}

/* Анимация появления контента */
.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия (крестик) в абсолютном позиционировании для окон без классической шапки */
.modal-close-abs {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 18px;
    transition: color 0.2s ease;
}
.modal-close-abs:hover { color: #1E293B; }

/* Тексты и аватарки */
.modal-text { font-size: 14px; color: #475569; line-height: 1.5; margin: 0 0 16px 0; }
.modal-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.flex-center-gap { display: flex; align-items: center; gap: 12px; }
.text-gray { color: #64748B; font-size: 12px; }
.mb-16 { margin-bottom: 16px; }

/* Главные кнопки */
.btn-primary { display: block; width: 100%; text-align: center; padding: 12px; background: #24A1DE; color: #FFFFFF; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: #1D85B8; }
.btn-secondary { display: block; width: 100%; text-align: center; padding: 12px; background: #F1F5F9; color: #334155; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-secondary:hover { background: #E2E8F0; }
.btn-dark { display: inline-block; padding: 10px 20px; background: #0F172A; color: #FFFFFF; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-dark:hover { background: #1E293B; }
.btn-text { background: none; border: none; color: #64748B; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-text:hover { color: #0F172A; }

/* Блоки-ссылки (выбор бота, поддержка) */
.modal-list-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px; background: #F8F9FA; border: 1px solid #E2E8F0; border-radius: 12px; text-align: left; cursor: pointer; text-decoration: none; color: inherit; transition: all 0.2s; margin-bottom: 12px; }
.modal-list-item:hover { background: #F1F5F9; border-color: #CBD5E1; }
.modal-list-item .title { font-size: 14px; font-weight: 600; color: #0F172A; }

/* Область прокрутки для соглашений */
.modal-scroll-area { max-height: 50vh; overflow-y: auto; font-size: 13px; color: #475569; line-height: 1.6; border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; padding: 16px 8px 16px 0; margin-bottom: 16px; margin-top: 16px; }
.modal-scroll-area p { margin-bottom: 12px; }
.modal-scroll-area p:last-child { margin-bottom: 0; }
.modal-scroll-area strong { color: #0F172A; }
.modal-footer-actions { display: flex; justify-content: space-between; align-items: center; }


@media (max-width: 900px) {
    .dn { display: none; }
    .bg-pattern-layer { display: none; }
    .bg-footer-squares { display: none; }
    .wrapper { padding: 0 20px; width: 100%; grid-template-columns: 1fr 1fr; }
    .main-wrapper { padding: 0 20px; }
    .global h1 { font-size: 26px; }
    .badge-margin { margin-top: 80px; }

    .header-center { display: none; }
    .bots { flex-wrap: wrap; margin-top: 100px; }
    .bot { width: 100%; padding: 25px; }
    .bot-pic { width: 60px; height: 60px; }
    .bot h2 { font-size: 18px; margin-top: 24px; }

    .footer { margin-top: 40px; }
    .footer-links { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

    .page-info-in { padding: 25px; flex-wrap: wrap; }
    .how-to-use-place { flex-wrap: wrap; width: 100%; margin-top: 0; }
    .how-to-use-block { width: 100%; display: block; }
    .how-to-use-circle { margin-bottom: 15px; }
    .how-to-use-text { width: 100%; max-width: 100%; }
    .page-info-in-half { width: 100%; padding: 25px; }
    .page-info-block h2 { font-size: 18px; }

    .stickers-pic { float: none; width: 100px; height: 100px; background-size: cover; margin-bottom: 30px; }
}

