/* ОБЩИЕ СТИЛИ СБРОСА И ШРИФТЫ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-header {
    background-color: #25D366; /* Фирменный зеленый WhatsApp */
    color: #ffffff;
    font-size: 14px;
}

.btn-header:hover {
    background-color: #128C7E; /* Более темный зеленый при наведении */
}

.btn-main {
    background-color: #be3c3c;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-main:hover {
    background-color: #660000;
}

/* ШАПКА (HEADER) */
.site-header {
    background-color: #00204a; /* Глубокий синий */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}


.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #8b0000;
}

/* ГЛАВНЫЙ ЭКРАН (HERO) */
.hero-section {
    background: linear-gradient(rgba(0, 32, 74, 0.85), rgba(0, 32, 74, 0.85)), url('https://unsplash.com') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
}

.hero-container {
    padding: 100px 0;
    max-width: 800px;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ЗАГОЛОВКИ СЕКЦИЙ */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #00204a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8b0000;
    margin: 15px auto 0;
}

/* ПРОГРАММЫ */
.programs-section {
    background-color: #f4f6f9;
}

.programs-grid {
    display: flex;
    gap: 30px;
}

.program-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #00204a;
}

.program-card h3 {
    margin-bottom: 15px;
    color: #00204a;
}

/* ПРЕИМУЩЕСТВА */
.advantages-section {
    background-color: #00204a;
}

.advantages-grid {
    display: flex;
    gap: 20px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    flex: 1;
    color: #ffffff;
}

.adv-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.adv-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.adv-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* КОНТАКТЫ */
.contact-info {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.social-link.wa { background-color: #25D366; }
.social-link.tg { background-color: #0088cc; }

/* ПОДВАЛ */
.site-footer {
    background-color: #111;
    color: #777;
    padding: 20px 0;
    font-size: 14px;
}

/* БЛОК ЦЕН (PRECIOS) */
.prices-section {
    background-color: #ffffff;
}

.table-responsive {
    overflow-x: auto; /* Позволяет таблице скроллиться на очень маленьких телефонах */
    margin-top: 20px;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 32, 74, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.prices-table thead tr {
    background-color: #00204a; /* Наш глубокий синий */
    color: #ffffff;
    font-weight: bold;
}

.prices-table th, 
.prices-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #e1e8ed;
}

.prices-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa; /* Легкий серый контраст для четных строк */
}

.prices-table tbody tr:last-of-type {
    border-bottom: 3px solid #00204a;
}

/* Стилизация статуса мест */
.spots-left {
    color: #8b0000; /* Темно-красный для дефицита мест */
    font-weight: bold;
}

.spots-available {
    color: #25D366; /* Зеленый, если места есть */
    font-weight: bold;
}

/* АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ РЕЖИМЫ */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
      /* Скрываем всё меню полностью */
    .main-nav { display: none !important; } 
    .hero-section h1 { font-size: 28px; }
    .programs-grid, .advantages-grid { flex-direction: column; }
    .social-links { flex-direction: column; align-items: center; }
    .social-link { width: 200px; }
}