:root {
  --bg: #110e0c;
  --bg-soft: #1b1512;
  --card: rgba(36, 29, 25, .88);
  --card-light: rgba(52, 41, 33, .9);
  --text: #fff5e8;
  --muted: #c7b7a4;
  --accent: #f0a23a;
  --accent-soft: #ffd18a;
  --accent-dark: #7a4016;
  --border: rgba(255, 218, 174, .16);
  --success-bg: rgba(64, 151, 92, .16);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(17, 14, 12, .45), rgba(17, 14, 12, .94) 56%, #110e0c),
    url("/static/img/design/1709891834868.3dc49788664b.jpg") center top / cover no-repeat;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(240, 162, 58, .22), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .08), transparent 22rem),
    rgba(0, 0, 0, .18);
}
a { color: inherit; }
img { max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(17, 14, 12, .78);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
  flex: 0 0 auto;
}
.logo-img {
  display: block;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 10px 24px rgba(240, 162, 58, .28));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.nav-links {
  min-width: 0;
  flex: 0 0 auto;
}
.nav-actions {
  flex: 0 0 auto;
}
.nav a,
.link-button {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.nav a:hover,
.link-button:hover,
.header-search.is-open .header-search-toggle {
  color: var(--text);
}
.login-link {
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  padding: 8px 16px !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, .04);
}
.login-link:hover {
  border-color: rgba(240, 162, 58, .38) !important;
  background: rgba(240, 162, 58, .08);
}
.header-search {
  position: relative;
  flex: 0 0 auto;
}
.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}
.header-search-mobile-icon {
  display: none;
  font-size: 18px;
  line-height: 1;
}
.header-search-form[hidden] {
  display: none !important;
}
.header-search-form {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 40;
  width: min(460px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(52, 41, 33, .98), rgba(36, 29, 25, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  animation: headerSearchIn .18s ease both;
}
.header-search-form::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: rgba(52, 41, 33, .98);
}
.header-search-form input {
  min-width: 0;
}
.header-search-form button {
  white-space: nowrap;
}
@keyframes headerSearchIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.page-shell { padding: 30px 0 54px; }
.hero, .auth-card, .contact-form, .search-form, .catalog-header, .sidebar-card, .book-card, .player-shell, .book-detail, .book-aside-card, .promo-strip, .mini-player-card {
  background: linear-gradient(180deg, var(--card-light), var(--card));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
}
.hero, .auth-card, .contact-form { padding: clamp(22px, 4vw, 44px); margin: 0 0 24px; }
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 30px;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(17, 14, 12, .88), rgba(17, 14, 12, .5) 54%, rgba(240, 162, 58, .2));
  pointer-events: none;
}
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.hero-copy { max-width: 690px; }
.hero-visual { display: grid; gap: 16px; }
.hero-visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 28px; padding: 18px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-soft); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 900; }
h1 { margin: 0 0 14px; font-size: clamp(36px, 6vw, 72px); line-height: .96; letter-spacing: -.04em; }
h2, h3 { margin-top: 0; }
.richtext p { line-height: 1.7; }
.hero .richtext { color: var(--muted); font-size: 18px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel { display: grid; align-content: center; gap: 10px; padding: 24px; border-radius: 22px; background: rgba(240, 162, 58, .13); border: 1px solid rgba(240, 162, 58, .28); color: #ffe0a6; }
.hero-number { display: block; font-size: 54px; line-height: 1; font-weight: 950; }
.hero-age-warning { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: rgba(17, 14, 12, .72); border: 1px solid rgba(240, 162, 58, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.hero-age-warning__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; min-height: 54px; border-radius: 18px; background: rgba(240, 162, 58, .16); color: #ffe0a6; font-size: 30px; line-height: 1; font-weight: 950; letter-spacing: -.04em; }
.hero-age-warning__text { color: var(--muted); font-size: 14px; line-height: 1.45; }
.button, button { background: var(--accent); color: #2a1608; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button:hover, button:hover { filter: brightness(1.06); }
.button-secondary { background: rgba(255, 255, 255, .07); color: var(--text); border: 1px solid var(--border); }
.promo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; margin: 0 0 24px; }
.promo-strip div { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.promo-strip strong { display: block; margin-bottom: 4px; }
.promo-strip span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.mini-player-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin: 0 0 24px;
}
.mini-player-cover {
  display: block;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 14, 12, .68);
  text-decoration: none;
}
.mini-player-cover img,
.mini-player-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}
.mini-player-cover [hidden],
.mini-player-cover .is-hidden {
  display: none;
}
.mini-player-copy {
  min-width: 0;
}
.mini-player-copy .eyebrow {
  margin-bottom: 7px;
}
.mini-player-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.12;
}
.mini-player-copy h2 a {
  color: var(--text);
  text-decoration: none;
}
.mini-player-copy h2 a:hover,
.mini-player-copy h2 a:focus {
  color: var(--accent-soft);
}
.mini-player-chapter,
.mini-player-status {
  margin: 0;
}
.mini-player-chapter {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}
.mini-player-status {
  margin-top: 5px;
  font-size: 13px;
}
.mini-player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.mini-player-play-btn {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(240, 162, 58, .22);
}
.mini-player-play-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.2);
}
.mini-player-play-icon .player-icon-svg {
  width: 1.35em;
  height: 1.35em;
}
.mini-player-book-link {
  white-space: nowrap;
}
.catalog-header { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 24px; align-items: end; padding: 30px; margin-bottom: 24px; }
.catalog-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 14, 12, .3), rgba(17, 14, 12, .82)), url("/static/img/design/catalog-mini-sorting.45c5ad691b7d.jpg") center / cover no-repeat; opacity: .5; }
.catalog-header > * { position: relative; z-index: 1; }
.content-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.sidebar-card { padding: 18px; position: sticky; top: 96px; overflow: hidden; }
.sidebar-card h2 { font-size: 18px; margin: 14px 0 8px; }
.sidebar-card a { display: block; padding: 10px 12px; margin-top: 6px; border-radius: 13px; color: var(--muted); text-decoration: none; background: rgba(255, 255, 255, .04); }
.sidebar-card a:hover, .sidebar-card a.active { color: var(--text); background: rgba(240, 162, 58, .13); }
.sidebar-card a.active { box-shadow: inset 0 0 0 1px rgba(240, 162, 58, .35); }
.image-card img { width: 100%; height: 132px; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); }
.popular-book-list, .filter-list { display: grid; gap: 7px; }
.popular-book-link { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; }
.popular-book-index { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(240, 162, 58, .16); color: var(--accent-soft); font-weight: 950; font-size: 13px; }
.popular-book-copy { min-width: 0; display: grid; gap: 2px; }
.popular-book-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; }
.popular-book-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.sidebar-section { margin-top: 16px; }
.sidebar-section:first-of-type { margin-top: 12px; }
.filter-link { display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; }
.filter-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-more { display: grid; gap: 7px; margin-top: 7px; }
.sidebar-more-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sidebar-more-button { display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 13px; color: var(--accent-soft); background: rgba(240, 162, 58, .08); cursor: pointer; font-weight: 900; }
.sidebar-more .summary-close { display: none; }
.sidebar-more-toggle:checked ~ .sidebar-more-button .summary-open { display: none; }
.sidebar-more-toggle:checked ~ .sidebar-more-button .summary-close { display: inline; }
.filter-list-extra { display: none; margin-top: 0; }
.sidebar-more-toggle:checked ~ .filter-list-extra { display: grid; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading a, .listen-link { color: var(--accent-soft); font-weight: 900; text-decoration: none; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.book-grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.book-card { overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.book-card:hover { transform: translateY(-4px); border-color: rgba(240, 162, 58, .48); box-shadow: 0 28px 90px rgba(0, 0, 0, .42); }
.book-card-cover { display: block; aspect-ratio: 3 / 4; background: #17120f; text-decoration: none; overflow: hidden; }
.book-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.book-card:hover .book-card-cover img { transform: scale(1.04); }
.cover-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 250px; color: var(--accent); font-size: 58px; font-weight: 950; background: linear-gradient(135deg, #3a291e, #18120f); }
.book-card-body { padding: 15px; }
.book-card-body h2, .book-card-body h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.12; }
.book-card-body h2 a, .book-card-body h3 a { text-decoration: none; }
.book-card-body h2 a:hover, .book-card-body h3 a:hover { color: var(--accent-soft); }
.book-card-body p { margin: 7px 0; line-height: 1.52; }
.book-meta, .subtitle, .muted, .notice { color: var(--muted); }
.search-form { display: flex; gap: 10px; padding: 10px; margin: 0; }
.form-row, .contact-form label { display: grid; gap: 8px; margin-bottom: 16px; }
.form-row input, .search-form input, .header-search-form input, .contact-form input, .contact-form textarea, .profile-name-form input {
  width: 100%;
  background: rgba(17, 14, 12, .82);
  color: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
}
.search-form input { flex: 1; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.book-layout { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 28px; padding: 8px 0 40px; }
.book-aside { display: grid; gap: 16px; align-content: start; position: sticky; top: 96px; }
.book-cover { width: 100%; border-radius: 26px; display: block; border: 1px solid var(--border); box-shadow: 0 26px 86px rgba(0, 0, 0, .42); }
.book-cover-placeholder { aspect-ratio: 3 / 4; display: grid; place-items: center; font-size: 80px; font-weight: 950; color: var(--accent); background: linear-gradient(135deg, #3a291e, #18120f); }
.book-aside-card { padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.book-aside-card span { color: var(--muted); }
.book-aside-card strong { color: var(--accent-soft); font-size: 32px; }
.book-detail { padding: clamp(22px, 4vw, 38px); }
.book-detail h1 { max-width: 820px; }
.player-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-9999px);
}
.player-shell { padding: 18px; margin-top: 22px; }
.custom-player {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.player-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.player-play-btn {
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 14px 36px rgba(240, 162, 58, .22);
}
.player-current { min-width: 0; }
.player-title {
  margin: 0 0 8px;
  font-weight: 950;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
}
.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.player-counter,
.player-time {
  color: var(--accent-soft);
  font-weight: 900;
  white-space: nowrap;
}
.player-progress-row { display: grid; gap: 8px; }
.player-progress,
.player-volume-range {
  --range-fill: 0%;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--range-fill), rgba(255, 255, 255, .12) var(--range-fill) 100%);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.player-progress:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.player-progress::-webkit-slider-thumb,
.player-volume-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #2a1608;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .34);
  appearance: none;
  -webkit-appearance: none;
}
.player-progress::-moz-range-thumb,
.player-volume-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #2a1608;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .34);
}
.player-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 74px));
  justify-content: center;
  gap: 10px;
  margin: 2px auto 0;
}
.player-control-btn,
.player-small-btn {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}
.player-control-btn:disabled,
.player-play-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.2);
}
.player-control-btn-seek {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.player-icon {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.player-icon-svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
}
.player-play-btn .player-icon-svg {
  width: 1.35em;
  height: 1.35em;
}
.player-seek-label {
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-1px);
}
.player-options {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 14, 12, .48);
}
.player-volume {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.player-speed {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.player-speed select {
  color: var(--text);
  background: rgba(17, 14, 12, .88);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
}
.chapter-list { display: grid; gap: 8px; margin-top: 18px; scroll-margin-top: 120px; }
.chapter-item { width: 100%; text-align: left; background: rgba(17, 14, 12, .88); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; }
.chapter-item.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 162, 58, .12); }

