/* =========================================================
   STRYNX — CLEAN CSS (validní, funkčně stejné)
   ========================================================= */

/* =========================
   ROOT VARS (JEN proměnné!)
   ========================= */
:root{
  --bg:#070707;
  --ash:#E6E6E6;
  --gold:#C1922E;

  --leftW: 62vw;
  --topH: 92px;
  --padX: 60px;

  /* LOGO */
  --logoH: 115px;
  --logoShiftX: 6px;
  --logoShiftY: -3px;

  /* FOOTER */
  --footBottom: 26px;
  --footTextGap: 36px;
  --footTextSize: 12px;
  --footTextTrack: .10em;
  --footTextOpacity: .4;

  /* HERO IMAGE SWITCH */
  --heroImg: url("images/hero1_2048x3072.jpg");
  --heroPos: center center;
  --heroOverlay: rgba(0,0,0,0);

  /* LEFT ACCENT BARS */
  --accCol: #C1922E;
  --accOp: 1;
  --accSkew: -12deg;

  /* kotvení pruhů na split */
  --accBottom: 0px;

  /* ladění pruhů */
  --accOffsetX: -195px;

  /* pruhy */
  --accGap: clamp(14px, 2vw, 30px);
  --accW: clamp(28px, 2.2vw, 48px);
  --accH1: clamp(44px, 8vh, 90px);
  --accH2: clamp(95px, 18vh, 170px);

  /* SPLIT WEDGE */
  --wedgeW: 260px;
  --wedgeSkew: var(--accSkew);
  --wedgeOverlap: 56px;
  --wedgeX: 0px;

  /* 🍔 SIDE MENU */
  --burgerColor: #E3B137;
  --panelW: min(38vw, 420px);

  /* 🍔 POSITION TUNING */
  --burgerTop: 42px;
  --burgerRight: 36px;

  /* SCROLL AREA (transparent) */
  --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 10px);
  --scrollBottom: calc(env(safe-area-inset-bottom) + 34px);
  --scrollRight:  36px;

  --scrollMaxW: 520px;
  --scrollOverLeft: 120px;
  --scrollPadX: 0px;

  --titlePull: 120px;

  /* MOBILE/TABLET PORTRAIT */
  --mobileMaxW: 720px;
}

/* =========================
   BASE
   ========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ash);
  overflow:hidden; /* desktop layout */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================
   BENEFITS / TEXT BLOCKS
   ========================= */
.benefits{ margin-top: 26px; }

.h-mini{
  margin: 0 0 12px;
  letter-spacing: .10em;
  opacity: .92;
}

.benefit-list{
  margin: 0;
  padding: 0;
}

.benefit{
  margin: 0 0 14px;
  padding: 12px 0 12px 14px;
  border-left: 2px solid rgba(201,160,67,.85);
}

.benefit dt{
  margin: 0 0 6px;
  font-weight: 700;
  color: rgba(235,235,235,.92);
  letter-spacing: .02em;
}

.benefit dd{
  margin: 0;
  color: rgba(230,230,230,.78);
  line-height: 1.55;
}

.statement{
  margin-top: 44px;
  opacity: .8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.text-body{ opacity: .75; }

/* Mobile footer default off */
.footer-mobile{ display:none; }

/* =========================
   DESKTOP: hide scrollbar but keep scrolling
   ========================= */
.scroll-panel{
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scroll-panel::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

/* =========================
   HERO / SPLIT
   ========================= */
.hero{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--leftW);
  background:#000;
  overflow:hidden;
  z-index:0;
}

.hero .bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(var(--heroOverlay), var(--heroOverlay)),
    var(--heroImg);
  background-position: var(--heroPos);
  background-size: cover;
  background-repeat: no-repeat;
  z-index:0;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:160px;
  background:linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events:none;
  z-index:1;
}

.right{
  position:fixed;
  inset:0 0 0 var(--leftW);
  background:#000;
  z-index:0;
}

/* wedge */
.wedge{
  position: fixed;
  top: 0;
  left: calc(var(--leftW) - var(--wedgeOverlap) + var(--wedgeX));
  height: 100vh;
  width: var(--wedgeW);
  background: #000;
  z-index: 2;
  pointer-events: none;

  transform: skewX(var(--wedgeSkew));
  transform-origin: top left;
}

