/* ===== ОБНУЛЕНИЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
    background: #1a3a5c;
    color: #fff;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 4px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.logo-text small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    display: block;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    border-bottom-color: #e6b422;
}

.btn-nav {
    background: #e6b422;
    color: #1a3a5c;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    border-bottom: none !important;
}

.btn-nav:hover {
    background: #f5c842;
    transform: scale(1.05);
}

/* ===== БУРГЕР ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== ГЕРОЙ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #e6b422;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #e6b422;
    color: #1a3a5c;
}

.btn-primary:hover {
    background: #f5c842;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 180, 34, 0.3);
}

.btn-large {
    padding: 16px 50px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a3a5c;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e6b422;
    margin: 10px auto 0;
}

/* ===== О НАС ===== */
.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-dosaaf {
    margin-bottom: 30px;
}

.about-dosaaf h3 {
    color: #1a3a5c;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 3px solid #e6b422;
    padding-bottom: 10px;
}

.about-dosaaf p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
}

.about-history {
    margin: 25px 0;
}

.about-history h4 {
    color: #1a3a5c;
    font-size: 20px;
    margin-bottom: 15px;
}

.history-list {
    list-style: none;
    padding: 0;
}

.history-list li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list .year {
    font-weight: 700;
    color: #e6b422;
    min-width: 65px;
    font-size: 15px;
}

.history-list li p {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    padding: 8px 0;
    font-size: 17px;
}

.about-list li i {
    color: #e6b422;
    margin-right: 12px;
}

.map-label {
    margin-top: 10px;
    font-weight: 600;
    color: #1a3a5c;
}

.about-map h4 {
    color: #1a3a5c;
    font-size: 20px;
    margin-bottom: 15px;
}

.about-map iframe {
    border-radius: 12px;
    border: 2px solid #e6b422;
    width: 100%;
}

.map-address {
    margin-top: 15px;
    background: #f0f4f8;
    padding: 15px 20px;
    border-radius: 8px;
}

.map-address p {
    margin: 5px 0;
    font-size: 15px;
}

.map-address i {
    color: #e6b422;
    margin-right: 10px;
}

/* ===== УСЛУГИ ===== */
.services {
    background: #f0f4f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 48px;
    color: #e6b422;
    margin-bottom: 15px;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 3px solid #e6b422;
}

.service-card h3 {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 15px;
}

/* ===== ПРАЙСЫ ===== */
.prices {
    background: #fff;
}

.prices-table {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:hover {
    background: #f8f5f0;
}

.price-name {
    font-weight: 600;
    color: #1a3a5c;
}

.price-desc {
    font-size: 14px;
    color: #888;
    display: block;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
}

/* ===== ЗАПИСЬ ===== */
.enroll {
    background: linear-gradient(135deg, #1a3a5c, #2a5a8c);
    color: #fff;
}

.enroll .section-title {
    color: #fff;
}

.enroll .section-title::after {
    background: #e6b422;
}

.enroll-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e6b422;
    background: rgba(255,255,255,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group select option {
    color: #333;
}

/* ===== АЛЕРТЫ ===== */
.alert {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.alert-success {
    background: rgba(46, 213, 115, 0.2);
    border: 2px solid #2ed573;
    color: #7bed9f;
}

.alert-error {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #ff4757;
    color: #ff6b81;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    background: #f0f4f8;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #e6b422;
    transform: translateY(-5px);
}

.contacts-social h3 {
    color: #1a3a5c;
    margin-bottom: 10px;
}

.contacts-map iframe {
    border-radius: 12px;
    border: 2px solid #ddd;
    margin-top: 15px;
    width: 100%;
}

.contacts-map p {
    margin-top: 8px;
    color: #1a3a5c;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #0f1f30;
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.no-data {
    text-align: center;
    color: #888;
    padding: 20px;
}

/* ======================================================
   НОВОСТИ
   ====================================================== */

/* Герой новостей */
.news-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
}

.news-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.news-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e6b422;
    margin: 15px auto 0;
}

.news-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.news-section {
    background: #f0f4f8;
    padding: 60px 0 80px;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Слайдер */
.news-slider {
    position: relative;
    width: 100%;
    height: 260px;
    background: #1a1a2e;
    overflow: hidden;
    flex-shrink: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
}

.slide-img:hover {
    transform: scale(1.02);
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #2a2a4a;
    color: #fff;
    font-size: 64px;
}

/* Кнопки слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Точки слайдера */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot:hover {
    background: rgba(255,255,255,0.7);
}

.dot.active {
    background: #e6b422;
    width: 24px;
    border-radius: 5px;
}

/* Контент новости */
.news-content {
    padding: 25px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 8px;
    color: #e6b422;
}

.news-content h3 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-description {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
    flex: 1;
}

.news-description p {
    margin-bottom: 10px;
}

/* Нет новостей */
.no-news {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.no-news i {
    font-size: 72px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}

.no-news p {
    font-size: 18px;
}

/* ======================================================
   ЛАЙТБОКС
   ====================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-lightbox:hover {
    color: #e6b422;
    transform: rotate(90deg);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 20px 25px;
    transition: 0.3s;
    z-index: 10;
    user-select: none;
}

.nav-arrow:hover {
    color: #e6b422;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* ======================================================
   АДАПТИВНОСТЬ
   ====================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 40px;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a3a5c;
        padding: 20px;
        transform: translateY(-200%);
        transition: 0.4s;
        border-top: 2px solid #e6b422;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link {
        font-size: 18px;
    }

    .btn-nav {
        background: transparent;
        color: #e6b422;
        border: 2px solid #e6b422 !important;
    }

    .btn-nav:hover {
        background: #e6b422;
        color: #1a3a5c;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .enroll-form {
        padding: 25px;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-value {
        font-size: 20px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-large {
        max-width: 100%;
    }

    .history-list li {
        flex-direction: column;
        gap: 5px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .news-slider {
        height: 220px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 20px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 8px 10px;
    }

    .nav-arrow {
        font-size: 28px;
        padding: 15px 18px;
    }

    .close-lightbox {
        font-size: 30px;
        right: 20px;
        top: 15px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 75%;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .news-hero h1 {
        font-size: 28px;
    }

    .news-slider {
        height: 180px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .news-description {
        font-size: 14px;
    }

    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 6px 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 18px;
    }

    .nav-arrow {
        font-size: 22px;
        padding: 10px 12px;
    }

    .close-lightbox {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}
/* ===== ФУТЕР С РЕКВИЗИТАМИ ===== */
.footer {
    background: #0f1f30;
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-requisites p {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 5px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-requisites span {
    padding: 0 10px;
}

@media (max-width: 600px) {
    .footer-requisites p {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-requisites span {
        display: block;
        padding: 2px 0;
    }
}