* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    --dot-bg: #000000;
    --dot-color: #040002;
    --dot-size: 15px;
    --dot-space: 22px;
    background: linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space), linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space), var(--dot-color);
}
body {
    font-family: 'Inter', sans-serif;
    background-image: linear-gradient(135deg, #00000000 45%, #670000 90%);
    color: #333231;
    line-height: 1.5;
     transition: background 0.3s;
}

/* Креативная цветовая схема background: linear-gradient(135deg, var(--primary), var(--secondary));*/
:root {
    --primary: #9e0302;
    --primary-dark: #46e561;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border: #e2e8f0;
}

/* Адаптивный контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Хедер с блюром и анимацией */
header {
    backdrop-filter: blur(12px);
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}
        
.legi-header h2 {
    font-family: cursive;
    letter-spacing: 3px;
    text-shadow: 0 0 6px #ffffff, 0 0 9px #000000, 0 0 21px #919191, 0 0 33px #000000;
    font-weight: bold;
    color: #fff;
}

.logo {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 50%;
    right: 50%;
 }

.logo-img {
    height: 120px;
    margin: 9px;
}

.auth-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(0.96);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: #f1f5f9;
    color:black;
}

#card_ai_text {
    border-radius:25px;margin-bottom:15px;background: linear-gradient(45deg, #292929 25%, transparent 25%, transparent 75%, #292929 75%), linear-gradient(45deg, #292929 25%, transparent 25%, transparent 75%, #292929 75%) 0.1875em 0.1875em, radial-gradient(at 50% 0, #484847, #090909);background-size: 0.375em 0.375em, 0.375em 0.375em, 100% 100%;
}
#card_ai_text h2 {
    color: #000;letter-spacing: 2px;font-family: cursive;
}
#card_ai_text p {
    font-size:20px;color:white;
}
#card_ai_text div {
    display:flex; justify-content: space-between; margin-top:12px;
}
#ai_text_group {
    padding:4px 12px;font-family: cursive;font-size: 16px;letter-spacing: 3px;font-family: cursive;background:black;color:gray;
}
#ai_text_group:hover {
    background: white;
}

#card_ai_media {
    border-radius:25px;margin-bottom:15px;background:
    repeating-linear-gradient(
      190deg,
      rgba(255, 0, 0, 0.5) 40px,
      rgba(255, 153, 0, 0.5) 80px,
      rgba(255, 255, 0, 0.5) 120px,
      rgba(0, 255, 0, 0.5) 160px,
      rgba(0, 0, 255, 0.5) 200px,
      rgba(75, 0, 130, 0.5) 240px,
      rgba(238, 130, 238, 0.5) 280px,
      rgba(255, 0, 0, 0.5) 300px
    ),
    repeating-linear-gradient(
      -190deg,
      rgba(255, 0, 0, 0.5) 30px,
      rgba(255, 153, 0, 0.5) 60px,
      rgba(255, 255, 0, 0.5) 90px,
      rgba(0, 255, 0, 0.5) 120px,
      rgba(0, 0, 255, 0.5) 150px,
      rgba(75, 0, 130, 0.5) 180px,
      rgba(238, 130, 238, 0.5) 210px,
      rgba(255, 0, 0, 0.5) 230px
    ),
    repeating-linear-gradient(
      23deg,
      red 50px,
      orange 100px,
      yellow 150px,
      green 200px,
      blue 250px,
      indigo 300px,
      violet 350px,
      red 370px
    );
}
#card_ai_media h2 {
    color: #fff420;
    text-shadow: 0 0 7px #000000, 0 0 10px #000000, 0 0 21px #000000, 0 0 35px #000000;
    font-family: cursive;
    letter-spacing: 3px;
}
#card_ai_media p {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 2px;
}
#card_ai_media div { 
    display:flex; 
    justify-content: space-between; 
    margin-top:12px;
}
#ai_media_group { 
    padding: 4px 12px;
    font-family: cursive;
    font-size: 16px;
    letter-spacing: 3px;
    font-family: cursive;
}
#ai_media_group:hover {
    background: #ffffff36;
}