/* accents bars */
.accents-left{
  position: fixed;
  left: calc(var(--leftW) - var(--wedgeOverlap) + var(--wedgeX));
  bottom: var(--accBottom);
  z-index: 5;
  pointer-events:none;

  display:flex;
  align-items:flex-end;
  gap: var(--accGap);
  opacity: var(--accOp);

  transform: translateX(var(--accOffsetX));
}

.accents-left .bar{
  width: var(--accW);
  background: var(--accCol);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  border-radius: 2px;
  flex: 0 0 auto;

  transform: skewX(var(--accSkew));
  transform-origin: bottom left;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.accents-left .bar.s{ height: var(--accH1); }
.accents-left .bar.t{ height: var(--accH2); }

/* =========================
   HEADER / LOGO
   ========================= */
header{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--topH);
  display:flex;
  align-items:center;
  padding:0 var(--padX);
  z-index:50;
  pointer-events:none;
}

.brand{
  pointer-events:auto;
  display:flex;
  align-items:center;
  flex:0 0 auto;
  transform: translate(var(--logoShiftX), var(--logoShiftY));
}

.brand img{
  height:var(--logoH);
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.6));
}

/* =========================
   FOOTER (desktop/tablet) — bez žlutého pruhu
   ========================= */
.footer{
  position:fixed;
  left:0; right:0;
  bottom:var(--footBottom);
  z-index: 60;
  pointer-events:none;
}

.footer-right{
  position:absolute;
  right:36px;
  bottom:0;
  display:flex;
  align-items:center;
}

.footer-copy{
  color:rgba(230,230,230,var(--footTextOpacity));
  font-size:var(--footTextSize);
  letter-spacing:var(--footTextTrack);
  text-transform:uppercase;
  white-space:nowrap;
  transform: translateY(-2px);
}

/* pojistka: když někde zůstane footer-bar v HTML, schovej ho */
.footer-bar{ display:none; }

/* =========================
   HAMBURGER
   ========================= */
.hamburger{
  position: fixed;
  top: calc(env(safe-area-inset-top) + var(--burgerTop));
  right: var(--burgerRight);
  width: 34px;
  height: 22px;
  z-index: 70;
  cursor: pointer;
  display: block;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hamburger span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--burgerColor);
  transition: .3s ease;
}

.hamburger span:nth-child(1){ top: 0; }
.hamburger span:nth-child(2){ top: 9px; }
.hamburger span:nth-child(3){ bottom: 0; }

.hamburger.active span:nth-child(1){ transform: rotate(45deg); top: 9px; }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: rotate(-45deg); bottom: 9px; }

/* =========================
   SIDE MENU
   ========================= */
.menu-scrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.menu-scrim.open{
  opacity: 1;
  pointer-events: auto;
}

.menu-panel{
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panelW);
  height: 100vh;

  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 25;
  pointer-events: auto;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  padding-top: calc(env(safe-area-inset-top) + var(--topH) - 10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.7,0,.3,1);

  box-shadow: -40px 0 80px rgba(0,0,0,.85);
}

.menu-panel.open{ transform: translateX(0); }

.menu-panel ul{
  list-style: none;
  margin: 0;
  padding: 0 0 40px 34px;
  text-align: left;
}

.menu-panel li{ margin: 18px 0; }

