:root {
  --ink: #14243a;
  --muted: #4f667d;
  --line: #b9dff2;
  --paper: #f2fbff;
  --white: #ffffff;
  --sage: #0b8fb8;
  --moss: #087ca8;
  --coral: #2f6fe8;
  --sun: #1aa6cf;
  --warm: #8bd4f8;
  --aqua: #e7f8ff;
  --blush: #dbf4ff;
  --petal: #edf9ff;
  --peach: #e8f2ff;
  --mint: #d6f6ff;
  --shadow: 0 22px 55px rgba(15, 119, 170, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, #f8fdff 46%, var(--aqua) 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(242, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 119, 170, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral) 68%, var(--sun));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 119, 170, 0.22);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav a,
.nav-button {
  white-space: nowrap;
}

.nav a:hover,
.nav-button:hover {
  color: var(--moss);
}

.nav-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-radius: 8px;
}

.account-link:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.account-link small {
  max-width: 160px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-button {
  padding: 0;
  color: var(--moss);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 4vw, 56px);
  min-height: clamp(560px, 74vh, 760px);
  background:
    linear-gradient(112deg, rgba(5, 18, 35, 0.9) 0%, rgba(8, 70, 110, 0.64) 47%, rgba(47, 111, 232, 0.18) 100%),
    url("assets/photos/regression-portal-hero.jpg")
      center 35% / cover;
  color: var(--white);
}

.workspace-copy {
  align-self: end;
  max-width: 760px;
  padding-bottom: clamp(10px, 5vh, 58px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace .eyebrow {
  color: #d6f4ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 76px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 22px;
}

.workspace-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, #075f86, var(--moss) 44%, var(--coral));
  box-shadow: 0 14px 28px rgba(15, 119, 170, 0.24);
}

.button.primary:hover {
  background: linear-gradient(135deg, #064f70, #076f99 44%, #255ed3);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
}

.button.ghost {
  color: #075f86;
  background: #e7f8ff;
  border-color: #a8d7ee;
}

.button.ghost:hover {
  background: #d6f1ff;
}

.button.full {
  width: 100%;
}

.purchase-band {
  display: grid;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, var(--paper), #f8fdff);
}

.purchase-band .checkout {
  width: min(100%, 920px);
  justify-self: center;
}

.checkout {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 18px;
  padding: 20px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 249, 255, 0.96));
  border: 1px solid rgba(185, 223, 242, 0.84);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-header span {
  color: var(--muted);
}

.checkout-header strong {
  color: var(--moss);
  font-size: 26px;
}

.purchase-options {
  display: grid;
  gap: 10px;
}

.purchase-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.purchase-option:hover {
  transform: translateY(-1px);
  border-color: #78c6e6;
  box-shadow: 0 12px 26px rgba(15, 119, 170, 0.1);
}

.purchase-option.active {
  border-color: var(--moss);
  background: linear-gradient(135deg, var(--petal), var(--peach));
  box-shadow: inset 0 0 0 1px rgba(15, 119, 170, 0.14);
}

.purchase-option input {
  accent-color: var(--moss);
}

.purchase-option strong,
.purchase-option small {
  display: block;
}

.purchase-option small,
.checkout-note,
.record-card p,
.subscription-copy p,
.benefits span,
.steps p,
.footer span {
  color: var(--muted);
}

.purchase-option b {
  white-space: nowrap;
}

.checkout-note {
  margin: 0;
  font-size: 14px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats-band article {
  min-height: 126px;
  padding: 28px clamp(18px, 3vw, 42px);
  background: linear-gradient(180deg, var(--white), #f8fdff);
}

.stats-band article:nth-child(even) {
  background: linear-gradient(180deg, var(--petal), var(--peach));
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  color: var(--moss);
  font-size: 40px;
  line-height: 1;
}

.stats-band span {
  margin-top: 8px;
  color: var(--muted);
}

.section,
.feature-band,
.access-band,
.about-band {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section {
  background: linear-gradient(180deg, #f8fdff, var(--paper));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.filter {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-color: transparent;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.record-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 119, 170, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.record-card:hover {
  transform: translateY(-3px);
  border-color: #78c6e6;
  box-shadow: 0 22px 46px rgba(15, 119, 170, 0.16);
}

.record-media {
  position: relative;
}

.record-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.play-marker {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(8, 124, 168, 0.96), rgba(47, 111, 232, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-weight: 900;
}

.record-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--moss);
  background: var(--blush);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.record-card p {
  margin: 0;
}

.record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.record-actions strong {
  font-size: 20px;
  white-space: nowrap;
}

.record-actions .button {
  min-height: 42px;
  padding: 9px 14px;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: linear-gradient(135deg, var(--white), var(--petal));
}

.about-band h2,
.section-heading h2 {
  color: #15395f;
}

.about-band p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.about-band h3 {
  margin-top: 18px;
  color: #15395f;
}

.about-band img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.about-points article {
  min-height: 136px;
  padding: 16px;
  background: linear-gradient(180deg, var(--white), var(--petal));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points span {
  margin-top: 8px;
  color: var(--muted);
}

.reviews-section {
  background: linear-gradient(180deg, var(--petal), var(--peach) 52%, var(--aqua));
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.review-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--moss) transparent;
}

.review-card {
  flex: 0 0 clamp(220px, 26vw, 330px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(15, 119, 170, 0.1);
  scroll-snap-align: start;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: #78c6e6;
  box-shadow: 0 22px 46px rgba(15, 119, 170, 0.16);
}

.review-card img {
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  object-fit: contain;
  object-position: top center;
  transition: transform 180ms ease;
}

.review-card:hover img {
  transform: scale(1.02);
}

.review-modal {
  width: min(94vw, 760px);
}

.review-modal img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.catalog-secondary {
  color: var(--ink);
  background: var(--petal);
  border-color: var(--line);
  box-shadow: none;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: linear-gradient(135deg, var(--petal) 0%, #f8fdff 46%, var(--peach) 100%);
}

.feature-band img,
.subscription-layout img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.feature-band img,
.subscription-layout img {
  filter: hue-rotate(176deg) saturate(0.86) brightness(1.02);
}

.feature-band p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-radius: 4px;
  content: "";
}

.inline-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.inline-offer strong {
  font-size: 30px;
}

.subscription {
  background: linear-gradient(180deg, var(--white), #f8fdff);
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.subscription-copy p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.benefits article {
  min-height: 142px;
  padding: 18px;
  background: linear-gradient(180deg, var(--white), var(--petal));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits span {
  margin-top: 8px;
}

.access-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  background: linear-gradient(180deg, var(--white), var(--aqua));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  min-height: 220px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 119, 170, 0.08);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin-bottom: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-radius: 8px;
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 20px;
}

.steps p {
  margin: 10px 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(135deg, #0e2a44, #075e88);
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.order-modal {
  width: min(94vw, 560px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-modal::backdrop {
  background: rgba(8, 23, 43, 0.62);
}

.order-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(180deg, var(--white), #f8fdff);
}

.order-form h2 {
  padding-right: 36px;
  font-size: 34px;
}

.order-form p {
  margin: 0;
  color: var(--muted);
}

.order-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: #f8fdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-form textarea {
  min-height: 108px;
  resize: vertical;
}

.order-form small {
  color: var(--muted);
}

.form-message {
  display: none;
  margin: 0;
  padding: 12px;
  color: #075f86;
  background: var(--petal);
  border: 1px solid #9fd3ec;
  border-radius: 8px;
  font-weight: 800;
}

.form-message.active {
  display: block;
}

.form-message.error {
  color: #8a2e2e;
  background: #fff3f3;
  border-color: #efb7b7;
}

.checkout-modal {
  width: min(94vw, 720px);
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checkout-steps span {
  min-height: 38px;
  padding: 9px 10px;
  color: var(--muted);
  text-align: center;
  background: var(--petal);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.checkout-steps span.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-color: transparent;
}

.checkout-steps span.done {
  color: #075f86;
  background: var(--mint);
  border-color: #94d7ec;
}

.checkout-step {
  display: grid;
  gap: 14px;
}

.checkout-step[hidden] {
  display: none;
}

.payment-progress {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--petal), var(--peach));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-progress strong {
  color: var(--ink);
}

.payment-progress ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.bank-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.bank-details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.bank-details dt {
  color: var(--muted);
  font-weight: 800;
}

.bank-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-player-modal {
  width: min(94vw, 920px);
}

.video-player-modal video {
  width: 100%;
  max-height: 68vh;
  background: var(--ink);
  border-radius: 8px;
}

.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(9, 28, 51, 0.68), rgba(8, 124, 168, 0.48), rgba(47, 111, 232, 0.2)),
    url("assets/photos/olena-bukhantsova.jpg") center 18% / cover;
}

.cabinet-hero h1 {
  max-width: 760px;
}

.cabinet-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.auth-hero {
  min-height: calc(100vh - 96px);
}

.cabinet-shell {
  background:
    linear-gradient(180deg, rgba(219, 244, 255, 0.76), rgba(231, 248, 255, 0.72)),
    var(--paper);
}

.cabinet-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(9, 28, 51, 0.76), rgba(8, 124, 168, 0.56), rgba(47, 111, 232, 0.24)),
    url("assets/photos/olena-yellow-jacket.jpg") center 22% / cover;
}

.cabinet-dashboard-hero h1 {
  max-width: 760px;
}

.cabinet-dashboard-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.cabinet-summary {
  display: grid;
  gap: 12px;
}

.cabinet-stat,
.offer-card,
.order-row {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cabinet-stat {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(185, 223, 242, 0.88);
}

.cabinet-stat span,
.offer-card span,
.order-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-stat strong {
  overflow-wrap: anywhere;
  color: var(--moss);
  font-size: 20px;
}

.cabinet-loading {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(185, 223, 242, 0.88);
  border-radius: 8px;
}

.cabinet-section {
  background: transparent;
}

.cabinet-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  background: linear-gradient(180deg, var(--white), var(--petal));
  border: 1px solid var(--line);
}

.offer-card h3,
.order-row h3 {
  margin: 0;
}

.offer-card p,
.order-row p {
  margin: 0;
  color: var(--muted);
}

.offer-card span {
  color: var(--coral);
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.order-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.order-row-actions .button {
  min-height: 40px;
  padding: 8px 12px;
}

.order-row strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss), var(--coral));
  border-radius: 8px;
  font-size: 13px;
}

.order-row strong[data-status="pending"] {
  color: var(--ink);
  background: var(--peach);
}

.order-row strong[data-status="payment_sent"] {
  background: linear-gradient(135deg, var(--sage), var(--moss));
}

.password-toggle {
  justify-self: start;
  margin-top: -6px;
}

.cabinet-auth {
  display: grid;
  gap: 14px;
}

.cabinet-login {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 249, 255, 0.94));
  border: 1px solid rgba(185, 223, 242, 0.84);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cabinet-login h2 {
  font-size: 24px;
}

.cabinet-login label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.cabinet-login input {
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: #f8fdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cabinet-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.cabinet-switch a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.register-success strong {
  display: block;
  color: var(--moss);
  font-size: 46px;
  line-height: 1;
}

.register-success p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.access-code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(135deg, var(--petal), var(--peach));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 119, 170, 0.08);
}

.access-code-panel[hidden] {
  display: none;
}

.access-code-panel span,
.access-code-panel strong,
.access-code-panel p {
  display: block;
}

.access-code-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-code-panel strong {
  margin-top: 4px;
  color: var(--moss);
  font-size: 38px;
  letter-spacing: 0;
}

.access-code-panel p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.protected-player {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 8px;
}

.protected-player video {
  width: 100%;
  max-height: 68vh;
  background: var(--ink);
}

.video-watermark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(8, 23, 43, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  pointer-events: none;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, var(--white), var(--petal));
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .workspace,
  .feature-band,
  .subscription-layout,
  .access-band,
  .about-band,
  .cabinet-hero,
  .cabinet-dashboard-hero,
  .cabinet-offers {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
  }

  .checkout {
    align-self: stretch;
  }
}

@media (max-width: 980px) {
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a,
  .nav-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 38px;
  }

  .account-link {
    min-height: 38px;
    padding: 8px 10px;
  }

  .stats-band,
  .record-grid,
  .benefits,
  .steps,
  .about-points,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band img,
  .subscription-layout img {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: sticky;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand small {
    display: none;
  }

  .nav {
    width: 100%;
    font-size: 14px;
  }

  .account-link small {
    max-width: 120px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .workspace {
    padding-top: 26px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .workspace-copy p:not(.eyebrow),
  .cabinet-hero p:not(.eyebrow),
  .cabinet-dashboard-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .workspace,
  .section,
  .feature-band,
  .access-band,
  .about-band,
  .cabinet-hero,
  .cabinet-dashboard-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quick-actions {
    gap: 10px;
  }

  .quick-actions .button {
    width: 100%;
  }

  .checkout {
    padding: 16px;
  }

  .checkout-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .checkout-header strong {
    font-size: 24px;
  }

  .purchase-option {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    padding: 12px;
  }

  .purchase-option b {
    grid-column: 2;
  }

  .record-grid,
  .benefits,
  .steps,
  .about-points,
  .review-grid,
  .cabinet-offers {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band article {
    min-height: 112px;
    padding: 18px 14px;
  }

  .stats-band strong {
    font-size: 32px;
  }

  .section-heading {
    gap: 14px;
  }

  .filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
  }

  .record-body {
    padding: 16px;
  }

  .record-actions,
  .inline-offer,
  .payment-actions,
  .access-code-panel,
  .order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .record-actions .button,
  .inline-offer .button,
  .payment-actions .button,
  .access-code-panel .button {
    width: 100%;
  }

  .feature-band img,
  .subscription-layout img {
    min-height: 260px;
    max-height: 360px;
  }

  .benefits article,
  .steps li,
  .about-points article {
    min-height: auto;
  }

  .review-card {
    flex-basis: min(78vw, 280px);
  }

  .review-card img {
    height: min(66vh, 500px);
  }

  .order-modal {
    width: 100vw;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    overflow: auto;
    border-radius: 8px 8px 0 0;
  }

  .order-form {
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  }

  .order-form h2 {
    font-size: 30px;
  }

  .checkout-steps {
    gap: 6px;
  }

  .checkout-steps span {
    padding: 8px 6px;
    font-size: 12px;
  }

  .video-player-modal video,
  .protected-player video {
    max-height: 58vh;
  }

  .icon-button {
    top: 10px;
    right: 10px;
  }

  .cabinet-summary {
    gap: 10px;
  }

  .cabinet-stat,
  .offer-card,
  .order-row {
    padding: 14px;
  }

  .order-row-actions {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .order-row-actions .button {
    width: 100%;
  }

  .bank-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
