/* ==========================================================================
   u.stin vpn — тарифы и оплата (секция главной #checkout)
   Все классы с префиксом .co-  — зона CHECKOUT.
   Анимации: только transform / opacity / filter / clip-path.
   ========================================================================== */

@property --co-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.checkout, .co-paybar {
  --co-card: rgba(12, 22, 48, .38);
  --co-card-hover: rgba(18, 34, 72, .5);
  --co-r: 22px;
  --co-sum-w: 408px;
  --co-ink: #03102a;                       /* тёмный текст на светлой кнопке */
  --co-ice-btn: linear-gradient(180deg, #f5fbff 0%, #dcefff 48%, #b9ddff 100%);
}
.checkout {
  position: relative;
  isolation: isolate;
  overflow-x: clip;                        /* свечения не дают горизонтальный скролл; sticky работает */
  padding-block: clamp(72px, 8vw, 124px) clamp(104px, 12vw, 176px);
  color: var(--text);
}
.checkout .i, .co-paybar .i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Фон секции: сетка, свечения, «горизонт» ---------- */
.co-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* мягкие края — без «шва» с соседними секциями */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 260px, #000 calc(100% - 220px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 260px, #000 calc(100% - 220px), transparent 100%);
}
.co-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--sky-rgb), .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--sky-rgb), .045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 38%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
          mask-image: radial-gradient(70% 55% at 50% 38%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
}
.co-bg__glow { position: absolute; border-radius: 50%; }
.co-bg__glow--a {
  left: 50%; top: -12%; width: min(1400px, 120vw); height: 70%; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .16), rgba(var(--cobalt-rgb), .06) 55%, transparent 100%);
}
.co-bg__glow--b {
  right: -8%; top: 30%; width: 780px; height: 780px;
  background: radial-gradient(closest-side, rgba(var(--navy-rgb), .9), rgba(var(--azure-rgb), .08) 60%, transparent 100%);
}
.co-bg__arc {
  position: absolute; left: 50%; top: clamp(360px, 30vw, 440px);
  width: max(1800px, 150vw); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 96%, rgba(var(--sky-rgb), .05) 99%, transparent 100%),
              linear-gradient(180deg, rgba(var(--navy-rgb), .55) 0%, rgba(var(--bg-rgb), 0) 18%);
  box-shadow: 0 -1px 0 rgba(var(--sky-rgb), .22), 0 -40px 120px -60px rgba(var(--azure-rgb), .55);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 38%, #000 62%, transparent 82%);
          mask-image: linear-gradient(90deg, transparent 18%, #000 38%, #000 62%, transparent 82%);
}

/* Световая волна «прибытия» */
.co-wave { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.co-wave__band {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--sky-rgb), .09) 28%, rgba(var(--ice-rgb), .2) 50%, rgba(var(--sky-rgb), .09) 72%, transparent 100%);
  transform: translateX(-130%) skewX(-14deg);
  opacity: 0;
}

/* ---------- Сетка: слева заголовок и шаги, справа липкая сводка ---------- */
.co-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--co-sum-w);
  gap: clamp(32px, 4.2vw, 64px); align-items: start;
}
.co-main { display: grid; gap: clamp(52px, 5.4vw, 76px); min-width: 0; }
.co-form { display: grid; gap: 46px; min-width: 0; }
.co-head.section-head { margin-bottom: 0; }
.co-title { max-width: 14em; }
.co-title:focus, .co-title:focus-visible { outline: none; }
.co-lead { max-width: 31em; }

