@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;700;800&display=swap");

:root {
  color-scheme: dark;
  --void: #080807;
  --charcoal: #11100f;
  --smoke: #1b1917;
  --ash: #8b8174;
  --cream: #f3eadb;
  --muted-cream: #cfc2ad;
  --gold: #d4af68;
  --old-gold: #a9823d;
  --wine: #6d1f2a;
  --blood: #a9343f;
  --line: rgba(243, 234, 219, 0.14);
  --line-strong: rgba(212, 175, 104, 0.32);
  --surface: rgba(243, 234, 219, 0.055);
  --surface-strong: rgba(243, 234, 219, 0.095);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(109, 31, 42, 0.12), transparent 360px),
    repeating-linear-gradient(90deg, rgba(243, 234, 219, 0.018) 0 1px, transparent 1px 96px),
    var(--void);
  color: var(--cream);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--cream);
  padding: 15px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(207, 194, 173, 0.46);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  background: rgba(8, 8, 7, 0.92);
  box-shadow: 0 0 0 4px rgba(212, 175, 104, 0.12);
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-cream);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(76px, 6.9vw, 122px);
  font-weight: 600;
}

h1 span {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: lineRise 860ms cubic-bezier(0.18, 0.84, 0.24, 1) forwards;
}

h1 span:nth-child(2) {
  animation-delay: 130ms;
}

h2 {
  margin-bottom: 20px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 600;
}

h3 {
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 650;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.flash-stack {
  position: fixed;
  top: 92px;
  right: max(24px, calc((100% - var(--max-width)) / 2));
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 48px));
}

.flash {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 16, 15, 0.94);
  box-shadow: var(--shadow);
  color: var(--cream);
  padding: 14px 16px;
  font-weight: 700;
}

.flash--alert {
  border-color: rgba(169, 52, 63, 0.68);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
}

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

.brand__mark {
  display: grid;
  position: relative;
  width: 44px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 175, 104, 0.2), rgba(8, 8, 7, 0.86)),
    rgba(17, 16, 15, 0.92);
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.brand__mark::before {
  inset: 5px;
  border: 1px solid rgba(212, 175, 104, 0.18);
  border-radius: 6px;
}

.brand__mark::after {
  width: 18px;
  height: 1px;
  background: rgba(212, 175, 104, 0.58);
  transform: rotate(-48deg);
}

.brand__text {
  color: var(--cream);
  font-weight: 700;
}

.catalog-menu {
  position: relative;
}

.catalog-menu summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(243, 234, 219, 0.14);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.08);
  color: var(--cream);
  cursor: pointer;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.catalog-menu summary::-webkit-details-marker {
  display: none;
}

.catalog-menu summary:hover,
.catalog-menu[open] summary {
  border-color: rgba(212, 175, 104, 0.5);
  background: rgba(212, 175, 104, 0.12);
  color: var(--gold);
}

.catalog-menu summary i,
.catalog-menu summary i::before,
.catalog-menu summary i::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.catalog-menu summary i {
  position: relative;
}

.catalog-menu summary i::before,
.catalog-menu summary i::after {
  position: absolute;
  left: 0;
}

.catalog-menu summary i::before {
  top: -6px;
}

.catalog-menu summary i::after {
  top: 6px;
}

.catalog-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  display: grid;
  min-width: 230px;
  border: 1px solid rgba(243, 234, 219, 0.14);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.94);
  box-shadow: var(--shadow);
  padding: 10px;
}

.catalog-menu__panel::before {
  position: absolute;
  top: -7px;
  left: 38px;
  width: 12px;
  height: 12px;
  background: rgba(243, 234, 219, 0.94);
  content: "";
  transform: rotate(45deg);
}

.catalog-menu__panel a {
  position: relative;
  z-index: 1;
  border-radius: 7px;
  color: #15110d;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.catalog-menu__panel a:hover {
  background: rgba(212, 175, 104, 0.18);
  color: #090806;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted-cream);
  font-size: 14px;
}

.site-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #090806;
  padding: 0 22px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #f1d28d;
  background: #f1d28d;
}

.button--secondary {
  background: transparent;
  color: var(--cream);
}

.button--secondary:hover {
  background: rgba(243, 234, 219, 0.08);
  color: var(--cream);
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.button--ghost {
  border-color: rgba(243, 234, 219, 0.24);
  background: rgba(243, 234, 219, 0.04);
  color: var(--cream);
}

.button--ghost:hover {
  border-color: rgba(212, 175, 104, 0.58);
  background: rgba(212, 175, 104, 0.12);
  color: var(--cream);
}

.button--full {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.06);
  color: var(--cream);
  cursor: pointer;
}

.menu-button span:not(.visually-hidden) {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 86px 24px auto;
  z-index: 55;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 11, 10, 0.96);
  padding: 16px;
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.button) {
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  color: var(--muted-cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(830px, calc(100svh - 78px));
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.78fr);
  align-items: start;
  gap: 72px;
  padding-top: clamp(72px, 8vh, 112px);
  padding-bottom: 44px;
}

.hero::before {
  position: absolute;
  inset: -118px calc((100vw - 100%) / -2) -120px;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.86), rgba(8, 8, 7, 0.58) 42%, rgba(8, 8, 7, 0.9)),
    linear-gradient(180deg, rgba(8, 8, 7, 0.22), rgba(8, 8, 7, 0.88)),
    url("/assets/anya-feed-05-8ddfdb67.png");
  background-position: center;
  background-size: cover;
  content: "";
  filter: grayscale(0.2) saturate(0.62) contrast(1.08);
  opacity: 0.24;
}