.chapter-count-link { color: var(--accent-soft); font-weight: 900; text-decoration: none; }
.chapter-count-link:hover, .chapter-count-link:focus { text-decoration: underline; }
.catalog-results:focus { outline: 2px solid rgba(240, 162, 58, .55); outline-offset: 4px; border-radius: 18px; }
.chapter-list:focus { outline: none; }
.notice { display: block; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(17, 14, 12, .84); }
.auth-mail-warning { margin: 6px 0 14px; border-color: rgba(240, 162, 58, .34); background: rgba(240, 162, 58, .1); color: var(--muted); line-height: 1.5; }
.auth-mail-warning strong { color: #ffe0a6; }
.notice.success { background: var(--success-bg); }
.error, .errorlist { color: #fca5a5; margin: 0; list-style: none; padding-left: 0; }
.site-footer { border-top: 1px solid var(--border); background: rgba(10, 8, 7, .86); color: var(--muted); backdrop-filter: blur(14px); }
.footer-inner { padding: 22px 0; }
@media (max-width: 960px) {
  .hero-main, .catalog-header, .content-layout, .book-layout { grid-template-columns: 1fr; }
  .sidebar-card, .book-aside { position: static; }
  .hero-main { min-height: auto; }
  .hero-visual { grid-template-columns: minmax(160px, 280px) 1fr; align-items: stretch; }
  .promo-strip { grid-template-columns: 1fr; }
  .mini-player-card { grid-template-columns: 72px minmax(0, 1fr); }
  .mini-player-cover { width: 72px; height: 72px; }
  .mini-player-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .header-inner {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }
  .logo {
    margin: 0 auto;
    justify-content: center;
  }
  .logo-img {
    height: 74px;
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: normal;
    gap: 0;
    margin-left: 0;
    padding: 2px 0 6px;
  }
  .nav-links {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    gap: 14px;
    flex: 0 0 auto;
  }
  .nav-actions {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 0;
  }
  .nav a,
  .link-button,
  .login-link {
    white-space: nowrap;
  }
  .header-search-form {
    right: 0;
  }
}
@media (max-width: 620px) {
  .site-header .container {
    width: 100%;
  }
  .player-shell { padding: 14px; }
  .mini-player-card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .mini-player-cover { width: 64px; height: 64px; border-radius: 16px; }
  .mini-player-actions { width: 100%; align-items: stretch; }
  .mini-player-play-btn { width: 52px; height: 52px; }
  .mini-player-book-link { flex: 1 1 auto; }
  .player-main {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .player-play-btn {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }
  .player-controls {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 14px auto;
  }
  .player-options { grid-template-columns: 1fr; }
  .player-volume { grid-template-columns: 42px minmax(0, 1fr); }
  .player-speed { justify-content: space-between; }
  .player-control-btn, .player-small-btn { min-height: 42px; font-size: 16px; }
  .player-control-btn-seek { font-size: 12px; }
  .header-inner {
    gap: 8px;
    padding: 10px 12px;
  }
  .logo-img {
    height: 64px;
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: normal;
    gap: 0;
    padding: 2px 0 6px;
  }
  .nav-links {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
  }
  .nav-actions {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
  }
  .nav a,
  .link-button {
    font-size: 13px;
    letter-spacing: -.01em;
  }
  .login-link {
    padding: 6px 9px !important;
    font-size: 13px !important;
  }
  .profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .header-search-label {
    display: none;
  }
  .header-search-mobile-icon {
    display: inline-block;
    font-size: 28px;
    transform: translateY(-1px);
  }
  .header-search-toggle {
    min-width: 32px;
    min-height: 32px;
  }
  .header-search-form {
    position: fixed;
    top: 118px;
    left: 10px;
    right: 10px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .header-search-form::before {
    display: none;
  }
  .hero, .catalog-header, .book-detail { border-radius: 20px; }
  .hero-visual { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .book-grid, .book-grid-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .book-card-body { padding: 12px; }
}

.profile-menu {
  position: relative;
}
.profile-menu-trigger {
  list-style: none;
  display: inline-flex;
  cursor: pointer;
}
.profile-menu-trigger::-webkit-details-marker {
  display: none;
}
.profile-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 162, 58, .45);
  background: linear-gradient(135deg, rgba(240, 162, 58, .95), rgba(122, 64, 22, .96));
  color: #2a1608;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(240, 162, 58, .18);
}
.profile-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(27, 21, 18, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}
.profile-menu-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 17px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: rgba(27, 21, 18, .98);
}
.profile-menu-user {
  display: grid;
  gap: 2px;
  padding: 9px 10px 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.profile-menu-user strong {
  color: var(--text);
}
.profile-menu-user span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.nav .profile-menu-panel a,
.profile-menu-button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav .profile-menu-panel a:hover,
.profile-menu-button:hover {
  color: var(--text);
  background: rgba(240, 162, 58, .13);
  filter: none;
}
.profile-page {
  display: grid;
  gap: 24px;
}
.profile-hero,
.profile-card {
  background: linear-gradient(180deg, var(--card-light), var(--card));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
}
.profile-hero h1 {
  margin-bottom: 10px;
}
.profile-avatar-large {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  font-size: 36px;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: start;
}
.profile-card {
  padding: clamp(20px, 3vw, 30px);
}
.profile-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.profile-card-heading h2,
.profile-section h3,
.profile-section-heading h3 {
  margin: 0;
}
.profile-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(17, 14, 12, .38);
}
.profile-section + .profile-section {
  margin-top: 16px;
}
.profile-section-heading {
  display: grid;
  gap: 6px;
}
.profile-data {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}
.profile-data div {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-data div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-data dt {
  color: var(--muted);
  font-size: 14px;
}
.profile-data dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.profile-security-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.profile-security-box .button {
  flex: 0 0 auto;
}
.profile-name-form {
  display: grid;
  gap: 14px;
}
.profile-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-name-form .button {
  justify-self: start;
}
.form-error {
  color: #fca5a5;
  font-weight: 700;
}
.tariff-status {
  display: inline-flex;
  margin: 6px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 950;
}
.tariff-status.is-active {
  color: #dfffe8;
  background: var(--success-bg);
  border: 1px solid rgba(64, 151, 92, .35);
}
.tariff-status.is-inactive {
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
}
.tariff-card .profile-actions {
  margin-top: 20px;
}

.profile-listening-card {
  grid-column: 1 / -1;
}
.profile-accordion-list {
  display: grid;
  gap: 14px;
}
.profile-accordion {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(17, 14, 12, .38);
}
.profile-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}
.profile-accordion summary::-webkit-details-marker {
  display: none;
}
.profile-accordion summary::after {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(240, 162, 58, .1);
}
.profile-accordion[open] summary::after {
  content: '−';
}
.profile-accordion-count {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
}
.profile-accordion-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}
.profile-book-row[hidden],
.profile-show-more[hidden] {
  display: none !important;
}
.profile-book-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
}
.profile-book-row:hover {
  border-color: rgba(240, 162, 58, .28);
  background: rgba(240, 162, 58, .1);
  filter: none;
}
.profile-book-link {
  color: var(--text);
  text-decoration: none;
}
.profile-book-link:hover {
  filter: none;
}
.profile-book-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(240, 162, 58, .14);
  font-size: 15px;
}
.profile-book-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.profile-book-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.profile-book-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.profile-book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.profile-book-action {
  padding: 8px 12px;
  border: 1px solid rgba(240, 162, 58, .34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(240, 162, 58, .14);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.profile-book-action:hover {
  background: rgba(240, 162, 58, .22);
}
.profile-book-action-secondary {
  border-color: var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
}
.profile-book-action-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
}
.profile-show-more {
  justify-self: center;
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid rgba(240, 162, 58, .32);
  border-radius: 999px;
  color: var(--text);
  background: rgba(240, 162, 58, .12);
  font-weight: 900;
  cursor: pointer;
}
.profile-show-more:hover {
  background: rgba(240, 162, 58, .2);
}
.profile-empty {
  margin: 2px 4px 6px;
}
@media (max-width: 760px) {
  .profile-grid,
  .profile-data div,
  .profile-name-grid {
    grid-template-columns: 1fr;
  }
  .profile-card-heading,
  .profile-security-box {
    flex-direction: column;
  }
  .profile-book-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .profile-book-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .profile-security-box {
    align-items: flex-start;
  }
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-menu-panel {
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 32px));
  }
  .profile-menu-panel::before {
    right: 17px;
    left: auto;
  }
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__captcha { margin: 0 0 16px; }

