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

:root {
    --primary: #7aadd4;
    --primary-light: #a8cde5;
    --primary-dark: #5a8fb8;
    --bg: #faf7f2;
    --bg-card: #ffffff;
    --text: #3a4a5c;
    --text-light: #6b7d8e;
    --accent-warm: #f0e6d6;
    --accent-cream: #fdf5eb;
    --shadow-soft: 0 4px 20px rgba(90, 143, 184, 0.10);
    --shadow-hover: 0 8px 32px rgba(90, 143, 184, 0.18);
    --radius: 20px;
    --radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Background decoration --- */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(122, 173, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -80px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 230, 214, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation --- */
/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(122, 173, 212, 0.1);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(90, 143, 184, 0.12);
}

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

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

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.nav-logo span {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

/* Dropdown Menu */
.dropdown-item {
    position: relative;
    padding-bottom: 15px;
    /* Increase hover area bridge */
    margin-bottom: -15px;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 4px;
    transition: transform 0.2s;
}

.dropdown-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 101;
}

.dropdown-item:hover .dropdown-menu,
.dropdown-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-card);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: var(--text);
    text-align: left;
}

.dropdown-menu li a:hover {
    background: var(--accent-cream);
    color: var(--primary-dark);
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Bullets --- */
.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-bullet {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Pain Block --- */
.pain-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.pain-block p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.solution-box {
    background: linear-gradient(135deg, #fefbf7, #fff);
    border: 2px solid var(--accent-warm);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.solution-box h3 {
    font-family: 'Comfortaa', cursive;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.solution-box ul {
    list-style: none;
}

.solution-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.solution-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.solution-box li:last-child {
    margin-bottom: 0;
}

.method-note {
    text-align: center;
    max-width: 650px;
    margin: 32px auto 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    background: rgba(122, 173, 212, 0.1);
    padding: 16px;
    border-radius: 12px;
}

/* --- Page wrapper --- */
.page-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Section common --- */
.landing-section {
    padding: 64px 0;
}

.section-label {
    font-family: 'Comfortaa', cursive;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.6;
}

/* --- Hero --- */
.hero {
    padding: 120px 0 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 130px;
    height: 130px;
    margin-bottom: 24px;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-card);
    padding: 10px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.hero-type {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.hero h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 16px;
    max-width: 560px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 460px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(90, 143, 184, 0.25);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(90, 143, 184, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    background: var(--bg-card);
    color: var(--primary-dark);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--primary-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* --- Cards grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.card-icon-blue {
    background: linear-gradient(135deg, #e3f0fa, #c9e2f5);
}

.card-icon-green {
    background: linear-gradient(135deg, #e8f4ec, #d0ebd8);
}

.card-icon-warm {
    background: linear-gradient(135deg, #fef3e2, #fde5c0);
}

.card-icon-pink {
    background: linear-gradient(135deg, #fce4ec, #f8d0da);
}

.card-icon-purple {
    background: linear-gradient(135deg, #e8eaf6, #d1d4f0);
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Audience (Кому подойдут) --- */
.audience-list {
    list-style: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.audience-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.audience-list li {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.audience-list li:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.audience-list .li-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* --- Approach (Наш подход) --- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}


.approach-grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Subsections --- */
.subsection {
    margin-top: 28px;
}

.subsection:first-child {
    margin-top: 24px;
}

.subsection-title {
    font-family: 'Comfortaa', cursive;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

/* --- Formats (Языки и форматы) --- */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.format-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.format-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.format-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.format-card-icon--flag {
    font-size: 1rem;
}

.format-card-icon--flag svg {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.format-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.format-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Teachers (Преподаватели) --- */
.teacher-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    margin-top: 24px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.teacher-card:hover {
    box-shadow: var(--shadow-hover);
}

.teacher-card--horizontal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.teacher-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teacher-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    border-radius: 50%;
    opacity: 0.3;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.teacher-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.teacher-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Steps (Как проходят занятия) --- */
.steps {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent-warm));
    border-radius: 2px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.step-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    flex: 1;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-content:hover {
    box-shadow: var(--shadow-hover);
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Reviews (Отзывы) --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.review-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
}

.review-author {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
}

.review-stars {
    color: #f5a623;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* --- Location (Где мы находимся) --- */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 24px;
}

.location-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    margin-top: 0;
    /* Reset margin in wrapper */
    height: 100%;
    /* Match height */
}

.location-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.location-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.location-icon img {
    width: 100%;
    height: 100%;
}

.location-info {
    flex: 1;
}

.location-info .link-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.location-info .link-subtitle {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* --- CTA section --- */
.cta-section {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px 32px;
    box-shadow: var(--shadow-soft);
    margin-top: 24px;
}

.cta-section h2 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-section p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- CTA link cards --- */
.cta-links {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1.5px solid #e6edf5;
    border-radius: var(--radius);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link-card::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary-light);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    background: #f6faff;
    border-color: #d4e2f0;
    box-shadow: 0 4px 16px rgba(90, 143, 184, 0.12);
}

.link-card:hover::after {
    transform: translateY(-50%) rotate(45deg) translate(3px, -3px);
    border-color: var(--primary);
}

.link-card:active {
    transform: translateY(0);
    background: #eef4fb;
    box-shadow: none;
}

.link-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.05);
}

.link-icon svg,
.link-icon img {
    width: 48px;
    height: 48px;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-info .link-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 2px;
}

.link-info .link-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.icon-phone {
    background: linear-gradient(135deg, #e8f4ec, #d0ebd8);
}

.icon-telegram {
    background: linear-gradient(135deg, #e3f0fa, #c9e2f5);
}

.icon-telegram svg {
    color: #2a9ed8;
}

.icon-max {
    background: linear-gradient(135deg, #e8eaf6, #d1d4f0);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(122, 173, 212, 0.15);
    margin-top: 64px;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-contacts a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contacts a:hover {
    color: var(--primary-dark);
}

.footer-contacts svg {
    width: 18px;
    height: 18px;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
    font-weight: 500;
}

.footer-brand {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    color: var(--primary);
}

/* --- Decorative dots --- */
.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.5;
}

.dot:nth-child(2) {
    opacity: 0.3;
    width: 5px;
    height: 5px;
}

.dot:nth-child(3) {
    opacity: 0.15;
    width: 4px;
    height: 4px;
}

/* --- Section divider --- */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(122, 173, 212, 0.2), transparent);
    margin: 0;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.18;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    animation: fadeSlideUp 0.6s ease-out;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid rgba(122, 173, 212, 0.1);
    }

    .dropdown-item {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        border-left: 2px solid var(--primary-light);
        display: none;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        margin-top: 10px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        white-space: normal;
    }

    .dropdown-item:hover .dropdown-menu,
    .dropdown-item:focus-within .dropdown-menu,
    .dropdown-item.active .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-item.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-burger {
        display: block;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .landing-section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .cards-grid,
    .audience-list,
    .approach-grid,
    .formats-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .teacher-card--horizontal {
        flex-direction: column;
        text-align: center;
    }

    .teacher-avatar {
        width: 120px;
        height: 120px;
    }

    .cta-section {
        padding: 36px 20px;
    }

    .location-wrapper {
        grid-template-columns: 1fr;
    }

    .location-image {
        height: 250px;
        /* Fixed height on mobile */
    }
}

@media (max-width: 380px) {
    .page-wrapper {
        padding: 0 16px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* --- Touch feedback --- */
@media (hover: none) {

    .card:active,
    .format-card:active,
    .teacher-card:active,
    .review-card:active,
    .location-card:active,
    .link-card:active {
        transform: scale(0.98);
    }

    .btn-primary:active {
        transform: scale(0.97);
    }
}