.hero::after {
  position: absolute;
  inset: 88px 18% auto 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 104, 0.42), transparent);
  content: "";
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__ghost {
  position: absolute;
  top: -26px;
  left: -8px;
  color: rgba(243, 234, 219, 0.045);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 13vw, 204px);
  font-weight: 600;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__vertical {
  position: absolute;
  top: 150px;
  right: -58px;
  color: rgba(212, 175, 104, 0.38);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right top;
  white-space: nowrap;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  animation: heroReveal 760ms ease both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 16px;
  color: var(--muted-cream);
  font-size: 23px;
  line-height: 1.42;
}

.hero__knife {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.hero__knife::before {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}

.hero__signals span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.04);
  color: var(--muted-cream);
  padding: 8px 12px;
  font-size: 13px;
}

.portrait-portal {
  position: relative;
  width: min(100%, 620px);
  justify-self: end;
  margin: 0;
  animation: portalReveal 900ms 140ms ease both, portalDrift 7s 1.2s ease-in-out infinite;
}

.portrait-portal::before {
  position: absolute;
  inset: -24px 26px 30px -26px;
  border: 1px solid rgba(212, 175, 104, 0.24);
  content: "";
  transform: translate(14px, 14px);
}

.portrait-portal__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 86 / 100;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 175, 104, 0.1), transparent 48%),
    var(--charcoal);
  box-shadow: var(--shadow);
}

.portrait-portal__image::before {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(243, 234, 219, 0.12);
  content: "";
  pointer-events: none;
}

.portrait-portal__image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.08), rgba(8, 8, 7, 0.38) 76%, rgba(8, 8, 7, 0.82)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.12), transparent 38%, rgba(8, 8, 7, 0.22));
  content: "";
}

.portrait-portal__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 18% 0%;
  transform: scale(1.38);
  transform-origin: 14% 0%;
  filter: saturate(0.64) contrast(1.08) brightness(0.78);
}

.portrait-portal figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  color: var(--cream);
}

.portrait-portal__seal {
  position: absolute;
  top: 42px;
  right: 16px;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: 128px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  padding: 14px;
  backdrop-filter: blur(16px);
}

.portrait-portal__seal span {
  color: var(--muted-cream);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portrait-portal__seal strong {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 0.9;
}

.portrait-portal figcaption span {
  color: var(--muted-cream);
  font-size: 14px;
}

.portrait-portal figcaption strong {
  max-width: 180px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.manifest {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 720px;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 92px;
  padding-bottom: 92px;
}

.manifest::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(212, 175, 104, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(109, 31, 42, 0.1), transparent 38%);
  content: "";
}

.manifest::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 104, 0.28), transparent);
  content: "";
}

.manifest__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.manifest__image::before {
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(243, 234, 219, 0.12);
  content: "";
}

.manifest__image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.02), rgba(8, 8, 7, 0.76)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.1), transparent);
  content: "";
}

.manifest__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 52%;
  filter: saturate(0.62) contrast(1.08) brightness(0.7);
  transform: scale(1.08);
}

.manifest__copy {
  position: relative;
  max-width: 900px;
}

.manifest__copy::before {
  position: absolute;
  top: -42px;
  left: -32px;
  width: 86px;
  height: 86px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  content: "";
}

.manifest__line {
  max-width: 920px;
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5vw, 82px);
  font-weight: 600;
  line-height: 0.95;
}

.manifest__after {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted-cream);
  font-size: 23px;
  line-height: 1.42;
}

.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.18, 0.84, 0.24, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-section {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.028), rgba(8, 8, 7, 0)),
    linear-gradient(90deg, rgba(109, 31, 42, 0.12), transparent 42%);
  padding: 92px 0 96px;
}

.story-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 104, 0.22), transparent);
  content: "";
}

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.42fr);
  gap: 46px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 54px;
  align-items: end;
}

.story-intro__copy {
  max-width: 790px;
}

.story-intro h2 {
  max-width: 790px;
  margin-bottom: 0;
  font-size: clamp(52px, 5.2vw, 78px);
}

.story-intro__text {
  margin: 0 0 8px;
  border-left: 1px solid rgba(212, 175, 104, 0.32);
  color: var(--muted-cream);
  padding-left: 22px;
  font-size: 20px;
  line-height: 1.44;
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 0.92fr);
  gap: 48px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.story-visual {
  position: sticky;
  top: 102px;
  display: grid;
  height: clamp(570px, 72svh, 740px);
  min-height: 570px;
  align-self: start;
  place-items: center;
}

.story-scene {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(212, 175, 104, 0.16), transparent 32%),
    repeating-linear-gradient(0deg, rgba(243, 234, 219, 0.035) 0 1px, transparent 1px 44px),
    var(--charcoal);
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 30px;
  transform: translateY(18px) scale(0.985);
  transition: opacity 560ms ease, transform 620ms cubic-bezier(0.18, 0.84, 0.24, 1), filter 560ms ease;
}

.story-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-scene::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(243, 234, 219, 0.08);
  content: "";
}

.story-scene::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.08), rgba(8, 8, 7, 0.64)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.04), rgba(8, 8, 7, 0.3));
  content: "";
}

.story-scene span,
.story-scene strong {
  position: relative;
  z-index: 1;
}