#card_ai_special {
    border-radius: 25px;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(63deg, #151515 5px, transparent 5px) 0 5px,
            -webkit-linear-gradient(243deg, #151515 5px, transparent 5px) 10px 0px,
            -webkit-linear-gradient(63deg, #222 5px, transparent 5px) 0px 10px,
            -webkit-linear-gradient(243deg, #222 5px, transparent 5px) 10px 5px,
            -webkit-linear-gradient(0deg, #1b1b1b 10px, transparent 10px),
            -webkit-linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background: -moz-linear-gradient(63deg, #151515 5px, transparent 5px) 0 5px,
            -moz-linear-gradient(243deg, #151515 5px, transparent 5px) 10px 0px,
            -moz-linear-gradient(63deg, #222 5px, transparent 5px) 0px 10px,
            -moz-linear-gradient(243deg, #222 5px, transparent 5px) 10px 5px,
            -moz-linear-gradient(0deg, #1b1b1b 10px, transparent 10px),
            -moz-linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background: linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
            linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
            linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
            linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
            linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
            linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background-size: 20px 20px;
    background-color: #131313;
}
#card_ai_special h2 {
    font-family: cursive;letter-spacing: 5px;color: white;text-shadow: 0 0 7px #000000, 0 0 10px #000000, 0 0 21px #000000, 0 0 35px #000000;
}
#card_ai_special p {
    text-shadow: 0 0 6px #ffffff, 0 0 9px #ffffff, 0 0 21px #ffffff, 0 0 33px #ffffff;
    font-weight: bold;
    color: #000000;
    font-size:18px;
}
#card_ai_special div {
    display:flex; justify-content: space-between; margin-top:12px;
}
#ai_special_group {
    padding: 4px 12px;background: #1a1a1a;color: white;font-size: 14px;letter-spacing: 3px;font-family: cursive;
}
#ai_special_group:hover {
    background: #0000004a;
}

#ai_collect_group {
    border-top-right-radius:unset;border-bottom-right-radius:unset;
}
#ai_call_group {
    border-top-left-radius:unset;border-bottom-left-radius:unset;
}
        /* Секции */
        .page {
            display: none;
            animation: fadeIn 0.4s ease;
        }
        .page.active-page {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px);}
            to { opacity: 1; transform: translateY(0);}
        }

        /* Карточки статей (лента) */
        .feed-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 28px;
            margin: 30px 0;
        }

        .article-card {
            display: flex;
            flex-direction: column;

            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.03);
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);

        }
        .article-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
        }

        .card-img {
            flex:1;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
        }
        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }
        .card-content p {
            flex:1;
            padding:3px;
        }

        .card-content h3 {
            font-family: cursive;
        }
        /* Блоки услуг (реклама, песочница..) */
        .action-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            margin: 40px 0;
        }
        .action-card {
            flex: 1;
            background: var(--card-bg);
            backdrop-filter: blur(4px);
            border-radius: 32px;
            padding: 28px;
            border: 1px solid rgba(99,102,241,0.2);
            transition: 0.2s;
        }

        /* Чат ТП */
        .support-chat {
            background: white;
            border-radius: 32px;
            padding: 20px;
            margin-top: 30px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        }
        .chat-messages {
            height: 260px;
            overflow-y: auto;
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 16px;
            margin: 16px 0;
            background: #fefefe;
        }
        .message {
            margin-bottom: 12px;
            padding: 8px 14px;
            border-radius: 20px;
            max-width: 80%;
        }
        .user-msg {
            background: var(--primary);
            color: white;
            align-self: flex-end;
            margin-left: auto;
            text-align: right;
        }
        .support-msg {
            background: #f1f5f9;
        }

        /* Банк фильтров */
        .filter-bank {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 24px 0;
        }
        .filter-tag {
            background: #e2e8f0;
            padding: 6px 14px;
            border-radius: 60px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.1s;
        }
        .filter-tag:hover {
            background: var(--primary);
            color: white;
        }

        /* Статистика */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
        .stat-card {
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            padding: 20px;
            border-radius: 28px;
            text-align: center;
            font-weight: 700;
        }
        /*значки*/
        .like-heard-light {
            color: #e1e1e1;
        }
        .like-heard-dark {
            color: #575757;
        }
        /* Песочница (превью статей) */
        .sandbox-preview {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 28px;
            padding: 24px;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .header-inner {
                flex-direction: column;
                align-items: stretch;
            }
            .action-grid {
                flex-direction: column;
            }
            .container {
                padding: 0 16px;
            }
        }

        footer {
            margin-top: 70px;
            padding: 30px 0;
            text-align: center;
            border-top: 1px solid var(--border);
            color: white;
        }
        i, .fa, .fas {
            margin-right: 6px;
        }
        button {
            background: none;
            border: none;
        }
        .edit-link {
            color: var(--primary);
            text-decoration: underline;
            cursor: pointer;
            margin-top: 12px;
            display: inline-block;
        }
        /**/