.menu-panel a{
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.menu-panel a.active{ color: var(--burgerColor); }

/* =========================
   DESKTOP SCROLL PANEL
   ========================= */
main.content{ display:none; }

.scroll-panel{
  position: fixed;
  top: var(--scrollTop);
  bottom: var(--scrollBottom);
  right: var(--scrollRight);

  width: min(var(--scrollMaxW), calc((100vw - var(--leftW)) + var(--scrollOverLeft)));
  z-index: 8;

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  overscroll-behavior: none;
  touch-action: pan-y;

  background: transparent;
  border: 0;
  box-shadow: none;

  padding: 0;
  padding-left: var(--titlePull);
}

.scroll-inner{
  padding: 0 var(--scrollPadX);
}

.section{ margin: 0 0 54px; }

/* Desktop typo tuning */
@media (min-width: 1024px){
  .scroll-inner{
    padding-top: 6px;
    padding-right: 18px;
    padding-left: 0;
  }

  .h-hero{
    margin-bottom: 30px;
    line-height: 1.03;
  }

  .p{
    max-width: 60ch;
    margin-bottom: 18px;
  }
}

/* Headings / paragraphs */
.h-hero{
  margin: 0 0 18px;
  color:#fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 800;

  margin-left: calc(-1 * var(--titlePull));
  white-space: nowrap;
  line-height: 1.05;
}

.h{
  margin: 0 0 18px;
  color:#fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
}

.p{
  margin: 0 0 16px;
  color: rgba(230,230,230,.78);
  line-height: 1.55;
  font-size: 15px;

  max-width: 54ch;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* =========================
   MOBILE: hide scrollbar (html/body)
   ========================= */
@media (max-width: 1024px){
  html, body{
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar{
    width: 0;
    height: 0;
    display: none;
  }
}

/* =========================
   BREAKPOINTY (obrázky)
   ========================= */
@media (max-width: 1600px){
  :root{ --heroImg: url("images/hero1_1536x2304.jpg"); }
}

@media (max-width: 1200px){
  :root{ --heroImg: url("images/hero1_1024x1536.jpg"); }
}

/* =========================
   HERO IMAGE: 2560×1440 a víc
   ========================= */
   @media (min-width: 2100px){
  :root{
    --heroImg: url("images/hero1_2560.jpg");
  }
}

/* MacBook Retina override */
@media (min-width: 1100px) and (max-width: 1699.98px) and
       ((min-resolution: 2dppx) or (-webkit-min-device-pixel-ratio: 2)){
  :root{ --accOffsetX: -216px; }
}

/* PC 1920+ */
@media (min-width: 1700px){
  :root{ --accOffsetX: -305px; }
}

/* širší desktop scroll pack */
@media (min-width: 1300px){
  :root{
    --scrollRight: 18px;
    --scrollMaxW: 640px;
    --scrollOverLeft: 260px;
    --titlePull: 140px;
  }
}

@media (min-width: 1700px){
  :root{
    --scrollRight: 18px;
    --scrollMaxW: 680px;
    --scrollOverLeft: 300px;
  }
}

/* =========================
   iPad Air (LANDSCAPE) pack
   1024–1299.98px
   ========================= */
@media (min-width: 1024px) and (max-width: 1299.98px){

  :root{
    /* text dolů (víc prostoru nahoře) */
    --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 68px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 26px);

    /* text víc doleva (menší right = posun doleva) */
    --scrollRight:  85px;

    /* pokud chceš držet šířku textu pod kontrolou */
    --scrollMaxW:   520px;

    /* žluté pruhy stabilně mezi iPadem a PC */
    --accOffsetX: clamp(-330px, -18vw, -220px);
  }

  /* větší H1 */
  .h-hero{
    font-size: clamp(46px, 3.6vw, 68px);
    letter-spacing: .09em;
  }

  /* spacing DNA */
  .dna{
    display: block;
    padding-top: 16px;
    margin-top: 0;
  }
}



/* MacBook retina: finální ladění */
@media (min-width: 1200px) and (max-width: 1699.98px) and
       ((min-resolution: 2dppx) or (-webkit-min-device-pixel-ratio: 2)){
  :root{
    --scrollTop: calc(env(safe-area-inset-top) + var(--topH) + 45px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 56px);
    --scrollRight: 40px;
    --scrollOverLeft: 360px;
    --titlePull: 155px;
    --scrollMaxW: 665px;
  }

  .h-hero{
    font-size: clamp(40px, 3.2vw, 62px);
    letter-spacing: .09em;
    margin-bottom: 34px;
  }

  .dna{ margin-top: 26px; }
}

/* PC 1920×1080: wide desktop pack */
@media (min-width: 1700px) and (min-height: 900px){
  :root{
    --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 118px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 60px);
    --scrollRight:  200px;
    --scrollMaxW:   690px;
    --scrollOverLeft: 320px;
    --titlePull:    230px;
  }

  .dna{ margin-top: 46px; }

  .h-hero{
    font-size: clamp(46px, 3.2vw, 72px);
  }
}

/* =========================
   2304×1296 (mid-wide desktop)
   ========================= */
@media (min-width: 2100px) and (max-width: 2399.98px) and (min-height: 1200px){

  :root{
    /* pruhy o kus víc doleva než 1920, ale míň než 2560 */
    --accOffsetX: -370px;

    /* text trochu níž (mezistupeň) */
    --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 180px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 66px);

    /* text víc doprava než 1920, míň než 2560 */
    --scrollRight:  320px;

    /* šířka textu mezi */
    --scrollMaxW:   760px;
    --scrollOverLeft: 350px;

    /* title lehce víc doleva */
    --titlePull:    260px;
  }

  .h-hero{
    font-size: clamp(52px, 3.0vw, 76px);
    margin-bottom: 36px;
    letter-spacing: .085em;
  }

  .dna{
    margin-top: 54px;
  }
}