.story-scene span {
  width: fit-content;
  border: 1px solid rgba(212, 175, 104, 0.28);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.54);
  margin-bottom: 18px;
  color: var(--gold);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-scene strong {
  display: block;
  max-width: 420px;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 0.96;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms 120ms ease, transform 620ms 120ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.story-scene small {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-top: 1px solid rgba(212, 175, 104, 0.34);
  margin-top: 22px;
  color: var(--muted-cream);
  padding-top: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-scene.is-active strong {
  opacity: 1;
  transform: translateY(0);
}

.story-scene--script {
  background:
    linear-gradient(135deg, rgba(212, 175, 104, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.08), rgba(8, 8, 7, 0.78)),
    url("/assets/anya-feed-02-7110db92.png"),
    var(--charcoal);
  background-position: center;
  background-size: cover;
}

.story-scene--shadow {
  background:
    linear-gradient(135deg, rgba(8, 8, 7, 0.26), rgba(109, 31, 42, 0.42)),
    url("/assets/anya-feed-03-ac84bcf8.png"),
    var(--charcoal);
  background-position: center;
  background-size: cover;
}

.story-scene--price {
  background:
    linear-gradient(145deg, rgba(212, 175, 104, 0.22), rgba(8, 8, 7, 0.58)),
    url("/assets/anya-feed-04-942e65f4.png"),
    var(--charcoal);
  background-position: center;
  background-size: cover;
}

.story-scene--choice {
  background:
    linear-gradient(155deg, rgba(243, 234, 219, 0.18), rgba(8, 8, 7, 0.74)),
    url("/assets/anya-feed-05-8ddfdb67.png"),
    var(--charcoal);
  background-position: center;
  background-size: cover;
}

.story-progress {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.story-progress span {
  min-height: 34px;
  border-top: 1px solid rgba(243, 234, 219, 0.16);
  color: rgba(207, 194, 173, 0.54);
  padding-top: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease;
}

.story-progress span.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

.story-steps {
  display: grid;
  position: relative;
  align-content: start;
  gap: 0;
  border-left: 1px solid rgba(243, 234, 219, 0.1);
  padding: 6vh 0 6vh 34px;
}

.story-step {
  position: relative;
  display: flex;
  min-height: clamp(340px, 50svh, 480px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 38px 0 38px 32px;
  transition: border-color 260ms ease, background-color 260ms ease, opacity 260ms ease;
}

.story-step::before {
  position: absolute;
  top: 50%;
  left: -41px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(212, 175, 104, 0.42);
  border-radius: 999px;
  background: var(--void);
  content: "";
  transform: translateY(-50%);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.story-step::after {
  position: absolute;
  top: 50%;
  left: -34px;
  width: 26px;
  height: 1px;
  background: rgba(212, 175, 104, 0.26);
  content: "";
}

.story-step:last-child {
  border-bottom: 0;
}

.story-step.is-active {
  border-color: rgba(212, 175, 104, 0.18);
  background: linear-gradient(90deg, rgba(212, 175, 104, 0.055), transparent 62%);
}

.story-step.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 104, 0.12);
}

.story-step .eyebrow {
  margin-bottom: 14px;
}

.story-step > * {
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.story-step:not(.is-active) > * {
  opacity: 0.42;
  transform: translateY(18px);
}

.story-step.is-active > * {
  opacity: 1;
  transform: translateY(0);
}

.story-step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.story-step__meta span {
  border: 1px solid rgba(212, 175, 104, 0.22);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.035);
  color: var(--muted-cream);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-step h2 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 0.94;
}

.story-step p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted-cream);
  font-size: 20px;
  line-height: 1.46;
}

.story-step .story-step__cue {
  max-width: 520px;
  border-top: 1px solid rgba(212, 175, 104, 0.24);
  margin-top: 22px;
  color: var(--cream);
  padding-top: 18px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.08;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-cream);
  font-size: 19px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.signals-section {
  position: relative;
  isolation: isolate;
  padding-top: 132px;
}

.signals-section::before {
  position: absolute;
  inset: 56px calc((100vw - 100%) / -2) auto;
  z-index: -1;
  height: 620px;
  background:
    linear-gradient(90deg, rgba(109, 31, 42, 0.16), transparent 38%, rgba(212, 175, 104, 0.07)),
    linear-gradient(180deg, rgba(243, 234, 219, 0.035), transparent 72%);
  content: "";
}

.signals-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.36fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}

.signals-heading h2 {
  max-width: 790px;
  margin-bottom: 0;
}

.signals-heading__aside {
  margin: 0 0 6px;
  border-left: 1px solid rgba(212, 175, 104, 0.34);
  color: var(--muted-cream);
  padding-left: 22px;
  font-size: 19px;
  line-height: 1.44;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  perspective: 1200px;
}

.signal-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 292px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(243, 234, 219, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.055), rgba(243, 234, 219, 0.018)),
    rgba(17, 16, 15, 0.74);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  padding: 27px 24px 24px;
  transform: translateY(0) rotateX(0);
  transition:
    border-color 320ms ease,
    background-color 320ms ease,
    box-shadow 320ms ease,
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.signal-card::before {
  position: absolute;
  top: -38px;
  right: 12px;
  color: rgba(243, 234, 219, 0.045);
  content: attr(data-number);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 152px;
  font-weight: 700;
  line-height: 0.9;
  pointer-events: none;
  transition: color 420ms ease, opacity 420ms ease, transform 620ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.signal-card::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 20%, rgba(212, 175, 104, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(109, 31, 42, 0.12), transparent 58%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease;
}

.signal-card:hover,
.signal-card.is-active {
  border-color: rgba(212, 175, 104, 0.46);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(-7px) rotateX(2deg);
}

.signal-card:hover::after,
.signal-card.is-active::after {
  opacity: 1;
}

.signal-card:hover::before,
.signal-card.is-active::before {
  color: rgba(212, 175, 104, 0.16);
  opacity: 1;
  transform: translateY(8px) scale(1.04);
}

.signal-card > * {
  position: relative;
  z-index: 1;
}

.signal-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signal-card__top span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.signal-card__top i {
  display: block;
  width: 46px;
  height: 1px;
  background: rgba(212, 175, 104, 0.4);
  transform: scaleX(0.46);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.18, 0.84, 0.24, 1), background-color 220ms ease;
}

