/* MagniFly on a computer screen: build.py links this file for 900 px of width and more, so a phone never applies it
   (phone.css is its other half). 15.11.2026, Mati: „żeby nie było takiej pustki na ekranie … szczególnie na desktopie”:
   the page was a 1180 px column whatever the monitor. From 1280 px the column takes 92% of the screen, and above
   1440 px the root size grows with it; build.py turns the px of every stylesheet into rem (px_to_rem), so type, spacing
   and pictures grow together. */

/* the header is never narrower than 80rem (the window, below 1280 px), so the links to all the pages fit before
   site.js has to hide one; wider than that it keeps the edges of the page's column */
.top .wrap{max-width:max(min(92vw,88rem),80rem)}

/* a page of one section starts right under the header: half of the gap a section keeps from the one before it */
main > section:first-child:not(.hero){padding-top:clamp(2rem,4vw,3.5rem)}

/* the hub's first screen (15.11.2026, Mati approved the mock-up): a navy band with the cabin photo out to the edge of the
   screen, as on a phone; over its bottom edge the flights box, the main action (a gold field and its four ways to book in
   one row), then the three other services in a row. Before: a cream column, the photo as a card, and four boxes of one
   height of which three were half empty. */
.hero{display:block;min-height:0;padding:0;overflow:visible;background:var(--bg)}
.hero-top{position:relative;overflow:hidden;background:#0f1829}
.hero-in{padding-block:1.8rem 7rem;gap:.9rem;justify-items:start}
.hero-in > *{max-width:42rem;margin:0}
.hero-media{left:42%;overflow:hidden}
.hero-media::after{background:linear-gradient(90deg,#0f1829 0%,rgba(15,24,41,.8) 20%,rgba(15,24,41,.28) 58%,rgba(15,24,41,.12) 100%)}
.who{gap:0.875rem}
.who img{width:4.5rem;height:4.5rem}
.who b{font-size:1.15rem}
.who .emblem-hero{width:4.4rem;margin-left:1rem}
.hero h1{font-size:clamp(3.4rem,5.2vw,5.6rem);max-width:46rem;margin-top:.2em}
.hero-line{max-width:40rem;font-size:1.06rem}
.hero-route{max-width:19rem;margin:.2rem 0 0}
.hero-text{display:block;margin-top:-5.6rem;padding-bottom:2rem;color:var(--fg)}
.hero .map{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0}
.map-branch{align-content:start;border-radius:1.375rem;padding:1rem 1.3rem .9rem;box-shadow:0 1.375rem 3rem rgba(15,24,41,.2)}
.map-branch:hover,.map-branch:focus-within{box-shadow:0 1.625rem 3.375rem rgba(15,24,41,.28)}
.map-ico{width:2.3rem;height:2.3rem;color:var(--gold)}
.map .map-main{gap:.9rem;min-height:3.9rem}   /* one height, so the lines of the three boxes start level */
.map-branch:first-child{grid-column:1 / -1;grid-template-columns:minmax(min-content,1fr) minmax(0,3.3fr);padding:0}   /* never narrower than its longest word (Russian: «Забронировать») */
.map-branch:first-child .map-main{font-size:1.75rem;padding:1.2rem 1.4rem;min-height:0;border-radius:1.3125rem 0 0 1.3125rem}
.map-branch:first-child .map-ico{width:2.9rem;height:2.9rem}
.map-branch:first-child .map-sub{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:1.15rem 1.2rem 1rem 0;border-left:0}
.map-branch:first-child .map-sub li{border-left:1px solid var(--line-strong);padding-left:1.2rem}
.map-branch:first-child .map-sub li:first-child{border-left:0}
.map-branch:first-child .map-sub li::before{display:none}
.map-branch:first-child .map-sub a{align-items:start;height:100%;padding:.1em 0}
/* a low window: the drawing gives way, so the flights box stays whole on the first screen (measured 15.11.2026 in
   1920x950, 1536x730, 1440x790, 1366x650, 1280x620, 2560x1300) */
@media(max-height:760px){
  .hero-route{display:none}
  .hero-in{padding-top:1.2rem;gap:.7rem}
  .who img{width:3.8rem;height:3.8rem}
  .hero h1{font-size:clamp(3rem,4.6vw,5rem)}
}
/* 900 to 1099 px: the gold field across the box, the four ways to book in two rows */
@media(max-width:1099px){
  .map-branch:first-child{grid-template-columns:1fr}
  .map-branch:first-child .map-main{border-radius:1.3125rem 1.3125rem 0 0}
  .map-branch:first-child .map-sub{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 0;padding:1.1rem 1.2rem 1rem 0}
  .map-branch:first-child .map-sub li:nth-child(odd){border-left:0}
}

@media(min-width:1280px){
  html{font-size:clamp(100%,.78vw + .31rem,150%)}   /* 16 px up to 1440, 20 px at 1920, 24 px from 2400 */
  .wrap{max-width:min(92vw,88rem)}

  /* the heading of a page is its title, as wide as its column: it was a 64ch block beside an empty strip */
  h1.h2{font-size:clamp(2.5rem,3.4vw,3.75rem)}
  .sec-head{max-width:none}
  .sec-head p{max-width:84ch}
  .head-dock{align-items:center}   /* the heading in the middle of the calendar's height, not above an empty half */

  /* About me: the photos fill their column and start level with the text instead of floating in the middle of it */
  .about-row{align-items:start}
  .about-pics{max-width:none}
  .about-text{max-width:72ch}

  /* the questions in two columns */
  .faq .wrap{display:block;column-count:2;column-gap:4rem}
  .faq .sec-head{column-span:all}
  .faq details{break-inside:avoid}
}
@media(min-width:1600px){
  .services{grid-template-columns:repeat(4,minmax(0,1fr))}   /* the four kinds of flight in one row */
}
