/* Заставка перед входом в веб-версию: скачать приложение или продолжить в браузере */
#gate{position:fixed;inset:0;z-index:200;overflow-y:auto;-webkit-overflow-scrolling:touch;color:#F6F3EE;font:15px/1.45 Manrope,system-ui,sans-serif;
  background:#191919}
#gate[hidden]{display:none!important}
#gate .g-in{max-width:1080px;margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom))}
#gate .g-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#gate .g-logo{display:flex;align-items:center;gap:0;font:600 26px/1 Onest,sans-serif}
#gate .g-logo img{width:46px;height:46px;border-radius:12px;margin-right:12px}
#gate .g-logo b{color:#D97529;font-weight:600}
#gate .g-tag{font:600 13px/1 Onest,sans-serif;letter-spacing:.14em;color:#D97529;text-transform:uppercase;text-align:right}
#gate h1{margin:34px 0 12px;font:700 clamp(34px,6.4vw,68px)/1.04 Onest,sans-serif;letter-spacing:-.005em}
#gate h1 span{display:block;color:#D97529}
#gate .g-sub{margin:0;max-width:640px;font-size:clamp(16px,2.2vw,20px);color:#B9B3AE}
#gate .g-main{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:center;margin-top:8px}
#gate .g-phones{position:relative;--H:clamp(320px,42vw,500px);height:var(--H);margin:10px 0 0;overflow:hidden}
#gate .ph{position:absolute;bottom:0;height:calc(var(--H)*.86);aspect-ratio:390/844;border-radius:clamp(16px,2.4vw,26px);border:3px solid #46413D;background:#191919;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.55)}
#gate .ph img{display:block;width:100%;height:100%;object-fit:cover}
#gate .ph.c{left:50%;transform:translateX(-50%);height:var(--H);z-index:3;border-color:#5a534d}
#gate .ph.l{left:calc(50% - var(--H)*.5);transform:rotate(-6deg);bottom:12px;z-index:2}
#gate .ph.r{left:calc(50% + var(--H)*.08);transform:rotate(6deg);bottom:12px;z-index:2}
#gate .g-act{display:grid;gap:12px;justify-items:stretch;max-width:420px}
#gate .g-h{margin:0 0 2px;font:600 13px/1 Onest,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#B9B3AE}
#gate .st{display:flex;align-items:center;gap:14px;width:100%;padding:12px 18px;border-radius:14px;background:#121B1C;border:1px solid #46413D;color:#F6F3EE;text-decoration:none;text-align:left;cursor:pointer;font:inherit}
#gate .st:hover{border-color:#D97529}
#gate .st svg{width:28px;height:28px;flex:none}
#gate .st small{display:block;font-size:11px;color:#B9B3AE;line-height:1.1}
#gate .st strong{display:block;font:600 19px/1.15 Onest,sans-serif;letter-spacing:.02em}
#gate .st em{margin-left:auto;font-style:normal;font-size:11px;color:#B9B3AE;border:1px solid #46413D;border-radius:999px;padding:3px 8px}
#gate .go{margin-top:6px;padding:16px 20px;border:0;border-radius:14px;background:#D97529;color:#07100A;font:700 18px/1 Onest,sans-serif;letter-spacing:.03em;cursor:pointer;width:100%}
#gate .go:active{transform:translateY(1px)}
#gate .g-note{text-wrap:balance;margin:0;font-size:13px;color:#B9B3AE;text-align:center}
#gate .g-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:30px}
#gate .card{background:#121B1C;border:1px solid #46413D;border-radius:20px;padding:20px}
#gate .pill{display:inline-block;padding:7px 16px;border-radius:999px;background:#D97529;color:#07100A;font:700 17px/1 Onest,sans-serif;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
#gate ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
#gate li{position:relative;padding-left:30px}
#gate li::before{content:'';position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:#D97529 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2307100A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
#gate li b{color:#D97529;font-weight:600}
#gate .g-toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#182522;border:1px solid #D97529;color:#F6F3EE;padding:10px 16px;border-radius:12px;z-index:210;font-size:14px;max-width:calc(100vw - 32px)}
@media (max-width:760px){
  #gate .g-top{align-items:flex-start}
  #gate .g-logo{font-size:22px}#gate .g-logo img{width:40px;height:40px}
  #gate .g-tag{font-size:11px;max-width:120px}
  #gate h1{margin:26px 0 10px;text-align:center;font-size:min(8.2vw,40px);line-height:1.12;white-space:normal;text-wrap:balance;padding:0 8px}
  #gate .g-sub{text-align:center;margin-inline:auto;font-size:15px}
  #gate .g-h{text-align:center}
  #gate .g-main{grid-template-columns:1fr;gap:18px}
  #gate .g-act{max-width:none;order:-1;margin-top:6px}
  #gate .g-phones{--H:min(98vw,440px)}
  #gate .g-note{margin-bottom:6px}
  #gate .g-cards{grid-template-columns:1fr}
}
/* узкий телефон: подпись «Дневник тренировок» налезала на название — прячем, название остаётся */
@media (max-width:370px){#gate .g-tag{display:none}#gate .g-logo{white-space:nowrap}}

/* «Назад» к выбору языка */
#gate .g-back{position:sticky;top:max(12px,env(safe-area-inset-top));z-index:5;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 0 8px;border-radius:50%;border:1px solid #46413D;background:#222;color:#F6F3EE;font-size:20px;cursor:pointer}
#gate .g-back:focus-visible{outline:2px solid #D97529;outline-offset:2px}

/* описание для спортсмена и тренера — сразу под заголовком, его видно без прокрутки */
#gate .g-in{position:relative}
#gate .g-back{position:absolute;top:max(20px,env(safe-area-inset-top));left:20px;margin:0}
#gate .g-top{padding-left:54px;min-height:40px}
#gate h1{margin:22px 0 8px;font-size:clamp(30px,4.2vw,52px)}
#gate .g-cards{margin-top:20px;gap:14px}
#gate .card{padding:16px 18px}
#gate .pill{font-size:15px;padding:6px 14px;margin-bottom:10px}
#gate ul{gap:6px}
#gate .g-main{margin-top:14px}
#gate .g-phones{--H:clamp(240px,34vh,420px)}
#gate .g-foot{display:none}
@media (max-width:760px){
  #gate .g-top{padding-left:52px}
  #gate h1{margin:16px 0 6px;font-size:min(7.4vw,34px)}
  #gate .g-sub{font-size:14px}
  #gate .g-cards{margin-top:14px;gap:10px}
  #gate .card{padding:12px 14px;border-radius:16px;font-size:14px;line-height:1.35}
  #gate .pill{font-size:13px;padding:5px 12px;margin-bottom:8px}
  #gate li{padding-left:26px}#gate li::before{width:18px;height:18px;top:1px}
  #gate .g-phones{--H:min(90vw,380px)}
  /* «Продолжить в браузере» всегда под рукой — закреплена внизу экрана */
  #gate .g-act .go{display:none}
  #gate .g-foot{display:block;position:sticky;bottom:0;z-index:6;margin:14px -20px calc(-1 * max(28px,env(safe-area-inset-bottom)));padding:14px 20px max(14px,env(safe-area-inset-bottom));background:linear-gradient(rgba(25,25,25,0),#191919 30%)}
  #gate .g-foot .go{margin:0}
}
#gate .st{padding:9px 16px}#gate .st strong{font-size:17px}#gate .g-act{gap:9px}
@media (max-width:760px){#gate h1{font-size:min(6.3vw,30px);line-height:1.15}}
/* невысокий экран компьютера: кнопка «Продолжить в браузере» закреплена внизу */
@media (min-width:761px) and (max-height:860px){
  #gate .g-act .go{display:none}
  #gate .g-foot{display:flex;justify-content:flex-end;position:sticky;bottom:0;z-index:6;margin:14px 0 calc(-1 * max(28px,env(safe-area-inset-bottom)));padding:14px 0 max(18px,env(safe-area-inset-bottom));background:linear-gradient(rgba(25,25,25,0),#191919 35%)}
  #gate .g-foot .go{margin:0;max-width:420px}
}
@media (max-width:384px){#gate .g-tag{display:none}#gate .g-logo{white-space:nowrap}}
/* подпись «Дневник тренировок» — на одной строке с названием, по центру по высоте */
#gate .g-top{align-items:center}
#gate .g-tag{white-space:nowrap}
@media (max-width:760px){
  #gate .g-top{align-items:center;gap:10px}
  #gate .g-logo{font-size:19px;flex-shrink:0;white-space:nowrap}#gate .g-logo img{width:34px;height:34px;margin-right:8px}
  #gate .g-tag{font-size:9.5px;letter-spacing:.04em;max-width:none;min-width:0;overflow:hidden;text-overflow:clip}
}
