:root{--navy:#101f34;--dark:#192b46;--ink:#17273c;--muted:#526278;--line:#e1e6ee;--bg:#f5f7fa;--gold:#ffcb7b;--blue:#27559b;--shadow:0 12px 27px #152a4910;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.12;letter-spacing:-.042em}
svg{vertical-align:middle;flex:none}
img{display:block;max-width:100%;height:auto}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #4778c9;outline-offset:3px}
.skip{position:absolute;top:6px;left:6px;z-index:50;background:#fff;padding:10px;transform:translateY(-150%)}
.skip:focus{transform:none}
.top{background:var(--navy);color:#f3f6ff;border-bottom:1px solid #324359}
.top-inner{max-width:1240px;margin:auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;font-size:1rem;font-weight:880;letter-spacing:-.028em;line-height:1.13}
.brand em{display:block;font-size:.76rem;font-style:normal;color:var(--gold);letter-spacing:0}
.brand-mark{display:block;width:38px;height:38px;object-fit:contain;flex:none}
.desktop{display:flex;align-items:center;gap:6px}
.desktop a,.xp{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;font-size:.9rem;font-weight:750;white-space:nowrap;color:#dae2f2}
.desktop a:is(:hover,.is-active){color:var(--gold);background:#ffffff12}
.xp{background:#ffffff0e;border:1px solid #ffffff20;color:var(--gold)}
.xp svg{fill:currentColor;stroke-width:1.2}
.bottom{display:none}
.wrap{max-width:1240px;margin:auto;padding:27px 28px 58px}
.site-footer{color:#f1f5ff;background:linear-gradient(118deg,var(--navy),#172e52);border-top:1px solid #41618e}
.footer-inner{max-width:1240px;margin:auto;padding:25px 28px 28px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px 26px}
.footer-credit{display:flex;align-items:center;gap:12px;min-width:0}
.footer-credit p{min-width:0}
.footer-credit strong{display:block;font-size:1rem;font-weight:850;overflow-wrap:anywhere}
.footer-credit p span{display:block;color:#bac9df;font-size:.875rem}
.footer-mark,.footer-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px}
.footer-mark{background:var(--gold);color:var(--navy)}
.footer-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;font-style:normal;min-width:0}
.footer-contact{display:flex;align-items:center;gap:10px;min-width:0;min-height:62px;padding:8px 12px 8px 8px;border:1px solid #839dc14d;border-radius:13px;background:#ffffff0b;transition:background .18s,border-color .18s}
.footer-contact:hover{background:#ffffff18;border-color:#ffcb7b96}
.footer-contact:focus-visible{outline-color:var(--gold)}
.footer-icon{width:36px;height:36px;border-radius:9px;background:#ffcb7b1f;color:var(--gold)}
.footer-contact-text{min-width:0}
.footer-contact-text span,.footer-contact-text strong{display:block;font-size:.875rem;overflow-wrap:anywhere}
.footer-contact-text span{color:#bfcee3}
.footer-contact-text strong{font-weight:780}
.intro{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;overscroll-behavior:contain;background:#0b1729;opacity:1;transition:opacity .85s ease-in-out}
.intro::backdrop{background:transparent}
.intro picture,.intro img{display:block;width:100%;height:100%}
.intro img{object-fit:contain}
.intro-fading{opacity:0}
.intro-skip{position:absolute;top:calc(10px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));min-height:44px;padding:0 12px;border:1px solid #ffffff78;border-radius:10px;background:#101f34e8;color:#fff;font-size:.82rem;font-weight:750}
.intro-skip:hover{background:#243d62}
body:has(.intro[open]){overflow:hidden}
.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:27px;background:radial-gradient(ellipse at 86% 33%,#234a8a 0%,#172e52 35%,var(--navy) 69%);color:#fff;box-shadow:0 13px 28px #152a4923}
.hero-copy{max-width:850px;padding:38px 44px}
.tag,.eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.tag{background:#ffce7b1d;color:#ffdfa9;border:1px solid #ffce7b55;border-radius:8px;padding:6px 9px}
.hero h1{font-size:clamp(2.8rem,5.25vw,4.7rem);font-weight:900;letter-spacing:-.069em;line-height:1.02;margin:15px 0}
.hero h1 em{display:block;font-style:normal;color:var(--gold)}
.hero p{max-width:430px;color:#e3ebf8;font-size:1.04rem;margin-bottom:18px}
.hero-bubble{display:flex;align-items:center;gap:8px;min-height:42px;margin-top:15px;padding:6px 10px;border:1px solid #8aa4cf55;border-radius:9px;text-align:left;background:#27436795;color:#eaf3ff;font-size:.85rem;font-weight:750}
.hero-bubble:hover{background:#345981}
.hero-bubble svg{color:var(--gold)}
@keyframes bubble-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:0 15px;border-radius:11px;border:1px solid transparent;font-weight:800;text-align:center;font-size:.94rem;transition:background .18s,transform .18s}
.primary{background:#214983;color:#fff;box-shadow:0 3px 0 #173962}
.primary:hover{background:#2f5e9d}
.primary:active,.secondary:active{transform:translateY(2px)}
.primary.gold{background:var(--gold);color:#28221e;box-shadow:0 3px 0 #b9843e}
.primary.gold:hover{background:#ffdda4}
.primary:disabled{background:#e1e7f0;color:#586a81;box-shadow:none}
.secondary{background:#edf2f9;border-color:#dfe6f1;color:#264a79}
.secondary:hover,.secondary[aria-pressed=true]{background:#dce9fb}
.compact{min-height:39px;white-space:nowrap;font-size:.84rem}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0 27px}
.stats>div{display:flex;align-items:center;gap:13px;padding:13px 15px;min-width:0;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 9px #152a4907}
.tile{height:43px;width:43px;border-radius:11px;display:grid;place-items:center;flex:none}
.blue{background:#e7efff;color:#2f5f9d}.amber{background:#fff0d6;color:#915818}.teal{background:#def3ee;color:#24655a}
.stats b{display:block;font-size:1.23rem;font-weight:900;letter-spacing:-.04em;line-height:1.08}
.stats small{font-size:.78rem;color:#5c687c;letter-spacing:0}
.stats p{font-size:.81rem;color:var(--muted);margin-top:4px;line-height:1.25;font-weight:650}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.section-head h2,.panel h2{font-size:clamp(1.28rem,3.4vw,2rem);font-weight:870}
.section-head p,.page-heading p{color:var(--muted);margin-top:5px}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.lesson-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:white;border-radius:17px;border:1px solid var(--line);box-shadow:0 5px 12px #182f4e0a;transition:transform .21s,box-shadow .21s}
.lesson-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.cover{height:139px;position:relative;padding:10px;display:flex;justify-content:space-between;align-items:start;background-position:center 40%;background-size:cover;background-color:#dfe5eb}
.cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#101f3445,transparent 65%);pointer-events:none}
.cover>b,.cover>span{position:relative;z-index:1;border-radius:8px;background:#172b44;color:white;padding:4px 7px;font-size:.78rem}
.cover>span{background:#dff8ed;color:#185442}
.card-body{padding:11px 12px;display:flex;flex-direction:column;flex:1}
.ru-title{color:#375d8c;font-size:.79rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.card-body h3{font-size:1.2rem;font-weight:860;margin:3px 0 5px}
.card-body p{color:var(--muted);font-size:.87rem;margin-bottom:10px}
.card-body footer{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:auto;padding-top:8px;color:#395e87;border-top:1px solid var(--line);font-weight:750;font-size:.75rem}
.page-heading{margin:8px 0 23px}
.eyebrow{color:#355a8b}
.page-heading h1,.lesson-hero h1{font-size:clamp(2.35rem,6vw,4rem);font-weight:900;margin:7px 0}
.back{display:inline-flex;gap:5px;align-items:center;min-height:38px;font-weight:800;color:#2f527e;margin-bottom:9px}
.lesson-hero{border-radius:23px;overflow:hidden;background:#142840;color:#fff;display:grid;grid-template-columns:1.25fr 1fr;min-height:235px;position:relative}
.lesson-hero>div{padding:25px 30px;z-index:1}
.lesson-hero img{width:100%;height:100%;max-height:306px;object-fit:cover;object-position:center 40%}
.lesson-hero .hero-ru{color:var(--gold);font-size:.91rem;letter-spacing:.07em;font-weight:850;text-transform:uppercase;margin:10px 0 0}
.lesson-hero p:not(.hero-ru){color:#dbe4f3;margin:0 0 14px}
.lesson-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.lesson-tabs button{display:flex;align-items:center;gap:6px;min-height:42px;background:white;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:.9rem;font-weight:800}
.lesson-tabs button[aria-pressed=true]{background:#dfeafb;color:#234b84;border-color:#bfd0eb}
.lesson-content{display:grid;gap:10px}
.accordion,.panel{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 15px #1e395309}
.accordion{overflow:hidden}
.accordion summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:14px 18px;min-height:54px;font-weight:850}
.accordion summary::-webkit-details-marker{display:none}
.accordion summary span{flex:1}
.accordion summary small{color:#486b98;background:#edf3fc;padding:3px 7px;border-radius:6px}
.accordion[open] summary{border-bottom:1px solid var(--line);background:#f8fafd}
.accordion[open] summary svg{transform:rotate(90deg)}
.phrase-list{padding:0 18px}
.phrase{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.phrase:last-child{border:0}
.phrase strong,.dialog-line strong{display:block;font-size:1.05rem;font-weight:820}
.phrase p,.dialog-line p{color:#4b5f75;margin-top:2px;font-size:.94rem}
.phrase small{display:block;color:#526a88;font-size:.83rem;margin-top:3px;font-style:italic}
.phrase-actions{display:flex;gap:6px;flex:none}
.round{min-width:40px;height:40px;border:1px solid #dce5f2;background:#eef3fa;color:#315d94;display:inline-grid;place-items:center;border-radius:10px;padding:0;flex:none}
.round:hover{background:#e2edfb}
.bookmark[aria-pressed=true]{color:#805213;background:#fff0d6;border-color:#f0d7af}
.bookmark[aria-pressed=true] svg{fill:#f2b85f}
.panel{padding:21px}
.panel>p:not(.eyebrow){color:var(--muted);margin-top:9px}
.dialogue{display:grid;gap:8px}
.dialogue h3{font-size:1.12rem;margin:9px 0 1px}
.dialogue .note{margin:0!important}
.dialog-line{display:flex;gap:10px;justify-content:space-between;align-items:center;background:#edf3fc;border-radius:12px;padding:11px 12px;max-width:min(85%,690px)}
.dialog-line:nth-of-type(even){margin-left:auto;background:#fff2dd}
.dialog-line small{display:block;color:#3c5c85;font-weight:750;margin-bottom:2px}
.sample{margin-top:13px}
.sample summary,.audio-prompt summary{cursor:pointer;color:#305a90;font-weight:750}
.sample .dialog-line{margin-top:9px}
.search-tools{display:flex;gap:8px;flex-wrap:wrap}
.search{display:flex;gap:8px;align-items:center;min-height:45px;flex:1 0 245px;border:1px solid #ccd9eb;background:white;border-radius:10px;padding:0 11px;color:#496b96}
.search input{width:100%;min-width:0;border:0;background:transparent;padding:8px 0;outline:none;color:var(--ink)}
.search:focus-within{outline:2px solid #5482c6}
.search-tools select{border:1px solid #ccd9eb;background:white;border-radius:10px;padding:6px 8px;min-height:44px;max-width:100%}
.result-count{margin:11px 0;color:var(--muted);font-size:.89rem;font-weight:700}
.word-panel{padding:0 17px}
.more{display:flex;margin:12px auto 0}
.empty{text-align:center}
.meter{height:9px;min-width:0;overflow:hidden;border-radius:30px;background:#e0e9f7;flex:1}
.meter i{height:100%;display:block;background:#4d82cf;border-radius:inherit;transition:width .26s}
.panel>.meter{margin:13px 0}
.score-list{display:grid}
.score-list a{display:grid;grid-template-columns:30px minmax(80px,1fr) auto 18px;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}
.score-list a:last-child{border:0}
.score-list a>span:not(.score-number){color:#4e627c;font-size:.83rem}
.score-number{border-radius:7px;color:#315c93;background:#edf3fc;padding:3px 4px;text-align:center;font-size:.8rem;font-weight:800}
.focus{max-width:665px;margin:auto}
.quiz-bar{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.quiz{padding:clamp(17px,4vw,29px)}
.quiz h1{font-size:clamp(1.65rem,5vw,2.66rem);margin:8px 0 16px;font-weight:870}
.options{display:grid;gap:8px}
.option{display:flex;align-items:center;gap:9px;text-align:left;border:2px solid #e4eafa;background:#f7f9fd;border-radius:10px;min-height:52px;padding:8px 9px;transition:background .17s,transform .17s}
.option span{display:grid;place-items:center;background:#e6eefb;color:#395e8d;min-width:29px;height:29px;border-radius:7px;font-size:.8rem;font-weight:850}
.option:hover:not(:disabled),.option[aria-pressed=true]{background:#e7effe;border-color:#729ad7}
.option:active:not(:disabled){transform:scale(.99)}
.option.right{background:#e3f5ea;border-color:#76b395}
.option.wrong{background:#fff0e8;border-color:#de9b80}
.audio-prompt{display:flex;gap:9px;align-items:center;margin-bottom:13px}
.feedback{padding:10px 11px;border-radius:10px;margin-top:11px;animation:bubble-in .24s both}
.feedback p{margin-top:3px}
.feedback.good{background:#e0f4e8;color:#205547}
.feedback.bad{background:#fff0e5;color:#75412a}
.quiz-actions{margin-top:14px}
.quiz-actions button{width:100%}
.finish{text-align:center;padding:27px 18px;animation:bubble-in .38s both}
.finish h1{font-size:clamp(2.1rem,5vw,3.1rem);margin:5px 0}
.result-medal{height:75px;width:75px;border-radius:22px;background:#ffebc2;color:#744c1b;display:grid;place-items:center;margin:0 auto 11px}
.finish-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:17px}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:25;width:max-content;max-width:calc(100vw - 24px);padding:10px 12px;border-radius:10px;color:white;background:#101f34;box-shadow:var(--shadow);font-size:.91rem}
#confetti{position:fixed;top:19%;left:50%;z-index:30;pointer-events:none}
#confetti i{position:absolute;width:8px;height:12px;border-radius:2px;background:var(--color);animation:confetti .9s ease-out both}
@keyframes confetti{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}
@media(max-width:920px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-copy{padding-left:28px}.hero h1{font-size:clamp(2.3rem,5.8vw,4rem)}}
@media(max-width:675px){
 .top{padding-top:env(safe-area-inset-top)}
 .top-inner{min-height:60px;padding:0 13px}
 .brand{gap:7px;font-size:.95rem}.brand em{font-size:.69rem}.brand-mark{width:33px;height:33px}
 .desktop{display:none}
 .bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:10;padding:5px 5px calc(5px + env(safe-area-inset-bottom));background:#fffffff7;border-top:1px solid #dbe5f1;box-shadow:0 -6px 24px #13294c0d;backdrop-filter:blur(12px)}
 .bottom a{display:grid;justify-items:center;align-content:center;min-height:49px;gap:2px;border-radius:8px;color:#4d6380;font-weight:770;font-size:.74rem}
 .bottom a svg{width:38px;height:25px;padding:2px 7px;border-radius:7px}
 .bottom a.is-active{color:#214e88}.bottom a.is-active svg{background:#e1edff}
 .wrap{padding:11px 12px 24px}
 .site-footer{padding-bottom:calc(61px + env(safe-area-inset-bottom))}
 .footer-inner{padding:17px 14px 18px;display:grid;gap:12px}
 .footer-contacts{grid-template-columns:1fr}
 .hero{display:flex;flex-direction:column;align-items:stretch;border-radius:19px;background:radial-gradient(ellipse at 50% 20%,#28569b 0%,#142947 45%,var(--navy) 81%)}
 .hero-copy{padding:24px 15px;text-align:center}
 .hero h1{font-size:clamp(1.7rem,6.5vw,2.7rem);letter-spacing:-.05em;margin:8px 0}
 .hero h1 em{display:inline}
 .hero p{font-size:.9rem;margin:0 auto 11px}
 .hero-bubble{margin:11px auto 0;min-height:38px;font-size:.76rem}
 .hero-bubble svg{width:16px}.tag{font-size:.68rem}
 .stats{margin:10px 0 17px;gap:5px}
 .stats>div{padding:7px 4px;gap:5px;border-radius:10px}
 .tile{width:28px;height:28px;border-radius:7px}.tile svg{width:15px}
 .stats b{font-size:1rem}.stats small{font-size:.64rem}.stats p{font-size:.67rem}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .section-head{gap:5px;margin-bottom:10px;align-items:start}
 .section-head p{font-size:.8rem}.compact{min-height:37px;padding:0 5px;font-size:.72rem}
 .compact svg{width:13px}
 .cover{height:104px;padding:6px}
 .card-body{padding:8px}
 .card-body h3{font-size:1rem}.card-body p{font-size:.78rem}.ru-title{font-size:.71rem}
 .card-body footer{font-size:.68rem}
 .page-heading{margin:9px 0 16px}
 .lesson-hero{grid-template-columns:1fr minmax(88px,35%);min-height:0;max-height:none;border-radius:17px}
 .lesson-hero>div{padding:13px 9px 15px 13px}
 .lesson-hero h1{font-size:clamp(1.4rem,6.3vw,2.6rem);overflow-wrap:anywhere}
 .lesson-hero .hero-ru{font-size:.72rem}.lesson-hero p:not(.hero-ru){font-size:.79rem}
 .lesson-hero img{min-height:100%;object-position:center}
 .lesson-tabs{gap:4px;margin:11px 0}
 .lesson-tabs button{min-height:42px;padding:4px 6px;font-size:.75rem;gap:4px}
 .lesson-tabs svg{width:14px}
 .accordion summary{padding:10px;gap:5px;font-size:.91rem}
 .phrase-list{padding:0 9px}.phrase-actions{gap:3px}
 .round{min-width:38px;height:39px}
 .panel{padding:14px}.word-panel{padding:0 9px}
 .dialog-line{max-width:94%}
 .score-list a>span:not(.score-number){font-size:.76rem}
 .toast{bottom:calc(66px + env(safe-area-inset-bottom))}
}
@media(max-width:340px){.stats>div{display:grid}.lesson-tabs button svg{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.seo-content > p{margin:10px 0 18px;color:var(--muted)}
.seo-content > h2{margin:24px 0 8px}
.seo-content li{margin:7px 0}
.seo-content li a{text-decoration:underline;text-underline-offset:3px;color:#264a79}
