.row.no-gutters img {
  border: none;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NCIgaGVpZ2h0PSI4NCI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNLTgtOEg5MlY5MkgtOHoiLz48cGF0aCBmaWxsPSIjQjZCNkI2IiBkPSJNNDIgLjMzM0E0LjE2NyA0LjE2NyAwIDAgMSA0Ni4xNjcgNC41VjE3YTQuMTY3IDQuMTY3IDAgMSAxLTguMzM0IDBWNC41QTQuMTY3IDQuMTY3IDAgMCAxIDQyIC4zMzN6bTAgNjIuNUE0LjE2NyA0LjE2NyAwIDAgMSA0Ni4xNjcgNjd2MTIuNWE0LjE2NyA0LjE2NyAwIDEgMS04LjMzNCAwVjY3QTQuMTY3IDQuMTY3IDAgMCAxIDQyIDYyLjgzM3pNODMuNjY3IDQyYTQuMTY3IDQuMTY3IDAgMCAxLTQuMTY3IDQuMTY3SDY3YTQuMTY3IDQuMTY3IDAgMSAxIDAtOC4zMzRoMTIuNUE0LjE2NyA0LjE2NyAwIDAgMSA4My42NjcgNDJ6bS02Mi41IDBBNC4xNjcgNC4xNjcgMCAwIDEgMTcgNDYuMTY3SDQuNWE0LjE2NyA0LjE2NyAwIDEgMSAwLTguMzM0SDE3QTQuMTY3IDQuMTY3IDAgMCAxIDIxLjE2NyA0MnptNTAuMjk2IDI5LjQ2M2E0LjE2NyA0LjE2NyAwIDAgMS01Ljg5MiAwbC04LjgzOC04LjgzOGE0LjE2NyA0LjE2NyAwIDAgMSA1Ljg5Mi01Ljg5Mmw4LjgzOCA4LjgzNGE0LjE2NyA0LjE2NyAwIDAgMSAwIDUuODk2ek0yNy4yNjcgMjcuMjY3YTQuMTY3IDQuMTY3IDAgMCAxLTUuODkyIDBsLTguODMzLTguODM0YTQuMTY4IDQuMTY4IDAgMSAxIDUuODkxLTUuODk1bDguODM0IDguODM3YTQuMTY3IDQuMTY3IDAgMCAxIDAgNS44OTJ6TTEyLjU0MiA3MS40NjNhNC4xNjcgNC4xNjcgMCAwIDEgMC01Ljg5Mmw4LjgzNy04LjgzOGE0LjE2NyA0LjE2NyAwIDEgMSA1Ljg5MiA1Ljg5MmwtOC44MzQgOC44MzhhNC4xNjcgNC4xNjcgMCAwIDEtNS44OTUgMHptNDQuMTkxLTQ0LjE5NmE0LjE2NyA0LjE2NyAwIDAgMSAwLTUuODkybDguODM0LTguODM3YTQuMTY4IDQuMTY4IDAgMCAxIDUuODk2IDUuODkxbC04LjgzOCA4LjgzOGE0LjE2NyA0LjE2NyAwIDAgMS01Ljg5MiAweiIvPjwvZz48L3N2Zz4=);
background-repeat: no-repeat;
background-color: rgba(238, 238, 238, 1);
background-size: 40px 40px;
background-position: 50% center;

}


:root {
    --primary-color: #5341DA;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    margin: 0;
}

/* --- Header & Navbar --- */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar {
    background: transparent !important;
    padding: 0 !important;
}

.navbar-brand svg {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.phone:hover {
    background: var(--primary-color);
}

.phone:hover svg path {
    stroke: var(--white);
}

/* --- Content Styling --- */
#main-text {
    padding: 80px 0;
    max-width: 900px; /* Текст зручніше читати, коли рядок не занадто довгий */
    margin: 0 auto;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    line-height: 1.2;
}

h2, h3 {
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: justify;
}

ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

ul li {
    background: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- Mobile Optimization --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .phone {
        margin-top: 15px;
        width: fit-content;
    }
    
    h1 { font-size: 1.8rem; }
}

