* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
}

/* ====== HEADER ====== */

header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text h1 {
    font-size: 18px;
    color: #1e293b;
}

.logo-text p {
    font-size: 12px;
    color: #64748b;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.25s;
}

nav a:hover {
    color: #6366f1;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====== HERO ====== */

.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 46px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 24px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.badge {
    padding: 8px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #6366f1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat h3 {
    font-size: 28px;
    color: #6366f1;
}

.stat p {
    font-size: 13px;
    color: #64748b;
}

.hero-img {
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #6366f1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== SECTIONS BASE ====== */

section {
    padding: 80px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 17px;
    color: #64748b;
}

/* ====== ABOUT ====== */

.about {
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
}

.about-text p {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 15px;
}

.about-card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    color: #475569;
}

.about-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

/* ====== NEWS ====== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-img {
    height: 180px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.news-content {
    padding: 20px 22px 22px;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #6366f1;
    border-radius: 999px;
    font-size: 11px;
    margin-bottom: 6px;
}

.news-date {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.news-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.news-content p {
    font-size: 14px;
    color: #475569;
}

/* ====== SCHEDULE ====== */

.schedule {
    background: #f8fafc;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: white;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.schedule-table thead {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.schedule-table th,
.schedule-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.schedule-table tr {
    border-bottom: 1px solid #f1f5f9;
}

/* ====== GALLERY ====== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s;
    background: #e5e7eb;
    display: flex;
    flex-direction: column;
}

.gallery-media {
    height: 220px;
    background: #e5e7eb;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== CONTACT ====== */

.contact {
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.contact-info {
    background: white;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.contact-info h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 8px;
    color: #64748b;
}

/* ====== FOOTER ====== */

footer {
  background: transparent; /* или #fff */
  color: #111;
  padding: 30px 24px;
  text-align: center;
}
footer p { font-size: 13px; margin: 0; }

/* ====== BACK TO TOP ====== */

.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

/* ====== RESPONSIVE (TABLET) ====== */

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 10px 18px 16px;
        gap: 10px;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        display: none;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 6px 4px;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 112px 16px 56px;
    }

    .hero-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    section {
        padding: 56px 16px;
    }

    .header-content {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero-img {
        height: 260px;
    }
}


/* ===== Галерея: подписи и текст под галереей ===== */
.gallery-item{
  overflow:hidden;
}

.gallery-caption{
  padding:10px 12px;
  font-size:14px;
  line-height:1.35;
  color:rgba(17,24,39,0.9);
  background:rgba(255,255,255,0.9);
  border-top:1px solid rgba(229,231,235,0.9);
}

.gallery-note{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(229,231,235,0.9);
  border-radius:12px;
  background:rgba(255,255,255,0.85);
  color:rgba(17,24,39,0.9);
  line-height:1.55;
}


/* ===== Галерея: заголовок и текст под фото ===== */
.gallery-caption-title{
  font-weight: 700;
}

.gallery-caption-text{
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.9;
  white-space: pre-line;
}
