:root {
    --bg-main: #111811;
    --bg-card: #1A241A;
    --text-main: #E4EBE4;
    --text-heading: #FFFFFF;
    --accent-primary: #D0DFA4;
    --accent-secondary: #7AAE7A;
    --accent-tertiary: #d8f564;
    --accent-primary-rgb: 92, 158, 66;
    --accent-secondary-rgb: 122, 174, 122;
    --accent-tertiary-rgb: 76, 201, 240;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-primary-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.05) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L30 10 L30 30 L50 30 L50 10 L70 10 L70 30 L90 30 M10 70 L30 70 L30 90 L50 90 L50 70 L70 70 L70 90 L90 90 M50 10 L50 30 L30 30 L30 50 L10 50 L10 30 M50 70 L50 90 L70 90 L70 70 L90 70 L90 90' stroke='%235C9E4210' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    background-size: 50px 50px, 50px 50px, auto;
    z-index: -1;
}

.navbar {
    background-color: var(--bg-card) !important;
    border-bottom: 2px solid var(--accent-primary);
}

.navbar .container {
    border-radius: 2rem;
}

.navbar-brand,
.nav-link {
    color: var(--text-heading) !important;
    font-weight: 700;
}

.navbar-brand:hover,
.nav-link:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

.hero-section {
    padding: 90px 0;
    position: relative;
}

.hero-info-card {
    max-width: 550px;
    z-index: 10;
}

.hero-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 3.5rem;
    color: var(--text-heading);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-title .highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.6);
}