.signal-card:hover .signal-card__top i,
.signal-card.is-active .signal-card__top i {
  background: var(--gold);
  transform: scaleX(1);
}

.signal-card p {
  max-width: 330px;
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 2.7vw, 43px);
  font-weight: 600;
  line-height: 1;
  transition: transform 420ms cubic-bezier(0.18, 0.84, 0.24, 1), color 260ms ease;
}

.signal-card:hover p,
.signal-card.is-active p {
  color: #fff7ea;
  transform: translateY(-4px);
}

.signal-card small {
  width: fit-content;
  border-top: 1px solid rgba(243, 234, 219, 0.14);
  color: rgba(207, 194, 173, 0.64);
  padding-top: 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 260ms ease, color 260ms ease;
}

.signal-card:hover small,
.signal-card.is-active small {
  border-color: rgba(212, 175, 104, 0.42);
  color: var(--gold);
}

.services-section {
  padding-top: 88px;
}

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

.service-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.075), rgba(243, 234, 219, 0.03)),
    var(--charcoal);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.service-card__meta {
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card p:not(.service-card__meta) {
  color: var(--muted-cream);
}

.service-card span {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--cream);
  font-weight: 800;
}

.voice-section {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.78fr);
  gap: 72px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 52px auto 0;
  padding: 108px 0;
}

.voice-section__image {
  overflow: hidden;
  align-self: stretch;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
}

.voice-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.75) contrast(1.05) brightness(0.76);
}

.voice-section__copy {
  align-self: center;
}

.voice-section__copy p:not(.eyebrow) {
  color: var(--muted-cream);
  font-size: 21px;
  line-height: 1.5;
}

blockquote {
  margin: 0;
}

.voice-section blockquote {
  margin-top: 36px;
  border-left: 1px solid var(--gold);
  padding-left: 24px;
}

.voice-section blockquote p {
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
}

.testimonials-section {
  padding-top: 70px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.testimonial-grid blockquote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 30px;
}

.testimonial-grid blockquote p {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.18;
}

cite {
  color: var(--muted-cream);
  font-style: normal;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-section__intro p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted-cream);
  font-size: 21px;
}

.contact-form,
.lead-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.075), rgba(243, 234, 219, 0.034)),
    rgba(17, 16, 15, 0.86);
  padding: 24px;
  box-shadow: var(--shadow);
}

.intake-form {
  position: relative;
  overflow: hidden;
  gap: 18px;
}

.intake-form::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 104, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(109, 31, 42, 0.16), transparent 44%);
  content: "";
  pointer-events: none;
}

.intake-form > * {
  position: relative;
  z-index: 1;
}

.intake-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.intake-form__head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intake-form__head strong {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.intake-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.intake-option {
  min-height: 46px;
  border: 1px solid rgba(243, 234, 219, 0.12);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.5);
  color: var(--muted-cream);
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.intake-option:hover,
.intake-option.is-active {
  border-color: rgba(212, 175, 104, 0.68);
  background: rgba(212, 175, 104, 0.12);
  color: var(--cream);
}

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

.intake-option:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.intake-form textarea {
  min-height: 158px;
}

.intake-form__note {
  margin: -2px 0 0;
  border-top: 1px solid rgba(212, 175, 104, 0.2);
  color: var(--muted-cream);
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.42;
}

.mini-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 56px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 90px;
  border-top: 1px solid var(--line);
  padding: 82px 0 0;
}

