:root {
    --ink: #18211d;
    --muted: #657168;
    --paper: #f7faf5;
    --white: #ffffff;
    --line: #dce7dc;
    --lime: #b7ed68;
    --lime-deep: #6da942;
    --mint: #eaf6df;
    --coral: #ff8b72;
    --navy: #18251f;
}

html { background: var(--paper); }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: radial-gradient(rgba(24, 37, 31, .08) .7px, transparent .7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, black, transparent 68%);
}
.blob-container { display: none; }

nav#nav {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(240px, 440px) auto;
    gap: 30px;
    align-items: center;
    min-height: 76px;
    padding: 10px clamp(20px, 5vw, 74px);
    background: rgba(24, 37, 31, .96);
    border: 0;
    box-shadow: 0 8px 30px rgba(24, 37, 31, .12);
    backdrop-filter: blur(18px);
}
.logo-wrapper { gap: 11px; }
.my-logo { width: 42px; height: 42px; border: 0; box-shadow: none; }
.logo-text { color: #fff !important; font-size: 19px; letter-spacing: -.3px; }
.nav-links { display: flex; justify-content: flex-end; gap: 22px; }
.nav-links a { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.nav-links a:hover { color: var(--lime); text-shadow: none; }

.site-search { position: relative; z-index: 2; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field::before { content: "⌕"; position: absolute; left: 14px; color: var(--lime); font-size: 23px; line-height: 1; }
#game-search {
    width: 100%; height: 42px; box-sizing: border-box; padding: 0 42px 0 40px;
    color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px; outline: 0; font: inherit; font-size: 13px; transition: .2s ease;
}
#game-search::placeholder { color: rgba(255,255,255,.57); }
#game-search:focus { border-color: var(--lime); background: rgba(255,255,255,.15); box-shadow: 0 0 0 4px rgba(183,237,104,.12); }
.search-clear { display: none; position: absolute; right: 8px; width: 28px; height: 28px; color: rgba(255,255,255,.65); background: transparent; border: 0; cursor: pointer; font-size: 18px; }
.search-clear.is-visible { display: block; }
.search-results { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(24,37,31,.18); }
.search-results.is-visible { display: block; }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; color: var(--ink); background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus { background: var(--mint); outline: 0; }
.search-result img { width: 34px; height: 42px; object-fit: cover; border-radius: 5px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 13px; }
.search-result small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.search-empty { padding: 12px; color: var(--muted); font-size: 13px; }

.about-section { padding: 142px 24px 76px; background: transparent; }
.about-container { max-width: 1180px; }
.about-container h1 { max-width: 760px; margin-bottom: 12px; color: var(--ink); font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -3px; }
.section-subtitle { max-width: 570px; color: var(--muted) !important; font-size: 18px; line-height: 1.55; }
.english-level-btn { display: block; width: min(100%, 720px); margin: 34px 0 0; padding: 15px 20px; background: var(--ink); border-radius: 10px; box-shadow: 0 10px 26px rgba(24,37,31,.13); }
.english-level-btn:hover { background: var(--lime-deep); }
.scroll-content { color: #fff; font-size: 14px; }
.daily-quest { margin: 70px 0 48px; max-width: none; padding: 26px 30px 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(40,70,46,.07); }
.quest-live { color: var(--lime-deep); }
.quest-streak { color: var(--ink); background: var(--mint); }
.quest-copy h2 { color: var(--ink); }
.quest-prompt { color: var(--muted); }
.quest-answer { color: var(--ink); background: var(--paper); border-color: var(--line); }
.quest-answer:hover:not(:disabled) { color: var(--ink); background: var(--mint); border-color: var(--lime-deep); box-shadow: none; }

.about-grid { gap: 14px; }
.about-card, .comparison-card, .location-card { border-radius: 12px; }
.about-card { padding: 25px; }
.about-icon, .comp-icon, .loc-icon { background: var(--mint); }

.comparison-section, .location-section { padding: 86px 24px; background: #edf5e9; }
.comparison-title, .location-title { color: var(--ink); font-size: clamp(30px, 4vw, 48px); letter-spacing: -1.5px; }
.comparison-subtitle, .location-subtitle { color: var(--muted) !important; }
.comparison-card, .location-card { box-shadow: 0 16px 36px rgba(40,70,46,.08); }
.price-action-btn, .submit-btn { background: var(--ink); border-radius: 8px; }
.price-action-btn:hover, .submit-btn:hover { background: var(--lime-deep); }

.gallery-container { height: auto; min-height: 0; padding: 100px clamp(20px, 5vw, 74px) 110px; overflow: visible; background: var(--paper); }
.bg-huge-text { display: none; }
.gallery-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: min(1180px, 100%); margin: 0 auto; transform: none !important; }
.gallery-card { width: auto; height: auto; min-height: 330px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 25px rgba(40,70,46,.07); }
.gallery-card:hover { transform: translateY(-6px); border-color: var(--lime-deep); box-shadow: 0 18px 34px rgba(40,70,46,.14); }
.card-image { width: 100%; height: 230px; object-fit: cover; }
.card-info { padding: 17px 18px 20px; }
.card-info h3 { color: var(--ink); font-size: 17px; }
.card-info p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.gallery-card.is-hidden { display: none; }
.games-heading { width: min(1180px, 100%); margin: 0 auto 28px; }
.games-heading p { margin: 0 0 8px; color: var(--lime-deep); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; }
.games-heading h2 { margin: 0; color: var(--ink); font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.8px; }

.footer-section { background: var(--navy); border: 0; }
.footer-heading, .footer-brand { color: var(--lime); }

@media (max-width: 900px) {
    nav#nav { grid-template-columns: auto 1fr auto; gap: 14px; }
    .nav-links { gap: 12px; }
    .gallery-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    nav#nav { grid-template-columns: 1fr auto; padding: 10px 16px; }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .nav-links { position: fixed; }
    .about-section { padding: 110px 16px 54px; }
    .about-container h1 { font-size: 46px; letter-spacing: -2px; }
    .daily-quest { margin-top: 44px; padding: 20px 17px 15px; }
    .gallery-container { padding: 62px 16px 74px; }
    .gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-card { min-height: 0; }
    .card-image { height: 180px; }
    .card-info { padding: 13px; }
    .card-info h3 { font-size: 15px; }
    .card-info p { font-size: 12px; }
}
@media (max-width: 420px) { .gallery-track { grid-template-columns: 1fr; } .card-image { height: 220px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

.scroll-content { font-size: 21px; font-weight: 750; }
.about-card-main { cursor: pointer; }
.about-card-main h3 { color: #f4f8f1; }
.about-card-main:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.about-card-wide { position: relative; }
.diary-book-wrapper { margin: 24px auto 0; }
.progress-orbit { position: relative; }
.progress-orbit::after { content: ""; position: absolute; right: 50%; top: calc(100% + 7px); width: 2px; height: 26px; background: var(--lime-deep); }
.progress-orbit span { font-size: 36px; line-height: 1; }
.online-discount { padding: 10px 14px; color: var(--ink); background: #f0f8e5; border: 1px solid #cfe6b3; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; transition: .2s ease; }
.online-discount:hover, .online-discount.is-active { color: var(--navy); background: var(--lime); border-color: var(--lime-deep); }
.online-discount[hidden] { display: none; }

.gallery-card { position: relative; height: 364px; min-height: 364px; overflow: hidden; background: var(--navy); border: 0; }
.gallery-card .card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.gallery-card::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(8,17,12,.35) 35%, rgba(8,17,12,.94) 100%); transition: opacity .35s ease; }
.gallery-card:hover .card-image { transform: scale(1.08); filter: saturate(1.12); }
.card-info { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 26px 20px 22px; color: #fff; }
.game-label { display: inline-block; margin-bottom: 10px; color: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: 1.5px; }
.card-info h3 { margin: 0 0 7px; color: #fff; font-size: 20px; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.card-info p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.45; text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.gallery-viewport { cursor: grab; }
.gallery-viewport:active { cursor: grabbing; }

.side-rail { --rail-shift: 0px; }

/* Scroll-reactive light rails stay fixed at the viewport edges. */
.about-section .side-rail {
    position: fixed; z-index: 20; top: 50%; display: flex; align-items: center;
    gap: 11px; pointer-events: none; writing-mode: vertical-rl;
    transform: translate3d(0, calc(-50% + var(--rail-drift, 0px)), 0);
    transition: transform 180ms cubic-bezier(.2,.8,.2,1);
}
.about-section .side-rail-left { left: clamp(12px, 2.2vw, 34px); }
.about-section .side-rail-right { right: clamp(12px, 2.2vw, 34px); top: 50%; }
.about-section .side-rail span, .about-section .side-rail b { display: none; }
.about-section .side-rail i {
    position: relative; display: block; width: 4px; height: clamp(180px, 42vh, 390px);
    min-height: 0; overflow: visible; opacity: .92;
    background: repeating-linear-gradient(to bottom, rgba(109,169,66,.65) 0 2px, transparent 2px 9px), linear-gradient(to bottom, rgba(109,169,66,.08), rgba(109,169,66,.42), rgba(109,169,66,.08));
    border-radius: 5px; box-shadow: 0 0 0 5px rgba(109,169,66,.05), 0 0 18px rgba(109,169,66,.25);
    transform: scaleY(calc(1 + var(--scroll-energy, 0) * .16));
    transition: transform 160ms ease-out, box-shadow 180ms ease-out;
}
.about-section .side-rail i::before, .about-section .side-rail i::after {
    content: ""; position: absolute; left: 50%; display: block; pointer-events: none;
}
.about-section .side-rail i::before {
    top: -2%; width: 22px; height: 34%;
    background: linear-gradient(to bottom, transparent, rgba(183,237,104,.08) 25%, rgba(183,237,104,.98) 50%, rgba(183,237,104,.08) 80%, transparent);
    filter: drop-shadow(0 0 8px rgba(142,219,76,.95)); transform: translateX(-50%);
    animation: rail-sweep 2.3s cubic-bezier(.45,0,.55,1) infinite alternate;
}
.about-section .side-rail i::after {
    top: 50%; width: 16px; height: 16px;
    background: radial-gradient(circle, #f4ffd8 0 8%, var(--lime) 18%, rgba(183,237,104,.35) 42%, transparent 72%);
    filter: drop-shadow(0 0 9px rgba(183,237,104,.95)); transform: translate(-50%,-50%);
    animation: rail-core 3.2s ease-in-out infinite;
}
.about-section .side-rail-right i { opacity: .72; animation: rail-breathe 2.1s ease-in-out infinite alternate; }
.about-section .side-rail-right i::before { animation-delay: -1.1s; }
.about-section .side-rail-right i::after { animation-delay: -1.8s; }
@keyframes rail-sweep { 0% { top: -3%; opacity: .35; } 45% { opacity: 1; } 100% { top: 68%; opacity: .45; } }
@keyframes rail-core { 0%,100% { top: 14%; transform: translate(-50%,-50%) scale(.65); opacity: .65; } 50% { top: 82%; transform: translate(-50%,-50%) scale(1.45); opacity: 1; } }
@keyframes rail-breathe { from { filter: brightness(.72); } to { filter: brightness(1.5); } }
@media (max-width: 900px) {
    .about-section .side-rail { display: flex; visibility: visible; }
    .about-section .side-rail-left { left: 7px; }
    .about-section .side-rail-right { right: 7px; }
    .about-section .side-rail i { height: 25vh; min-height: 130px; }
}
@media (max-width: 520px) {
    .about-section .side-rail-left { left: 3px; }
    .about-section .side-rail-right { right: 3px; }
    .about-section .side-rail i { width: 2px; height: 19vh; min-height: 100px; }
    .about-section .side-rail i::before { width: 12px; }
    .about-section .side-rail i::after { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .about-section .side-rail i::before, .about-section .side-rail i::after, .about-section .side-rail-right i { animation: none; }
    .about-section .side-rail, .about-section .side-rail i { transition: none; }
}

.side-rail i { position: relative; overflow: hidden; height: 130px; background: rgba(109,169,66,.22); }
.side-rail i::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 38%; background: linear-gradient(transparent, var(--lime-deep), transparent); animation: rail-flow 2.8s linear infinite; transform: translateY(var(--rail-shift)); }
.side-rail-left i { height: 200px; }
.side-rail-right i { height: 240px; }
@keyframes rail-flow { from { transform: translateY(-45%); } to { transform: translateY(380%); } }
@media (max-width: 700px) {
    .scroll-content { font-size: 16px; }
    .gallery-card { height: 330px; min-height: 330px; }
}
.about-card-main p { color: #fff; }
.gallery-card { flex-basis: 300px; width: 300px; height: 420px; min-height: 420px; }
.gallery-track { gap: 22px; }
@media (max-width: 900px) {
    .gallery-card { flex-basis: 270px; width: 270px; height: 390px; min-height: 390px; }
}
@media (max-width: 700px) {
    .gallery-card { flex-basis: 250px; width: 250px; height: 370px; min-height: 370px; }
}


/* Последняя композиция: преимущества и боковые направляющие. */
.about-section { position: relative; overflow: hidden; }
.about-section::before, .about-section::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: 1px; height: 360px; background: linear-gradient(transparent, var(--lime-deep), transparent);
}
.about-section::before { left: clamp(20px, 5vw, 74px); top: 360px; }
.about-section::after { right: clamp(20px, 5vw, 74px); top: 710px; }
.about-container { position: relative; z-index: 1; }
.side-rail { position: absolute; z-index: 1; top: 260px; display: flex; align-items: center; gap: 14px; color: #90a18d; font-size: 9px; font-weight: 800; letter-spacing: 2px; writing-mode: vertical-rl; }
.side-rail-left { left: 24px; }
.side-rail-right { right: 24px; top: 890px; }
.side-rail i { display: block; width: 1px; height: 76px; background: var(--lime-deep); opacity: .75; }
.side-rail b { color: var(--lime-deep); font-size: 12px; font-style: normal; }

.english-level-btn { width: 100%; max-width: none; box-sizing: border-box; }
.benefits-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 92px 0 24px; }
.benefits-intro h2 { max-width: 620px; margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 55px); line-height: 1; letter-spacing: -2px; }
.benefits-intro > p { max-width: 300px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.benefits-kicker { margin: 0 0 12px; color: var(--lime-deep); font-size: 11px; font-weight: 850; letter-spacing: 1.5px; }
.about-grid { display: grid; grid-template-columns: 1.12fr .88fr .88fr; grid-template-rows: auto auto; gap: 14px; }
.about-card { position: relative; min-height: 210px; overflow: hidden; padding: 24px; background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: 0 18px 34px rgba(35,68,42,.06); }
.about-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -38px; bottom: -42px; border: 1px solid rgba(109,169,66,.22); border-radius: 50%; box-shadow: 0 0 0 14px rgba(183,237,104,.08), 0 0 0 28px rgba(183,237,104,.05); }
.about-card:hover { transform: translateY(-7px); border-color: var(--lime-deep); box-shadow: 0 22px 38px rgba(35,68,42,.12); }
.about-card-main { grid-row: span 2; min-height: 410px; color: #fff; background: var(--navy); border-color: var(--navy); }
.about-card-main h3 {
    color: #ffffff !important;
}
.about-card-main p { color: rgba(255,255,255,.7); }
.about-card-main::before { content: "LEVEL UP"; position: absolute; right: -20px; top: 64px; color: rgba(183,237,104,.1); font-size: 62px; font-weight: 900; letter-spacing: -5px; transform: rotate(90deg); }
.about-card-wide { display: flex; align-items: center; justify-content: space-between; grid-column: span 2; min-height: 170px; background: var(--mint); }
.about-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 34px; border-radius: 11px; color: var(--lime-deep); font-size: 22px; font-weight: 800; }
.about-card-main .about-icon { color: var(--navy); background: var(--lime); }
.benefit-index { position: absolute; top: 22px; right: 23px; color: #f7f9f7; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.about-card h3 { position: relative; z-index: 1; margin: 0 0 9px; color: var(--ink); font-size: 21px; letter-spacing: -.4px; }
.about-card p { position: relative; z-index: 1; max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.benefit-meter { position: relative; z-index: 1; height: 5px; margin-top: 66px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 5px; }
.benefit-meter span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.about-card-main small { display: block; margin-top: 10px; color: rgba(255,255,255,.52); font-size: 11px; }
.benefit-wide-copy { position: relative; z-index: 1; }
.benefit-wide-copy .about-icon { margin-bottom: 18px; }
.progress-orbit { display: grid; place-items: center; width: 112px; height: 112px; margin-right: 12px; border: 1px solid var(--lime-deep); border-radius: 50%; box-shadow: 0 0 0 12px rgba(109,169,66,.08), 0 0 0 24px rgba(109,169,66,.05); }
.progress-orbit span, .progress-orbit small { display: block; text-align: center; }
.progress-orbit span { color: var(--ink); font-size: 22px; font-weight: 850; }
.progress-orbit small { color: var(--muted); font-size: 10px; }

.gallery-container { overflow: hidden; }
.games-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.gallery-controls { display: flex; gap: 8px; flex-shrink: 0; }
.gallery-arrow { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font: inherit; font-size: 20px; transition: .2s ease; }
.gallery-arrow:hover { color: var(--navy); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.gallery-viewport { width: min(1180px, 100%); margin: 0 auto; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.gallery-track { display: flex; width: max-content; gap: 18px; padding: 12px 4px 28px; transform: none !important; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gallery-card { flex: 0 0 246px; width: 246px; min-height: 330px; }

@media (max-width: 900px) {
    .side-rail { display: none; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-card-main { grid-row: span 1; min-height: 280px; }
    .about-card-wide { grid-column: span 2; }
    .gallery-card { flex-basis: 230px; width: 230px; }
}
@media (max-width: 700px) {
    .benefits-intro { display: block; margin-top: 62px; }
    .benefits-intro > p { margin-top: 18px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-card-main, .about-card-wide { grid-column: auto; min-height: 240px; }
    .about-card-wide { display: block; }
    .progress-orbit { margin: 26px 0 0; width: 84px; height: 84px; }
    .gallery-container { overflow: hidden; }
    .games-heading { align-items: start; }
    .games-heading h2 { max-width: 290px; }
    .gallery-controls { padding-top: 8px; }
    .gallery-arrow { width: 38px; height: 38px; }
    .gallery-viewport { mask-image: none; overflow-x: auto; scrollbar-width: none; }
    .gallery-viewport::-webkit-scrollbar { display: none; }
}

.about-card-main p { color: #fff; }
.gallery-card { flex-basis: 300px; width: 300px; height: 420px; min-height: 420px; }
.gallery-track { gap: 22px; }
@media (max-width: 900px) {
    .gallery-card { flex-basis: 270px; width: 270px; height: 390px; min-height: 390px; }
}
@media (max-width: 700px) {
    .gallery-card { flex-basis: 250px; width: 250px; height: 370px; min-height: 370px; }
}
/* =========================================
   ФОТОГРАФИИ ЭКСПЕРТОВ В КАРТОЧКЕ 05 (4:5)
   ========================================= */
.about-card-teachers {
    display: flex;
    flex-direction: column;
}

.teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.teacher-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Фиксированный формат 4:5 */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #eaf3e8;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}

.teacher-card:hover {
    transform: translateY(-2px);
}

/* Состояние при клике (увеличение и появление яркого фото) */
.teacher-card.is-active {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.teacher-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.teacher-img.reveal-img {
    opacity: 0;
}

.teacher-card.is-active .teacher-img.shadow-img {
    opacity: 0;
}

.teacher-card.is-active .teacher-img.reveal-img {
    opacity: 1;
}
/* =========================================
   ЯРКО-ЗЕЛЕНАЯ СТРЕЛКА (УВЕЛИЧЕННАЯ И СДВИНУТАЯ ВНИЗ)
   ========================================= */
.progress-orbit .orbit-arrow {
    width: 42px !important;       /* Увеличиваем размер стрелки */
    height: 42px !important;
    stroke: #4e9a62 !important;   /* Насыщенный ярко-зеленый цвет */
    margin-top: 0px;             /* Сдвигаем стрелку чуть ниже внутри круга */
    filter: drop-shadow(0 0 6px rgba(78, 154, 98, 0.8)) drop-shadow(0 0 12px rgba(109, 169, 66, 0.6)); /* Неоновое зелёное свечение */
    animation: orbit-arrow-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes orbit-arrow-pulse {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 4px rgba(78, 154, 98, 0.7));
    }
    100% {
        transform: translateY(6px); /* Плавный сдвиг при покачивании вниз */
        filter: drop-shadow(0 0 10px rgba(109, 169, 66, 1));
    }
}
/* =========================================
   1. УБИРАЕМ ПЛАВАЮЩИЕ БОКОВЫЕ ПОЛОСЫ (СЕРЫЕ)
   ========================================= */
.about-section .side-rail,
.side-rail {
    display: none !important;
}

.about-section::before,
.about-section::after {
    display: none !important;
}

/* =========================================
   2. АККУРАТНЫЕ ПОЛОСКИ С ХОРОШИМ ОТСТУПОМ (ЖЁЛТЫЕ)
   ========================================= */
.about-section {
    position: relative;
    background-image:
        /* Левая сторона (2 полоски с большим шагом) */
        linear-gradient(to bottom, transparent, var(--lime-deep), transparent),
        linear-gradient(to bottom, transparent, var(--lime-deep), transparent),
        
        /* Правая сторона (2 полоски со сдвигом) */
        linear-gradient(to bottom, transparent, var(--lime-deep), transparent),
        linear-gradient(to bottom, transparent, var(--lime-deep), transparent);

    background-size: 
        1px 260px, 1px 260px,
        1px 260px, 1px 260px;

    background-position:
        /* Левый край: вверху и внизу */
        clamp(20px, 5vw, 74px) 220px,
        clamp(20px, 5vw, 74px) 850px,

        /* Правый край: посредине и ближе к концу */
        calc(100% - clamp(20px, 5vw, 74px)) 500px,
        calc(100% - clamp(20px, 5vw, 74px)) 1150px;

    background-repeat: no-repeat;
}
/* =========================================
   ИСПРАВЛЕНИЕ МОБИЛЬНОГО МЕНЮ И СKРОЛЛА
   ========================================= */

/* Убираем горизонтальную прокрутку всей страницы */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Запрещаем листать сайт, когда открыто меню */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Настройка выезжающей панели */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #18251f !important; /* Тёмный фоновый цвет в стиле English OS */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 90px 24px 40px !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        
        /* Плавное скрытие за правым краем через transform (не вызывает скролл) */
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-sizing: border-box !important;
    }

    /* Появление панели при клике на бургер */
    body.menu-open .nav-links {
        transform: translateX(0) !important;
    }

    /* Оформление пунктов меню */
    .nav-links a {
        display: block !important;
        margin: 14px 0 !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        width: 100% !important;
        text-align: left !important;
    }

    .nav-links a:hover {
        color: #b7ed68 !important;
    }
}
/* =========================================
   ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (ДО 700px)
   ========================================= */
@media (max-width: 700px) {
    /* 1. Меням блоки местами: "Молодые эксперты" выше, чем "Дневник прогресса" */
    .about-card-teachers {
        order: 4 !important;
    }
    .about-card-wide {
        order: 5 !important;
    }
    .diary-book-wrapper {
        order: 6 !important;
    }

    /* 2. Позиционирование и фикс вылезающей зелёной стрелки в круге */
    .progress-orbit {
        margin: 20px auto 0 !important;
        width: 86px !important;
        height: 86px !important;
        overflow: hidden !important;
    }
    .progress-orbit::after {
        display: none !important; /* Убираем хвостик-линию, вылезавший снизу за пределы круга */
    }
    .progress-orbit .orbit-arrow {
        width: 32px !important;
        height: 32px !important;
        margin-top: 4px !important;
    }

/* =========================================
   ПЕРЕНОС ЗАГОЛОВКА "ВЫБЕРИ ИГРУ" НАВЕРХ НА МОБИЛЬНЫХ
   ========================================= */
@media (max-width: 700px) {
    /* Переводим главный контейнер из строки в колонку */
    .gallery-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 50px !important;
    }

    /* Растягиваем заголовок во всю ширину над играми */
    .games-heading {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .games-heading > div:first-child {
        width: 100% !important;
    }

    .games-heading h2 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .gallery-controls {
        align-self: flex-start !important;
        margin-top: 4px !important;
    }

    .gallery-viewport {
        width: 100% !important;
    }
}