.standard-hero,
.about-feature-card,
.about-steps,
.about-final-card {
  background: linear-gradient(180deg, var(--card-light), var(--card));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
}
.standard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
  margin-bottom: 24px;
}
.standard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 162, 58, .23), transparent 24rem),
    linear-gradient(105deg, rgba(17, 14, 12, .28), rgba(17, 14, 12, .72)),
    url("/static/img/design/home-mini-menu.5d480f43b944.jpg") center / cover no-repeat;
  opacity: .62;
}
.standard-hero > * {
  position: relative;
  z-index: 1;
}
.standard-hero-copy .richtext {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.about-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(240, 162, 58, .26);
  background: rgba(17, 14, 12, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.about-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  padding: 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .18);
}
.about-hero-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(240, 162, 58, .11);
}
.about-hero-note strong {
  color: var(--text);
  font-size: 18px;
}
.about-hero-note span {
  color: var(--muted);
  line-height: 1.55;
}
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.about-hero-stats span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 14px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}
.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.about-feature-card {
  padding: 22px;
  overflow: hidden;
}
.about-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #2a1608;
  background: var(--accent);
  font-weight: 950;
}
.about-feature-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}
.about-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.about-steps {
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 24px;
}
.about-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-step-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}
.about-step-list strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent-soft);
  background: rgba(240, 162, 58, .14);
}
.about-step-list span {
  color: var(--text);
  font-weight: 800;
}
.about-final-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}
.about-final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 14, 12, .9), rgba(17, 14, 12, .58)),
    url("/static/img/design/catalog-mini-sorting.45c5ad691b7d.jpg") center / cover no-repeat;
  opacity: .72;
}
.about-final-card > * {
  position: relative;
  z-index: 1;
}
.about-final-card h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
@media (max-width: 960px) {
  .standard-hero,
  .about-feature-grid,
  .about-step-list {
    grid-template-columns: 1fr;
  }
  .about-hero-card {
    grid-template-columns: minmax(160px, 280px) 1fr;
    align-items: stretch;
  }
  .about-hero-stats {
    grid-column: 1 / -1;
  }
  .about-final-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .standard-hero,
  .about-feature-card,
  .about-steps,
  .about-final-card {
    border-radius: 20px;
  }
  .about-hero-card {
    grid-template-columns: 1fr;
  }
  .about-hero-stats {
    grid-template-columns: 1fr;
  }
  .about-step-list div {
    align-items: flex-start;
  }
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-form {
  display: grid;
  gap: 0;
}
.auth-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.auth-links {
  margin: 14px 0 0;
}
.auth-links a {
  color: var(--accent-soft);
  font-weight: 900;
  text-decoration: none;
}
.form-help {
  color: var(--muted);
  line-height: 1.45;
}
.password-requirements {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(17, 14, 12, .58);
  color: var(--muted);
  line-height: 1.45;
}
.password-requirements strong { color: var(--text); }
.password-requirements ul { margin: 0; padding-left: 18px; }
.password-requirements li + li { margin-top: 4px; }
.notice.error {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, .28);
  background: rgba(127, 29, 29, .18);
}

