/* ==========================================================================
   Sessia — веб-версия. Палитра из мобильного приложения, вёрстка «взрослая».
   ========================================================================== */

:root {
  /* фирменные цвета из мобильного приложения */
  --primary: #fe3f01;
  --primary-dark: #cc0000;
  --primary-soft: #f56565;
  --primary-warm: #f5e6e6;
  --ink: #412c2c;
  --ink-soft: #443b32;
  --ink-muted: #8a8178;
  --ink-faint: #948b82;
  --bg: #f5ece5;
  --bg-deep: #f5ece4;
  --surface: #fff6ef;
  --surface-2: #f9f0e9;
  --surface-3: #fffbf4;
  --border: #e9e0d9;
  --border-strong: #dccfc5;
  --white: #ffffff;
  --dark: #412c2c;
  --dark-2: #2b2020;
  --accent-deep: #bc0000;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(65, 44, 44, .06), 0 2px 8px rgba(65, 44, 44, .04);
  --shadow: 0 2px 6px rgba(65, 44, 44, .06), 0 12px 32px rgba(65, 44, 44, .07);
  --shadow-lg: 0 6px 18px rgba(65, 44, 44, .08), 0 28px 64px rgba(65, 44, 44, .12);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lora", Georgia, "Times New Roman", serif;

  --container: 1320px;
  --header-h: 88px;
  --easing: cubic-bezier(.4, .1, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.16; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ------------------------------------------------------------------ splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--primary);
  color: #fff;
  transition: opacity .55s var(--easing), visibility .55s;
}
html.is-loaded .splash { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__rings {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}
.splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  opacity: 0;
  animation: splash-ring 3s cubic-bezier(.22, .61, .36, 1) infinite;
}
.splash__ring:nth-child(1) { animation-delay: 0s; }
.splash__ring:nth-child(2) { animation-delay: 1.5s; }
.splash__ring:nth-child(3) { animation-delay: 3s; }
@keyframes splash-ring {
  0%   { transform: scale(1);   opacity: .75; border-width: 3px; }
  70%  { opacity: .12; }
  100% { transform: scale(3.5); opacity: 0;  border-width: 1px; }
}
.splash__mark {
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(150, 20, 0, .35));
  animation: splash-mark 3.6s ease-in-out infinite;
}
@keyframes splash-mark {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.splash__title {
  position: absolute;
  top: 11vh;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.splash__subtitle {
  position: absolute;
  bottom: 11vh;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 4.4vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  color: var(--primary-warm);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--primary);
  background-image:
    radial-gradient(120% 160% at 12% 0%, rgba(255, 255, 255, .10), transparent 58%),
    radial-gradient(90% 140% at 100% 100%, rgba(120, 0, 0, .18), transparent 62%);
  color: #fff;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(140, 20, 0, .24);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 88px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo {
  display: block;
  height: 38px;
  width: auto;
}
.brand--light .brand__logo { height: 40px; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #ff8a5c 0%, transparent 58%),
    linear-gradient(145deg, var(--primary) 8%, var(--primary-dark) 96%);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .16);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 50% 50% auto auto;
  width: 9px; height: 9px;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: #fff6ef;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: .01em; }
.brand__note {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-faint); margin-top: 5px; font-weight: 600;
}
.brand--light .brand__name { color: #fff6ef; }
.brand--light .brand__note { color: rgba(255, 246, 239, .5); }

.mainnav { display: flex; gap: 30px; margin-inline: auto; }
.mainnav a {
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .82);
  padding: 6px 0; position: relative; white-space: nowrap;
  transition: color .18s var(--easing);
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: #fff; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .24s var(--easing);
}
.mainnav a:hover { color: #fff; }
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }
.mainnav a.is-active { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .9);
  transition: background .2s var(--easing), color .2s var(--easing);
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.badge {
  position: absolute; top: 2px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: #fff; color: var(--primary-dark);
  font-size: 10.5px; font-weight: 800; border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
}

