/**
 * Test Series — landing + checkout (navy + gold, light theme).
 */

body.sc-page-test-series .main-banner {
  display: none !important;
}

.sc-ts-page {
  --sc-navy: #050f2e;
  --sc-navy-mid: #0c1f4d;
  --sc-gold: #d4a853;
  --sc-gold-deep: #b8892f;
  --sc-text: #0f172a;
  --sc-muted: #5c6578;
  --sc-soft: #f3f5fb;
  --sc-line: rgba(12, 31, 77, 0.1);
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  color: var(--sc-text);
  background: linear-gradient(180deg, #eef1f8 0%, #fafbfd 50%, #f5f7fc 100%);
  padding-bottom: 64px;
}

.sc-ts-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 20px) clamp(14px, 4vw, 24px) 0;
}

/* Landing has no JS observer — reveal must be visible without .is-visible */
.sc-ts-page--landing .sc-ts-reveal {
  opacity: 1;
  transform: none;
}

/* Post-payment access page — no JS reveal */
.sc-ts-page--access .sc-ts-reveal {
  opacity: 1;
  transform: none;
}

.sc-ts-access-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(14px, 4vw, 24px) 48px;
}

.sc-ts-access-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--sc-line);
  box-shadow: 0 16px 48px rgba(5, 15, 46, 0.1);
  overflow: hidden;
  border-top: 3px solid var(--sc-gold);
}

.sc-ts-access-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--sc-line);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.08) 0%, #fff 100%);
}

.sc-ts-access-head__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  color: var(--sc-navy-mid);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sc-ts-access-body {
  padding: 22px 24px 28px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sc-text);
}

.sc-ts-access-lead {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--sc-navy-mid);
}

.sc-ts-access-body p {
  margin: 0 0 14px;
}

.sc-ts-access-close {
  margin-bottom: 22px !important;
}

.sc-ts-access-actions {
  margin-top: 8px;
}

.sc-ts-btn--access {
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  color: var(--sc-navy);
  background: linear-gradient(135deg, #f2e6bc 0%, var(--sc-gold) 45%, var(--sc-gold-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(5, 15, 46, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.sc-ts-btn--access:hover {
  transform: translateY(-2px);
  color: #030a1f;
}

/* ----- Landing (/test-series/) — dual products ----- */
.sc-ts-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .sc-ts-products-grid {
    grid-template-columns: 1fr;
  }
}

.sc-ts-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  padding: clamp(14px, 2.5vw, 20px);
  box-shadow: 0 14px 40px rgba(5, 15, 46, 0.08);
  border-top: 3px solid var(--sc-gold);
}

.sc-ts-product-card__head {
  margin-bottom: 12px;
  min-height: 5.75rem;
}

.sc-ts-product-card__title {
  margin: 0 0 6px;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 800;
  color: var(--sc-navy-mid);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sc-ts-product-card__tagline {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--sc-navy-mid);
  font-weight: 600;
  opacity: 0.88;
}

.sc-ts-product-card__figure {
  margin: 0 0 14px;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-ts-product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sc-ts-product-card .sc-ts-price--register {
  flex: 0 0 auto;
  width: 100%;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
}

.sc-ts-product-card .sc-ts-price__box {
  flex: 1 1 auto;
  min-height: 16.5rem;
  display: flex;
  flex-direction: column;
}

.sc-ts-product-card .sc-ts-landing-features {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 14.5rem;
  margin-bottom: 0;
}

.sc-ts-product-card .sc-ts-features {
  flex: 1 1 auto;
}

.sc-ts-product-card__actions {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 14px;
}

/* Legacy single-column landing (unused) */
.sc-ts-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: start;
}

@media (max-width: 900px) {
  .sc-ts-landing-grid {
    grid-template-columns: 1fr;
  }
}

.sc-ts-landing-col--media {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sc-ts-landing-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  background: #fff;
  box-shadow: 0 16px 44px rgba(5, 15, 46, 0.1);
}

.sc-ts-landing-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.sc-ts-btn--buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 28px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--sc-navy);
  background: linear-gradient(145deg, #f8ecc4 0%, #e8c878 28%, var(--sc-gold) 52%, var(--sc-gold-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 32px rgba(184, 137, 47, 0.28),
    0 4px 12px rgba(5, 15, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.sc-ts-btn--buy:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
  box-shadow:
    0 16px 40px rgba(184, 137, 47, 0.38),
    0 6px 16px rgba(5, 15, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #030a1f;
}

.sc-ts-btn--buy-block {
  width: 100%;
  text-align: center;
}

.sc-ts-landing-col--aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sc-ts-price--register {
  margin: 0;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(12, 31, 77, 0.1);
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  box-shadow: 0 10px 32px rgba(5, 15, 46, 0.08);
  border-top: 3px solid var(--sc-gold);
}

.sc-ts-price__head {
  margin-bottom: 10px;
}

.sc-ts-price__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sc-navy-mid);
  letter-spacing: -0.02em;
}

.sc-ts-price__box--sale {
  padding: 12px 14px 14px;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 55%, #f3f6fb 100%);
  border-color: rgba(12, 31, 77, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sc-ts-price__box {
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fafbfd;
}

.sc-ts-price__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(12, 31, 77, 0.1);
}

.sc-ts-price__offer-tag {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--sc-gold-deep);
}