.mini-reading p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted-cream);
  font-size: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted-cream);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cream);
  font-size: 20px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineRise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portalReveal {
  from {
    filter: blur(8px);
    opacity: 0;
  }

  to {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes portalDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 48px;
  }

  .hero,
  .story-shell,
  .voice-section,
  .contact-section,
  .mini-reading {
    gap: 46px;
  }

  .site-header {
    gap: 12px;
  }

  .site-nav {
    gap: 14px;
  }

  .brand {
    min-width: 142px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .catalog-menu,
  .site-nav,
  .site-header__actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
  }

  .hero,
  .story-intro,
  .story-shell,
  .manifest,
  .voice-section,
  .contact-section,
  .mini-reading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero__ghost {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(82px, 23vw, 142px);
    white-space: nowrap;
  }

  .hero__vertical {
    display: none;
  }

  .hero__copy {
    order: 2;
  }

  .portrait-portal {
    order: 1;
    justify-self: center;
    width: min(100%, 560px);
    max-width: 560px;
  }

  .portrait-portal__image img {
    object-position: 28% 0%;
    transform: scale(1.04);
    transform-origin: 26% 0%;
  }

  .manifest {
    min-height: auto;
  }

  .manifest__image {
    width: min(100%, 520px);
    max-width: 520px;
    justify-self: center;
  }

  .story-visual {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 560px;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  .story-intro {
    margin-bottom: 36px;
  }

  .story-steps {
    gap: 10px;
    padding: 28px 0 0 26px;
  }

  .story-step {
    min-height: auto;
    padding: 34px 0 34px 22px;
  }

  .story-step::before {
    left: -33px;
  }

  .story-step::after {
    left: -26px;
    width: 20px;
  }

  .signal-grid,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .signals-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .signals-heading__aside {
    max-width: 620px;
  }

  .signal-card {
    min-height: 230px;
  }

  .signal-card::before {
    font-size: 132px;
  }

  .voice-section__image {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .section,
  .story-intro,
  .story-shell,
  .voice-section,
  .mini-reading,
  .site-footer {
    width: calc(100% - 28px);
  }

  .section {
    padding: 72px 0;
  }

  .site-header {
    width: calc(100% - 28px);
    margin-top: 10px;
  }

  .flash-stack {
    top: 76px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .mobile-menu {
    inset: 74px 14px auto;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }

  h3 {
    font-size: 22px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero__lead,
  .manifest__after,
  .story-step p:not(.eyebrow),
  .voice-section__copy p:not(.eyebrow),
  .contact-section__intro p:not(.eyebrow),
  .mini-reading p:not(.eyebrow) {
    font-size: 18px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__signals {
    margin-top: 34px;
  }

  .portrait-portal::before {
    inset: -10px 12px 16px -12px;
  }

  .portrait-portal__image {
    aspect-ratio: 4 / 4.85;
  }

  .portrait-portal figcaption {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(12, 11, 10, 0.78);
    margin-top: 10px;
    padding: 12px;
    backdrop-filter: blur(14px);
  }

  .portrait-portal figcaption strong {
    max-width: none;
    font-size: 24px;
    text-align: left;
  }

  .portrait-portal figcaption span {
    font-size: 12px;
  }

  .portrait-portal__seal {
    top: 18px;
    right: 14px;
    width: 106px;
    padding: 12px;
  }

  .portrait-portal__seal span {
    font-size: 10px;
  }

  .portrait-portal__seal strong {
    font-size: 27px;
  }

  .manifest {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .manifest__image {
    width: min(100%, 420px);
    max-width: 420px;
  }

  .manifest__line {
    font-size: 40px;
  }

  .manifest__copy::before {
    display: none;
  }

  .story-visual {
    max-width: 430px;
    aspect-ratio: 4 / 5.25;
  }

  .story-section {
    padding: 52px 0;
  }

  .story-intro h2 {
    font-size: 40px;
  }

  .story-intro__text {
    font-size: 18px;
  }

  .story-steps {
    padding-top: 18px;
  }

  .story-scene {
    padding: 22px 18px 102px;
  }

  .story-scene::before {
    inset: 14px;
  }

  .story-scene::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.04), rgba(8, 8, 7, 0.42) 42%, rgba(8, 8, 7, 0.9)),
      linear-gradient(90deg, rgba(8, 8, 7, 0.2), rgba(8, 8, 7, 0.24));
  }

  .story-scene span {
    margin-bottom: 12px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .story-scene strong {
    max-width: min(100%, 330px);
    font-size: clamp(36px, 10vw, 48px);
  }

  .story-scene small {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 11px;
  }

  .story-step h2 {
    font-size: 34px;
  }

  .story-step p:not(.eyebrow) {
    font-size: 18px;
  }

  .story-progress {
    grid-template-columns: repeat(2, 1fr);
    right: 18px;
    bottom: 18px;
    left: 18px;
    gap: 6px 10px;
  }

  .story-progress span {
    min-height: 26px;
    padding-top: 6px;
    font-size: 10px;
  }

  .signal-card p {
    max-width: 560px;
    font-size: 34px;
  }

  .service-card {
    min-height: 330px;
    padding: 22px;
  }

  .voice-section {
    padding: 72px 0;
  }

  .voice-section__image {
    min-height: 380px;
  }

  .voice-section blockquote p,
  .testimonial-grid blockquote p {
    font-size: 26px;
  }

  .contact-form,
  .lead-form {
    padding: 18px;
  }

  .intake-options {
    grid-template-columns: 1fr;
  }

  .mini-reading {
    margin-bottom: 64px;
    padding-top: 64px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------------
 * Кабинет: пустое состояние после подтверждения email
 * ------------------------------------------------------------------------- */

.cabinet-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.cabinet--welcome {
  padding-top: 0;
}

.cabinet-header__brand {
  justify-self: start;
  color: var(--cream);
  text-decoration: none;
}

.cabinet-header__mark {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cabinet-header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 14px;
}

.cabinet-header__nav a {
  color: var(--cream);
  text-decoration: none;
}

.cabinet-header__nav a:hover {
  color: var(--gold);
}

.cabinet-account-menu {
  position: relative;
  justify-self: end;
}

.cabinet-account-menu summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.cabinet-account-menu summary::-webkit-details-marker {
  display: none;
}

.cabinet-account-menu[open] summary,
.cabinet-account-menu summary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cabinet-account-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 244px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #11100e;
  box-shadow: var(--shadow);
  padding: 8px;
}

.cabinet-account-menu__panel a,
.cabinet-account-menu__sign-out {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.cabinet-account-menu__panel a:hover,
.cabinet-account-menu__sign-out:hover {
  background: rgba(212, 175, 104, 0.12);
  color: var(--gold);
}

.cabinet-account-menu__divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.cabinet-welcome {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  min-height: 466px;
  margin: 10px calc((min(var(--max-width), calc(100vw - 48px)) - 100vw) / 2) 0;
  border-bottom: 1px solid var(--line);
}

.cabinet-welcome__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px max(24px, calc((100vw - var(--max-width)) / 2));
}

.cabinet-welcome__eyebrow,
.cabinet-discovery__eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cabinet-welcome__title {
  max-width: 530px;
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 0.93;
  color: var(--cream);
}

.cabinet-welcome__copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted-cream);
  font-size: 17px;
  line-height: 1.5;
}

.cabinet-welcome__stats {
  display: flex;
  gap: 0;
  margin: 28px 0 30px;
}

.cabinet-welcome__stats div {
  min-width: 116px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

.cabinet-welcome__stats div + div {
  padding-left: 24px;
}

.cabinet-welcome__stats div:last-child {
  border-right: 0;
}

.cabinet-welcome__stats dt {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.cabinet-welcome__stats dd {
  margin: 0;
  color: var(--muted-cream);
  font-size: 13px;
}

.cabinet-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cabinet-welcome__art {
  width: 100%;
  height: 100%;
  min-height: 466px;
  object-fit: cover;
}

.cabinet-start {
  margin: 48px 0 24px;
}

.cabinet-start__title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cream);
}

.cabinet-start__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cabinet-start-card {
  display: flex;
  min-height: 202px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--cream);
  padding: 24px;
  text-decoration: none;
}

.cabinet-start-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.cabinet-start-card h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.cabinet-start-card p {
  max-width: 250px;
  margin: 0;
  color: var(--muted-cream);
  font-size: 14px;
  line-height: 1.5;
}

.cabinet-start-card span {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.cabinet-discovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cabinet-discovery__card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 24px;
}

.cabinet-discovery__eyebrow {
  margin-bottom: 10px;
}

.cabinet-discovery__card h2 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.05;
}

.cabinet-discovery__card h2 span,
.cabinet-discovery__copy {
  color: var(--muted-cream);
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.cabinet-discovery__copy {
  margin: -7px 0 14px;
  line-height: 1.45;
}

.cabinet-discovery__link {
  margin-top: auto;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cabinet-header {
    width: calc(100% - 28px);
    min-height: 64px;
  }

  .cabinet-header__nav {
    display: none;
  }

  .cabinet-header {
    grid-template-columns: 1fr auto;
  }

  .cabinet-welcome {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-inline: 0;
  }

  .cabinet-welcome__intro {
    padding: 44px 0 34px;
  }

  .cabinet-welcome__art {
    min-height: 260px;
    max-height: 360px;
  }

  .cabinet-start__grid,
  .cabinet-discovery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cabinet-account-menu summary {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .cabinet-welcome__title {
    font-size: 42px;
  }

  .cabinet-welcome__stats div {
    min-width: 0;
    flex: 1;
    padding-right: 12px;
  }

  .cabinet-welcome__stats div + div {
    padding-left: 12px;
  }

  .cabinet-welcome__stats dt {
    font-size: 30px;
  }

  .cabinet-welcome__actions .button {
    width: 100%;
  }

  .cabinet-welcome__art {
    display: none;
  }

  .cabinet-start {
    margin-top: 32px;
  }

  .cabinet-start-card {
    min-height: 168px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .manifest__line {
    font-size: 34px;
  }

  .signal-card {
    min-height: 218px;
    padding: 22px;
  }

  .signal-card::before {
    top: -26px;
    right: 8px;
    font-size: 104px;
  }

  .signal-card p {
    font-size: 29px;
  }

  .brand__text {
    font-size: 15px;
  }

  .portrait-portal__image img {
    object-position: 31% 0%;
    transform: scale(1.02);
  }

  .story-visual {
    max-width: 100%;
    aspect-ratio: 4 / 5.4;
  }

  .story-scene {
    padding: 20px 16px 98px;
  }

  .story-scene strong {
    max-width: 292px;
    font-size: 34px;
  }

  .story-progress span {
    font-size: 9px;
  }
}

/* ---------------------------------------------------------------------------
 * Шоп (публичная витрина)
 * ------------------------------------------------------------------------- */

.shop-hero {
  padding-top: 140px;
  max-width: 760px;
}

.shop-hero h1 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--cream);
}

.shop-hero__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-cream);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 34px;
}