/* ---------- Шаги ---------- */
.co-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; min-width: 0; }
.co-step__num {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 11px/1 var(--f-mono); letter-spacing: .02em; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.co-step__num::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 18px rgba(var(--sky-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: scale(.3); opacity: 0;
  transition: transform .7s var(--ease-spring), opacity .35s ease;
}
.co-step__num > span { position: relative; transition: transform .45s var(--ease-out), opacity .3s ease; }
.co-step__num svg {
  position: absolute; width: 15px; height: 15px; fill: none;
  stroke: var(--co-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset .55s var(--ease-out) .12s;
}
.co-step.is-done .co-step__num::before { transform: scale(1); opacity: 1; }
.co-step.is-done .co-step__num > span { transform: scale(.4); opacity: 0; }
.co-step.is-done .co-step__num svg { stroke-dashoffset: 0; }
.co-step__title {
  font-family: var(--f-display); font-weight: 400; font-size: 16px; line-height: 1.2;
  letter-spacing: -.02em; color: var(--text); margin: 0;
}
.co-step__aside {
  margin-left: auto; padding-left: 12px; text-align: right;
  font: 400 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}

/* ---------- Ползунок выбора (общий для тарифов и способов оплаты) ---------- */
.co-glider, .co-glider-trail {
  position: absolute; left: 0; top: 0; z-index: 0;
  border-radius: var(--co-r); pointer-events: none;
  will-change: transform;
}
.co-glider {
  opacity: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--sky-rgb), .22) 0%, rgba(var(--azure-rgb), .08) 48%, rgba(var(--cobalt-rgb), .04) 100%),
    rgba(10, 24, 58, .72);
  box-shadow:
    inset 0 0 0 1px rgba(var(--sky-rgb), .78),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 0 0 4px rgba(var(--sky-rgb), .07),
    0 26px 60px -26px rgba(var(--azure-rgb), .85),
    0 0 46px -12px rgba(var(--sky-rgb), .42);
  transition: opacity .7s var(--ease-out);
}
.co-glider.is-ready { opacity: 1; }
.co-glider__pulse {
  position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: 0 0 0 1.5px rgba(var(--sky-rgb), .9), 0 0 30px rgba(var(--sky-rgb), .45);
  opacity: 0;
}
.co-glider-trail {
  opacity: 0;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .42), rgba(var(--sky-rgb), .14) 45%, rgba(var(--sky-rgb), .04) 72%, transparent);
}

/* ---------- Тарифы ---------- */
.co-plans {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding-top: 4px;
}
.co-plan {
  position: relative; z-index: 1; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 218px; padding: 18px 18px 16px;
  border-radius: var(--co-r);
  background: var(--co-card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.co-plan::before {                                  /* внутренний верхний блик */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--ice-rgb), .05) 0%, transparent 38%);
}
.co-plan::after {                                   /* свет под курсором */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--sky-rgb), .12), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.co-plan:hover { background: var(--co-card-hover); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .05); }
.co-plan:hover::after { opacity: 1; }
.co-plan.is-active { background: transparent; box-shadow: none; }
.co-plan__input { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; margin: 0; opacity: 0; pointer-events: none; }
.co-plan__focus, .co-method__focus {
  position: absolute; inset: -5px; border-radius: calc(var(--co-r) + 5px); pointer-events: none;
  box-shadow: 0 0 0 2px var(--sky); opacity: 0; transition: opacity .2s;
}
.co-plan__input:focus-visible ~ .co-plan__focus,
.co-method__input:focus-visible ~ .co-method__focus { opacity: 1; }

.co-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.co-radio {
  position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-3);
  transition: box-shadow .45s var(--ease-out);
}
.co-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 10px rgba(var(--sky-rgb), .9);
  transform: scale(0); transition: transform .55s var(--ease-spring);
}
.is-active > .co-plan__top .co-radio, .co-method.is-active .co-radio { box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 14px -2px rgba(var(--sky-rgb), .7); }
.is-active > .co-plan__top .co-radio::after, .co-method.is-active .co-radio::after { transform: scale(1); }

