/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4a90a4;
    --primary-dark: #3a7a90;
    --accent: #e8835a;
    --accent-light: #f5a07a;
    --bg: #fafaf8;
    --bg-card: #ffffff;
    --bg-alt: #f0f4f5;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.site-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.site-desc { font-size: 12px; color: var(--text-muted); margin: 0; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 16px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 12px; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #e8f4f8 0%, #fdf0eb 100%);
    background-image: url("../images/hero-bg.png");
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.75) 0%, rgba(253, 240, 235, 0.75) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,144,164,0.3);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== TRUST BANNER ===== */
.trust-banner {
    background: #fff;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 16px;
}

.trust-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.trust-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

/* ===== PROGRAMS GRID ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.program-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.program-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.badge-popular {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.program-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.program-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.program-type {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.program-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    flex: 1;
}

.program-features li {
    font-size: 14px;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.program-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ===== PROGRAM BLOCKS ===== */
.programa3-section { background: var(--bg-alt); }

.program-block {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.program-block h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: 8px;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.age-card {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.age-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.age-card p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

.age-hours {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 16px !important;
}

/* ===== SVEDENIYA ===== */
.svedeniya-section { background: var(--bg-alt); }

.svedeniya-block {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.svedeniya-block p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
}

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ===== ACTIVITIES ===== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.activity-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.activity-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

.activity-info { padding: 20px; text-align: center; }
.activity-info h3 { font-size: 18px; margin-bottom: 8px; }
.activity-info p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.15);
}

.form-footer { margin-top: 28px; text-align: center; }

.btn-submit {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 16px 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,144,164,0.3);
}

.form-privacy {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.form-success {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; color: var(--primary); }
.form-success p { color: var(--text-light); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text);
    color: #fff;
    text-align: center;
    padding: 32px 0;
}

.site-footer p { margin: 0; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section-title { font-size: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 16px; }
    .programs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 24px; }
    .container { padding: 0 16px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== PRINT ===== */
@media print {
    .site-header, .hero-actions, .mobile-toggle, .contact-form, .nav-cta { display: none; }
    .hero { padding: 20px 0; background-image: none !important; }
    .hero::before { display: none; }
    .section { padding: 20px 0; }
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 800px;
    margin: 32px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background: var(--bg-alt);
}

.faq-answer {
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 16px 0 0;
}

/* ===== LEGAL LIST ===== */
.legal-list {
    list-style: none;
    padding: 0;
}

.legal-list li {
    font-size: 14px;
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list a {
    font-weight: 500;
}