.shop-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-cream);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.shop-filter:hover {
  border-color: var(--line-strong);
  color: var(--cream);
}

.shop-filter.is-active {
  border-color: var(--gold);
  background: rgba(212, 175, 104, 0.12);
  color: var(--gold);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--smoke);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  letter-spacing: 0.3em;
  color: rgba(212, 175, 104, 0.28);
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
}

.product-card__category {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.product-card__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.shop-empty {
  padding: 90px 0 40px;
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
}

.shop-empty__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  color: var(--cream);
}

.shop-empty__text {
  margin: 0 0 28px;
  line-height: 1.7;
  color: var(--muted-cream);
}

/* Карточка товара */

.product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 120px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.product-breadcrumbs a {
  color: var(--muted-cream);
  text-decoration: none;
}

.product-breadcrumbs a:hover {
  color: var(--gold);
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  margin-top: 28px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-gallery__image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

.product-gallery__placeholder {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--smoke);
}

.product-info__title {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
}

.product-info__price {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.product-info__description {
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted-cream);
}

.product-info__description p {
  margin: 0 0 14px;
}

.product-order {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px;
  background: var(--surface);
}

.product-order h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  color: var(--cream);
}

.product-order p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-cream);
}

/* ---------------------------------------------------------------------------
 * Авторизация
 * ------------------------------------------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 104, 0.08), transparent 70%),
    var(--void);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card__brand {
  margin-bottom: 26px;
}

.auth-card__title {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--cream);
}

.auth-card__hint {
  margin: -12px 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-cream);
}

.auth-card--confirmation {
  text-align: center;
}

.auth-card__success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(212, 175, 104, 0.55);
  border-radius: 50%;
  background: rgba(212, 175, 104, 0.1);
  color: var(--gold);
  font-size: 32px;
  font-weight: 700;
}

.auth-card--confirmation .auth-card__hint {
  margin-bottom: 28px;
}

.auth-card__resend-title {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.auth-card--confirmation .auth-form {
  text-align: left;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form label span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.auth-form input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.6);
  color: var(--cream);
  font: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.auth-card__link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted-cream);
}

.auth-card__link:hover {
  color: var(--gold);
}

/* ---------------------------------------------------------------------------
 * Админка
 * ------------------------------------------------------------------------- */