.usermenu { position: relative; }
.usermenu__toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--radius-pill); padding: 5px 14px 5px 5px;
  color: #fff;
  transition: border-color .2s var(--easing), background .2s var(--easing);
}
.usermenu__toggle:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--primary-dark);
  font-size: 13px; font-weight: 800; font-family: var(--font-body);
}
.usermenu__name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 210px; padding: 8px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
}
.usermenu__list[hidden] { display: none; }
.usermenu__list a, .usermenu__list button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px; border: 0; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background .16s var(--easing), color .16s var(--easing);
}
.usermenu__list a:hover, .usermenu__list button:hover { background: var(--surface-2); color: var(--ink); }
.usermenu__list form { margin: 0; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  background: transparent; padding: 0;
  place-items: center; gap: 4px;
}
.burger span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .24s var(--easing), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* «Войти» в шапке — белая кнопка */
.site-header .btn--ghost {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.site-header .btn--ghost:hover {
  background: var(--primary-warm);
  border-color: var(--primary-warm);
  color: var(--accent-deep);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .005em;
  border: 1px solid transparent;
  transition: background .2s var(--easing), transform .18s var(--easing), box-shadow .2s var(--easing);
  box-shadow: 0 6px 18px rgba(254, 63, 1, .22);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(188, 0, 0, .26); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border-strong); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-faint); transform: none; box-shadow: none; }
.btn--dark { background: var(--dark); box-shadow: 0 6px 18px rgba(43, 32, 32, .24); }
.btn--dark:hover { background: #1f1616; box-shadow: 0 10px 26px rgba(43, 32, 32, .3); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--primary-dark);
}
.link-more svg { transition: transform .2s var(--easing); }
.link-more:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------------- hero */
.hero { padding: 56px 0 44px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--primary);
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--primary-dark); }
.hero__lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 36px;
  margin-top: 46px; padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}
.hero__stat b {
  display: block; font-family: var(--font-display);
  font-size: 30px; font-weight: 700; line-height: 1;
}
.hero__stat span { display: block; margin-top: 7px; font-size: 13px; color: var(--ink-faint); font-weight: 600; }

.hero__collage {
  position: relative;
  aspect-ratio: 1 / 1.03;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
.collage__item {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--a { width: 58%; top: 0; left: 4%; aspect-ratio: 3 / 4; transform: rotate(-3.2deg); z-index: 2; }
.collage__item--b { width: 52%; bottom: 2%; right: 0; aspect-ratio: 3 / 4; transform: rotate(2.6deg); z-index: 3; }
.collage__item--c { width: 34%; bottom: 12%; left: 0; aspect-ratio: 1 / 1; transform: rotate(6deg); z-index: 1; }
.collage__badge {
  position: absolute; z-index: 4; left: 6%; bottom: 6%;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px 13px 14px; border-radius: var(--radius-pill);
  background: var(--dark); color: #fff6ef;
  box-shadow: var(--shadow-lg);
}
.collage__badge svg { color: var(--primary-soft); flex-shrink: 0; }
.collage__badge b { display: block; font-size: 14px; }
.collage__badge span { display: block; font-size: 11.5px; color: rgba(255, 246, 239, .6); margin-top: 2px; }

/* ------------------------------------------------------------ section shell */
.section { padding: 66px 0; }
.section--surface { background: var(--surface-3); border-block: 1px solid var(--border); }
.section--deeper { background: var(--bg-deep); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 36px;
}
.section__head h2 { font-size: clamp(27px, 2.6vw, 38px); letter-spacing: -.02em; }
.section__head p { margin-top: 12px; color: var(--ink-soft); max-width: 58ch; font-size: 15.5px; }
.section__lead { max-width: 620px; }
.section__eyebrow {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 14px;
}

/* -------------------------------------------------------------- session grid */
.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.session-grid--wide { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.session-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .24s var(--easing), box-shadow .24s var(--easing), border-color .24s var(--easing);
}
.session-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.session-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #e6d7ca, #f4e7dd);
}
.session-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--easing);
}
.session-card:hover .session-card__media img { transform: scale(1.045); }
.session-card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  background: rgba(43, 32, 32, .82); color: #fff6ef;
  backdrop-filter: blur(6px);
}
.chip--free { background: #1f7a4d; }
.chip--sale { background: var(--primary-dark); }
.chip--paid { background: #1f7a4d; }
.chip--muted { background: rgba(255, 246, 239, .92); color: var(--ink); }

.session-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 251, 244, .92); border: 0; color: var(--ink-soft);
  backdrop-filter: blur(6px);
  transition: color .18s var(--easing), transform .18s var(--easing), background .18s var(--easing);
}
.session-card__fav:hover { color: var(--primary-dark); transform: scale(1.08); }
.session-card__fav svg path { transition: fill .18s var(--easing), stroke .18s var(--easing); }
.session-card__fav.is-on { color: var(--primary-dark); background: #fff; }
.session-card__fav.is-on svg path { fill: currentColor; stroke: currentColor; }
.session-card__fav.is-on:hover { color: var(--accent-deep); }
.session-card__fav::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  transform: scale(0); opacity: 0; background: rgba(254, 63, 1, .22);
}
.session-card__fav.is-bump::after { animation: fav-bump .45s var(--easing); }
@keyframes fav-bump {
  0% { transform: scale(.4); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.session-card__body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 22px;
  flex: 1;
}
.session-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-faint); font-weight: 600;
}
.session-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.session-card__title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; line-height: 1.3;
  letter-spacing: -.005em;
}
.session-card__title a:hover { color: var(--primary-dark); }
.session-card__desc {
  font-size: 13.8px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.session-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}