#create_ai_group {
    display:flex;
    justify-content: center;
    align-items: center;
}
#create_ai_group button{
    padding: 4px 12px;background: #ffffff;letter-spacing: 3px;font-family: cursive;
}
#create_ai_group button:hover{
    background: #000;color:#fff;
}
/*chavo*/
/* Контейнер FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color:#b35658;
}

        .faq-title {
            font-size: 24px;
            font-weight: 700;
            padding: 24px;
            margin: 0;
            border-bottom: 1px solid #e5e7eb;
            text-align: center;
        }

/* Отдельный вопрос */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question b {
    font-family: cursive;
    font-size: 18px;
    letter-spacing: 0.6px;
}

/* Заголовок вопроса (кликабельный) */
.faq-question {
    display: flex;

    justify-content: space-between;
    align-items: center;
    padding: 15px 9px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.2s ease;
    user-select: none;
}

        .faq-question:hover {
            background-color: #f3f4f6;
        }

        /* Иконка стрелки */
        .faq-icon {
            font-size: 14px;
            transition: transform 0.3s ease;
            color: #6b7280;
        }

        /* Блок с ответом (используем CSS Grid для плавной анимации высоты) */
        .faq-answer {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.3s ease-out;
        }

        .faq-answer-inner {
            overflow: hidden;
        }

.faq-answer-content {
    padding: 0 24px;
    color: #e5e4e3;
    font-size: 15px;
}
.faq-answer-content b {
    font-family: cursive;
    font-size: 15.6px;
    letter-spacing: 0.6px;
}

        /* Состояние "Активно" (ответ открыт) */
        .faq-item.active .faq-answer {
            grid-template-rows: 1fr;
        }

.faq-item.active .faq-answer-content {
    padding: 0 3px 9px 3px;
}

        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }
        
.faq-item.active .faq-question {
    color: #6495ed;
}
#chavo h2{
    background: linear-gradient(0deg, #000, #893b31);
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
}
#chavo h2 span{
    color:#9d2424;
    font-family: cursive;
}

.abzu-media-block {
  position: relative;   /* точка отсчёта для логотипа */
  overflow: hidden;     /* чтобы логотип не вылезал, если что */
  flex:1;
  background: #000000;
  border: 3px solid #260000;
  border-radius: 30px;
  padding: 15px 9px;
  background-image: linear-gradient(45deg, transparent 20%, black 25%, transparent 25%), linear-gradient(-45deg, transparent 20%, black 25%, transparent 25%), linear-gradient(-45deg, transparent 75%, black 80%, transparent 0), radial-gradient(#0e0000 2px, transparent 0);
  background-size: 30px 30px, 30px 30px;
  color:white;
}

.abzu-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;          /* поверх любого контента */
  width: 80px;          /* подгони под свой логотип */
  height: auto;
  pointer-events: none; /* клики проходят сквозь логотип (важно для видео!) */
  background: #ffffff66;
  border: 1px solid #ffffff;
  border-radius: 6px;
}

/* Чтобы видео/картинка не перекрывали логотип */
.abzu-media-block video,
.abzu-media-block img:not(.abzu-logo) {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
}
.abzu-media-block2 {
  display: flex;justify-content: center;
  
}
.abzu-media-block2 h2 {
  display: flex;
  justify-content: center;
  color:#371931;
  font-family: cursive;
  text-shadow: 0 0 6px #ffffff, 0 0 9px #ffffff, 0 0 21px #000000, 0 0 33px #000000;
}
.abzu-media-block3 {
    background: #ffffff;
    border: 3px solid #9b9b9b;
    border-radius: 30px;
}
#legi_news {
    color: #f10000;
    font-size: 24px;
    font-family: cursive;
    text-shadow: 0 0 6px #ff0000, 0 0 9px #b70404, 0 0 21px #000000, 0 0 33px #ff0000;
    letter-spacing: 1.2px;
}

#not_lack {
    background: linear-gradient(182deg, #000 0%, #ffffff 100%);
    color: #000;
    font-weight: bold;
    font-family: cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin: 15px;
}
.menu-link {
    color: #000c66;
    text-decoration: unset;
    font-weight: bold;
}
.menu-link {
    color:#390001;
}
.iagree {
    display:flex;
}
.iagree a {
    color: #116601;
}
.iagree div:first-child {
    height: 18px;
    width: 18px;
    margin: 0 9px 0 3px;
    background: white;
    border-radius: 3px;
    font-weight: bold;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #116601;
    cursor:pointer;
}

.iagree div:nth-child(2) {
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}
#button-tariff {
    padding:4px 12px;background: #fff;color:#979797
}