.co-plan__save {
  font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--sky);
  padding: 5px 8px; border-radius: var(--r-pill);
  background: rgba(var(--sky-rgb), .09); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .22);
  transition: background-color .4s, color .4s;
}
.co-plan.is-active .co-plan__save { background: rgba(var(--sky-rgb), .16); color: var(--ice); }
.co-plan__title {
  margin-top: 24px; font: 600 15px/1.2 var(--f-body); color: var(--text-2);
  transition: color .4s ease;
}
.co-plan.is-active .co-plan__title { color: var(--text); }
.co-plan__price {
  margin-top: 10px; display: flex; align-items: baseline; gap: .22em;
  font-family: var(--f-display); font-weight: 400; line-height: 1;
  font-size: clamp(28px, 2.35vw, 36px); letter-spacing: -.05em; color: var(--text);
  white-space: nowrap;
}
.co-plan__price small { font-size: .52em; letter-spacing: 0; color: var(--text-3); transition: color .4s; }
.co-plan.is-active .co-plan__price small { color: var(--sky); }
.co-plan__per {
  margin-top: 10px;
  font: 400 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.co-plan__foot {
  margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1.3; color: var(--text-3);
}
.co-plan__foot b { font-weight: 600; color: var(--sky); }
.co-rim {                                           /* грань подсвечивается возле курсора */
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--ice-rgb), .75), rgba(var(--sky-rgb), .18) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .co-plan:hover .co-rim, .co-method:hover .co-rim { opacity: 1; }
}
.co-plan__bar {
  display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 3px;
  margin-top: auto; padding-top: 18px;
}
.co-plan__bar i { display: block; height: 3px; border-radius: 2px; background: rgba(var(--sky-rgb), .1); transition: background-color .5s ease, box-shadow .5s ease; }
.co-plan__bar i.on { background: rgba(var(--sky-rgb), .42); }
.co-plan:hover .co-plan__bar i.on { background: rgba(var(--sky-rgb), .6); }
.co-plan.is-active .co-plan__bar i.on { background: var(--sky); box-shadow: 0 0 8px rgba(var(--sky-rgb), .7); }
.co-plan__flash {                                   /* вспышка грани при «прибытии» */
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(var(--ice-rgb), .85), 0 0 28px -6px rgba(var(--sky-rgb), .6);
  opacity: 0;
}

/* Бейджи на верхней грани */
.co-plan__badge {
  position: absolute; left: 50%; top: 0; z-index: 3;
  transform: translate(-50%, -50%);
  padding: 6px 11px; border-radius: var(--r-pill); white-space: nowrap;
  font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); background: #0b1630;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.co-plan.is-featured .co-plan__badge {
  color: var(--co-ink); background: var(--grad-accent);
  box-shadow: 0 8px 24px -8px rgba(var(--azure-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* «Популярный» тариф: бегущая conic-грань и мягкое свечение */
.co-plan__edge {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--co-angle),
    rgba(var(--sky-rgb), .10) 0deg, rgba(var(--sky-rgb), .10) 170deg,
    rgba(var(--ice-rgb), .95) 250deg, var(--azure) 300deg, rgba(var(--sky-rgb), .10) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: co-spin 5.5s linear infinite;
}
.co-plan__glow {                                   /* размытая копия грани — свечение */
  position: absolute; inset: -3px; z-index: -1; border-radius: calc(var(--co-r) + 3px); pointer-events: none;
  display: none;
}
.co-plan__glow .co-plan__edge { padding: 3px; }
.co-plan.is-featured { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 26px -6px rgba(var(--sky-rgb), .5), 0 30px 70px -36px rgba(var(--azure-rgb), .75); }
.co-plan.is-featured.is-active { box-shadow: 0 0 30px -6px rgba(var(--sky-rgb), .6); }
@keyframes co-spin { to { --co-angle: 360deg; } }
.checkout.is-offscreen .co-plan__edge, .checkout.is-offscreen .co-paywrap__halo, .checkout.is-offscreen .co-pay__sheen { animation-play-state: paused; }

/* ---------- Почта ---------- */
.co-field {
  position: relative; height: 66px; border-radius: 18px;
  background: var(--co-card);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: box-shadow .45s var(--ease-out), background-color .45s var(--ease-out);
}
.co-field:hover { background: var(--co-card-hover); }
.co-field__ic { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 20px !important; height: 20px !important; color: var(--text-3); transition: color .4s; }
.co-field__input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  padding: 25px 56px 0 56px; border: 0; outline: 0; border-radius: inherit;
  background: transparent; color: var(--text); caret-color: var(--sky);
  font: 500 16px/1.2 var(--f-body); letter-spacing: .005em;
}
.co-field__input:-webkit-autofill,
.co-field__input:-webkit-autofill:hover,
.co-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px #0b1733 inset;
  transition: background-color 9999s;
}
.co-field__label {
  position: absolute; left: 56px; top: 50%; pointer-events: none;
  transform-origin: 0 50%; transform: translateY(-50%);
  font: 500 16px/1 var(--f-body); color: var(--text-3);
  transition: transform .5s var(--ease-out), color .35s ease;
}
.co-field__input:focus ~ .co-field__label,
.co-field__input:not(:placeholder-shown) ~ .co-field__label { transform: translateY(calc(-50% - 13px)) scale(.72); color: var(--text-2); }
.co-field__line {
  position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px;
  background: var(--grad-line); transform: scaleX(0); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .4s;
}
.co-field__ok {
  position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(var(--sky-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .4);
  transform: scale(.4); opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .3s;
}
.co-field__ok svg { width: 14px; height: 14px; fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease-out) .12s; }
.co-field.is-focus {
  background: rgba(14, 28, 62, .62);
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .62), 0 0 0 4px rgba(var(--sky-rgb), .09), 0 22px 50px -26px rgba(var(--azure-rgb), .8);
}
.co-field.is-focus .co-field__ic { color: var(--sky); }
.co-field.is-focus .co-field__line { transform: scaleX(1); opacity: 1; }
.co-field.is-valid .co-field__ok { transform: scale(1); opacity: 1; }
.co-field.is-valid .co-field__ok svg { stroke-dashoffset: 0; }
.co-field.is-error { box-shadow: inset 0 0 0 1px rgba(var(--err-rgb), .7), 0 0 0 4px rgba(var(--err-rgb), .08); }
.co-field.is-error .co-field__ic { color: var(--err); }
.co-field.is-error .co-field__label { color: rgba(var(--err-rgb), .9); }