.catalog-results {
  display: grid;
  gap: 22px;
  scroll-margin-top: 120px;
}

.catalog-cycle-strip {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 14, 12, .72);
}
.catalog-cycle-strip__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.catalog-cycle-strip__header h2 {
  margin: 0;
  font-size: 18px;
}
.catalog-cycle-strip__header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.catalog-cycle-strip__links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.catalog-cycle-strip__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, .04);
  text-decoration: none;
  font-weight: 900;
}
.catalog-cycle-strip__link:hover,
.catalog-cycle-strip__link:focus {
  color: var(--text);
  border-color: rgba(240, 162, 58, .48);
  background: rgba(240, 162, 58, .16);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 14, 12, .72);
}
.pagination-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.pagination-summary {
  color: var(--muted);
  font-size: 14px;
}
.pagination-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.pagination-page-size label { white-space: nowrap; }
.pagination-page-size select {
  min-height: 38px;
  padding: 7px 34px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-weight: 900;
}
.pagination-page-size select option {
  color: #111;
  background: #fff;
}
.pagination-page-size select option:checked {
  color: #111;
}
.pagination-page-size select:focus {
  outline: 2px solid rgba(240, 162, 58, .55);
  outline-offset: 2px;
}
.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pagination-link,
.pagination-ellipsis {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  text-decoration: none;
  font-weight: 900;
}
.pagination-link:hover,
.pagination-link.active {
  color: var(--text);
  border-color: rgba(240, 162, 58, .48);
  background: rgba(240, 162, 58, .16);
}
.pagination-link.disabled,
.pagination-ellipsis {
  cursor: default;
  opacity: .52;
}
.pagination-link.disabled:hover {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, .04);
}

