/* Гладко VPN — страница «Оформление подписки» (/app/): как первый экран мини-приложения. Основа — site.css. */

.head-tg {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s ease;
}
.head-tg:hover { color: #fff; }
.head-tg .ico { width: 18px; height: 18px; }

.checkout { max-width: calc(440px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .checkout { max-width: calc(480px + var(--gutter) * 2); padding-top: 24px; } }

.co-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.co-head .sign { --s: 96px; margin-bottom: 16px; }
.app-page .title { font-size: 30px; letter-spacing: -.03em; }
.app-page .sub { margin: 6px 0 0; font-size: 15px; color: var(--text-2); }
@media (min-width: 900px) { .co-head .sign { --s: 112px; margin-bottom: 20px; } .app-page .title { font-size: 34px; } .app-page .sub { font-size: 16px; } }
.js .co-head.intro .title, .js .co-head.intro .sub { animation: fadeUp .6s var(--ease) .3s both; }

.co-plans { margin-top: 26px; }
.co-plans .plans { display: grid; gap: 20px; }
.co-plans .disc { margin-top: 12px; }
.js .co-plans .plan { animation: fadeUp .6s var(--ease) both; --dy: 14px; }
.js .co-plans .plan:nth-child(1) { animation-delay: .36s; }
.js .co-plans .plan:nth-child(2) { animation-delay: .42s; }
.js .co-plans .plan:nth-child(3) { animation-delay: .48s; }
.js .co-buy { animation: fadeUp .6s var(--ease) .56s both; }

.co-buy { margin-top: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.trial-line { margin: 0; font-family: var(--font-round); font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; text-wrap: balance; }
.co-buy .chip { margin: 8px 0 12px; }
.co-buy .cta { width: 100%; }
.consent { margin: 12px -4px 0; font-size: 12.5px; }
.co-pay { width: 100%; margin-top: 22px; padding-top: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.co-pay .pay-note { margin: 0; display: block; font-size: 13.5px; line-height: 1.45; color: var(--text-2); text-align: center; text-wrap: balance; }
.co-pay .pay-note .ico { display: inline-block; width: 16px; height: 16px; margin: 0 6px -3px 0; color: color-mix(in oklab, var(--cb) 45%, #fff); }
.co-pay-row { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

.app-page .foot { margin-top: 88px; }

/* низкий экран телефона — кнопка и согласие остаются в первом экране */
@media (max-width: 899px) and (max-height: 719px) {
  .co-head { flex-direction: row; justify-content: center; gap: 12px; padding-top: 2px; }
  .co-head .sign { --s: 40px; margin: 0; }
  .co-head .sub { display: none; }
  .app-page .title { font-size: 24px; }
  .co-plans { margin-top: 18px; }
  .co-plans .plans { gap: 14px; }
  .co-plans .plan { min-height: 60px; padding: 9px 16px; }
  .co-plans .plan-price b { font-size: 25px; }
  .co-plans .disc { display: none; }
  .co-buy { margin-top: 12px; }
  .trial-line { font-size: 14.5px; }
  .co-buy .chip { margin: 4px 0 8px; }
  .co-buy .cta { height: 54px; }
  .consent { margin-top: 8px; font-size: 12px; line-height: 1.36; }
}

/* ——— Шторка ——— */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: none; }
.sheet-wrap:target, .sheet-wrap.is-open { display: block; }
.sheet-wrap.is-js:not(.is-open) { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(4, 4, 16, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .3s ease both; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 480px;
  padding: 14px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(18, 16, 48, .92);
  animation: sheetUp .45s var(--ease) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 600px) {
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 440px; transform: translate(-50%, -50%); border-radius: 28px; padding: 30px 28px 26px; animation: sheetIn .4s var(--ease) both; }
  @keyframes sheetIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
  .grab { display: none; }
}
.grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); margin-bottom: 18px; }
.sheet-title { margin: 0; font-family: var(--font-round); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.sheet-text { margin: 10px 0 22px; font-size: 15px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.sheet .cta { width: 100%; }
.sheet-close { width: 100%; margin-top: 10px; }
.sheet-open body { overflow: hidden; }
.lite .sheet { background-color: rgba(20, 18, 52, .98); }

/* невысокий экран компьютера (ноутбук 1024–1366 × 768) — согласие под кнопкой остаётся в первом экране */
@media (min-width: 900px) and (max-height: 820px) {
  .checkout { padding-top: 0; }
  .co-head .sign { --s: 60px; margin-bottom: 12px; }
  .app-page .title { font-size: 30px; }
  .co-plans { margin-top: 20px; }
  .co-plans .plans { gap: 16px; }
  .co-buy { margin-top: 14px; }
}