.co-field__note { position: relative; display: grid; margin: 12px 0 0 4px; font-size: 13.5px; line-height: 1.4; min-height: 19px; }
.co-field__hint, .co-field__err { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; transition: opacity .35s ease, transform .5s var(--ease-out); }
.co-field__hint { color: var(--text-3); }
.co-field__hint .i { width: 15px; height: 15px; color: var(--text-4); }
.co-field__err { color: var(--err); opacity: 0; transform: translateY(-6px); }
.co-field__err::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; margin: 0 5px 0 5px; }
.co-field__err:empty { visibility: hidden; }
.co-field.is-error + .co-field__note .co-field__hint { opacity: 0; transform: translateY(6px); }
.co-field.is-error + .co-field__note .co-field__err { opacity: 1; transform: none; }

/* ---------- Способы оплаты ---------- */
.co-methods { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-methods .co-glider, .co-methods .co-glider-trail { border-radius: 18px; }
.co-method {
  position: relative; z-index: 1; isolation: isolate;
  display: flex; align-items: center; gap: 14px;
  min-height: 78px; padding: 14px 18px 14px 14px; border-radius: 18px;
  background: var(--co-card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.co-method:hover { background: var(--co-card-hover); box-shadow: inset 0 0 0 1px var(--line-2); }
.co-method.is-active { background: transparent; box-shadow: none; }
.co-method__focus { border-radius: 23px; }
.co-method__input { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; margin: 0; opacity: 0; pointer-events: none; }
.co-method__ic {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: var(--sky);
  background: linear-gradient(160deg, rgba(var(--sky-rgb), .16), rgba(var(--azure-rgb), .04));
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .2), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: color .4s, box-shadow .4s;
}
.co-method__ic .i { width: 22px; height: 22px; }
.co-method.is-active .co-method__ic { color: var(--ice); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .45), 0 0 24px -6px rgba(var(--sky-rgb), .6); }
.co-method__txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.co-method__txt b { font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text); }
.co-method__txt small { font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.co-method .co-radio { margin-left: auto; }

/* ---------- Согласия ---------- */
.co-agree { display: grid; gap: 10px; }
.co-check {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 18px; border-radius: 16px;
  background: var(--co-card); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-size: 14.5px; line-height: 1.45; color: var(--text-2);
  transition: background-color .4s, box-shadow .45s var(--ease-out), color .3s;
}
.co-check:hover { background: var(--co-card-hover); }
.co-check__input { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; margin: 0; opacity: 0; }
.co-check__box {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: -1px;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-3);
  transition: box-shadow .35s;
}
.co-check__box::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-accent); box-shadow: 0 0 16px rgba(var(--sky-rgb), .5), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: scale(.4); opacity: 0;
  transition: transform .55s var(--ease-spring), opacity .25s;
}
.co-check__box svg {
  position: relative; width: 14px; height: 14px; fill: none;
  stroke: var(--co-ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--ease-out) .08s;
}
.co-check__input:checked + .co-check__box { box-shadow: none; }
.co-check__input:checked + .co-check__box::before { transform: scale(1); opacity: 1; }
.co-check__input:checked + .co-check__box svg { stroke-dashoffset: 0; }
.co-check__input:focus-visible + .co-check__box { outline: 2px solid var(--sky); outline-offset: 3px; }
.co-check.is-checked { color: var(--text); }
.co-check__text a {
  color: var(--text); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--sky-rgb), .45); text-underline-offset: 3px;
  transition: color .3s, text-decoration-color .3s;
}
.co-check__text a:hover { color: var(--sky); text-decoration-color: var(--sky); }
.co-check.is-error { box-shadow: inset 0 0 0 1px rgba(var(--err-rgb), .65), 0 0 0 4px rgba(var(--err-rgb), .07); }
.co-check.is-error .co-check__box { box-shadow: inset 0 0 0 1.5px rgba(var(--err-rgb), .9); }
.co-agree__err {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 0 4px; min-height: 19px;
  font-size: 13.5px; color: var(--err); opacity: 0; transform: translateY(-6px);
  transition: opacity .35s ease, transform .5s var(--ease-out);
}
.co-agree__err::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; margin: 0 5px; }
.co-agree__err.is-show { opacity: 1; transform: none; }

