Hold the three-band hero on 1280x720 as well

- Planet floors lowered (250 at normal, 230 on short screens) and the <=880
  formula moved to (100vh - 530) so 768-height screens give the planet 306 px.
- A <=760-height block buys the last 15 px from paddings and gaps only: hero
  8/6, row gap 12, band 9/18, card bottom 8. Type sizes stay untouched.
- Result: 0 px first-screen overflow at 1920x1080, 1600x1000, 1536x864,
  1440x900, 1366x768 and 1280x720; 820x1180 stays at 0.
- 900-1024 width still overflows (116 px at 1024x768): with the band on two
  columns and both cards open the first screen cannot hold. Documented in
  DESIGN.md as the width limit; the layout holds from 1100 px up.
This commit is contained in:
FastD committed 2026-11-15 21:12:29 +03:00
1 parent 446ed39da8
commit e306d2a97e
3 files changed
+20 -6

No files matched your search

+17 -3
View File
@@ -1043,11 +1043,11 @@
526 = шапка 85 + тикер 49 + отступы hero 20 + зазоры ряда 32 + полоса 86.4
+ плашки 248.3 + запас 5.3. Потолок 520 — прежний максимум, пол 300. */
@media (min-width:768px){
.planet{max-width:clamp(300px,calc((100vh - 526px) * 1.286),520px)}}
.planet{max-width:clamp(250px,calc((100vh - 526px) * 1.286),520px)}}
/* Низкие окна (≤880 по высоте): плотный набор полосы и плашек — кегль тела остаётся 14 px,
ужимаются только интерлиньяж, отступы и метки. 512 = та же формула на плотном наборе. */
@media (max-height:880px) and (min-width:768px){
.planet{max-width:clamp(300px,calc((100vh - 512px) * 1.286),520px)}
.planet{max-width:clamp(230px,calc((100vh - 530px) * 1.286),520px)}
.hero-about{padding:11px 18px}
.hero-about__title{font-size:17px}
.hero-about__lead{font-size:14px;line-height:1.32}
@@ -1059,8 +1059,22 @@
.about-acc__list{gap:3px}
.about-acc__group + .about-acc__group{margin-top:4px}
.about-acc__chips{gap:6px}}
/* 720-по-высоте: три полосы + тикер держатся за счёт отступов, кегль не трогаем */
@media (max-height:760px) and (min-width:1100px){
.hero{padding:8px 24px 6px}
.hero__grid{row-gap:12px}
.hero-about{padding:9px 18px}
.about-acc .faq-item__answer{padding-bottom:8px}
.about-acc__lead{margin-bottom:5px}
}
/* 768–1024 по ширине: полоса в один столбец (три зоны не встают), плашки в две колонки */
@media (min-width:768px) and (max-width:1024px){
@media (min-width:900px) and (max-width:1024px){
.hero-about{grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}
.hero-about__stats{grid-template-columns:repeat(2,minmax(76px,auto));gap:4px 12px}
.hero-stat{padding:0 12px}
.hero-stat__value{font-size:19px}
.hero-stat__label{font-size:9.5px}}
@media (min-width:768px) and (max-width:899px){
.hero-about{grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}}
@media (max-width:767px){
.hero{padding:48px 24px 40px}