.price { display: inline-flex; align-items: baseline; gap: 9px; }
.price__now { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.price__old { font-size: 13.5px; color: var(--ink-faint); text-decoration: line-through; }
.price--free .price__now { color: #1f7a4d; }

.card-actions { display: flex; gap: 8px; }
.btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 17px; border-radius: var(--radius-pill);
  background: var(--dark); color: #fff6ef; border: 0;
  font-size: 13.5px; font-weight: 700;
  transition: background .2s var(--easing), transform .16s var(--easing);
}
.btn-buy:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-buy--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-buy--ghost:hover { background: var(--surface-2); color: var(--primary-dark); transform: none; }
.btn-buy.is-added { background: #1f7a4d; }

/* --------------------------------------------------------------- category nav */
.cat-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap;
  transition: background .18s var(--easing), color .18s var(--easing), border-color .18s var(--easing);
}
.cat-pill:hover { border-color: var(--ink-faint); color: var(--ink); }
.cat-pill.is-active { background: var(--dark); border-color: var(--dark); color: #fff6ef; }
.cat-pill__count { opacity: .55; font-weight: 600; font-size: 12.5px; }

/* ------------------------------------------------------------------ catalog */
.catalog-hero {
  padding: 44px 0 30px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-3), var(--bg));
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.crumbs a:hover { color: var(--primary-dark); }
.crumbs span.sep { opacity: .5; }
.catalog-hero h1 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.025em; }
.catalog-hero p { margin-top: 14px; color: var(--ink-soft); max-width: 64ch; }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 26px 0;
}
.search {
  position: relative; flex: 1 1 320px; max-width: 460px;
}
.search input {
  width: 100%; height: 48px; padding: 0 46px 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font-size: 14.5px;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 63, 1, .1); }
.search button {
  position: absolute; right: 5px; top: 5px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--dark); color: #fff6ef;
  display: grid; place-items: center;
}
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.select {
  height: 48px; padding: 0 42px 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238a8178' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  appearance: none; font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--primary); }

.result-count { font-size: 14px; color: var(--ink-faint); font-weight: 600; }

.empty-state {
  padding: 70px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.empty-state .btn { margin-top: 24px; }

/* -------------------------------------------------------------- session page */
.session-hero { padding: 40px 0 10px; }
.session-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 52px;
  align-items: start;
  padding: 34px 0 20px;
}
.session-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
  aspect-ratio: 16 / 11;
}
.session-cover img { width: 100%; height: 100%; object-fit: cover; }

.session-head h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -.025em;
  margin-top: 14px;
}
.session-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 20px; font-size: 13.5px; color: var(--ink-faint); font-weight: 600;
}
.session-meta span { display: inline-flex; align-items: center; gap: 7px; }

.player {
  margin-top: 30px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: #fff6ef;
  box-shadow: var(--shadow);
}
.player__label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 246, 239, .55); font-weight: 800; margin-bottom: 14px;
}
.player__label b { color: var(--primary-soft); letter-spacing: .06em; }
.player__note { margin-top: 12px; font-size: 12.5px; color: rgba(255, 246, 239, .6); }
.player__note a { color: var(--primary-soft); font-weight: 700; }