@media (hover: none) and (pointer: coarse) {
  .player-options {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }
  .player-volume {
    grid-template-columns: 46px;
    justify-content: start;
  }
  .player-volume-range {
    display: none;
  }
  .player-speed {
    justify-content: end;
    min-width: 0;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 620px) {
  .player-options { grid-template-columns: 42px minmax(0, 1fr); }
  .player-volume { grid-template-columns: 42px; }
}

.faq-hero,
.faq-aside,
.faq-card {
  background: linear-gradient(180deg, var(--card-light), var(--card));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
}
.faq-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
  margin-bottom: 24px;
}
.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 162, 58, .23), transparent 24rem),
    linear-gradient(105deg, rgba(17, 14, 12, .28), rgba(17, 14, 12, .72)),
    url("/static/img/design/home-mini-menu.5d480f43b944.jpg") center / cover no-repeat;
  opacity: .62;
}
.faq-hero > * {
  position: relative;
  z-index: 1;
}
.faq-hero-copy .richtext {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
}
.faq-aside h2 {
  margin-bottom: 10px;
  font-size: 24px;
}
.faq-aside p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}
.faq-aside .button {
  width: 100%;
  margin-top: 12px;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-card {
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.faq-card[open] {
  border-color: rgba(240, 162, 58, .46);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}
.faq-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card summary::after {
  content: '';
  display: block;
  grid-column: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 2px 12px no-repeat,
    rgba(240, 162, 58, .13);
}
.faq-card[open] summary::after {
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 12px 2px no-repeat,
    rgba(240, 162, 58, .13);
}
.faq-card-marker {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--accent-soft);
  background: rgba(240, 162, 58, .14);
  font-size: 14px;
  font-weight: 950;
}
.faq-card-question {
  color: var(--text);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
  line-height: 1.18;
}
.faq-card-answer {
  padding: 0 18px 20px 74px;
  color: var(--muted);
}
.faq-card-answer p:first-child {
  margin-top: 0;
}
.faq-card-answer p:last-child {
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .faq-hero,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-aside {
    position: static;
  }
}
@media (max-width: 620px) {
  .faq-hero,
  .faq-aside,
  .faq-card {
    border-radius: 20px;
  }
  .faq-card summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .faq-card summary::after {
    grid-column: 3;
  }
  .faq-card-question {
    padding-right: 0;
  }
  .faq-card-answer {
    padding: 0 18px 20px;
  }
}