.admin-shell {
  min-height: 100vh;
  background: var(--void);
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-nav {
  display: flex;
  gap: 18px;
  flex: 1;
}

.admin-nav a {
  font-size: 14px;
  color: var(--muted-cream);
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--gold);
}

.admin-topbar__actions {
  display: flex;
  gap: 10px;
}

.admin-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}

.admin-title {
  margin: 0 0 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--cream);
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.admin-page-head .admin-title {
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.admin-stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.admin-stat__value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}

.admin-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted-cream);
}

.admin-table th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  background: rgba(243, 234, 219, 0.03);
}

.admin-table td strong {
  color: var(--cream);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.admin-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  font-size: 10px;
  color: var(--ash);
}

.admin-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-badge--published {
  background: rgba(212, 175, 104, 0.14);
  color: var(--gold);
}

.admin-badge--draft {
  background: rgba(139, 129, 116, 0.18);
  color: var(--ash);
}

.admin-muted {
  color: var(--ash);
  font-size: 13px;
}

.admin-subtitle {
  margin: 40px 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
}

.admin-lessons .admin-page-head {
  margin-top: 40px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form label > span,
.admin-form legend {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.6);
  color: var(--cream);
  font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--line-strong);
}

.admin-form input[type="file"] {
  color: var(--muted-cream);
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.admin-images {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.admin-images__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.admin-image {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.admin-image__remove {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-cream);
}

.admin-errors {
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid var(--blood);
  border-radius: 12px;
  background: rgba(169, 52, 63, 0.12);
  color: var(--cream);
}

.admin-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.admin-empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--muted-cream);
}

.admin-empty a {
  color: var(--gold);
}

.button--danger {
  border-color: rgba(169, 52, 63, 0.7);
  background: rgba(169, 52, 63, 0.16);
  color: var(--cream);
}

.button--danger:hover {
  border-color: var(--blood);
  background: rgba(169, 52, 63, 0.3);
}

@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-page {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-table__actions {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------------
 * Личный кабинет
 * ------------------------------------------------------------------------- */

.cabinet {
  min-height: calc(100svh - 90px);
}

.cabinet__title {
  max-width: 900px;
  margin-bottom: 34px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--cream);
}

.cabinet__card {
  max-width: 760px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cabinet__greeting {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
}

.cabinet__empty {
  margin: 0;
  color: var(--muted-cream);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
 * Формы авторизации: ошибки и select
 * ------------------------------------------------------------------------- */

.auth-card__errors {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(169, 52, 63, 0.6);
  border-radius: 10px;
  background: rgba(169, 52, 63, 0.12);
  color: var(--cream);
  font-size: 14px;
}

.auth-card__errors p {
  margin: 0 0 8px;
  font-weight: 700;
}

.auth-card__errors ul {
  margin: 0;
  padding-left: 18px;
}

.auth-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--cream);
  font: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cfc2ad' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.auth-form select:focus {
  outline: none;
  border-color: var(--line-strong);
}

.auth-form select:invalid {
  color: rgba(207, 194, 173, 0.46);
}

/* ---------------------------------------------------------------------------
 * Кабинет: хаб, карточки, таб-панель
 * ------------------------------------------------------------------------- */

.cabinet {
  padding-bottom: 96px;
}

.cabinet-attention {
  max-width: 760px;
  margin-bottom: 40px;
}

.cabinet-attention__title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cabinet-attention__card {
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.cabinet-attention__card--high {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.cabinet-attention__label {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--cream);
}

.cabinet-attention__text {
  margin: 0 0 10px;
  color: var(--muted-cream);
  font-size: 15px;
}

.cabinet-attention__text a,
.cabinet-attention__link,
.cabinet-card__link,
.cabinet-section__secondary a,
.cabinet__empty a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.cabinet-attention__link {
  font-size: 14px;
}

.cabinet-hero-card {
  max-width: 760px;
  margin-bottom: 40px;
}

.cabinet-section {
  max-width: 760px;
  margin-bottom: 48px;
}

.cabinet-section--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1080px;
}

.cabinet-section__title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cream);
}

.cabinet-section__secondary {
  margin-top: 16px;
  color: var(--muted-cream);
  font-size: 15px;
}

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

.material-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.material-card--showcase {
  border-style: dashed;
  background: transparent;
}

.material-card--expired {
  opacity: 0.55;
}

.material-card--block {
  align-items: flex-start;
}

.material-card__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
}

.material-card__meta {
  margin: 0;
  color: var(--muted-cream);
  font-size: 14px;
}

.material-card__access {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.material-card__access--soon {
  color: var(--blood);
}

.material-card__cta {
  flex-shrink: 0;
}

.cabinet-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cabinet-card__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cabinet-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
}

.cabinet-card__text {
  margin: 0 0 14px;
  color: var(--muted-cream);
  font-size: 15px;
  line-height: 1.55;
}

.cabinet-card__text strong {
  color: var(--cream);
}

/* Нижняя таб-панель: только мобильные */

.cabinet-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}

.cabinet-tabs__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 8px;
  color: var(--muted-cream);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.cabinet-tabs__icon {
  font-size: 17px;
  line-height: 1;
}