/* ---------------- кастомный аудиоплеер ---------------- */
.player-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.player .player-box {
  background: rgba(255, 246, 239, .1);
  border-color: rgba(255, 246, 239, .18);
  box-shadow: none;
}
.player-box__toggle {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(254, 63, 1, .3);
  transition: background .18s var(--easing), transform .16s var(--easing);
}
.player-box__toggle:hover { background: var(--accent-deep); transform: scale(1.04); }
.player-box__toggle:active { transform: scale(.97); }
.player-box__icon-pause { display: none; }
.player-box.is-playing .player-box__icon-play { display: none; }
.player-box.is-playing .player-box__icon-pause { display: block; }

.player-box__main { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.player-box__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(65, 44, 44, .13);
  cursor: pointer;
}
.player .player-box__bar { background: rgba(255, 246, 239, .22); }
.player-box__bar:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.player-box__loaded, .player-box__progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  width: 0;
}
.player-box__loaded { background: rgba(65, 44, 44, .16); }
.player .player-box__loaded { background: rgba(255, 246, 239, .3); }
.player-box__progress { background: var(--primary); }
.player-box__thumb {
  position: absolute;
  top: 50%; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .16s var(--easing);
  pointer-events: none;
}
.player-box__bar:hover .player-box__thumb,
.player-box.is-playing .player-box__thumb { opacity: 1; }
.player-box__info {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.player .player-box__info { color: rgba(255, 246, 239, .68); }
.player-box__mute {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center;
  color: var(--ink-faint);
  transition: background .16s var(--easing), color .16s var(--easing);
}
.player .player-box__mute { color: rgba(255, 246, 239, .7); }
.player-box__mute:hover { background: rgba(65, 44, 44, .08); color: var(--ink); }
.player .player-box__mute:hover { background: rgba(255, 246, 239, .14); color: #fff; }
.player-box__cross { display: none; }
.player-box.is-muted .player-box__wave { display: none; }
.player-box.is-muted .player-box__cross { display: block; }

@media (max-width: 560px) {
  .player-box { gap: 10px; padding: 10px 12px 10px 10px; }
  .player-box__toggle { width: 40px; height: 40px; }
  .player-box__mute { display: none; }
}

.session-body { margin-top: 36px; }
.prose { font-size: 16.5px; line-height: 1.78; color: var(--ink-soft); }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose h3 { font-size: 21px; margin: 30px 0 12px; color: var(--ink); }

.buy-card {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.buy-card__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-card__price .price__now { font-size: 34px; }
.buy-card__caption { margin-top: 8px; font-size: 13.5px; color: var(--ink-faint); }
.buy-card__list { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.buy-card__list li {
  display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); align-items: flex-start;
}
.buy-card__list svg { color: #1f7a4d; flex-shrink: 0; margin-top: 3px; }
.buy-card__actions { display: grid; gap: 10px; }
.buy-card__hint { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* -------------------------------------------------------------------- cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  gap: 44px; align-items: start;
  padding: 40px 0 20px;
}
.cart-list { display: grid; gap: 16px; }
.cart-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.cart-row__media {
  width: 116px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2);
}
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.cart-row__meta { margin-top: 6px; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.cart-row__right { display: flex; align-items: center; gap: 16px; }
.cart-row__price { font-family: var(--font-display); font-size: 19px; font-weight: 700; white-space: nowrap; }
.link-remove { background: none; border: 0; color: var(--ink-faint); padding: 6px; border-radius: 8px; }
.link-remove:hover { color: var(--primary-dark); background: var(--surface-2); }
.paid-tag { font-size: 12px; font-weight: 800; color: #1f7a4d; }

.summary {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow);
}
.summary h2 { font-size: 21px; margin-bottom: 20px; }
.summary__row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14.5px; color: var(--ink-soft); padding: 10px 0;
}
.summary__row--total {
  border-top: 1px solid var(--border-strong); margin-top: 8px; padding-top: 18px;
  font-size: 17px; color: var(--ink); font-weight: 700;
}
.summary__row--total b { font-family: var(--font-display); font-size: 24px; }
.summary__actions { margin-top: 20px; }
.summary__note { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.55; }
.summary__row--discount { color: #1f7a4d; }
.summary__row--discount span:last-child { font-weight: 700; }

/* промокод */
.promo { margin-top: 18px; }
.promo__form { display: flex; gap: 8px; }
.promo__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface-3); color: var(--ink); font-family: inherit;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.promo__form input::placeholder { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.promo__form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 63, 1, .1); }
.promo__form button {
  height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink); font-size: 14px; font-weight: 700;
  transition: background .18s var(--easing), border-color .18s var(--easing), color .18s var(--easing);
}
.promo__form button:hover { background: var(--surface-2); border-color: var(--ink-faint); }
.promo__ok {
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600; color: #1f7a4d;
}
.promo__ok::before { content: "✓"; font-weight: 900; }
.promo__error { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #a31200; }
.promo__remove {
  background: none; border: 0; padding: 0; margin-top: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-faint);
  text-decoration: underline; text-underline-offset: 3px;
}
.promo__remove:hover { color: var(--primary-dark); }

/* ------------------------------------------------------------------- forms */
.auth-wrap { padding: 60px 0 80px; }
.auth-card {
  max-width: 520px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; }
.auth-card .lead { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.auth-tabs { display: flex; gap: 6px; margin: 26px 0 30px; background: var(--surface-2); padding: 5px; border-radius: var(--radius-pill); }
.auth-tabs a {
  flex: 1; text-align: center; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; color: var(--ink-faint);
  transition: background .2s var(--easing), color .2s var(--easing);
}
.auth-tabs a.is-active { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-3); color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 63, 1, .1);
}
.field__hint { margin-top: 7px; font-size: 12.5px; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Календарь / выбор даты в фирменном стиле */
input[type="date"] {
  cursor: pointer;
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5' fill='none' stroke='%238a8178' stroke-width='1.7'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4' stroke='%238a8178' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 28px;
  height: 28px;
  cursor: pointer;
  margin-right: -6px;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: var(--ink); }
input[type="date"]::-webkit-datetime-edit-text { color: var(--ink-faint); padding: 0 2px; }
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: rgba(254, 63, 1, .16);
  color: var(--ink);
  border-radius: 4px;
  outline: none;
}
input[type="date"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(254, 63, 1, .1);
}
input[type="date"]:disabled, input[type="date"]:read-only {
  background-color: var(--surface-2);
  cursor: default;
}