/*========================
   2560×1440 (QHD / wide desktop)
   =========================*/
@media (min-width: 2400px) and (min-height: 1300px){

  :root{
    /* žluté pruhy víc doleva – ať nejsou utopené */
    --accOffsetX: -400px;

    /* víc vzduchu nahoře i dole */
    --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 220px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 72px);

    /* obsah víc doprava, ale ne na kraj */
    --scrollRight:  420px;

    /* širší text, ale pořád kontrola */
    --scrollMaxW:   800px;
    --scrollOverLeft: 360px;

    /* title víc „vytažený“ doleva */
    --titlePull:    280px;
  }

  /* HERO nadpis – větší, ale ne cirkus */
  .h-hero{
    font-size: clamp(54px, 3.2vw, 78px);
    margin-bottom: 38px;
    letter-spacing: .085em;
  }

  .dna{
    margin-top: 58px;
  }
}



/* =========================
   2880×1620 (extra wide desktop)
   ========================= */
@media (min-width: 2800px) and (min-height: 1500px){

  :root{
    /* pruhy ještě víc doleva */
    --accOffsetX: -450px;

    /* text níž, ať je to lux */
    --scrollTop:    calc(env(safe-area-inset-top) + var(--topH) + 260px);
    --scrollBottom: calc(env(safe-area-inset-bottom) + 80px);

    /* text víc doprava */
    --scrollRight:  490px;

    /* širší text */
    --scrollMaxW:   860px;
    --scrollOverLeft: 380px;

    /* title víc doleva */
    --titlePull:    310px;
  }

  .h-hero{
    font-size: clamp(58px, 3.0vw, 82px);
    margin-bottom: 40px;
    letter-spacing: .085em;
  }

  .dna{
    margin-top: 62px;
  }
}



/* =========================================================
   SIMPLE MODE: MOBILE (portrait+landscape) + iPad PORTRAIT
   ========================================================= */
@media (max-width: 1024px) and (orientation: portrait),
       (max-width: 900px) and (orientation: landscape){

  body{
    background:#000;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  /* vypnout desktop vizuály */
  .hero,
  .right,
  .wedge,
  .accents-left,
  .footer{
    display:none !important;
  }

  header{
    position:fixed;
    top:0; left:0; right:0;
    height:96px;
    padding: 0 22px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events:none;
    z-index: 50;
  }

  :root{
    --logoH: 72px;
    --logoShiftX: 0px;
    --logoShiftY: 0px;

    --panelW: min(78vw, 420px);
    --burgerRight: 22px;
    --burgerTop: 42px;
  }

  .brand{
    pointer-events:auto;
    transform:none;
  }

  /* původní mobile main.content je vypnuté */
  main.content{ display:none !important; }

  /* scroll-panel = normální obsah stránky */
  .scroll-panel{
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: visible !important;
  }

  .scroll-inner{
    padding-top: calc(env(safe-area-inset-top) + 96px + 24px);
    padding-right: 22px;
    padding-left: 22px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 0px);

    min-height: 100vh;
    max-width: 820px;
    margin: 0 auto;
  }

  .h-hero{
    text-align: center;
    white-space: normal;
    margin-left: 0;
  }

  .section{ margin: 0 0 44px; }

  .p{
    text-align: left;
    max-width: clamp(52ch, 92vw, 72ch);
    margin-left: 0;
    margin-right: auto;
  }

  /* mobile footer */
  .footer-mobile{
    display:block !important;
    margin-top: 64px;
    padding: 36px 22px calc(env(safe-area-inset-bottom) + 32px);
  }

  .footer-mobile-inner{
    text-align:center;
    opacity:.65;
  }

  .footer-mobile-brand{
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .footer-mobile-copy{
    font-size: 11px;
    letter-spacing: .18em;
    opacity: .7;
  }

  /* iPad portrait — roztažení */
  @media (orientation: portrait) and (hover: none) and (pointer: coarse) and (min-width: 700px){
    .scroll-inner{
      max-width: none !important;
      margin: 0 !important;
      padding-left: 14px !important;
      padding-right: 14px !important;
    }

    .p{
      width: 100% !important;
      max-width: 78ch !important;
      margin-left: 0 !important;
      margin-right: auto !important;
    }
  }

  /* finální override co jsi měl */
  .p{
    max-width: none !important;
    width: 100% !important;
  }
}