/* ---------- Сводка заказа ---------- */
.co-summary { position: sticky; top: var(--co-sticky, calc(var(--header-h) + 24px)); min-width: 0; }
.co-sum {
  position: relative; overflow: hidden;
  padding: 26px 28px 24px; border-radius: 30px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--azure-rgb), .14), transparent 60%),
    linear-gradient(180deg, rgba(16, 32, 70, .92) 0%, rgba(7, 14, 32, .96) 100%);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 50px 120px -50px rgba(0, 0, 0, .95),
    0 40px 140px -70px rgba(var(--azure-rgb), .55);
}
.co-sum__edge {
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, rgba(var(--sky-rgb), 0), rgba(var(--ice-rgb), .9), rgba(var(--sky-rgb), 0));
  opacity: .7; transform-origin: 50% 50%;
}
.co-sum__shine {
  position: absolute; left: 50%; top: -120px; width: 380px; height: 220px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--sky-rgb), .2), rgba(var(--sky-rgb), .06) 55%, transparent);
  opacity: .6;
}
.co-sum__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-sum__title { margin: 0; font: 600 15px/1.2 var(--f-body); color: var(--text); letter-spacing: 0; }
.co-sum__id { font: 400 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
.co-sum__label { display: block; font: 400 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

.co-sum__plan {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.co-sum__name {
  display: block; margin-top: 10px;
  font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.035em; color: var(--text);
}
.co-swap { display: inline-block; will-change: transform; }
.co-sum__chip {
  flex: none; margin-bottom: 2px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--co-ink);
  padding: 7px 10px; border-radius: var(--r-pill);
  background: var(--grad-accent); box-shadow: 0 6px 20px -8px rgba(var(--azure-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: opacity .4s ease, transform .6s var(--ease-spring);
}
.co-sum__chip.is-off { opacity: 0; transform: scale(.6); }

.co-sum__period { margin-top: 20px; }
.co-sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-sum__days { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--text-2); }
.co-months { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.co-months i {
  position: relative; display: block; height: 6px; border-radius: 3px; overflow: hidden;
  background: rgba(var(--sky-rgb), .1);
}
.co-months i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-accent);
  background-size: calc(var(--n, 12) * 100% + (var(--n, 12) - 1) * 4px) 100%;
  background-position: calc(var(--i) / (var(--n, 12) - 1) * 100%) 0;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .55s var(--ease-out) var(--d, 0s);
}
.co-months i.is-on::after { transform: scaleX(1); }
.co-sum__dates {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font: 400 12.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.co-sum__dates .i { width: 14px; height: 14px; color: var(--text-4); }

.co-sum__inc { margin-top: 22px; }
.co-sum__feat { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.co-sum__feat li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.co-sum__feat .co-tick {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--sky-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .28);
}
.co-sum__feat .co-tick svg { width: 10px; height: 10px; fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.co-sum__calc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.co-sum__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-3); }
.co-sum__line > span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.co-sum__line s { text-decoration-color: rgba(var(--text-rgb), .5); }
.co-sum__line i { font-style: normal; font: 500 11px/1 var(--f-mono); color: var(--sky); margin-left: 6px; }
.co-sum__line--disc > span:last-child { color: var(--sky); transition: color .4s; }
.co-sum__line--disc.is-none > span:last-child { color: var(--text-4); }

.co-sum__total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px dashed rgba(var(--sky-rgb), .16);
}
.co-sum__label--total { padding-bottom: 8px; }
.co-sum__sum {
  position: relative; display: inline-flex; align-items: baseline; gap: .18em;
  font-family: var(--f-display); font-weight: 400; font-size: 50px; line-height: 1; letter-spacing: -.05em;
  color: var(--text);
}
.co-sum__cur { font-size: .5em; letter-spacing: 0; color: var(--sky); }

/* Счётчик-«одометр» */
.co-odo { display: inline-flex; align-items: baseline; }
.co-odo__col {
  position: relative; display: inline-block; height: 1.12em; overflow: hidden; vertical-align: bottom;
  transition: width .9s cubic-bezier(.16, 1, .3, 1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.co-odo__strip {
  display: flex; flex-direction: column; will-change: transform;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}
.co-odo__strip > span { display: block; height: 1.12em; line-height: 1.12em; text-align: center; }
.co-odo__col.is-new { animation: co-odo-in .7s var(--ease-out) both; }
.co-odo__sep { display: inline-block; width: .28em; }
@keyframes co-odo-in { from { opacity: 0; transform: translateY(.4em); } }

/* ---------- Кнопка оплаты ---------- */
.co-paywrap { position: relative; margin-top: 22px; }
.co-paywrap__halo {
  position: absolute; left: 8%; right: 8%; top: 30%; bottom: -16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--azure-rgb), .6), rgba(var(--sky-rgb), .2) 40%, rgba(var(--sky-rgb), .05) 70%, transparent);
  opacity: .55; will-change: transform, opacity;
  transition: opacity .6s ease;
}
.co-paywrap.is-ready .co-paywrap__halo { animation: co-halo 3.2s ease-in-out infinite; }
@keyframes co-halo { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: .95; transform: scale(1.04); } }