/* Нативный выпадающий календарь (там, где поддерживается) */
::-webkit-datetime-edit { font-family: var(--font-body); }
::-webkit-calendar-picker-indicator:hover { filter: invert(30%) sepia(90%) saturate(4000%) hue-rotate(350deg); }

/* ---------------- кастомный календарь ---------------- */
.datepicker { position: relative; }
.datepicker__field {
  width: 100%; min-height: 50px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-3); color: var(--ink);
  font-family: inherit; font-size: 15px; text-align: left;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.datepicker__field:hover { border-color: var(--ink-faint); }
.datepicker.is-open .datepicker__field,
.datepicker__field:focus-visible {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 63, 1, .1);
}
.datepicker__text.is-empty { color: var(--ink-faint); }
.datepicker__icon { color: var(--ink-muted); flex-shrink: 0; }
.datepicker.is-open .datepicker__icon { color: var(--primary); }

.datepicker__pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0;
  width: 296px; padding: 14px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.datepicker__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.datepicker__title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.datepicker__nav {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: transparent;
  display: grid; place-items: center; color: var(--ink-soft);
  transition: background .16s var(--easing), border-color .16s var(--easing), color .16s var(--easing);
}
.datepicker__nav:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary-dark); }
.datepicker__dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 6px;
}
.datepicker__dow span {
  text-align: center; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint);
  padding: 4px 0;
}
.datepicker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.datepicker__day {
  height: 36px; border-radius: 10px; border: 0; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .14s var(--easing), color .14s var(--easing);
}
.datepicker__day:hover { background: var(--surface-2); }
.datepicker__day--muted { color: var(--ink-faint); opacity: .45; cursor: default; }
.datepicker__day--muted:hover { background: transparent; }
.datepicker__day.is-today { box-shadow: inset 0 0 0 1.5px var(--primary-soft); }
.datepicker__day.is-selected {
  background: var(--primary); color: #fff; font-weight: 800;
  box-shadow: 0 4px 12px rgba(254, 63, 1, .28);
}
.datepicker__day.is-selected:hover { background: var(--accent-deep); }
.datepicker__foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.datepicker__link {
  background: none; border: 0; padding: 4px 2px;
  font-size: 13px; font-weight: 700; color: var(--ink-faint);
  transition: color .16s var(--easing);
}
.datepicker__link:hover { color: var(--ink); }
.datepicker__link--accent { color: var(--primary-dark); }
.datepicker__link--accent:hover { color: var(--accent-deep); }

