/* --- СИСТЕМНІ ЗМІННІ (КОЛЬОРИ ТА ШРИФТИ) --- */
:root {
    --bg-color: #FCFBF9;
    --text-main: #1C2321;
    --text-muted: #4A5350;
    
    /* Нова синя палітра */
    --accent-blue: #4b73ca;       /* Основний синій */
    --royal-blue: #4169E1;        /* Королівський синій */
    --deep-navy: #191970;         /* Глибокий темно-синій */
    --light-blue: #B0E0E6;        /* Ніжно-блакитний */
    --blue-glow: rgba(75, 115, 202, 0.15);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Alex Brush', cursive;
}

/* Налаштування плавного скролу для всієї сторінки */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Запобігає перекриванню контенту липкою шапкою */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Захист від випадкового горизонтального скролу на мобільних */
}

/* --- ШАПКА САЙТУ (HEADER) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    border-bottom: 2px solid var(--text-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.brand-logo-text {
    font-family: var(--font-script);
    font-size: 46px;
    font-weight: 500;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

/* Елегантне підкреслення лінією замість стандартного text-decoration */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    color: #5E6965;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--accent-blue);
}

.lang-btn.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--text-main);
}

.fleur-image-container {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fleur-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- СЕКЦІЯ HERO --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 5%;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45); /* Трохи висвітлено для кращої читабельності тексту поверх відео */
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #5E6965;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 25px;
}

.hero-main-title span {
    font-style: italic;
    color: var(--accent-blue);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    text-decoration: none;
    padding: 16px 35px;
    background-color: var(--text-main);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(75, 115, 202, 0.4);
}

.btn-secondary {
    text-decoration: none;
    padding: 16px 35px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: #fff;
    transform: translateY(-3px);
}

.hero-image-side {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.main-photo-frame {
    position: relative;
    width: 380px;
    height: 460px;
    z-index: 5;
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); 
}

.frame-decor-line {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 10px 25px var(--blue-glow);
    z-index: 1;
    transition: transform 0.4s ease;
}

/* Інтерактивний ефект: при наведенні на фото рамка зміщується */
.main-photo-frame:hover .frame-decor-line {
    transform: translate(8px, 8px);
}

/* --- СЕКЦІЯ ТАРИФІВ (PRICING) --- */
.pricing-section {
    padding: 100px 5%;
    background-color: #fff;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.price-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(75, 115, 202, 0.15);
    padding: 50px 40px; /* Трохи збільшили внутрішні відступи з боків */
    border-radius: 16px;
    flex: 1;
    min-width: 340px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 25px 50px rgba(75, 115, 202, 0.12);
}

.price-card.popular {
    border: 2px solid var(--accent-blue);
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(75, 115, 202, 0.05);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(75, 115, 202, 0.3);
}

.card-tier {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 15px;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
}

.price-period {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 70px;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--accent-blue);
    font-size: 14px;
}

.btn-price-primary {
    text-decoration: none;
    text-align: center;
    padding: 14px;
    background-color: var(--text-main);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-price-primary:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-price-secondary {
    text-decoration: none;
    text-align: center;
    padding: 14px;
    border: 1px solid rgba(75, 115, 202, 0.4);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-price-secondary:hover {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* --- СЕКЦІЯ ПРО МЕНЕ (ABOUT ME) --- */
.about-me-section {
    padding: 120px 5%;
    background-color: #fff;
    position: relative;
    z-index: 4;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
}

.about-text-side {
    flex: 1.2;
}

.about-decor-side {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.about-subtitle {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 40px;
    color: #1C1B19;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: #2b3532;
    border-left: 3px solid var(--accent-blue);
    padding-left: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.about-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(75, 115, 202, 0.15);
    padding-top: 30px;
}

.feat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feat-num {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--accent-blue);
    font-weight: 600;
}

.feat-label {
    font-size: 12px;
    color: #5E6965;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ДЕКОРАТИВНА КАРТКА (DECOR CARD) --- */
.decor-card {
    background-color: #F6F9FC;
    border: 1px solid rgba(75, 115, 202, 0.2);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    max-width: 340px;
    box-shadow: 0 15px 35px rgba(25, 25, 112, 0.04);
    transition: transform 0.3s ease;
}

.decor-card:hover {
    transform: scale(1.02);
}

.decor-brand {
    font-family: var(--font-script);
    font-size: 38px;
    color: var(--accent-blue);
    margin-bottom: 0;
}

.decor-sub {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: -5px;
    margin-bottom: 25px;
}

.decor-divider {
    width: 40px;
    height: 1px;
    background-color: var(--accent-blue);
    margin: 0 auto 25px auto;
}

.decor-text {
    font-size: 14px;
    color: #424e4a;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 30px;
}

.decor-icon {
    color: var(--accent-blue);
    font-size: 20px;
}

/* --- АДАПТИВНІ СТИЛІ (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .nav-menu {
        gap: 20px;
    }
    .hero-section {
        padding: 60px 20px;
        min-height: auto;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-main-title {
        font-size: 36px; /* Зменшено для зручності читання на планшетах */
    }
    .hero-image-side {
        justify-content: center;
        width: 100%;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-photo-frame {
        width: 300px;
        height: 380px;
    }
    .about-me-section {
        padding: 60px 20px;
    }
    .about-container {
        flex-direction: column;
        gap: 50px;
    }
    .about-title {
        font-size: 32px;
    }
    .about-text-side, .about-decor-side {
        width: 100%;
    }
    .decor-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .brand-logo-text {
        font-size: 36px;
    }
    .hero-main-title {
        font-size: 28px; /* Оптимально для екранів смартфонів */
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        text-align: center;
        width: 100%;
    }
    .about-features {
        flex-direction: column;
        gap: 25px;
    }
}