/* --- Загальні класи та типографіка --- */
.heading {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.heading span {
    color: var(--primary-color); /* Виділяємо акцентні слова фіолетовим */
}

.sub-heading {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Кнопки --- */
.btn {
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(83, 65, 218, 0.3);
}

.button-primary:hover {
    background-color: #3f2ebd; /* Трохи темніший фіолетовий */
    transform: translateY(-2px);
    color: white;
}

.button-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button-primary-outline:hover, .button-primary-outline.active {
    background: var(--primary-color);
    color: white;
}

/* --- Головний екран (main-section) --- */
.main-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0ff 100%);
    position: relative;
}

.main-section .buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(83, 65, 218, 0.3);
    transition: var(--transition);
}

.btn-circle:hover {
    transform: scale(1.1);
}

.plus-block {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -30px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 20px;
}

.plus-block .item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.plus-block .item span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plus-block .item span:last-child {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.2;
}

/* --- Про компанію (about-section) --- */
.about-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-section iframe {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.zdravst {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Приховуємо декоративні картинки, якщо вони ламають верстку (налаштуй позиції під свої розміри) */
.about-section .bg, .about-section .circle, .about-section .circle2, .about-section .circle3 {
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

/* --- Курси (course-section) --- */
.course-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.course-section .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.courses-item {
    margin-bottom: 30px;
    display: flex; /* Щоб картки були однакової висоти */
}

.courses-item .item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.courses-item .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.courses-item .age {
    background: #eef0ff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin: 15px 0;
}

.courses-item .name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.courses-item .desc {
    font-size: 0.9rem;
    flex-grow: 1; /* Опис розтягується, притискаючи кнопку донизу */
}

.courses-item .status {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.courses-item .status li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-light);
      max-width: 70%;
}

.courses-item .status img {
    width: 16px;
}

.courses-item .btn {
    width: 100%;
    font-size: 12px;
}

/* --- Секція Квізу (choose-section) --- */
.choose-section {
    padding: 80px 0;
}

.choose-section__block {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.choose-section__block .heading, .choose-section__block .sub-heading {
    color: white;
}

.choose-section__block .questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.choose-section__block .questions a {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.choose-section__block .questions a:hover, 
.choose-section__block .questions a.active {
    background: white;
    color: var(--primary-color);
}

/* --- Переваги (plus-section) --- */
.plus-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.plus-section .col-lg-6 > div {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.plus-section .col-lg-6 > div:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.plus-section .col-lg-6 > div img {
    width: 50px;
    flex-shrink: 0;
}

.plus-section .col-lg-6 > div span:first-child {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.plus-section .border {
    border: 2px solid #eef0ff !important;
}

/* Адаптивність */
@media (max-width: 768px) {
    .main-section .buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .plus-block { margin-top: 20px; }
    .choose-section__block { padding: 30px; }
}

/* --- Секція Відгуків (review-section) --- */
.review-section {
    padding: 80px 0;
    background: var(--bg-light);
    overflow: hidden; /* Щоб слайдер не розтягував екран */
}

.review-section hr {
    border-top: 2px solid var(--primary-color);
    width: 60px;
    margin: 20px auto 40px;
}

.review-section .buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.swiper-container-review {
    padding: 20px 0 40px !important;
    overflow: visible; /* Щоб не обрізалися тіні карток */
}

.swiper-container-review .swiper-slide > div {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: var(--transition);
}

.swiper-container-review .swiper-slide:hover > div {
    box-shadow: 0 15px 35px rgba(83, 65, 218, 0.1);
    transform: translateY(-5px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef0ff;
}

.profile h6 {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.profile span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.swiper-slide p {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
}

/* Кнопки навігації слайдера (кастомні зображення) */
.swiper-button-next-review, .swiper-button-prev-review,
.swiper-button-next-gallery, .swiper-button-prev-gallery {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.swiper-button-next-review:hover, .swiper-button-prev-review:hover {
    transform: scale(1.1);
}

.sign-course {
    display: block;
    margin: 40px auto 0;
}

/* --- Галерея (gallery-section) --- */
.gallery-section {
    padding: 80px 0;
    background: white;
    overflow: hidden;
}

.swiper-container-gallery .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swiper-container-gallery img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.swiper-container-gallery img:hover {
    transform: scale(1.02);
}

/* --- FAQ (question-section) --- */
.question-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.accordion .card {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.accordion .card-header {
    background: white;
    border-bottom: none;
    padding: 0;
}

.accordion .btn-link {
    width: 100%;
    text-align: left;
    color: var(--text-dark);
    font-weight: 600;
    padding: 20px 25px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
}

.accordion .btn-link:hover, .accordion .btn-link:focus {
    text-decoration: none;
    color: var(--primary-color);
}

/* Додаємо іконку стрілочки для FAQ */
.accordion .btn-link::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion .btn-link:not(.collapsed)::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion .card-body {
    background: white;
    color: var(--text-light);
    padding: 0 25px 25px;
    border-top: 1px solid #f1f1f1;
    font-size: 0.95rem;
}

/* --- Карта (school) --- */
.school {
    padding: 60px 0;
    background: white;
}

.school__section iframe {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none !important;
}

/* --- Футер (footer) --- */
.footer {
    background-color: #1A1A1A; /* Темний солідний фон */
    color: white;
    padding: 80px 0 30px;
}

.footer .heading, .footer .sub-heading {
    color: white;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-bottom p {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-bottom a, .footer-bottom span {
    display: block;
    color: #A0A0A0;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
    transform: translateX(5px);
}

.footer .copy {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

@media (min-width: 992px) {
    .col-lg-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 30%;
    }
}

/* --- Навігація (Меню) --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent; /* На старті прозоре */
}

/* Коли користувач скролить сторінку */
.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 25px;
}

.main-nav__item a {
    text-decoration: none;
    color: #ffffff; /* Білий текст на темному фоні header */
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav.scrolled .main-nav__item a {
    color: var(--text-dark); /* Темний текст, коли меню біле */
}

.main-nav__item a:hover {
    color: var(--primary-color) !important;
}

/* Кнопка в меню */
.main-nav__item--button a {
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(83, 65, 218, 0.3);
}

.main-nav__item--button a:hover {
    background: #3f2ebd;
    transform: translateY(-2px);
    display: inline-block;
}

/* --- Головний екран (Header) --- */
.header {
    position: relative;
    padding: 180px 0 120px;
    /* Технологічний градієнт, ідеально для робототехніки */
    background: linear-gradient(135deg, #1A1A2E 0%, #5341DA 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Декоративний елемент фону (опціонально, додає IT-вайбу) */
.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTAgMGgyMHYyMEgweiIgZmlsbD0ibm9uZSIvPjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDcpIi8+PC9zdmc+') repeat;
    pointer-events: none;
}

.header span {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header__desc {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.header__button a {
    display: inline-block;
    background: #ffffff;
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.header__button a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    background: #f8f9fa;
}

.header__scroll {
    display: inline-block;
    margin-top: 60px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.header__scroll:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- Секція "Про Робототехніку" (About) --- */
.about {
    padding: 100px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    line-height: 1.3;
}

/* Блоки з іконками */
.about .col-sm-4 {
    margin-bottom: 40px !important; /* Трохи більше простору */
    padding: 0 20px;
}

.about__pic {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: #ffffff;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(83, 65, 218, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружна анімація */
}

/* Ефект "підстрибування" іконки при наведенні на весь блок */
.about .col-sm-4:hover .about__pic {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 35px rgba(83, 65, 218, 0.2);
}

.about__pic img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.about h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

/* --- Адаптивність (Відображення на мобільних) --- */
.desktop-only { display: flex; flex-wrap: wrap; }
.mobile-only { display: none; }

@media (max-width: 991px) {
    /* Ховаємо звичайне меню на телефонах (тут потрібен бургер-код, якщо є) */
    .main-nav__list { display: none; }
    
    .header { padding: 120px 0 80px; }
    .header span { font-size: 2.2rem; }
    
    /* Показуємо мобільну карусель, ховаємо сітку */
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .about__pic { margin-bottom: 15px; }
    .carousel-item { padding: 20px; }
    
    /* Індикатори каруселі під колір бренду */
    .carousel-indicators li { background-color: #ccc; width: 10px; height: 10px; border-radius: 50%; }
    .carousel-indicators .active { background-color: var(--primary-color); }
}
/* --- Секція "Лига Роботов" (Courses) --- */
.courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.courses-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.courses__item {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.courses__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(83, 65, 218, 0.12);
}

.courses__item-pic {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.courses__item-pic img {
    max-height: 100%;
    object-fit: contain;
}

.courses__item-age {
    background: #eef0ff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.courses__item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.courses__item-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Штовхає кнопку вниз */
    margin-bottom: 25px;
}

.courses__item-link {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.courses__item-link:hover {
    background: #3f2ebd;
    color: #ffffff;
    text-decoration: none;
}

/* --- Секція "Про школу" (Indiv) --- */
.indiv {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.indiv__content {
    padding: 40px 60px 40px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.indiv__desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.indiv__desc strong {
    color: var(--primary-color);
}

.indiv__photo {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 30px 0 0 30px;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.1);
}

/* --- Галерея (Gallery) --- */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.gallery .carousel-item img {
    height: 550px;
    object-fit: cover;
}

/* Кастомні стрілочки каруселі */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0.7;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

/* --- Відгуки (Teachers) --- */
.teachers {
    padding: 80px 0;
    background: #ffffff;
}

.teacher {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    margin: 20px 10px 60px; /* Зазор для тіні та індикаторів */
}

.teacher__photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    flex-shrink: 0;
    border: 5px solid #eef0ff;
    box-shadow: 0 10px 20px rgba(83, 65, 218, 0.15);
}

.teacher__content {
    flex-grow: 1;
}

.teacher__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.teacher__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
}

/* Декоративні лапки для відгуків */
.teacher__desc::before {
    content: '“';
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -25px;
    color: rgba(83, 65, 218, 0.1);
    font-family: serif;
    line-height: 1;
}

/* Індикатори каруселі відгуків */
.teachers .carousel-indicators {
    bottom: 0;
}

.teachers .carousel-indicators li {
    background-color: #d1d5db;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: none;
}

.teachers .carousel-indicators .active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* --- Адаптивність для мобільних пристроїв --- */
@media (max-width: 991px) {
    .indiv__content { padding: 40px 20px; }
    .indiv__photo { min-height: 300px; border-radius: 0; }
    
    .teacher {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }
    
    .teacher__desc::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .gallery .carousel-item img { height: 300px; }
}

/* --- Секція Lego WeDo 2.0 (Indiv Block) --- */
.indiv {
    padding: 0; /* Оскільки використовується container-fluid, відступи робимо всередині */
    background: #ffffff;
    overflow: hidden;
    margin: 80px 0;
}

.indiv__content {
    padding: 60px 8%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.indiv__content .section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

/* Декоративна лінія під заголовком */
.indiv__content .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.indiv__desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
}

.indiv__photo {
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Закруглення кутів для фотографії */
    border-radius: 30px 0 0 30px; 
    box-shadow: -10px 10px 40px rgba(0,0,0,0.08);
}

/* --- Футер (Footer) --- */
.footer {
    background-color: #121215; /* Глибокий темний колір */
    color: #e2e2e2;
    padding: 60px 0 40px;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-color);
}

.footer__desc {
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
    color: #a0a0a0;
}

.footer__desc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer__desc a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(83, 65, 218, 0.5);
}

/* Блок соціальних мереж */
.footer__socials {
    margin-bottom: 20px;
    gap: 15px;
}

.footer__socials-label {
    font-weight: 600;
    color: #ffffff;
    margin-right: 10px;
}

.footer__socials-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2a2a35;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.footer__socials-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(83, 65, 218, 0.4);
}

/* Іконки через Data URI (щоб не підключати зайві шрифти типу FontAwesome) */
.footer__socials-link--fb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='%23ffffff'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E");
}

.footer__socials-link--inst {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23ffffff'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}

/* Нижній рядок (Копірайт та Бейдж) */
.footer__links {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.rate-badge {
    background: #2a2a35;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: 1px solid #3d3d4d;
}

/* --- Адаптивність (Mobile) --- */
@media (max-width: 991px) {
    .indiv { margin: 40px 0; }
    .indiv__content { padding: 40px 20px; }
    .indiv__photo { 
        min-height: 300px; 
        border-radius: 0; /* На мобілках фото на всю ширину */
    }
    
    .footer { text-align: center; }
    .footer__desc { margin: 0 auto 30px; }
    .footer__socials, .footer__links {
        justify-content: center;
    }
    .footer__socials-label {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}