@media (max-width: 560px) {
  .datepicker__pop { width: min(296px, calc(100vw - 40px)); }
}

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert--error { background: #fdecea; border-color: #f5c6c0; color: #a31200; }
.alert--notice { background: #e8f5ec; border-color: #bfe3c9; color: #1f6b41; }

.code-input {
  letter-spacing: .4em; font-size: 24px; font-weight: 800;
  text-align: center; font-family: var(--font-body);
}

.auth-alt { margin-top: 24px; font-size: 14px; color: var(--ink-faint); text-align: center; }
.auth-alt a { color: var(--primary-dark); font-weight: 700; }

/* ------------------------------------------------------------------ account */
.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  padding: 44px 0 20px;
  align-items: start;
}
.account-nav {
  position: sticky; top: calc(var(--header-h) + 18px);
  display: grid; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.account-nav a {
  padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .16s var(--easing), color .16s var(--easing);
}
.account-nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-nav a.is-active { background: var(--dark); color: #fff6ef; }

.account-head { margin-bottom: 28px; }
.account-head h1 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; }
.account-head p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

.audio-list { display: grid; gap: 14px; }
.audio-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.audio-row__media { width: 96px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.audio-row__media img { width: 100%; height: 100%; object-fit: cover; }
.audio-row__body { min-width: 0; display: grid; gap: 4px; }
.audio-row__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.audio-row__meta { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.audio-row__player { margin-top: 10px; max-width: 560px; }

.card-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card-block + .card-block { margin-top: 20px; }
.card-block h2 { font-size: 20px; margin-bottom: 20px; }

/* --------------------------------------------------------------- about page */
.about-hero { padding: 52px 0 40px; }
.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}
.about-hero__text { max-width: 62ch; }
.about-hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -.03em;
  line-height: 1.12;
}
.about-lead { margin-top: 24px; font-size: 16.5px; line-height: 1.78; color: var(--ink-soft); }
.about-lead p { margin-bottom: 16px; }
.about-lead p:last-child { margin-bottom: 0; }

.about-hero__media {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.about-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-hero__caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(43, 32, 32, .82);
  backdrop-filter: blur(8px);
  color: #fff6ef;
}
.about-hero__caption b { display: block; font-size: 15px; }
.about-hero__caption span { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255, 246, 239, .72); }

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.about-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.about-tile h3 { font-size: 19px; margin-bottom: 10px; }
.about-tile p { font-size: 14.5px; color: var(--ink-soft); }
.about-media {
  margin-top: 44px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); max-height: 480px;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ кнопки магазинов приложений */
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.store-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 186px; padding: 10px 20px 10px 16px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff6ef;
  border: 1px solid var(--dark);
  transition: transform .18s var(--easing), background .2s var(--easing), box-shadow .2s var(--easing);
  box-shadow: 0 4px 14px rgba(43, 32, 32, .18);
}
.store-link svg { flex-shrink: 0; }
.store-link span { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; font-weight: 700; }
.store-link small {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255, 246, 239, .6); margin-bottom: 3px;
}
.store-link:hover { transform: translateY(-2px); background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 24px rgba(254, 63, 1, .3); }

