html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
header,main,footer,#ticker{max-width:1920px;margin-inline:auto}
header>* , .intro,.offer,.terms,.card,.syllabus li{min-width:0}
img,svg{max-width:100%}
dialog{max-width:calc(100% - 24px);max-height:85vh;max-height:85dvh;overflow:auto}
#matches button,.close{min-height:40px}
@media(min-width:1100px) and (max-width:1199px){
header nav{padding-left:12px;gap:12px}
header nav button,header select,#account{font-size:13px}
.card p,.offer p,#benefits div{font-size:14px}
.card strong{font-size:17px}
}
@media(max-width:1099px){
header,.reading header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;padding:8px max(4%,env(safe-area-inset-left)) 4px;height:auto}
header .brand{margin-right:auto;gap:6px;letter-spacing:-.045em;font-size:clamp(20px,4vw,30px)}
header .brand img{width:clamp(24px,5vw,36px)}
header nav,.reading header nav{order:5;width:100%;border:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 16px;overflow:visible}
header nav button,header nav a,.reading header nav a{display:inline-flex;align-items:center;min-height:38px;padding:3px 0;font-size:15px;white-space:normal}
header select,#search,#account{min-height:40px}
#search{width:34px}
#account{padding:5px 9px}
#ticker{display:flex;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;padding:0 12px;min-height:29px;height:auto}
#ticker>*{flex:none}
.hero{padding:26px 6% 3rem;min-height:270px;overflow:hidden;background:#fcf7f4}
.hero .art,.bank.art{display:none}
.hero:before{content:"";position:absolute;inset:0;background:url(assets/reading-panorama.webp) center/100% 100% no-repeat;pointer-events:none}
.intro{max-width:58%}
.intro h1{font-size:clamp(34px,4.6vw,47px);line-height:1}
.intro p{line-height:1.28}
.intro .btn,#learn,#termsBtn{min-height:44px;padding:10px 16px;margin:4px 4px 0 0}
#courses{padding:18px 5%}
#courses h2{padding:0}
.cards{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{padding:14px 16px}
.card strong{font-size:19px}
.card p{font-size:16px;line-height:1.25}
#partner{padding:24px 6% 28px 20%;gap:16px;background:url(assets/bank.webp) left bottom/17% auto no-repeat}
.terms{padding-left:12px}
.reading .feature-title h1{overflow-wrap:anywhere}
}
@media(max-width:680px){
.hero{padding:20px 6% 0}
.hero:before{position:static;display:block;aspect-ratio:3.3;background-image:url(assets/reading-panorama.webp);background-size:auto 100%;background-position:right bottom}
.hero{display:flex;flex-direction:column}
.hero:before{order:1;margin:8px -6.82% 0;min-height:104px}
.intro{max-width:none}
#partner{display:block;padding:18px 6% 36px;background-image:url(assets/reading-corner.webp);background-size:70px auto;background-position:right bottom}
.offer,.terms{width:100%}.terms{padding:12px 0 0;border:0}
#benefits{gap:4px}#benefits div{padding:2px}
.reading .feature-title{padding:22px 6% 0;min-height:0}
.feature-head:before{display:none}
.feature-head:after{content:"";display:block;height:100px;background:url(assets/reading-panorama.webp) right bottom/auto 100% no-repeat}
footer{flex-wrap:wrap;gap:8px}
}
@media(max-width:460px){
header nav{gap:0 12px}
header .brand{flex:0 1 auto}
#account{order:3}header nav{order:4}
.cards{grid-template-columns:minmax(0,1fr)}
.card{min-height:120px;padding-right:44px}
#courses small:before,#courses small:after{width:24px;margin-inline:8px}
.reading .feature-title h1{font-size:clamp(30px,8.5vw,39px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card{transition:none}}
@media(min-width:1100px) and (max-width:1199px){
html[lang=hy] header{gap:9px;padding-inline:2%}
html[lang=hy] header nav{gap:9px;padding-left:9px}
html[lang=hy] header nav button:last-child{padding-left:9px}
}
.menu-toggle{display:none}
@media(max-width:1099px), (min-width:1100px) and (max-width:1366px) and (pointer:coarse){
header,.reading header{padding:3px 4%;gap:3px 6px}
.menu-toggle{display:grid;place-items:center;width:44px;height:44px;background:transparent;border:0}
.menu-toggle span,.menu-toggle span:before,.menu-toggle span:after{width:21px;height:2px;background:#580912;display:block;position:relative}
.menu-toggle span:before,.menu-toggle span:after{content:"";position:absolute;top:-6px}
.menu-toggle span:after{top:6px}
header:has(.menu-toggle) nav,header:has(.menu-toggle) #account{display:none}
header.menu-open nav,.reading header.menu-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));order:5;gap:0 12px;border-top:1px solid #d6c6c4;padding:6px 0}
header.menu-open nav button,header.menu-open nav a{min-height:44px}
header.menu-open #account{display:block;order:6;margin:0 0 8px}
}
@media(max-width:680px){
.hero{padding:16px 5% 0;min-height:0}
.hero:before{min-height:76px;margin:0 -5.56%;height:clamp(76px,20vw,112px);aspect-ratio:auto}
.intro small,#courses small,#partner small{font-size:10px;letter-spacing:.15em}
.intro h1{font-size:clamp(28px,7.8vw,40px);margin:8px 0;line-height:.98}
.intro p,.offer p{font-size:15px;line-height:1.2;margin:8px 0}
.intro .btn,#learn{font-size:14px;padding:9px 12px;min-height:40px}
#courses{padding:10px 4% 12px}
#courses h2,.offer h2{font-size:clamp(21px,5.5vw,28px);margin:6px 0 10px}
.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.card{min-height:0;padding:9px 10px 7px;overflow-wrap:anywhere}
.card svg{width:25px;height:25px}.card em{top:8px;right:9px;font-size:12px}
.card strong{font-size:16px;line-height:1.05}.card p{font-size:13px;line-height:1.16;margin:4px 0}.card span{font-size:19px;line-height:1}
#partner{padding:14px 5% 20px;background:url(assets/bank.webp) left 13px/18% auto no-repeat,url(assets/reading-corner.webp) right bottom/16% auto no-repeat}
.offer{padding-left:18%}.terms{padding-top:8px}#benefits div{font-size:13px}
}
@media(min-width:681px) and (max-width:1099px),(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
body:not(.reading) header{min-height:60px;height:auto;display:flex;flex-wrap:wrap;padding:6px 8%;gap:12px}
header .brand{margin-right:auto}header.menu-open nav{width:100%}
body:not(.reading) main{background:#fcf8f3}
.hero{padding:3.3vw 8% 29vw;min-height:60vw;background:#fcf8f3;isolation:isolate;text-align:center;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:url(assets/tablet-panorama.webp) center bottom/100% 100% no-repeat}
.hero .art{display:none}.intro{max-width:76%;margin:auto}
.intro h1{font-size:clamp(38px,5.6vw,70px);line-height:.98;margin:.22em 0}
.intro p{max-width:62ch;margin:.7em auto 1em;font-size:clamp(16px,2.1vw,25px);line-height:1.16}
.intro .btn,#learn{width:auto;min-width:24vw;margin:3px 1%;padding:11px 15px;font-size:clamp(16px,1.9vw,22px)}
.down{display:block;position:absolute;left:49%;bottom:3vw;width:18px;height:18px;border:solid #600712;border-width:0 3px 3px 0;transform:rotate(45deg)}
#courses{padding:0 8.4% 2vw}
#courses h2{max-width:32ch;margin:.4em auto .6em;font-size:clamp(27px,3.8vw,48px)}
.cards{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8vw}
.card{min-height:0;padding:1.5vw 3.4vw 1vw}.card strong{font-size:clamp(19px,2.6vw,32px)}.card p{font-size:clamp(16px,2vw,24px);line-height:1.12}
#partner{display:grid;padding:1vw 8.4% 3vw;gap:2vw;background:url(assets/reading-corner.webp) right bottom/25% auto no-repeat}
.terms{display:contents}#benefits{grid-row:1;margin:0 0 1vw}#benefits div{font-size:clamp(15px,1.9vw,22px)}
.offer{width:auto}.offer h2{max-width:24ch;font-size:clamp(27px,3.6vw,44px)}.offer p{max-width:56ch;font-size:clamp(16px,2vw,24px)}
#termsBtn{justify-self:center;min-width:52%;margin:0}
}
