/* The light band is shorter than the phone; normal flow reserves its full height. */
#telegram .telegram-layout { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,330px); align-items:center; gap:clamp(32px,5vw,72px); padding:15px clamp(32px,5vw,68px); }
#telegram .telegram-layout::before { content:""; position:absolute; inset:110px 0; z-index:-1; border-radius:var(--radius); background:var(--leaf); pointer-events:none; }
#telegram .telegram-copy { display:flex; flex-direction:column; min-width:0; padding-block:22px; }
#telegram .telegram-copy h2 { font-size:clamp(38px,3.75vw,54px); line-height:1.12; max-width:17ch; color:var(--ink); }
#telegram .telegram-copy>p { color:var(--muted); font-size:17px; line-height:1.6; max-width:36ch; margin-top:24px; }
#telegram .telegram-subscribe { align-self:flex-start; justify-content:center; text-align:center; min-width:260px; margin-top:30px; padding-inline:28px; }
#telegram .telegram-phone-stage { display:flex; justify-content:center; align-items:center; min-width:0; padding:15px 20px; }
#telegram .tg-phone {
  --tg-blue: #2481cc;
  position: relative;
  display: block;
  width: min(100%, 280px);
  padding: 8px;
  border: 1px solid #69716a;
  border-radius: 39px;
  background: #151a18;
  box-shadow: 0 18px 36px rgba(33, 50, 34, .14), inset 0 0 0 2px #333b36;
  justify-self: center;
  color: #17191c;
  text-decoration: none;
  transform: rotate(4deg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.3;
  container-type: inline-size;
}
#telegram .tg-phone:focus-visible { outline: 3px solid #927143; outline-offset: 8px; }
#telegram .tg-phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 31px;
  background: #eeeff3;
  padding: 0 10px 15px;
}
#telegram .tg-phone__screen::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 19px;
  border-radius: 15px;
  background: #151a18;
}
#telegram .tg-phone__screen::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: 3px;
  background: #202326;
}
#telegram .tg-phone__status {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 600;
}
#telegram .tg-phone__navigation { display: flex; justify-content: space-between; margin: 2px 0 1px; }
#telegram .tg-phone__navigation span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  color: var(--tg-blue);
}
#telegram .tg-phone__navigation svg { width: 18px; height: 18px; }
#telegram .tg-phone__profile { text-align: center; margin: -9px 20px 12px; }
#telegram .tg-phone__avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
#telegram .tg-phone__title { font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
#telegram .tg-phone__handle { font-size: 11px; color: var(--tg-blue); margin-top: 5px; }
#telegram .tg-phone__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; }
#telegram .tg-phone__actions span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 55px;
  padding: 7px 2px;
  border-radius: 13px;
  background: #fff;
  color: var(--tg-blue);
  font-size: 9px;
  font-size: clamp(8px, 3.5cqi, 9px);
  white-space: nowrap;
}
#telegram .tg-phone__actions svg { width: 19px; height: 19px; }
#telegram .tg-phone__info { padding: 12px; border-radius: 15px; background: #fff; }
#telegram .tg-phone__label { display: block; color: var(--tg-blue); font-size: 11px; margin-bottom: 5px; }
#telegram .tg-phone__description { margin: 0; color: #17191c; font-size: 12px; line-height: 1.35; }
#telegram .tg-phone__link { display: grid; gap: 4px; border-top: 1px solid #e5e5e8; padding-top: 9px; margin-top: 10px; font-size: 11px; }
#telegram .tg-phone__link span:last-child { color: var(--tg-blue); font-size: 12px; }
#telegram .tg-phone__publications { overflow: hidden; background: #fff; border-radius: 15px 15px 9px 9px; margin-top: 12px; }
#telegram .tg-phone__tabs { display: flex; justify-content: space-between; gap: 6px; padding: 10px 10px 0; color: #93969b; font-size: 11px; }
#telegram .tg-phone__tabs span { padding-bottom: 8px; }
#telegram .tg-phone__tabs span:first-child { color: var(--tg-blue); border-bottom: 2px solid var(--tg-blue); }
#telegram .tg-phone__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
#telegram .tg-phone__media img { width: 100%; height: 105px; object-fit: cover; object-position: center top; }

/* Landing-wide link icon defaults must not alter the original Telegram UI. */
#telegram .tg-phone svg[fill="currentColor"] { fill:currentColor; stroke:none; }
#telegram .tg-phone svg[fill="none"] { fill:none; stroke:currentColor; }
#telegram .tg-phone__status svg { width:42px; height:12px; flex-shrink:0; }
@media(max-width:1000px) {
  #telegram .telegram-layout { grid-template-columns:minmax(0,1fr) minmax(0,300px); gap:30px; padding-inline:32px; }
  #telegram .telegram-layout::before { inset:105px 0; }
  #telegram .telegram-copy h2 { font-size:40px; }
  #telegram .telegram-copy>p { font-size:16px; }
  #telegram .telegram-phone-stage { padding-inline:15px; }
}
@media(max-width:800px) {
  #telegram .telegram-layout { grid-template-columns:minmax(0,1fr) minmax(0,260px); gap:24px; padding-inline:26px; }
  #telegram .telegram-layout::before { inset:95px 0; }
  #telegram .telegram-copy h2 { font-size:35px; }
  #telegram .telegram-copy>p { font-size:15px; margin-top:20px; }
  #telegram .telegram-subscribe { min-width:0; width:100%; max-width:260px; padding-inline:16px; font-size:13px; }
  #telegram .telegram-phone-stage { padding-inline:12px; }
  #telegram .tg-phone { transform:rotate(3deg); }
}
@media(max-width:650px) {
  #telegram .telegram-layout { grid-template-columns:1fr; gap:32px; padding:0; }
  #telegram .telegram-layout::before { content:none; }
  #telegram .telegram-copy { padding:0; }
  #telegram .telegram-copy h2 { font-size:clamp(34px,9vw,42px); max-width:20ch; }
  #telegram .telegram-copy>p { max-width:37ch; font-size:16px; margin-top:19px; }
  #telegram .telegram-subscribe { width:100%; min-width:0; max-width:none; font-size:14px; margin-top:24px; min-height:52px; }
  #telegram .telegram-phone-stage { position:relative; isolation:isolate; padding:0 24px; }
  #telegram .telegram-phone-stage::before { content:""; position:absolute; inset:58px 0; z-index:-1; border-radius:var(--radius); background:var(--leaf); pointer-events:none; }
  #telegram .tg-phone { width:min(100%,280px); transform:none; }
}
@media(max-width:370px) {
  #telegram .telegram-phone-stage { padding-inline:22px; }
  #telegram .telegram-phone-stage::before { inset:48px 0; }
  #telegram .tg-phone__title { font-size:15px; }
  #telegram .tg-phone__description { font-size:11px; }
}