/* в футере — компактно и в цвет фона */
.store-links--footer { flex-direction: column; gap: 8px; }
.store-links--footer .store-link {
  min-width: 0; padding: 7px 14px 7px 11px; gap: 9px;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: none;
  border-radius: var(--radius-pill);
}
.store-links--footer .store-link span { font-size: 13.5px; }
.store-links--footer .store-link small { font-size: 9px; color: rgba(255, 255, 255, .68); }
.store-links--footer .store-link:hover { background: #fff; border-color: #fff; color: var(--primary-dark); transform: none; }
.store-links--footer .store-link:hover small { color: var(--ink-faint); }

@media (max-width: 1024px) {
  .about-hero__grid { display: flex; flex-direction: column; gap: 24px; }
  .about-hero__text { display: contents; }
  .about-hero__media { order: 3; max-width: 460px; }
  .about-hero__media img { aspect-ratio: 4 / 5; }
  .about-hero .crumbs { order: 1; }
  .about-hero h1 { order: 2; margin-top: 0; }
  .about-hero .about-lead { order: 4; }
}
@media (max-width: 720px) {
  .about-hero { padding: 32px 0 26px; }
  .about-hero__media { max-width: none; }
  .store-link { flex: 1 1 150px; min-width: 0; }
  .store-links--footer { flex-direction: row; }
}

/* ------------------------------------------------------------------ notices */
.toast-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  display: grid; gap: 10px; max-width: 360px;
}
.toast {
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--dark); color: #fff6ef; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in .28s var(--easing);
}
.toast--ok { background: #1f6b41; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------- footer */
.site-footer {
  margin-top: 40px;
  background: var(--primary);
  background-image:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 255, 255, .10), transparent 58%),
    radial-gradient(90% 120% at 100% 100%, rgba(120, 0, 0, .22), transparent 62%);
  color: rgba(255, 255, 255, .86);
  padding: 62px 0 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, .75fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .26);
}
.footer__about { margin-top: 18px; font-size: 14px; line-height: 1.7; max-width: 38ch; color: rgba(255, 255, 255, .82); }
.footer__col { display: grid; gap: 11px; align-content: start; }
.footer__col h3 {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin-bottom: 6px;
}
.footer__col a { font-size: 14.5px; transition: color .18s var(--easing), opacity .18s var(--easing); }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .68);
}
.footer__fine { max-width: 58ch; }
.site-footer .brand--light .brand__logo { filter: brightness(0) invert(1); }

/* ------------------------------------------------------------------- mobile */
@media (max-width: 1180px) {
  .hero__grid { gap: 36px; }
  .session-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 34px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 88px; }
  .mainnav { display: none; position: fixed; inset: var(--header-h) 0 auto; background: var(--primary-dark);
    padding: 18px 28px 26px; flex-direction: column; gap: 4px; }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .2); color: #fff; }
  .burger { display: grid; }
  .header__inner { gap: 16px; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__collage { max-width: 460px; }
  .session-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account-layout { grid-template-columns: 1fr; gap: 26px; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .account-nav a { white-space: nowrap; }
  .audio-row { grid-template-columns: 64px minmax(0, 1fr); padding: 12px 14px; gap: 12px; }
  .audio-row__media { width: 64px; }
  .audio-row__player { max-width: none; }
}

@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .header__inner { height: 72px; gap: 8px; }
  :root { --header-h: 72px; }
  .brand { margin-right: auto; }
  .brand__logo { height: 30px; }
  .brand__name { font-size: 20px; }
  .brand__note { display: none; }
  .header__actions { gap: 2px; margin-left: 0; }
  .header__actions > .icon-btn:first-child { display: none; }
  .header__actions .btn--sm { padding: 8px 14px; font-size: 13px; }
  .usermenu__toggle { padding: 4px; border-color: transparent; }
  .usermenu__name { display: none; }
  .burger { order: 99; }
  .hero { padding: 36px 0 28px; }
  .hero__stats { gap: 22px; }
  .hero__stat b { font-size: 24px; }
  .section { padding: 44px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .session-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .session-grid--wide { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-row__media { width: 84px; }
  .cart-row__right { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
  .auth-card { padding: 26px 20px; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; }
  .collage__badge { left: 0; right: 0; bottom: -6px; justify-content: center; }
  .session-cover { aspect-ratio: 4 / 3; }
  .player { padding: 16px; }
  .toast-stack { left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* --- consent (152-ФЗ) --- */
.consent-block { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.consent-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.consent-check input { margin: 2px 0 0; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--accent, #FE3F01); }
.consent-check a, .consent-policy { color: var(--accent, #FE3F01); text-decoration: underline; }
.consent-policy { display: inline-block; margin: 7px 0 0 26px; }
.btn--block[disabled] { opacity: .5; cursor: not-allowed; }