.cabinet-tabs__item--active {
  color: var(--gold);
}

@media (min-width: 900px) {
  .cabinet-tabs {
    display: none;
  }

  .cabinet {
    padding-bottom: 40px;
  }
}

@media (max-width: 700px) {
  .cabinet-section--grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .material-card__cta {
    width: 100%;
    text-align: center;
  }
}



/* ---------------------------------------------------------------------------
 * Кабинет: видео-часть в стиле MasterClass
 * Изображение = карточка, бейджи и прогресс на кадре, плеер + сайдбар эпизодов
 * ------------------------------------------------------------------------- */

.cabinet--wide,
.cabinet-section--wide {
  max-width: 1180px;
}

/* Миниатюра-заглушка: тёмный градиент + крупный serif-текст (пока нет кадров) */

.media-thumb__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(212, 175, 104, 0.16), transparent 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(90, 24, 36, 0.35), transparent 60%),
    #141311;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

/* Видео-карточка (Мои материалы, витрина) */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #141311;
  overflow: hidden;
  text-decoration: none;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.video-card__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.78);
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
}

.video-card__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(243, 234, 219, 0.18);
}

.video-card__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.66);
  border: 1px solid rgba(243, 234, 219, 0.4);
  color: var(--cream);
  font-size: 18px;
  transform: translate(-50%, -50%);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 7, 0.68);
  color: var(--muted-cream);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.video-card--expired .video-card__thumb img,
.video-card--expired .media-thumb__placeholder {
  filter: grayscale(0.7);
}

.video-card__title {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

.video-card__title a {
  color: inherit;
  text-decoration: none;
}

.video-card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted-cream);
}

.video-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.video-card__renew {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

/* Продолжить просмотр: крупная карточка-кадр с play-кнопкой */

.continue-card {
  display: flex;
  gap: 26px;
  align-items: center;
  text-decoration: none;
}

.continue-card__thumb {
  position: relative;
  flex: 0 0 min(46%, 480px);
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #141311;
  overflow: hidden;
}

.continue-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.continue-card__body {
  min-width: 0;
}

.continue-card__title {
  display: block;
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
}

/* Экран курса: кинематографичный hero */

.cine-hero {
  margin-bottom: 44px;
}

.cine-hero__media {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 340px;
  border-radius: 20px;
  background: #141311;
  overflow: hidden;
}

.cine-hero__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cine-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.05) 30%, rgba(8, 8, 7, 0.88) 92%);
}

.cine-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(20px, 4vw, 44px);
}

.cine-hero__title {
  margin: 10px 0 12px;
  max-width: 760px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--cream);
}

.cine-hero__meta {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted-cream);
}

.cine-hero__progress {
  color: var(--gold);
  font-weight: 700;
}

.cine-hero__desc {
  margin: 0 0 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-cream);
}

/* Список эпизодов (экран курса и сайдбар урока) */

.episode-list {
  display: grid;
  gap: 8px;
}

.episode {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px;
  border-radius: 14px;
  color: var(--cream);
  text-decoration: none;
  transition: background 0.2s ease;
}

.episode:hover {
  background: rgba(243, 234, 219, 0.05);
}

.episode__thumb {
  position: relative;
  flex: 0 0 176px;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #141311;
  overflow: hidden;
}

.episode__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.episode__thumb .media-thumb__placeholder {
  font-size: 22px;
}

.episode__thumb .video-card__play {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.episode__thumb .video-card__badge {
  right: 8px;
  bottom: 8px;
  font-size: 11px;
}

.episode__body {
  min-width: 0;
}

.episode__title {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.episode__meta {
  font-size: 13px;
  color: var(--muted-cream);
}

.episode__done-mark {
  color: var(--gold);
  font-weight: 700;
}

.episode--done .episode__thumb {
  opacity: 0.72;
}

.episode--current {
  background: rgba(212, 175, 104, 0.08);
  box-shadow: inset 3px 0 0 var(--gold);
}

.episode--locked {
  opacity: 0.55;
}

/* Экран урока: плеер + сайдбар эпизодов */

.class-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
}

.class-title {
  margin: 18px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--cream);
}

.cabinet-back {
  margin: 0 0 18px;
}

.cabinet-back a {
  color: var(--muted-cream);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__placeholder {
  position: absolute;
  inset: 0;
}

.player__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__placeholder-note {
  position: absolute;
  left: 24px;
  bottom: 20px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  font-size: 14px;
  color: var(--muted-cream);
}

.lesson-meta {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted-cream);
}

.lesson-meta__done {
  color: var(--gold);
  font-weight: 700;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.class-sidebar__head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.class-sidebar__thumb {
  position: relative;
  flex: 0 0 92px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #141311;
  overflow: hidden;
}

.class-sidebar__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-sidebar__thumb .media-thumb__placeholder {
  font-size: 10px;
  padding: 6px;
}

.class-sidebar__course {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

.class-sidebar__stats {
  font-size: 13px;
  color: var(--muted-cream);
}

.episode-list--compact .episode {
  gap: 12px;
  padding: 8px;
}

.episode-list--compact .episode__thumb {
  flex-basis: 128px;
}

.episode-list--compact .episode__title {
  font-size: 14px;
}

/* Мобильная раскладка */

@media (max-width: 1020px) {
  .class-layout {
    grid-template-columns: 1fr;
  }

  .class-sidebar {
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .continue-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .continue-card__thumb {
    flex-basis: auto;
    width: 100%;
  }

  .cine-hero__media {
    aspect-ratio: 4 / 5;
  }

  .episode__thumb {
    flex-basis: 124px;
  }
}