.sc-ts-price__badge-discount {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sc-navy);
  background: linear-gradient(135deg, #f2e6bc 0%, var(--sc-gold) 55%, #e0b85a 100%);
  border: 1px solid rgba(184, 137, 47, 0.5);
  box-shadow: 0 3px 14px rgba(212, 168, 83, 0.35);
  white-space: nowrap;
}

.sc-ts-price__breakup {
  display: flex;
  flex-direction: column;
}

.sc-ts-price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(12, 31, 77, 0.1);
}

.sc-ts-price__row--offer {
  border-bottom-color: rgba(12, 31, 77, 0.14);
}

.sc-ts-price__row--total {
  border-bottom: none;
}

.sc-ts-price__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--sc-muted);
  text-align: left;
}

.sc-ts-price__val {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--sc-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sc-ts-price__val--strike {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #94a3b8;
  -webkit-text-decoration-color: #94a3b8;
}

.sc-ts-price__val--offer {
  font-size: 15px;
  font-weight: 800;
  color: var(--sc-navy);
  letter-spacing: -0.02em;
}

@media (max-width: 420px) {
  .sc-ts-price__topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sc-ts-price__offer-tag {
    flex: 1 1 100%;
    text-align: left;
  }

  .sc-ts-price__badge-discount {
    margin-left: auto;
  }
}

.sc-ts-price__divider {
  height: 1px;
  margin: 6px 0 4px;
  background: linear-gradient(90deg, transparent, rgba(12, 31, 77, 0.12), transparent);
}

.sc-ts-price__row--total {
  padding-top: 8px;
  margin-top: 2px;
  font-size: 14px;
}

.sc-ts-price__row--total .sc-ts-price__label {
  font-weight: 800;
  color: var(--sc-navy-mid);
}

.sc-ts-price__val--total {
  font-size: 17px;
  font-weight: 800;
  color: var(--sc-navy);
}

.sc-ts-price__note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--sc-muted);
}

.sc-ts-landing-features {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 8px 28px rgba(5, 15, 46, 0.06);
}

.sc-ts-landing-features__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--sc-navy-mid);
}

.sc-ts-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sc-ts-features--check li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sc-text);
}

.sc-ts-features--check li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sc-gold-deep);
}

/* ----- Checkout (/test-series-login/) ----- */
.sc-ts-page--login {
  min-height: 60vh;
}

.sc-ts-login-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 24px) clamp(14px, 4vw, 20px) 40px;
}

.sc-ts-login-back {
  margin: 0 0 14px;
  font-size: 0.88rem;
}

.sc-ts-login-back a {
  color: var(--sc-gold-deep);
  font-weight: 700;
  text-decoration: none;
}

.sc-ts-login-back a:hover {
  text-decoration: underline;
}

.sc-ts-login-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--sc-line);
  box-shadow: 0 14px 44px rgba(5, 15, 46, 0.08);
  overflow: hidden;
  border-top: 3px solid var(--sc-gold);
}

.sc-ts-login-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--sc-line);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.07) 0%, #fff 100%);
}

.sc-ts-login-head__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sc-navy-mid);
  letter-spacing: -0.02em;
}

.sc-ts-login-head__hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--sc-muted);
  line-height: 1.5;
}

.sc-ts-login-selected {
  padding: 12px 20px;
  border-bottom: 1px solid var(--sc-line);
  background: #fafbfd;
}

.sc-ts-login-selected__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-ts-login-selected__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sc-navy-mid);
  line-height: 1.35;
}

.sc-ts-login-body {
  padding: 18px 20px 22px;
}

/* ----- Form shared ----- */
.sc-ts-field {
  margin-bottom: 12px;
}

.sc-ts-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sc-navy-mid);
  margin-bottom: 4px;
}

.sc-ts-field .req {
  color: #b91c1c;
}

.sc-ts-field input[type="text"],
.sc-ts-field input[type="tel"],
.sc-ts-field input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(12, 31, 77, 0.14);
  font-size: 0.95rem;
  font-family: inherit;
}

.sc-ts-field.err input {
  border-color: #dc2626;
}

.sc-ts-field .sc-ts-err {
  display: none;
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 4px;
}

.sc-ts-field.err .sc-ts-err {
  display: block;
}

.sc-ts-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 4px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.sc-ts-consent input {
  margin-top: 3px;
}

.sc-ts-consent.err label {
  color: #b91c1c;
}

.sc-ts-form-actions {
  margin-top: 16px;
}

.sc-ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.sc-ts-btn--primary {
  background: linear-gradient(135deg, var(--sc-navy-mid) 0%, var(--sc-navy) 100%);
  color: #fff;
  border: 1px solid rgba(212, 168, 83, 0.35);
  box-shadow: 0 8px 24px rgba(5, 15, 46, 0.2);
  width: 100%;
  min-height: 48px;
}

.sc-ts-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.sc-ts-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sc-ts-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sc-ts-spin 0.7s linear infinite;
  display: none;
}

.sc-ts-btn.is-loading .sc-ts-spinner {
  display: inline-block;
}

@keyframes sc-ts-spin {
  to {
    transform: rotate(360deg);
  }
}

.sc-ts-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.sc-ts-msg--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sc-ts-msg--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

.sc-ts-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.sc-ts-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sc-ts-reveal,
  .sc-ts-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
