/* Uchebka Telegram Mini App: device-safe layout only; preserve brand colors and imagery. */
body.uch-tg-booking {
  --uch-tg-safe-top: 0px;
  --uch-tg-safe-bottom: 0px;
}
body.uch-tg-booking.uch-tg-fullscreen {
  padding-top: max(var(--uch-tg-safe-top),env(safe-area-inset-top,0px)) !important;
}
body.uch-tg-booking.uch-tg-fullscreen > header.uch-global-header {
  position: relative !important;
  top: auto !important;
}
body.uch-tg-booking.uch-tg-fullscreen > header.uch-global-header .uch-global-wrap {
  min-height: 60px !important;
}
body.uch-tg-booking.uch-tg-fullscreen > header.uch-global-header .uch-global-brand img {
  max-width: 150px !important;
  height: 47px !important;
}
body.uch-tg-booking footer.uch-tg-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 18px max(34px,calc(24px + var(--uch-tg-safe-bottom))) !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr);
  gap: 12px !important;
  color: #ced9f3;
  border-top: 1px solid #4c5b80;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-brand {
  display: grid;
  gap: 8px;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-title {
  font-weight: 850;
  font-size: 15px;
  color: #f4f6ff;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #bfcbea;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-links a {
  color: #dce5ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  border: 1px solid #54638a;
  background: #1a2946;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.uch-tg-booking footer.uch-tg-footer a:hover {
  color: #fff;
  border-color: #9aaef3;
}
body.uch-tg-booking footer.uch-tg-footer a:focus-visible {
  outline: 3px solid #aab9ff;
  outline-offset: 2px;
}
body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-legal {
  padding-top: 13px;
  border-top: 1px solid #35435f;
  font-size: 11px;
  line-height: 1.7;
  color: #abbad7;
}
@media(max-width:600px){
  body.uch-tg-booking > header.uch-global-header .uch-global-wrap {
    min-height: 60px !important;
  }
  body.uch-tg-booking > header.uch-global-header .uch-global-brand img {
    width: 138px !important;
    max-width: 138px !important;
    height: 43px !important;
  }
  body.uch-tg-booking main {
    width: 100%;
    max-width: 100%;
    padding: 0 15px 25px !important;
  }
  body.uch-tg-booking .user-tabs.pdd-nav {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    align-items: stretch;
    gap: 7px !important;
    margin: 12px 0 0 !important;
  }
  body.uch-tg-booking .user-tabs.pdd-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 10px 6px;
    font-size: clamp(10px,2.75vw,12px) !important;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.uch-tg-booking .intro {
    padding: 26px 0 21px !important;
  }
  body.uch-tg-booking .intro h1 {
    font-size: clamp(30px,8.7vw,45px) !important;
    line-height: 1.06 !important;
    margin: 14px 0 !important;
    letter-spacing: -.05em !important;
    overflow-wrap: break-word;
  }
  body.uch-tg-booking .intro > p {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
  body.uch-tg-booking .info-pills {
    margin-top: 17px !important;
    gap: 7px !important;
  }
  body.uch-tg-booking .booking {
    padding: 21px 16px !important;
    border-radius: 18px;
  }
  body.uch-tg-booking .services .service {
    min-height: 73px;
    gap: 9px;
    padding: 12px 10px;
  }
  body.uch-tg-booking .services .service strong {
    white-space: nowrap;
    font-size: 12px;
  }
  body.uch-tg-booking .service b {
    font-size: 12px;
  }
  body.uch-tg-booking .service small {
    font-size: 10px;
  }
  body.uch-tg-booking .step-head h2 {
    font-size: clamp(19px,5.6vw,23px) !important;
  }
  body.uch-tg-booking .days {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 9px;
  }
  body.uch-tg-booking .day {
    min-width: 0;
    min-height: 72px;
  }
  body.uch-tg-booking .day strong {
    font-size: 24px;
  }
  body.uch-tg-booking .day small {
    font-size: 11px;
    letter-spacing: .02em;
  }
  body.uch-tg-booking .times {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.uch-tg-booking .time {
    min-height: 58px;
    min-width: 0;
  }
  body.uch-tg-booking .reminder-optin {
    margin: 22px 0 26px;
    padding: 20px 16px;
  }
  body.uch-tg-booking footer.uch-tg-footer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  body.uch-tg-booking footer.uch-tg-footer .uch-tg-footer-links a {
    text-align: center;
    font-size: 11px;
    padding-inline: 8px;
  }
}
@media(min-width:601px) and (max-width:850px){
  body.uch-tg-booking .intro h1{font-size:clamp(40px,7vw,56px)}
  body.uch-tg-booking .days{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.uch-tg-booking .user-tabs.pdd-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
}
