/* UI tokens and shared component rules for landing */
:root {
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-text: #111827;
    --color-text-muted: #4b5563;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #d1d5db;
    --focus-ring: 2px solid var(--color-primary);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.12);
    --shadow-md: 0 4px 10px rgba(17, 24, 39, 0.14);
    --shadow-lg: 0 10px 22px rgba(17, 24, 39, 0.2);
    --duration-fast: 180ms;
    --duration-base: 220ms;
}

html,
body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

a,
button,
input,
select,
textarea {
    transition: transform var(--duration-fast) ease-out, opacity var(--duration-fast) ease-out, background-color var(--duration-base) ease-out, color var(--duration-base) ease-out, border-color var(--duration-base) ease-out, box-shadow var(--duration-base) ease-out;
}

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.btn-primary,
.header-signup-btn,
.mobile-header-signup-btn {
    min-height: 44px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    border: 0;
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary,
.header-signup-btn {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-header-signup-btn {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-primary:hover,
.header-signup-btn:hover,
.mobile-header-signup-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active,
.header-signup-btn:active,
.mobile-header-signup-btn:active {
    transform: translateY(0);
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.form-input {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 16px;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.mobile-menu {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.button-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    color: #fff;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
    z-index: 40;
}

.button-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Keep room for floating CTA on home page */
body:has(#fab-cta) .button-to-top {
    bottom: 6.5rem;
    right: 1.5rem;
}

@media (max-width: 768px) {
    body:has(#fab-cta) .button-to-top {
        bottom: 5.5rem;
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .button-to-top {
        bottom: 16px;
        right: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* --- TZ: отзывы, команда, баннер старта, квиз, тарифы, контакты, доверие, локация, платформа --- */

.location-note {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

.reviews-section {
    padding: 60px 20px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.review-header strong {
    display: block;
    font-size: 15px;
}

.review-header span {
    font-size: 13px;
    color: #888;
}

.review-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}

.review-result {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-block;
}

/* ── 2ГИС carousel ─────────────────────────────── */
.reviews-2gis-section {
    padding: 40px 0 0;
}

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

.reviews-2gis-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.reviews-2gis-badge-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #1ba049;
    letter-spacing: -.2px;
}

.reviews-2gis-badge-logo svg {
    flex-shrink: 0;
}

.reviews-2gis-badge-rating {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.reviews-2gis-badge-stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 1px;
}

.reviews-2gis-badge-count {
    font-size: 13px;
    color: #777;
}

.reviews-2gis-badge-updated {
    font-size: 11px;
    color: #bbb;
    margin-left: 2px;
}

.reviews-2gis-track-wrap {
    overflow: hidden;
    padding: 4px 20px 16px;
}

.reviews-2gis-nav {
    display: flex;
    gap: 6px;
}

.reviews-2gis-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}

.reviews-2gis-nav-btn:hover {
    background: #f0faf4;
    border-color: #1ba049;
    color: #1ba049;
}

.reviews-2gis-nav-btn:disabled {
    opacity: .35;
    cursor: default;
}

.reviews-2gis-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.reviews-2gis-track::-webkit-scrollbar {
    display: none;
}

.reviews-2gis-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews-2gis-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-2gis-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviews-2gis-author {
    flex: 1;
    min-width: 0;
}

.reviews-2gis-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviews-2gis-author span {
    font-size: 12px;
    color: #999;
}

.reviews-2gis-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviews-2gis-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reviews-2gis-stars svg {
    flex-shrink: 0;
}

.reviews-2gis-delight {
    font-size: 12px;
    font-weight: 600;
    color: #1ba049;
    margin-left: 4px;
}

.reviews-2gis-date {
    font-size: 12px;
    color: #bbb;
}

.reviews-2gis-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #333;
    flex: 1;
}

.reviews-2gis-helpful {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #1ba049;
    font-weight: 500;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.reviews-2gis-cta-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: linear-gradient(145deg, #1ba049 0%, #15883d 100%);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(27,160,73,.25);
    cursor: pointer;
    text-decoration: none;
}

.reviews-2gis-cta-card:hover {
    background: linear-gradient(145deg, #1fbb54 0%, #1ba049 100%);
}

.reviews-2gis-cta-logo {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-2gis-cta-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.reviews-2gis-cta-sub {
    font-size: 12px;
    color: rgba(255,255,255,.8);
}

.reviews-2gis-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #1ba049;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    padding: 7px 16px;
    margin-top: 4px;
}

/* ── end 2ГИС carousel ──────────────────────────── */

.team-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.team-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.team-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 36px;
    font-size: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.teacher-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    border: 1px solid #e8e8e8;
}

.teacher-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.teacher-card__avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e0e7ff 0%, #f1f5f9 100%);
    color: #64748b;
    box-sizing: border-box;
}

.teacher-card__avatar svg {
    width: 44px;
    height: 44px;
}

.teacher-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.teacher-subject {
    display: block;
    font-size: 13px;
    color: #1976d2;
    margin-bottom: 10px;
}

.teacher-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.start-banner {
    background: #fff3e0;
    border: 1px solid #ffb300;
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px 32px;
    flex-wrap: wrap;
}

.start-banner__date,
.start-banner__spots {
    min-width: 140px;
}

.start-banner__label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.start-banner__value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #e65100;
}

.start-banner__cta.btn {
    margin-left: auto;
}

@media (max-width: 640px) {
    .start-banner__cta.btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    background: #e65100;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
}

.btn.btn-primary:hover {
    opacity: 0.9;
}

.quiz-summary {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.quiz-summary__title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2e7d32;
}

.quiz-summary__list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.quiz-summary__list li {
    font-size: 14px;
    color: #333;
    padding: 2px 0;
}

.quiz-summary__list li::before {
    content: "✓ ";
    color: #2e7d32;
}

.quiz-summary__note {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.form-success {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 12px 0 8px;
}

.form-success p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px;
}

.form-success__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.form-success__links .btn-wa,
.form-success__links .btn-tg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
}

.form-success__links .btn-wa {
    background: #25d366;
}

.form-success__links .btn-tg {
    background: #0088cc;
}

.plan-includes {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
}

.plan-includes li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.plan-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

.contact-primary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    min-height: 44px;
    justify-content: center;
}

.btn-contact:hover {
    opacity: 0.88;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-telegram {
    background: #229ED9;
    color: #fff;
}

@media (max-width: 640px) {
    .contact-primary {
        flex-direction: column;
    }
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
}

.trust-section--numbers {
    padding: 60px 20px;
}

.trust-section--numbers h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem;
    color: #111827;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 24px 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.trust-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 6px;
}

.trust-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.trust-note {
    display: block;
    font-size: 12px;
    color: #888;
}

.trust-local-badge {
    max-width: 900px;
    margin: 24px auto 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
}

.trust-local-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trust-local-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-local-badge strong {
    display: block;
    font-size: 15px;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.trust-local-badge p {
    font-size: 13px;
    color: #3b5bdb;
    margin: 0;
    line-height: 1.5;
}

.location-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.location-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-section > p:first-of-type {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
}

.map-wrapper {
    margin: 24px 0 12px;
    border-radius: 12px;
    overflow: hidden;
}

.map-address {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    text-align: center;
}

.map-address a {
    color: #4f46e5;
    text-decoration: underline;
}

.platform-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.platform-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.platform-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 32px;
}

.platform-screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Квиз v2: появление экранов */
.quiz-screen--enter {
    animation: quizScreenIn 0.38s ease-out both;
}

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

#quiz-loading-overlay:not(.hidden) {
    pointer-events: auto;
}

/* ── Hero 2-column ─────────────────────────────────────────── */

.hero-bg {
    background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 60%, #fff 100%);
}

.hero-em {
    font-style: italic;
    color: #4f46e5;
    font-weight: 800;
}

/* Float cards on hero photo */
.hero-float {
    position: absolute;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(17,24,39,.14);
    z-index: 2;
    max-width: 220px;
}

.hero-float-tl { top: 16px; left: -16px; }
.hero-float-br { bottom: 24px; right: -16px; }

@media (max-width: 768px) {
    .hero-float-tl { left: 8px; top: 8px; }
    .hero-float-br { right: 8px; bottom: 8px; }
}

.hero-float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-float-icon--green { background: #dcfce7; }
.hero-float-icon--indigo { background: #e0e7ff; }

.hero-float-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.hero-float-sub {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

/* ── Trust strip ───────────────────────────────────────────── */

.trust-strip {
    background: #312e81;
    padding: 20px 0;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

@media (max-width: 640px) {
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 4px 0;
    }
}

.trust-stat {
    padding: 8px 12px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.trust-stat:last-child { border-right: none; }

.trust-strip .trust-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.trust-strip .trust-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.7);
    line-height: 1.4;
}

/* ── Versus section ────────────────────────────────────────── */

.versus-card {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.versus-card--dead {
    background: #f9f9fb;
    border: 1px solid #e5e7eb;
}

.versus-card--us {
    background: #4f46e5;
    border: 2px solid #4f46e5;
    box-shadow: 0 12px 32px rgba(79,70,229,.3);
    position: relative;
}

.versus-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 99px;
    border: 2px solid #4f46e5;
    white-space: nowrap;
}

.versus-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #111827;
}

.versus-card--us .versus-card-title { color: #fff; }

.versus-card-price {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.versus-card--us .versus-card-price { color: rgba(255,255,255,.75); }

.versus-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.versus-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.versus-item--bad  { color: #6b7280; }
.versus-item--ok   { color: #374151; }
.versus-item--good { color: rgba(255,255,255,.95); }

.versus-item::before {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
}

.versus-item--bad::before  { content: "✗"; color: #d1d5db; }
.versus-item--ok::before   { content: "✓"; color: #6b7280; }
.versus-item--good::before { content: "✓"; color: #a5f3c0; }

/* ── Gallery ───────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.gallery-item { position: relative; overflow: hidden; border-radius: 16px; }
.gallery-item--big { grid-row: 1 / 3; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-item--big { grid-row: auto; }
    .gallery-item { aspect-ratio: 16/9; }
}

/* ── Teacher section ───────────────────────────────────────── */

.teacher-section {
    background: #fff;
}

.teacher-photo-wrap {
    width: 200px;
    flex-shrink: 0;
}

.teacher-photo {
    width: 200px;
    border-radius: 16px;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
}

.teacher-fact {
    background: #f5f3ff;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}

.teacher-fact-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1.1;
}

.teacher-fact-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.3;
}