.btn-frog-main {
    background-color: var(--accent-primary);
    color: var(--bg-main);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.btn-frog-main:hover {
    background-color: var(--bg-card);
    color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(var(--accent-primary-rgb), 0.7);
}

.btn-outline-frog {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-frog:hover {
    background-color: var(--accent-primary);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
}

.coding-frog-container {
    position: relative;
    z-index: 5;
}

.coding-frog-visual {
    width: 80%;
    height: auto;
}

.img-shadow {
    filter: drop-shadow(0px 0px 15px rgba(168, 255, 133, 0.45));
}

.lilypad-glow {
    position: absolute;
    bottom: -20px;
    left: 55%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    border-radius: 50%;
    background: rgba(var(--accent-primary-rgb), 0.8);
    filter: blur(5px);
    z-index: -1;
}

.peeking-frog-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transform: rotate(-20deg);
    opacity: 0.3;
    font-size: 2rem;
}

.portfolio-slider-wrapper {
    background: transparent;
    border: none;
    padding: 2rem 0;
    width: 100%;
}

.portfolio-track-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.portfolio-track {
    display: flex;
    transition: transform 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-slide {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.portfolio-card {
    background: var(--bg-card);
    border: 2px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--text-main);
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 50px rgba(var(--accent-primary-rgb), 0.2);
}

.project-image-wrapper {
    width: 50%;
}

.project-img {
    width: 100%;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 3px solid rgba(var(--accent-secondary-rgb), 0.3);
    border-radius: 16px;
}

.student-frog-art {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    bottom: -30px;
    right: -20px;
    z-index: 5;
    overflow: visible;
}

.student-frog-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    overflow: visible;
}

.student-full-name {
    font-weight: 900;
    color: var(--text-heading);
}

.course-badge {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    font-size: 0.85rem;
}

.footer-section {
    background-color: var(--bg-card) !important;
    border-top: 3px solid var(--accent-primary);
    padding: 80px 0;
    position: relative;
    margin-top: 50px;
}

.footer-contact-card {
    background-color: var(--bg-main);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
}

.peeking-frog-footer-new {
    width: 100px;
    position: absolute;
    top: -70px;
    left: 15%;
    font-size: 5rem;
    z-index: 10;
}

.peeking-frog-footer-new img {
    width: 300px;
}

.chat-interface {
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.chat-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 85%;
}

.chat-left {
    align-self: flex-start;
}

.chat-right {
    align-self: flex-end;
    justify-content: flex-end;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.7;
}

.chat-left .chat-bubble {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.chat-right .chat-bubble {
    background-color: rgba(var(--accent-primary-rgb), 0.15);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
    color: var(--text-heading);
    border-bottom-right-radius: 4px;
}

.chat-right .chat-name {
    color: var(--accent-primary);
}

.hidden-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.hidden-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-msg {
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.visible .delay-msg {
    opacity: 1;
}

.roadmap-container {
    position: relative;
    z-index: 1;
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.roadmap-card:hover {
    transform: translateY(-15px);
    border-color: rgba(var(--accent-primary-rgb), 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.roadmap-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--bg-main);
    padding: 4px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-label {
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 10px;
}

.roadmap-content {
    flex-grow: 1;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.course-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.course-item span strong {
    display: block;
    color: var(--text-heading);
}

.course-item:hover {
    color: var(--text-heading);
}

.btn-outline-info {
    color: #4cc9f0;
    border: 2px solid #4cc9f0;
    transition: all 0.3s;
}

.btn-outline-info:hover {
    background: #4cc9f0;
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
}

.roadmap-header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding-top: 50px;
}

.roadmap-img {
    width: 80%;
    object-fit: contain;
}

.roadmap-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: left;
    text-shadow: 0 2px 4px rgba(17, 24, 17, 0.9);
}

.pricing-card-modern {
    background-color: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.pricing-card-modern.popular-card {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 10px 30px rgba(var(--accent-primary-rgb), 0.1);
}

.pricing-card-modern:hover {
    transform: translateY(-12px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(var(--accent-primary-rgb), 0.2);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-primary);
    color: var(--bg-main);
    padding: 6px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.4);
    z-index: 10;
    white-space: nowrap;
}

.price-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rub-price {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card-modern:hover .rub-price {
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    color: var(--text-heading);
}

.pricing-card-img {
    background-color: var();
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid;
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.frog-timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
    padding-top: 20px;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 95px;
    left: 50%;
    width: 100%;
    height: 40px;
    border-top: 3px dashed rgba(var(--accent-primary-rgb), 0.3);
    border-radius: 50% 50% 0 0;
    z-index: 0;
}

.frog-art {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: -90px;
    z-index: 5;
    transition: transform 0.3s ease;
}

.frog-art img {
    width: 100%;
}

.timeline-step:hover .frog-art {
    transform: translateY(-10px) scale(1.2);
}

.lilypad {
    width: 250px;
    height: 100px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: start;
    line-height: 3rem;
    justify-content: center;
    color: var(--bg-main);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(var(--accent-primary-rgb), 0.3), inset 0 -5px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    clip-path: polygon(100% 0, 100% 100%, 65% 100%, 50% 65%, 35% 100%, 0 100%, 0 0);
    transition: all 0.3s ease;
}

.relative-z {
    position: relative;
    z-index: 3;
    width: 100%;
}

.timeline-step .course-text {
    background: var(--bg-card) !important;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2) !important;
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.timeline-step h5 {
    color: var(--accent-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.timeline-step .course-text p {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.9rem;
}

.timeline-step:hover .course-text {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 10px 30px rgba(var(--accent-primary-rgb), 0.2);
    transform: translateY(-10px);
}

.timeline-step:hover h5 {
    text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.5);
}

.timeline-step:hover .lilypad {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--accent-secondary-rgb), 0.4);
}

.teacher-card {
    background-color: var(--bg-card);
    border: 2px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.teacher-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.6);
    transform: translateY(-5px);
}

.teacher-photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(var(--accent-primary-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 2;
}

.teacher-card:hover .teacher-photo-wrapper {
    border-radius: 50%;
    transform: rotate(5deg);
    border-color: var(--accent-primary);
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 3;
    position: relative;
}

.teacher-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.3) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

.teacher-role {
    color: var(--accent-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.3s;
}

.stat-badge:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
}

.teacher-quote {
    position: relative;
    padding: 15px 20px;
    background: rgba(var(--accent-secondary-rgb), 0.05);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.color-junior {
    color: var(--accent-secondary) !important;
}

.color-middle {
    color: var(--accent-primary) !important;
}

.color-senior {
    color: var(--accent-tertiary) !important;
}

.color-junior-bg {
    color: var(--bg-main) !important;
    background-color: var(--accent-secondary) !important;
    border-color: var(--accent-secondary) !important;
}

.color-middle-bg {
    color: var(--bg-main) !important;
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.color-senior-bg {
    color: var(--bg-main) !important;
    background-color: var(--accent-tertiary) !important;
    border-color: var(--accent-tertiary) !important;
}

.lilypad-bullet {
    width: 26px;
    height: 16px;
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    clip-path: polygon(100% 0, 100% 100%, 65% 100%, 50% 65%, 35% 100%, 0 100%, 0 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover .lilypad-bullet {
    transform: translateY(-2px) scale(1.1);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .portfolio-card {
        padding: 1.5rem;
        text-align: center !important;
    }

    .project-image-wrapper {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .portfolio-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .student-frog-art {
        width: 150px;
        height: 150px;
        bottom: -40px;
        right: 10px;
    }

    .frog-timeline-container {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .timeline-step:not(:last-child)::after {
        top: 40px;
        left: 45px;
        width: 0;
        height: 100%;
        border-top: none;
        border-left: 3px dashed rgba(var(--accent-primary-rgb), 0.5);
        border-radius: 0;
    }

    .lilypad {
        position: absolute;
        top: 60px;
        left: 0;
        width: 90px;
    }

    .timeline-step .course-text {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-info-card {
        max-width: 100%;
    }

    .coding-frog-visual {
        margin-top: 50px;
    }

    .chat-message {
        max-width: 95%;
    }

    .chat-interface {
        padding: 15px 10px;
    }

    .teacher-card {
        padding: 2rem 1.5rem;
    }

    .teacher-photo-wrapper {
        width: 200px;
        height: 200px;
    }

    .teacher-stats {
        justify-content: center;
    }

    .teacher-card .col-md-7 {
        text-align: center;
    }

    .teacher-quote {
        text-align: left;
    }
}

/* --- Стили для текстовых IT-иконок --- */
.code-icon {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -1px;
}

/* Привязка текста к твоей переменной вместо text-light */
.text-main {
    color: var(--text-main);
}

/* Обновленный ховер для бейджей, чтобы они реагировали на наведение */
.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: var(--bg-main);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.15);
}

/* Контейнер трека для плавного листания */
.review-track-container {
    overflow: hidden;
}

.review-track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

/* Стилизация карточки со скриншотом */
.review-screenshot-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px border-dashed rgba(110, 13, 145, 0.3); /* Твой фиолетовый */
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.review-img {
    border-radius: 15px;
    width: 100%;
    height: 300px;
    filter: drop-shadow(0 0 10px rgba(27, 215, 0, 0.1)); 
}


/* Адаптив для кнопок на мобилках */
@media (max-width: 768px) {
    .prev-btn, .next-btn {
        background: var(--bg-main) !important;
        opacity: 0.9;
    }
}

/* Эффект свечения для главной кнопки в футере */
.shadow-glow {
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
}

.shadow-glow:hover {
    box-shadow: 0 0 40px rgba(var(--accent-primary-rgb), 0.6);
}

/* Стили для ссылок в футере, чтобы они не были просто белыми */
.contact-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--accent-primary) !important;
    transform: translateX(5px);
}

/* Выделение "БЕСПЛАТНО" */
.contact-item span.highlight {
    background: rgba(var(--accent-primary-rgb), 0.1);
    padding: 2px 10px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

/* Фикс для мобильных: чтобы наклон не мешал на узких экранах */
@media (max-width: 992px) {
    .rotate-2 {
        transform: rotate(0deg) !important;
    }
}

/* --- FAQ (БАЗА ЗНАНИЙ) --- */

/* Сбрасываем стандартные рамки Bootstrap */
.custom-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-bg: transparent;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 16px !important; /* Важно для перекрытия Bootstrap */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateX(5px); /* Легкий сдвиг вправо при наведении */
}

/* Кнопка вопроса */
.faq-button {
    background-color: transparent !important; /* Убираем белый фон Bootstrap */
    color: var(--text-heading) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.5rem;
    box-shadow: none !important; /* Убираем синюю обводку при клике */
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

/* Скрываем стандартную стрелочку Bootstrap */
.faq-button::after {
    display: none;
}

/* Иконка терминала перед вопросом */
.faq-prompt {
    color: var(--accent-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: 1.2rem;
    transition: transform 0.4s ease, color 0.3s ease;
}

/* Стили для открытого вопроса */
.faq-button:not(.collapsed) {
    color: var(--accent-primary) !important;
    border-bottom: 1px dashed rgba(var(--accent-primary-rgb), 0.2);
    background: rgba(255, 255, 255, 0.02) !important;
}

.faq-button:not(.collapsed) .faq-prompt {
    color: var(--accent-primary);
    transform: rotate(90deg); /* Поворачиваем prompt при открытии */
}

/* Текст ответа */
.faq-body {
    color: var(--text-main);
    padding: 1.5rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.2); /* Делаем фон ответа чуть темнее карточки */
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-button {
        font-size: 1rem;
        padding: 1.2rem;
    }
    .faq-body {
        padding: 1.2rem;
    }
}