/* Подписка Corvus Client на главной (plans.js): слева выбор срока и что входит, справа способ оплаты и итог. */

.pl {
  --pl-num: "Inter Tight", "Inter Display", Inter, var(--font-body);
  --pl-red: 255, 99, 77;
}

.pl-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.co {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* ---------- сроки ---------- */

.co-left {
  display: grid;
  gap: 22px;
}

.co-plans {
  display: grid;
  gap: 10px;
}

.co-plan {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.co-plan:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
}

.co-plan.is-on {
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.co-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #4a4a52;
  transition: border 0.2s;
}

.co-plan.is-on .co-dot {
  border: 7px solid #f2f2f5;
}

.co-plan-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.co-plan-main b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.co-best {
  padding: 3px 8px;
  border-radius: 8px;
  background: #f2f2f5;
  color: #0b0b0e;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
}

.co-best[hidden] {
  display: none;
}

.co-plan-main small {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.co-plan-price {
  font-family: var(--pl-num);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.co-included {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 4px 0;
  list-style: none;
}

.co-included li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.co-included svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.12);
  color: var(--ok);
}

/* ---------- оплата ---------- */

.co-pay {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(170deg, #121214, #0a0a0b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.co-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.co-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.co-method {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.co-method:hover:not(:disabled) {
  border-color: var(--stroke-strong);
}

.co-method.is-on {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.co-method-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.co-method.is-on .co-method-icon {
  background: #f2f2f5;
  color: #0b0b0e;
}

.co-method-icon svg {
  width: 18px;
  height: 18px;
}

.co-method-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.co-method-text b {
  font-size: 0.9rem;
  font-weight: 600;
}

.co-method-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* зарубежная карта: пока не подключена */
.co-method.is-off {
  grid-column: 1 / -1;
  cursor: not-allowed;
  border-color: rgba(var(--pl-red), 0.3);
  background: rgba(var(--pl-red), 0.06);
}

.co-method.is-off .co-method-icon {
  background: rgba(var(--pl-red), 0.14);
  color: #ff8b78;
}

.co-method.is-off b {
  color: rgba(255, 255, 255, 0.7);
}

.co-method.is-off small {
  color: #ff8b78;
}

.co-sum {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.co-sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.co-sum div[hidden] {
  display: none;
}

.co-sum dt {
  color: var(--text-secondary);
}

.co-sum dd {
  margin: 0;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}

.co-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.co-total span {
  color: var(--text-secondary);
}

.co-total b {
  font-family: var(--pl-num);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-feature-settings: "tnum" 1;
}

.co-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: #f2f2f5;
  color: #0b0b0e;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.co-buy svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s;
}

.co-buy:hover:not(:disabled) {
  background: #fff;
}

.co-buy:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.co-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.co-warn {
  margin: -4px 0 0;
  font-size: 0.84rem;
  color: #ffb4a6;
}

.co-warn[hidden] {
  display: none;
}

.co-warn a,
.co-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co-legal {
  margin: -4px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .co {
    grid-template-columns: minmax(0, 1fr);
  }

  .co-pay {
    position: static;
  }
}

@media (max-width: 480px) {
  .co-plan {
    padding: 16px;
    gap: 12px;
  }

  .co-plan-price {
    font-size: 1.35rem;
  }

  .co-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  .co-pay {
    padding: 18px;
  }
}
