* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Плавающее меню */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 4;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.logo img {
    display: block;
    width: 60px;
    transition: transform 0.2s ease;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.logo:hover::after {
    animation: shine 0.6s forwards;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Общие стили ссылок */
.nav a,
.contacts a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    margin: 0 15px;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #1e88e5;
}

.contacts a:hover {
    color: #ff0000;
}

/* Скрытие чекбокса */
.menu-toggle {
    display: none;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 5px 0;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

/* Анимация крестика */
#menu-toggle:checked + .burger-menu span:nth-child(1) {
    transform: rotate(45deg);
}
#menu-toggle:checked + .burger-menu span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
#menu-toggle:checked + .burger-menu span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 5;
}

/* Адаптив */
@media (max-width: 768px) {
    /* Скрываем десктопное меню */
    .desktop-nav,
    .desktop-contacts {
        display: none !important;
    }

    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }

    /* Стили внутри мобильного меню */
    .mobile-menu .nav,
    .mobile-menu .contacts {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 20px;
    }

    .mobile-menu .nav a,
    .mobile-menu .contacts a {
        margin: 0;
        padding: 12px 0;
        font-size: 18px;
        display: block;
    }

    /* Показ мобильного меню при активации чекбокса */
    #menu-toggle:checked ~ .mobile-menu {
        display: block;
    }
}

/* На десктопах — всё как раньше */
@media (min-width: 769px) {
    .header-content {
        /* Убедимся, что всё в одной строке */
    }
}

/* === Главный слайдер (на весь экран) === */
.slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #fff;
    max-width: 950px;
    padding: 20px;
    z-index: 3;
}

.slide-content h1 {
    font-size: 100px;
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    color: #333333;
}

.slide-content h2 {
    font-size: 100px;
    margin-bottom: 25px;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    color: #333333;
}

.slide-content p {
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: #333333;
}

.slider-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn {
    background: #1e88e5;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: background 0.3s;
    position: relative;
    z-index: 3;
}

.btn:hover {
    background: #1565c0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #aaa;
    cursor: pointer;
}

.dot.active {
    background: #1e88e5;
}

.highlight {
    color: #ff0000;
    font-weight: bold;
}

/* Общие стили секций */
.section {
    padding: 80px 0;
    background: #f9f9f9;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e88e5;
}

/* Карточки специальностей */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: #1e88e5;
    margin-bottom: 15px;
}

ul {
    list-style: none;
    margin: 15px 0;
    list-style-type: none;
    flex: 1;
}

.about-content ul li::before {
    content: "✔ ";
    color: #1e88e5;
}

.card ul li::before {
    content: "• ";
    color: #1e88e5;
}

.duration {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 15px 0 10px 0;
    text-align: center;
}

.card .btn.card-btn {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
}

/* === О школе === */
.light-bg {
    background: #fff;
}

/* Макет: описание + слайдер */
.about-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 16px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

.about-slider {
    flex: 1;
    min-width: 300px;
    max-width: 400px; /* Ограничиваем ширину, как у текста */
}

/* Уникальные стили для слайдера в "О школе" */
.about-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.about-slider-container::before {
    content: '';
    display: block;
    padding-bottom: 75%; /* Соотношение 4:3 (680×510) */
}

.about-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.about-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Вписывает изображение целиком, без обрезки */
    display: block;
}

.about-slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.about-prev,
.about-next {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.about-prev:hover,
.about-next:hover {
    background: #1565c0;
}

/* === Блок "Наши достижения" — без hover, центрирован === */
.achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc((100% - 3 * 24px) / 4); /* 4 в ряд с gap */
    max-width: 250px;
    padding: 20px 30px;
    border-radius: 12px;
}

.achievement-item .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.achievement-item .icon svg {
    width: 64px;
    height: 64px;
    stroke: #1e88e5;
    fill: none;
}

.achievement-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность для "Наши достижения" */
@media (max-width: 1023px) {
    .achievements-list {
        gap: 20px;
    }

    .achievement-item {
        width: calc((100% - 2 * 20px) / 2); /* 2 в ряд */
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .achievement-item {
        width: calc((100% - 2 * 10px) / 2);
        max-width: none;
        padding: 16px;
    }

    .achievement-item .icon {
        width: 64px;
        height: 64px;
    }

    .achievement-item .icon svg {
        width: 64px;
        height: 64px;
    }

    .achievement-item h4 {
        font-size: 14px;
    }
}

/* Преподаватели */
.teachers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.teacher {
    text-align: center;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.teacher:hover {
    transform: translateY(-5px);
}

.teacher .avatar {
    display: block;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.teacher .avatar img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.teacher .avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    border-radius: 8px;
}

.teacher:hover .avatar::before {
    opacity: 1;
    left: 150%;
    transition: 
        opacity 0.5s ease 0.1s,
        left 0.7s ease 0.1s;
}

.teacher:hover .avatar img {
    transform: scale(1.1);
}

.teacher h4 {
    color: #1e88e5;
    margin: 10px 0 5px 0;
    font-size: 1.2rem;
}

.teacher .title {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.teacher ul {
    text-align: left;
    margin: 15px auto;
    font-size: 0.9rem;
    color: #555;
}

.teacher ul li {
    margin-bottom: 6px;
}

.teacher ul li::before {
    content: "• ";
    color: #1e88e5;
    font-weight: bold;
}
/* FAQ Accordion */
.faq {
  margin: 40px 0;
}

.faq-item {
  margin: 15px 0;
}

.faq-item details {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
}

.faq-item summary {
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #1e88e5;
  cursor: pointer;
  outline: none;
  background: #fff;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #1e88e5;
}

.faq-item details[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 20px;
  line-height: 1.6;
  border-top: 1px solid #e9ecef;
  background: white;
}

/* Форма и CTA */
.cta {
    background: #1e88e5;
    color: white;
}

.cta h2, .cta p {
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

#applyForm {
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#applyForm input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#applyForm button {
    margin-top: 10px;
}

.messenger-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.messenger {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.messenger img {
    width: 30px;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px 0;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider {
    height: 60vh;
    }

    .slide-content h1 {
        font-size: 2rem;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
    font-size: 20px;
}

    .about-content {
        flex-direction: column;
    }

    .nav a, .contacts a {
        font-size: 14px;
    }
     .faq-item summary {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .faq-item .mebel-faq-answer {
    padding: 15px;
  }
}

/* === Тонкая полоса, следующая за курсором === */
.cursor-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.6), transparent);
    pointer-events: none;
    z-index: 6;
}

/* === Движущаяся точка за курсором === */
.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    background: rgba(30, 136, 229, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.6);
    pointer-events: none;
    z-index: 6;
    transform: translate(-50%, -50%);
    transition: transform 0.5s ease;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(30, 136, 229, 0.5), transparent);
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 6;
    opacity: 0.5;
}