.co-pay {
  position: relative; display: grid; place-items: center; width: 100%; height: 62px;
  margin: 0; padding: 0 24px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--co-ink);
  font: 700 16.5px/1 var(--f-body); letter-spacing: -.005em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -1px 0 rgba(3, 16, 42, .15) inset, 0 20px 44px -18px rgba(var(--azure-rgb), .9);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.co-pay:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.co-pay__bg { position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--co-ice-btn); }
.co-pay__bg::before {                               /* цветной слой при наведении */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, #e8f5ff 0%, #9fd4ff 45%, #6db3ff 100%);
  opacity: 0; transition: opacity .5s ease;
}
.co-pay__bg::after {                                /* ошибка */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, #ffd9de 0%, #ff9aa7 100%);
  opacity: 0; transition: opacity .35s ease;
}
.co-pay__sheen {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .95) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
}
.co-paywrap.is-ready .co-pay:not(:hover):not(.is-busy):not(.is-fail) .co-pay__sheen { animation: co-glint 4.8s cubic-bezier(.45, 0, .2, 1) 1.2s infinite; }
@keyframes co-glint { 0% { transform: translateX(-160%) skewX(-18deg); } 26%, 100% { transform: translateX(420%) skewX(-18deg); } }
.co-pay__state {
  grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform .55s var(--ease-out), opacity .3s ease;
}
.co-pay__state .i { width: 19px; height: 19px; stroke-width: 2; transition: transform .5s var(--ease-out); }
.co-pay__state--busy, .co-pay__state--fail { opacity: 0; transform: translateY(110%); }
.co-pay__spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(3, 16, 42, .2); border-top-color: var(--co-ink);
  animation: co-rot .8s linear infinite;
}
@keyframes co-rot { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .co-pay:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -1px 0 rgba(3, 16, 42, .15) inset, 0 26px 56px -18px rgba(var(--azure-rgb), 1), 0 0 0 5px rgba(var(--sky-rgb), .1); }
  .co-pay:hover .co-pay__bg::before { opacity: 1; }
  .co-pay:hover .co-pay__sheen { transform: translateX(420%) skewX(-18deg); transition: transform 1.1s var(--ease-out); }
  .co-pay:hover .co-pay__state--idle .i { transform: translateX(4px); }
}
.co-pay:active { transform: translateY(0) scale(.985); }
.co-pay.is-busy { cursor: progress; }
.co-pay.is-busy .co-pay__state--idle, .co-pay.is-fail .co-pay__state--idle { opacity: 0; transform: translateY(-110%); }
.co-pay.is-busy .co-pay__state--busy { opacity: 1; transform: none; }
.co-pay.is-busy .co-pay__sheen { animation: co-shimmer 1.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.co-pay.is-fail { color: #3a0710; }
.co-pay.is-fail .co-pay__bg::after { opacity: 1; }
.co-pay.is-fail .co-pay__state--fail { opacity: 1; transform: none; }
@keyframes co-shimmer { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }

.co-sum__secure { margin-top: 18px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.co-sum__secure p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.co-sum__secure .i { width: 14px; height: 14px; color: var(--sky); }
.co-sum__terms { flex-wrap: wrap; gap: 6px 12px !important; }
.co-sum__terms span { font: 400 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.co-sum__terms span + span::before { content: "·"; margin-right: 12px; color: var(--text-4); }
.co-sum__help {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 0; font-size: 13px; color: var(--text-3); text-align: center;
}
.co-sum__help .i { width: 15px; height: 15px; color: var(--text-4); }

/* ---------- Липкая плашка итога (телефон) ---------- */
.co-paybar { display: none; }

/* ---------- Встряска при ошибке ---------- */
.co-shake { animation: co-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes co-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
/* невысокие окна на компьютере (ноутбук, Safari с панелями): заголовок компактнее,
   сводка ниже — тарифы и кнопка оплаты не упираются в низ экрана */
@media (min-width: 961px) and (max-height: 900px) {
  .co-main { gap: clamp(36px, 5.2vh, 52px); }
  .co-head.section-head { gap: 16px; }
  .co-title { font-size: clamp(32px, min(4.7vw, 7.2vh), 70px); }
  .co-sum { padding: 22px 26px 20px; }
  .co-sum__plan { margin-top: 16px; padding-top: 16px; }
  .co-sum__period { margin-top: 16px; }
  .co-sum__inc { margin-top: 16px; }
  .co-sum__feat { margin-top: 10px; gap: 6px; }
  .co-sum__calc { margin-top: 16px; padding-top: 14px; gap: 8px; }
  .co-sum__total { margin-top: 14px; padding-top: 14px; }
  .co-sum__sum { font-size: 44px; }
  .co-paywrap { margin-top: 16px; }
  .co-sum__secure { margin-top: 14px; gap: 8px; }
}

@media (max-width: 1240px) {
  .checkout { --co-sum-w: 372px; }
  .co-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .co-plan { min-height: 196px; }
  .co-plan__price { font-size: 34px; }
}

@media (max-width: 960px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: relative; top: 0; }
  .co-sum { padding: 26px 24px 24px; }
  .co-paybar {
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 12px;
    padding: 9px 9px 9px 20px; border-radius: 24px;
    background: rgba(8, 15, 34, .97);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px -18px rgba(0, 0, 0, .95), 0 -8px 40px -24px rgba(var(--azure-rgb), .6);
    transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden;
    transition: transform .6s var(--ease-out), opacity .35s ease, visibility 0s linear .6s;
  }
  .co-paybar.is-show { transform: none; opacity: 1; visibility: visible; transition: transform .75s var(--ease-out), opacity .4s ease, visibility 0s; }
  .co-paybar__sum { display: grid; gap: 4px; min-width: 0; flex: 1; }
  .co-paybar__sum small { font: 400 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .co-paybar__sum b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: -.04em; color: var(--text); white-space: nowrap; }
  .co-paybar__btn {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    height: 50px; padding: 0 22px; border: 0; border-radius: var(--r-pill); cursor: pointer;
    background: var(--co-ice-btn); color: var(--co-ink);
    font: 700 15.5px/1 var(--f-body);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 30px -12px rgba(var(--azure-rgb), .9);
  }
  .co-paybar__btn .i { width: 17px; height: 17px; stroke-width: 2; }
  .co-paybar__btn:active { transform: scale(.97); }
}

@media (max-width: 640px) {
  .checkout { --co-r: 18px; padding-block: 76px 104px; }
  .co-main { gap: 44px; }
  .co-form { gap: 38px; }
  .co-step__head { margin-bottom: 16px; gap: 12px; }
  .co-step__title { font-size: 15px; }
  .co-step__aside { font-size: 10px; letter-spacing: .1em; }
  .co-step__aside:not(.co-step__aside--keep) { display: none; }
  .co-plan__bar { display: none; }

  /* Тарифы — компактные строки */
  .co-plans { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 10px; padding-top: 6px; }
  .co-plan {
    display: grid; min-height: 0; padding: 16px 16px 16px 16px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "radio title save price" "radio per per price";
    column-gap: 12px; row-gap: 6px; align-items: center;
  }
  .co-plan__top { display: contents; }
  .co-plan .co-radio { grid-area: radio; }
  .co-plan__save { grid-area: save; justify-self: start; padding: 4px 7px; font-size: 10.5px; }
  .co-plan__title { grid-area: title; margin: 0; font-size: 15px; }
  .co-plan__per { grid-area: per; margin: 0; font-size: 10.5px; }
  .co-plan__price { grid-area: price; margin: 0; font-size: 26px; justify-self: end; }
  .co-plan__foot { display: none; }
  .co-plan__badge { left: auto; right: 14px; transform: translateY(-50%); padding: 5px 9px; font-size: 9.5px; }

  .co-methods { grid-template-columns: 1fr; gap: 10px; }
  .co-method { min-height: 72px; }
  .co-field { height: 62px; }
  .co-check { padding: 14px 16px; font-size: 14px; }
  .co-check__input { left: 16px; top: 15px; }

  .co-sum { padding: 22px 20px 22px; border-radius: 26px; }
  .co-sum__name { font-size: 23px; }
  .co-sum__sum { font-size: 42px; }
  .co-sum__secure { font-size: 12px; }
}

@media (max-width: 380px) {
  .co-plan { column-gap: 10px; padding-inline: 14px; }
  .co-plan__price { font-size: 23px; }
  .co-plan__title { font-size: 14px; }
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  .co-plan__edge, .co-plan__halo, .co-paywrap.is-ready .co-paywrap__halo { animation: none; }
  .co-odo__strip, .co-months i::after, .co-glider, .co-paybar { transition-duration: .01s !important; transition-delay: 0s !important; }
  .co-pay.is-busy .co-pay__sheen { animation: none; }
  .co-shake { animation: none; }
}
