:root {
  --font-main: Georgia, "Times New Roman", serif;
  --font-ui: Georgia, "Times New Roman", serif;
  --font-title: var(--font-main);

  --bg: rgb(245, 246, 252);
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-muted: #f7f1ed;

  --text: #11152c;
  --text-muted: #4c526b;
  --text-soft: #73788b;

  --primary: #ff2f32;
  --primary-hover: #e82427;
  --green: #48b135;
  --purple: #8067b8;

  --border: rgba(17, 21, 44, 0.1);
  --shadow: 0 18px 50px rgba(40, 31, 25, 0.12);
  --shadow-soft: 0 8px 26px rgba(40, 31, 25, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1240px;
  --header-height: 74px;
}

[data-theme="dark"] {
  --bg: #0f1118;
  --bg-soft: #151823;
  --surface: rgba(26, 29, 40, 0.88);
  --surface-solid: #191d29;
  --surface-muted: #222635;

  --text: #f6f2ea;
  --text-muted: #c6c1b8;
  --text-soft: #8f93a5;

  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 34px;
  font-weight: 700;
  white-space: nowrap;
}

.logo-mark {
  color: var(--primary);
  font-size: 32px; 
}

.accent {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  color: var(--text);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.round-icon,
.burger {
  border: 0;
  background: transparent;
  color: var(--text);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 50%;
}

.icon-btn:hover {
  background: var(--surface-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-light {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-light:hover {
  background: var(--surface-muted);
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.btn-outline:hover {
  color: #ffffff;
  background: var(--primary);
}

.btn-glass {
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-large {
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 10px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

/* Hero */

.hero-section {
  position: relative;
  padding: 0 0 42px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 700px;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.24), rgba(247, 243, 239, 0.42)),
    linear-gradient(180deg, rgba(247, 243, 239, 0.05), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: -1;
}

[data-theme="dark"] .hero-bg {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.4), rgba(15, 17, 24, 0.72)),
    linear-gradient(180deg, rgba(15, 17, 24, 0.1), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 60px;
  align-items: start;
  padding-top: 72px;
}

.hero-content {
  padding-top: 32px;
  max-width: 540px;
}

.hero-content h1 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 460px;
  margin: 0 0 32px;
  color: var(--text);
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 58px;
}

.btn-icon {
  font-size: 24px;
}

.online-note {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.avatars {
  display: flex;
}

.avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.avatars img + img {
  margin-left: -10px;
}

/* Live rooms */

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

.section-head h2,
.events-card h2,
.audience-section h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.2;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.live-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.room-list {
  display: grid;
  gap: 16px;
}

.room-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  min-height: 126px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.room-user {
  position: relative;
}

.room-user img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  right: 6px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--green);
}

.room-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 22px;
}

.room-info h3 span {
  color: var(--primary);
}

.room-info h3 .green {
  color: var(--green);
}

.room-info h3 .purple {
  color: var(--purple);
}

.room-info p,
.room-info small {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.room-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.round-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  font-size: 22px;
}

.all-link {
  display: block;
  margin-top: 16px;
  color: var(--primary);
  text-align: center;
  font-weight: 700;
}

/* Feature cards */

.feature-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px; 
}

.feature-card,
.events-card,
.audience-card,
.stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.feature-card {
  position: relative;
  min-height: 210px;
  padding: 30px 28px;
}

.feature-icon,
.stat-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
}

.feature-icon.red,
.stat-icon.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.feature-icon.green,
.stat-icon.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.feature-card h3 {
  margin: -54px 0 18px 86px;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.leaf {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--green);
}

/* Content blocks */

.content-section {
  padding: 28px 0 3px;
}

.event-promo-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  margin-bottom: 48px;
}

.events-card {
  padding: 24px;
}

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

.card-head a {
  color: var(--primary);
  font-weight: 700;
}

.event-row {
  display: grid;
  grid-template-columns: 86px 88px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-date {
  width: 66px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 47, 50, 0.08);
}

.event-date strong {
  font-size: 24px;
  line-height: 1;
}

.event-date span {
  margin-top: -10px;
  font-size: 13px;
}

.event-time {
  font-size: 18px;
  font-weight: 700;
}

.event-info h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 19px;
}

.event-info p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

.places {
  color: var(--primary);
  white-space: nowrap;
}

.promo-card {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 38px 42px;
  overflow: hidden;
  color: #11152c;
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .promo-card {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .poetry-side-promo {
  color: var(--text);
  background:
    linear-gradient(
      90deg,
      rgba(15, 17, 24, 0.94),
      rgba(15, 17, 24, 0.52)
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .poetry-side-promo h2,
[data-theme="dark"] .poetry-side-promo p {
  color: var(--text);
}

.promo-card h2 {
  max-width: 380px;
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: 31px;
  line-height: 1.15;
}

.promo-card p {
  max-width: 470px;
  margin: 0 0 22px;
  font-weight: 700;
}

.promo-heart {
  position: absolute;
  right: 36px;
  bottom: 22px;
  font-size: 62px;
  color: #ffffff;
}

/* Stats */

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 58px;
}

.stat-item {
  display: grid;
  grid-template-columns: 72px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  padding: 18px 36px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-icon {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  font-size: 28px;
}

.stat-item strong {
  font-family: var(--font-main);
  font-size: 26px;
  line-height: 1;
}

.stat-item p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Audience */

.audience-section h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

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

.audience-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 26px 28px;
}

.audience-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 24px;
}

.audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 46px 0 42px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.8fr) 1fr;
  gap: 48px;
}

.footer-logo {
  font-size: 28px;
  margin-bottom: 8px;
}

.site-footer p,
.site-footer small {
  color: var(--text-muted);
}

.site-footer h4 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: 16px;
}

.site-footer a:not(.logo) {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text) !important;
  box-shadow: var(--shadow-soft);
}

/* Responsive */

@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-buttons {
    margin-bottom: 48px;
  }

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

  .event-promo-grid,
  .audience-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .footer-grid {
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    height: 66px;
  }

  .logo {
    font-size: 26px;
  }

  .main-nav {
    position: fixed;
    inset: 66px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a.active::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-grid {
    padding-top: 42px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-content h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn-large {
    width: 100%;
  }

  .online-note {
    align-items: flex-start;
    color: var(--text);
    text-shadow: none;
  }

  .room-card {
    grid-template-columns: 66px 1fr;
  }

  .room-user img {
    width: 58px;
    height: 58px;
  }

  .room-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }

  .feature-grid,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .event-row {
    grid-template-columns: 66px 1fr;
  }

  .event-time,
  .places {
    grid-column: 2;
  }

  .promo-card {
    padding: 30px 24px;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .audience-card {
    grid-template-columns: 68px 1fr;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 12px;
  }

  .logo-mark {
    display: none;
  }

  .logo {
    font-size: 23px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .hero-bg {
    height: 760px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-card {
    padding: 14px;
  }

  .room-info h3 {
    font-size: 19px;
  }

  .feature-card h3 {
    margin-left: 78px;
    font-size: 22px;
  }

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

  .promo-card h2 {
    font-size: 26px;
  }

  .footer-grid {
    text-align: left;
  }
}

/* ==============================
   Page: Live Room / Node Room
============================== */

.live-room-page {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 47, 50, 0.035), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(72, 177, 53, 0.045), transparent 30%),
    var(--bg);
}

.live-room-section {
  padding: 24px 0 34px;
}

.live-room-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 800;
}

.live-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.live-room-main,
.live-room-sidebar {
  min-width: 0;
}

.live-room-main,
.live-room-sidebar {
  display: grid;
  gap: 20px;
}

.live-room-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 32px 28px 30px;
  color: #11152c;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(15,17,24,.38)),
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.52), rgba(255,255,255,.08)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .live-room-hero {
  color: #f6f2ea;
  background:
    linear-gradient(180deg, rgba(15,17,24,.1), rgba(15,17,24,.72)),
    linear-gradient(90deg, rgba(15,17,24,.95), rgba(15,17,24,.55), rgba(15,17,24,.08)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.live-room-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.live-room-badge,
.live-room-timer {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 7px;
  font-weight: 900;
}

.live-room-badge.on-air {
  color: #fff;
  background: var(--primary);
}

.live-room-timer {
  color: #fff;
  background: rgba(17, 21, 44, 0.62);
}

.live-room-info {
  max-width: 640px;
}

.live-room-info h1 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: clamp(58px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.live-room-info > p {
  max-width: 580px;
  margin: 0 0 32px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.live-room-host {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.live-room-host img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.live-room-host div {
  font-weight: 900;
}

.live-room-host img,
.live-room-online-list img,
.live-room-person img,
.live-room-current-reader img {
  box-shadow: var(--shadow-soft);
}

.live-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 34px;
  font-weight: 900;
}

.live-room-audio {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 104px;
  display: grid;
  justify-items: center;
}

.live-room-wave {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: -28px;
}

.live-room-wave i {
  width: 4px;
  height: 30px;
  border-radius: 99px;
  background: rgba(255,255,255,.95);
}

.live-room-wave i:nth-child(2n) { height: 42px; }
.live-room-wave i:nth-child(3n) { height: 54px; }
.live-room-wave i:nth-child(4n) { height: 24px; }
.live-room-wave i:nth-child(5n) { height: 64px; }

.live-room-mic {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255,255,255,.88);
  border: 3px solid rgba(255,255,255,.7);
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(255,47,50,.32);
  font-size: 42px;
}

.live-room-mic.active {
  color: #fff;
  background: linear-gradient(180deg, #ff7678, var(--primary));
}

.live-room-audio p {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 800;
}

.live-room-actions {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  transform: translateX(-50%);
}

.live-room-actions .btn {
  min-height: 50px;
  padding-inline: 26px;
}

.live-room-tabs-card,
.live-room-current-card,
.live-room-control-card,
.live-room-events-card,
.live-room-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.live-room-tabs-card {
  overflow: hidden;
}

.live-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.live-room-tabs button {
  position: relative;
  min-height: 58px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-weight: 900;
}

.live-room-tabs button.active::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
}

.live-room-tabs span {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  color: #fff;
  background: var(--primary);
  border-radius: 99px;
  font-size: 12px;
}

.live-room-tabs button:not(.active) span {
  color: var(--text-muted);
  background: var(--surface-muted);
}

.live-room-participants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 34px;
  padding: 22px 24px 10px;
}

.live-room-person {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
}

.live-room-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.live-room-person h3 {
  margin: 0 0 3px;
  font-family: var(--font-main);
  font-size: 18px;
}

.live-room-person p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.live-room-person i,
.live-room-online-list article::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.live-room-person span,
.live-room-online-list .speaking b,
.live-room-current-reader h3 span {
  color: var(--primary);
  letter-spacing: 2px;
}

.live-room-show-all {
  width: calc(100% - 48px);
  min-height: 44px;
  display: grid;
  place-items: center;
  margin: 14px 24px 22px;
  color: var(--primary);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
}

.live-room-current-card,
.live-room-control-card,
.live-room-events-card {
  padding: 22px 24px;
}

.live-room-current-card h2,
.live-room-control-card h2,
.live-room-events-card h2,
.live-room-side-card h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.2;
}

.live-room-current-card h2,
.live-room-control-card h2 {
  margin-bottom: 18px;
}

.live-room-current-reader {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 190px 150px;
  gap: 18px;
  align-items: center;
}

.live-room-current-reader img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.live-room-current-reader h3 {
  margin: 0 0 3px;
  font-family: var(--font-main);
  font-size: 22px;
}

.live-room-current-reader p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.live-room-reading-time {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.live-room-reading-time strong {
  font-family: var(--font-main);
  font-size: 24px;
}

.live-room-reading-time span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.live-room-reading-time i {
  width: 120px;
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, var(--primary) 52%, var(--border) 52%);
}

.live-room-control-card h2 span {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
}

.live-room-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-room-control-actions button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.live-room-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.live-room-section-head a {
  color: var(--primary);
  font-weight: 900;
}

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

.live-room-events-grid article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.live-room-events-grid time {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,47,50,.06);
  border-radius: 10px;
}

.live-room-events-grid time strong {
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1;
}

.live-room-events-grid time span {
  margin-top: -10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-room-events-grid b {
  display: block;
  margin-bottom: 10px;
}

.live-room-events-grid h3 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: 17px;
}

.live-room-events-grid p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.live-room-events-grid small {
  color: var(--primary);
  font-weight: 900;
}

.live-room-side-card {
  padding: 22px;
}

.live-room-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.live-room-side-head span {
  color: var(--text);
  font-weight: 900;
}

.live-room-online-list article {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--border);
}

.live-room-online-list img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.live-room-online-list h3 {
  margin: 0 0 3px;
  font-family: var(--font-main);
  font-size: 17px;
}

.live-room-online-list h3 span {
  color: var(--green);
}

.live-room-online-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.live-room-online-list b {
  color: var(--text);
}

.live-room-online-list b.muted {
  color: var(--text-soft);
}

.live-room-online-card > button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.live-room-queue-list {
  display: grid;
}

.live-room-queue-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 96px 18px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
}

.live-room-queue-list article > b {
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,47,50,.06);
  border-radius: 7px;
  font-family: var(--font-main);
  font-size: 18px;
}

.live-room-queue-list h3 {
  margin: 0 0 2px;
  font-family: var(--font-main);
  font-size: 16px;
}

.live-room-queue-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.live-room-queue-list button {
  min-height: 32px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.live-room-queue-list i {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 900;
}

.live-room-queue-card > a {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-weight: 800;
}

.live-room-log-card h2,
.live-room-poll-card h2 {
  margin-bottom: 16px;
}

.live-room-log-list {
  display: grid;
  gap: 10px;
}

.live-room-log-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.live-room-log-list time {
  display: inline-block;
  width: 42px;
  color: var(--text-soft);
}

.live-room-log-card > a {
  display: block;
  margin-top: 20px;
  color: var(--primary);
  text-align: center;
  font-weight: 900;
}

.live-room-poll-card > p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 800;
}

.live-room-poll-row {
  display: grid;
  grid-template-columns: 1fr 90px 42px;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.live-room-poll-row span,
.live-room-poll-row strong {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.live-room-poll-row i {
  height: 5px;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: 99px;
}

.live-room-poll-row b {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.live-room-poll-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

/* Live Room responsive */

@media (max-width: 1180px) {
  .live-room-layout {
    grid-template-columns: 1fr;
  }

  .live-room-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-room-poll-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .live-room-hero {
    min-height: 660px;
  }

  .live-room-actions {
    left: 28px;
    right: 28px;
    transform: none;
    justify-content: center;
  }

  .live-room-participants-grid {
    grid-template-columns: 1fr;
  }

  .live-room-current-reader {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .live-room-reading-time,
  .live-room-current-reader .btn {
    grid-column: 2;
    justify-self: start;
  }

  .live-room-events-grid {
    grid-template-columns: 1fr;
  }

  .live-room-sidebar {
    grid-template-columns: 1fr;
  }

  .live-room-poll-card {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .live-room-section {
    padding-top: 16px;
  }

  .live-room-hero {
    min-height: 720px;
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .live-room-info h1 {
    font-size: 46px;
  }

  .live-room-info > p {
    font-size: 17px;
  }

  .live-room-meta {
    gap: 14px;
    flex-direction: column;
  }

  .live-room-audio {
    left: 20px;
    right: 20px;
    bottom: 170px;
  }

  .live-room-actions {
    bottom: 24px;
    flex-direction: column;
  }

  .live-room-actions .btn {
    width: 100%;
  }

  .live-room-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-room-current-card,
  .live-room-control-card,
  .live-room-events-card,
  .live-room-side-card {
    padding: 20px;
  }

  .live-room-current-reader {
    grid-template-columns: 1fr;
  }

  .live-room-current-reader img {
    width: 76px;
    height: 76px;
  }

  .live-room-reading-time,
  .live-room-current-reader .btn {
    grid-column: auto;
  }

  .live-room-control-actions button {
    width: 100%;
  }

  .live-room-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-room-queue-list article {
    grid-template-columns: 34px 1fr;
  }

  .live-room-queue-list button,
  .live-room-queue-list i {
    grid-column: 2;
    justify-self: start;
  }

  .live-room-poll-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .live-room-info h1 {
    font-size: 40px;
  }

  .live-room-host {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-room-wave {
    gap: 3px;
  }

  .live-room-wave i {
    width: 3px;
  }

  .live-room-mic {
    width: 78px;
    height: 78px;
  }

  .live-room-tabs button {
    min-height: 52px;
    font-size: 13px;
  }

  .live-room-person {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .live-room-person span,
  .live-room-person i {
    grid-column: 2;
  }
}


/* ==============================
   Page 3: Rooms Catalog
============================== */

.rooms-page {
  background: var(--bg);
}

.rooms-hero {
  position: relative;
  padding: 40px 0 28px;
  overflow: hidden;
}

.rooms-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 280px;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.96) 0%, rgba(247, 243, 239, 0.66) 44%, rgba(247, 243, 239, 0.1) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .rooms-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.96) 0%, rgba(15, 17, 24, 0.72) 46%, rgba(15, 17, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.rooms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.rooms-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rooms-hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 19px;
  font-weight: 600;
}

.rooms-search {
  width: min(100%, 820px);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.rooms-search span {
  color: var(--text);
  font-size: 24px;
}

.rooms-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.rooms-search input::placeholder {
  color: var(--text-soft);
}

.rooms-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.view-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

.filter-chip.active,
.view-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 47, 50, 0.04);
}

.filter-chip i,
.room-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.rooms-catalog-section {
  padding: 0 0 56px;
}

.rooms-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.rooms-filters {
  display: grid;
  gap: 16px;
}

.filter-box,
.rooms-side-promo,
.catalog-room-card,
.rooms-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.filter-box {
  padding: 20px 18px;
  margin-bottom: 18px;
}

.filter-box h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 22px;
}

.filter-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-option span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
}

.filter-option input[type="radio"] + span {
  border-radius: 50%;
}

.filter-option input:checked + span {
  border-color: var(--primary);
}

.filter-option input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: var(--primary);
}

.rooms-side-promo {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 22px 18px;
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.26)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .rooms-side-promo {
  color: #f6f2ea;
  background:
    linear-gradient(180deg, rgba(15,17,24,.82), rgba(15,17,24,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

.rooms-side-promo h2 {
  max-width: 190px;
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 23px;
  line-height: 1.15;
}

.rooms-side-promo p {
  max-width: 210px;
  margin: 0 0 128px;
  font-weight: 700;
}

.rooms-side-promo span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 48px;
}

.rooms-results {
  min-width: 0;
}

.rooms-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.rooms-results-head p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.rooms-view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rooms-view-actions select {
  height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

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

.catalog-room-card {
  overflow: hidden;
}

.catalog-room-cover {
  position: relative;
  height: 82px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.5)),
    var(--surface-muted);
}

.catalog-room-cover.empty {
  height: 54px;
}

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

.room-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 99px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.room-badge.live {
  color: var(--primary);
}

.room-badge.scheduled {
  color: var(--text);
}

.catalog-fav {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 24px;
}

.catalog-fav.green {
  color: var(--green);
}

.catalog-room-body {
  padding: 16px;
}

.catalog-room-author {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.catalog-avatar {
  position: relative;
  width: max-content;
}

.catalog-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.catalog-avatar span {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--green);
}

.catalog-room-author h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 25px;
  line-height: 1.15;
}

.catalog-room-author p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.catalog-room-text {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.catalog-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.catalog-room-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 700;
}

.catalog-room-footer .btn {
  min-height: 36px;
  padding-inline: 18px;
  flex: 0 0 auto;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.catalog-pagination a,
.catalog-pagination span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
}

.catalog-pagination a.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.catalog-pagination .btn {
  margin-left: auto;
}

.rooms-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  overflow: hidden;
}

.rooms-stat {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 36px;
  border-right: 1px solid var(--border);
}

.rooms-stat:last-child {
  border-right: 0;
}

.rooms-stat > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.rooms-stat > span.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.rooms-stat > span.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.rooms-stat > span.purple {
  color: var(--purple);
  background: rgba(128, 103, 184, 0.12);
}

.rooms-stat strong {
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1;
}

.rooms-stat p {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 800;
}

.rooms-stat small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Page 3 responsive */

@media (max-width: 1120px) {
  .rooms-catalog-layout {
    grid-template-columns: 1fr;
  }

  .rooms-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .rooms-side-promo {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .rooms-side-promo p {
    margin-bottom: 42px;
  }

  .rooms-stats-panel {
    grid-template-columns: 1fr;
  }

  .rooms-stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .rooms-stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .rooms-hero {
    padding-top: 32px;
  }

  .rooms-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rooms-view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .rooms-view-actions select {
    flex: 1 1 220px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .rooms-filters {
    grid-template-columns: 1fr;
  }

  .catalog-pagination {
    flex-wrap: wrap;
  }

  .catalog-pagination .btn {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .rooms-hero::before {
    height: 340px;
  }

  .rooms-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .rooms-hero p {
    font-size: 16px;
  }

  .rooms-search {
    height: auto;
    min-height: 54px;
    padding: 12px 16px;
  }

  .rooms-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rooms-filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .filter-box {
    padding: 18px;
  }

  .catalog-room-cover {
    height: 76px;
  }

  .catalog-room-body {
    padding: 16px 14px;
  }

  .catalog-room-author h2 {
    font-size: 22px;
  }

  .catalog-room-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-room-footer .btn {
    width: 100%;
  }

  .catalog-room-meta {
    gap: 12px;
    flex-direction: column;
  }

  .rooms-stat {
    grid-template-columns: 62px 1fr;
    padding: 20px;
  }

  .rooms-stat > span {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 460px) {
  .rooms-hero {
    padding-top: 26px;
  }

  .rooms-hero h1 {
    font-size: 38px;
  }

  .rooms-search input {
    font-size: 14px;
  }

  .rooms-catalog-layout {
    gap: 22px;
  }

  .rooms-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rooms-view-actions select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .view-btn {
    justify-content: center;
  }

  .catalog-room-author {
    grid-template-columns: 48px 1fr;
  }

  .catalog-avatar img {
    width: 44px;
    height: 44px;
  }

  .room-badge {
    left: 12px;
    top: 12px;
    font-size: 12px;
  }

  .catalog-fav {
    right: 12px;
    top: 10px;
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .catalog-pagination {
    gap: 8px;
  }

  .rooms-side-promo {
    min-height: 240px;
  }
}

/* ==============================
   Page 4: Archive
============================== */

.archive-page {
  background: var(--bg);
}

.archive-hero {
  position: relative;
  padding: 38px 0 28px;
  overflow: hidden;
}

.archive-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 290px;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.96) 0%, rgba(247, 243, 239, 0.68) 44%, rgba(247, 243, 239, 0.1) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .archive-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.96) 0%, rgba(15, 17, 24, 0.72) 46%, rgba(15, 17, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.archive-hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.archive-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.archive-hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
}

.archive-search {
  width: min(100%, 660px);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.archive-search span {
  color: var(--text);
  font-size: 24px;
}

.archive-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.archive-search input::placeholder {
  color: var(--text-soft);
}

.archive-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-chip,
.archive-view-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

.archive-chip.active,
.archive-view-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 47, 50, 0.04);
}

.archive-section {
  padding: 0 0 56px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.archive-filters {
  display: grid;
  gap: 16px;
}

.archive-filter-box,
.archive-side-promo,
.archive-card,
.archive-mini-card,
.archive-wide-promo,
.archive-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.archive-filter-box {
  padding: 20px 18px;
  margin-bottom:18px;
}

.archive-filter-box h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 22px;
}

.archive-filter-box label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.archive-filter-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.archive-filter-box label span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
}

.archive-filter-box input[type="radio"] + span {
  border-radius: 50%;
}

.archive-filter-box input:checked + span {
  border-color: var(--primary);
}

.archive-filter-box input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: var(--primary);
}

.archive-side-promo {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 22px 18px;
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.26)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .archive-side-promo {
  color: #f6f2ea;
  background:
    linear-gradient(180deg, rgba(15,17,24,.82), rgba(15,17,24,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

.archive-side-promo h2 {
  max-width: 200px;
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 21px;
  line-height: 1.15;
}

.archive-side-promo p {
  max-width: 210px;
  margin: 0 0 110px;
  font-weight: 700;
}

.archive-side-promo > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 48px;
}

.archive-results {
  min-width: 0;
}

.archive-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.archive-results-head p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.archive-view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-view-actions select {
  height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

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

.archive-card {
  overflow: hidden;
}

.archive-cover {
  position: relative;
  height: 54px;
  overflow: hidden;
  background: var(--surface-muted);
}

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

.archive-badge {
  position: absolute;
  left: 16px;
  top: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 99px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.archive-badge.live {
  color: var(--primary);
}

.archive-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.archive-icon {
  position: absolute;
  right: 16px;
  top: 9px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 21px;
}

.archive-icon.red {
  color: var(--primary);
}

.archive-icon.purple {
  color: var(--purple);
}

.archive-body {
  padding: 16px;
}

.archive-author {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.archive-avatar {
  position: relative;
  width: max-content;
}

.archive-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.archive-avatar span {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--green);
}

.archive-author h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.15;
}

.archive-author p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.archive-text {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.archive-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 700;
}

.archive-footer .btn {
  min-height: 36px;
  padding-inline: 18px;
  flex: 0 0 auto;
}

.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.archive-pagination a,
.archive-pagination span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
}

.archive-pagination a.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.archive-pagination .btn {
  margin-left: auto;
}

.archive-bottom-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.15fr;
  gap: 18px;
  margin-top: 28px;
}

.archive-mini-card {
  padding: 22px;
}

.archive-mini-card h2,
.archive-wide-promo h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.18;
}

.archive-mini-card a:not(.archive-red-link) {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text);
  font-weight: 700;
}

.archive-mini-card img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.archive-mini-card span {
  color: var(--primary);
}

.archive-mini-card small {
  color: var(--text-muted);
  font-weight: 700;
}

.archive-red-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}

.archive-wide-promo {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 28px;
  color: #11152c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=900&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .archive-wide-promo {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.84), rgba(15,17,24,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=900&auto=format&fit=crop") center / cover;
}

.archive-wide-promo p {
  max-width: 420px;
  margin: 0 0 20px;
  font-weight: 700;
}

.archive-wide-promo > span {
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: #ffffff;
  font-size: 58px;
}

.archive-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
}

.archive-stat {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 34px;
  border-right: 1px solid var(--border);
}

.archive-stat:last-child {
  border-right: 0;
}

.archive-stat > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.archive-stat > span.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.archive-stat > span.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.archive-stat > span.purple {
  color: var(--purple);
  background: rgba(128, 103, 184, 0.12);
}

.archive-stat strong {
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1;
}

.archive-stat p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* Page 4 responsive */

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

  .archive-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-side-promo {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .archive-side-promo p {
    margin-bottom: 42px;
  }

  .archive-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .archive-stat:nth-child(2) {
    border-right: 0;
  }

  .archive-stat:nth-child(1),
  .archive-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .archive-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .archive-view-actions select {
    flex: 1 1 220px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-filters {
    grid-template-columns: 1fr;
  }

  .archive-pagination {
    flex-wrap: wrap;
  }

  .archive-pagination .btn {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .archive-hero {
    padding-top: 30px;
  }

  .archive-hero::before {
    height: 350px;
  }

  .archive-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .archive-hero p {
    font-size: 16px;
  }

  .archive-search {
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 12px 16px;
  }

  .archive-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .archive-filter-row::-webkit-scrollbar {
    display: none;
  }

  .archive-chip {
    flex: 0 0 auto;
  }

  .archive-filter-box {
    padding: 18px;
  }

  .archive-card {
    border-radius: var(--radius-md);
  }

  .archive-body {
    padding: 16px 14px;
  }

  .archive-author h2 {
    font-size: 22px;
  }

  .archive-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-footer .btn {
    width: 100%;
  }

  .archive-meta {
    gap: 12px;
    flex-direction: column;
  }

  .archive-stats-panel {
    grid-template-columns: 1fr;
  }

  .archive-stat {
    grid-template-columns: 62px 1fr;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .archive-stat:last-child {
    border-bottom: 0;
  }

  .archive-stat > span {
    width: 52px;
    height: 52px;
  }

  .archive-wide-promo {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  .archive-hero h1 {
    font-size: 38px;
  }

  .archive-search input {
    font-size: 14px;
  }

  .archive-layout {
    gap: 22px;
  }

  .archive-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .archive-view-actions select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .archive-view-btn {
    justify-content: center;
  }

  .archive-author {
    grid-template-columns: 48px 1fr;
  }

  .archive-avatar img {
    width: 44px;
    height: 44px;
  }

  .archive-badge {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 72px);
    font-size: 12px;
  }

  .archive-icon {
    right: 12px;
    top: 9px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .archive-pagination {
    gap: 8px;
  }

  .archive-mini-card {
    padding: 18px;
  }

  .archive-mini-card a:not(.archive-red-link) {
    grid-template-columns: 26px 1fr;
  }

  .archive-mini-card small {
    grid-column: 2;
  }

  .archive-wide-promo {
    min-height: 240px;
  }
}

/* ==============================
   Page 5: Events
============================== */

.events-page {
  background: var(--bg);
}

.events-hero {
  position: relative;
  padding: 38px 0 28px;
  overflow: hidden;
}

.events-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 290px;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.96) 0%, rgba(247, 243, 239, 0.68) 44%, rgba(247, 243, 239, 0.1) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .events-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.96) 0%, rgba(15, 17, 24, 0.72) 46%, rgba(15, 17, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0), var(--bg) 96%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.events-hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.events-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.events-hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
}

.events-search {
  width: min(100%, 690px);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.events-search span {
  color: var(--text);
  font-size: 24px;
}

.events-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.events-search input::placeholder {
  color: var(--text-soft);
}

.events-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.events-chip,
.events-view-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

.events-chip.active,
.events-view-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 47, 50, 0.04);
}

.events-section {
  padding: 0 0 56px;
}

.events-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.events-filters {
  display: grid;
  gap: 16px;
}

.events-filter-box,
.events-side-promo,
.event-catalog-card,
.events-calendar-card,
.events-picks-card,
.events-wide-promo,
.events-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.events-filter-box {
  padding: 20px 18px;
  margin-bottom:18px;
}

.events-filter-box h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 22px;
}

.events-filter-box label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.events-filter-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.events-filter-box label span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
}

.events-filter-box input[type="radio"] + span {
  border-radius: 50%;
}

.events-filter-box input:checked + span {
  border-color: var(--primary);
}

.events-filter-box input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: var(--primary);
}

.events-side-promo {
  min-height: 300px;
  padding: 22px 18px;
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.26)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .events-side-promo {
  color: #f6f2ea;
  background:
    linear-gradient(180deg, rgba(15,17,24,.82), rgba(15,17,24,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=700&auto=format&fit=crop") center / cover;
}

.events-side-promo h2 {
  max-width: 210px;
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.18;
}

.events-side-promo p {
  max-width: 210px;
  margin: 0 0 112px;
  font-weight: 700;
}

.events-results {
  min-width: 0;
}

.events-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.events-results-head p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.events-view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.events-view-actions select {
  height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}

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

.event-catalog-card {
  overflow: hidden;
}

.event-cover {
  position: relative;
  height: 82px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.5)),
    var(--surface-muted);
}

.event-cover.muted {
  height: 54px;
}

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

.event-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 99px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.event-badge.live {
  color: var(--primary);
}

.event-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.event-round-icon {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 22px;
}

.event-round-icon.green {
  color: var(--green);
}

.event-round-icon.purple {
  color: var(--purple);
}

.event-body {
  padding: 16px;
}

.event-author {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.event-avatar {
  position: relative;
  width: max-content;
}

.event-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.event-avatar span {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--green);
}

.event-author h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.15;
}

.event-author p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.event-text {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.event-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 700;
}

.event-footer .btn {
  min-height: 36px;
  padding-inline: 18px;
  flex: 0 0 auto;
}

/* Bottom cards */

.events-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

.events-calendar-card,
.events-picks-card {
  min-width: 0;
  height: 100%;
  padding: 22px;
  overflow: hidden;
}

.events-wide-promo {
  min-width: 0;
  height: 100%;
}

.events-calendar-card h2,
.events-picks-card h2,
.events-wide-promo h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.18;
}

.calendar-row {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.calendar-row:last-of-type {
  border-bottom: 0;
}

.calendar-row div {
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 47, 50, 0.08);
}

.calendar-row div strong {
  line-height: 1;
}

.calendar-row div span {
  margin-top: -8px;
  font-size: 11px;
}

.calendar-row b {
  font-size: 14px;
}

.calendar-row p {
  min-width: 0;
  margin: 0;
  font-weight: 800;
}

.calendar-row small {
  display: block;
  color: var(--text-muted);
}

.calendar-row p,
.calendar-row small {
  overflow-wrap: anywhere;
}

.calendar-row em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

/* Editor picks */

.events-picks-card a:not(.events-red-link) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.events-picks-card a:not(.events-red-link)::after {
  content: "›";
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}

.events-picks-card img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.events-picks-card strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.2;
}

.events-picks-card small {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.events-picks-card strong,
.events-picks-card small {
  overflow-wrap: anywhere;
}

.events-red-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 800;
}

/* Wide promo */

.events-wide-promo {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
  overflow: hidden;
  padding: 30px;
  color: #11152c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=900&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .events-wide-promo {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.84), rgba(15,17,24,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=900&auto=format&fit=crop") center / cover;
}

.events-wide-promo h2,
.events-wide-promo p,
.events-wide-promo .btn {
  position: relative;
  z-index: 2;
}

.events-wide-promo h2 {
  max-width: 420px;
}

.events-wide-promo p {
  max-width: 430px;
  margin: 0 0 22px;
  font-weight: 700;
}

.events-wide-promo .btn {
  margin-top: auto;
}

.events-wide-promo > span {
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: #ffffff;
  font-size: 58px;
}

/* Stats */

.events-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
}

.events-stat {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 34px;
  border-right: 1px solid var(--border);
}

.events-stat:last-child {
  border-right: 0;
}

.events-stat > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.events-stat > span.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.events-stat > span.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.events-stat strong {
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1;
}

.events-stat p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* Page 5 responsive */

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

  .events-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .events-side-promo {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .events-side-promo p {
    margin-bottom: 42px;
  }

  .events-bottom-grid {
    grid-template-columns: 1fr;
  }

  .events-calendar-card,
  .events-picks-card,
  .events-wide-promo {
    height: auto;
  }

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

  .events-stat:nth-child(2) {
    border-right: 0;
  }

  .events-stat:nth-child(1),
  .events-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .events-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .events-view-actions select {
    flex: 1 1 220px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .events-hero {
    padding-top: 30px;
  }

  .events-hero::before {
    height: 350px;
  }

  .events-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .events-hero p {
    font-size: 16px;
  }

  .events-search {
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 12px 16px;
  }

  .events-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .events-filter-row::-webkit-scrollbar {
    display: none;
  }

  .events-chip {
    flex: 0 0 auto;
  }

  .events-filter-box {
    padding: 18px;
  }

  .event-body {
    padding: 16px 14px;
  }

  .event-author h2 {
    font-size: 22px;
  }

  .event-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .event-footer .btn {
    width: 100%;
  }

  .event-meta {
    gap: 12px;
    flex-direction: column;
  }

  .calendar-row {
    grid-template-columns: 48px 1fr auto;
  }

  .calendar-row b {
    grid-column: 2;
  }

  .calendar-row p {
    grid-column: 2 / -1;
  }

  .calendar-row em {
    grid-column: 3;
    grid-row: 1;
  }

  .events-picks-card a:not(.events-red-link) {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 4px 10px;
  }

  .events-picks-card img {
    width: 38px;
    height: 38px;
  }

  .events-wide-promo {
    min-height: 230px;
    padding: 24px;
  }

  .events-wide-promo .btn {
    margin-top: 8px;
  }

  .events-stats-panel {
    grid-template-columns: 1fr;
  }

  .events-stat {
    grid-template-columns: 62px 1fr;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .events-stat:last-child {
    border-bottom: 0;
  }

  .events-stat > span {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 460px) {
  .events-hero h1 {
    font-size: 38px;
  }

  .events-search input {
    font-size: 14px;
  }

  .events-layout {
    gap: 22px;
  }

  .events-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .events-view-actions select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .events-view-btn {
    justify-content: center;
  }

  .event-author {
    grid-template-columns: 48px 1fr;
  }

  .event-avatar img {
    width: 44px;
    height: 44px;
  }

  .event-badge {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 72px);
    font-size: 12px;
  }

  .event-round-icon {
    right: 12px;
    top: 10px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .events-calendar-card,
  .events-picks-card {
    padding: 18px;
  }

  .events-picks-card a:not(.events-red-link) {
    grid-template-columns: 40px minmax(0, 1fr) 14px;
  }

  .events-picks-card strong {
    font-size: 15px;
  }

  .events-picks-card small {
    font-size: 11px;
  }

  .events-wide-promo {
    min-height: 240px;
  }
}

/* ==============================
   Page 6: Auth / Login
============================== */

.auth-page {
  background: var(--bg);
}

.auth-hero {
  position: relative;
  min-height: 820px;
  padding: 40px 0 90px;
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.95) 0%, rgba(247, 243, 239, 0.62) 42%, rgba(247, 243, 239, 0.08) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0) 72%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .auth-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.96) 0%, rgba(15, 17, 24, 0.7) 44%, rgba(15, 17, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0) 72%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.auth-layout {
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(100%, 560px);
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-welcome {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 700;
}

.auth-card h1 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: clamp(42px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-text {
  max-width: 440px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.auth-tabs button {
  position: relative;
  min-height: 44px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.auth-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.auth-field span {
  color: var(--text-soft);
  font-size: 20px;
}

.auth-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.auth-field input::placeholder {
  color: var(--text-soft);
}

.auth-field button {
  border: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 18px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 8px;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.auth-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-options label span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.auth-options input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
}

.auth-options input:checked + span::after {
  content: "✓";
  color: #ffffff;
  font-size: 11px;
}

.auth-options a,
.auth-create a {
  color: var(--primary);
  font-weight: 800;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-bottom: 2px;
}

.auth-social {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--surface-solid);
  font-weight: 700;
}

.auth-social:hover {
  background: var(--surface-muted);
}

.telegram-icon {
  color: #229ed9;
  font-size: 24px;
}

.google-icon {
  color: #4285f4;
  font-size: 22px;
  font-weight: 900;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 6px 0 2px;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-divider span {
  height: 1px;
  background: var(--border);
}

.auth-divider p,
.auth-create {
  margin: 0;
}

.auth-create {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-users {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.auth-users .avatars img {
  width: 36px;
  height: 36px;
}

.auth-users p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-content {
  position: relative;
  z-index: 2;
  margin-top: -70px;
  padding: 0 0 56px;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.auth-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  min-height: 154px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.auth-feature-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.2;
}

.auth-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-feature-card > span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--green);
}

.auth-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.auth-stat {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 34px;
  border-right: 1px solid var(--border);
}

.auth-stat:last-child {
  border-right: 0;
}

.auth-stat > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.auth-stat > span.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.auth-stat > span.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.auth-stat strong {
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1;
}

.auth-stat p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-promo {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 44px 150px;
  color: #11152c;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1400&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .auth-promo {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.82), rgba(15,17,24,.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1400&auto=format&fit=crop") center / cover;
}

.auth-promo h2 {
  max-width: 480px;
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: 34px;
  line-height: 1.15;
}

.auth-promo p {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 700;
}

.auth-promo > span {
  position: absolute;
  right: 72px;
  bottom: 42px;
  color: #ffffff;
  font-size: 110px;
  line-height: 1;
}

/* Page 6 responsive */

@media (max-width: 1120px) {
  .auth-hero {
    min-height: auto;
    padding-bottom: 120px;
  }

  .auth-features {
    grid-template-columns: 1fr;
  }

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

  .auth-stat:nth-child(2) {
    border-right: 0;
  }

  .auth-stat:nth-child(1),
  .auth-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .auth-promo {
    padding: 40px 60px;
  }
}

@media (max-width: 860px) {
  .auth-hero {
    padding: 28px 0 100px;
  }

  .auth-card {
    padding: 30px 24px;
  }

  .auth-card h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .auth-content {
    margin-top: -56px;
  }

  .auth-users {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .auth-promo {
    padding: 34px 28px;
  }

  .auth-promo > span {
    right: 28px;
    bottom: 24px;
    font-size: 82px;
  }
}

@media (max-width: 680px) {
  .auth-hero::before {
    background-position: center;
  }

  .auth-card {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .auth-welcome {
    font-size: 15px;
  }

  .auth-text {
    font-size: 16px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .auth-feature-card {
    grid-template-columns: 64px 1fr;
    padding: 22px;
  }

  .auth-feature-card .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .auth-stats-panel {
    grid-template-columns: 1fr;
  }

  .auth-stat {
    grid-template-columns: 62px 1fr;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .auth-stat:nth-child(1),
  .auth-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .auth-stat:last-child {
    border-bottom: 0;
  }

  .auth-stat > span {
    width: 52px;
    height: 52px;
  }

  .auth-promo {
    min-height: 240px;
  }

  .auth-promo h2 {
    font-size: 28px;
  }

  .auth-promo p {
    font-size: 15px;
  }
}

@media (max-width: 460px) {
  .auth-hero {
    padding-top: 22px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-card h1 {
    font-size: 36px;
  }

  .auth-tabs button {
    font-size: 16px;
  }

  .auth-field {
    grid-template-columns: 24px 1fr 24px;
    padding: 0 14px;
  }

  .auth-social {
    font-size: 14px;
  }

  .auth-feature-card {
    grid-template-columns: 1fr;
  }

  .auth-promo {
    padding: 28px 22px;
  }

  .auth-promo > span {
    font-size: 68px;
  }
}

/* ==============================
   Page 7: Register
============================== */

.register-page {
  background: var(--bg);
}

.register-hero {
  min-height: 840px;
}

.register-card {
  width: min(100%, 560px);
}

.auth-tabs a {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.register-options {
  align-items: flex-start;
  justify-content: flex-start;
  margin: 2px 0 8px;
}

.register-options label {
  line-height: 1.4;
}

.register-options label a {
  color: var(--primary);
  font-weight: 800;
}

.register-promo h2 {
  max-width: 480px;
}

.register-promo p {
  max-width: 520px;
}

/* Page 7 responsive */

@media (max-width: 1120px) {
  .register-hero {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .register-card {
    padding: 30px 24px;
  }
}

@media (max-width: 680px) {
  .register-options label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
  }

  .register-options label span {
    margin-top: 3px;
  }

  .register-promo h2 {
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .register-card {
    padding: 24px 18px;
  }

  .register-options label {
    font-size: 14px;
  }

  .register-promo h2 {
    font-size: 27px;
  }
}

/* ==============================
   Page 7: Register
============================== */

.register-page {
  background: var(--bg);
}

.register-hero {
  min-height: 840px;
}

.register-card {
  width: min(100%, 560px);
}

.auth-tabs a {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.register-options {
  align-items: flex-start;
  justify-content: flex-start;
  margin: 2px 0 8px;
}

.register-options label {
  line-height: 1.4;
}

.register-options label a {
  color: var(--primary);
  font-weight: 800;
}

.register-promo h2 {
  max-width: 480px;
}

.register-promo p {
  max-width: 520px;
}

/* Page 7 responsive */

@media (max-width: 1120px) {
  .register-hero {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .register-card {
    padding: 30px 24px;
  }
}

@media (max-width: 680px) {
  .register-options label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
  }

  .register-options label span {
    margin-top: 3px;
  }

  .register-promo h2 {
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .register-card {
    padding: 24px 18px;
  }

  .register-options label {
    font-size: 14px;
  }

  .register-promo h2 {
    font-size: 27px;
  }
}

/* ==============================
   Page 8: Password Reset
============================== */

.reset-page {
  background: var(--bg);
}

.reset-hero {
  min-height: 820px;
}

.reset-card {
  width: min(100%, 560px);
}

.reset-card h1 {
  max-width: 470px;
}

.reset-tabs a {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.reset-form {
  gap: 12px;
}

.reset-note {
  margin: -2px 0 4px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-back-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.auth-back-btn:hover {
  color: var(--primary);
  background: var(--surface-muted);
}

.reset-promo h2 {
  max-width: 420px;
}

.reset-promo p {
  max-width: 430px;
}

/* Page 8 responsive */

@media (max-width: 1120px) {
  .reset-hero {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .reset-card {
    padding: 30px 24px;
  }
}

@media (max-width: 680px) {
  .reset-card h1 {
    max-width: 100%;
  }

  .reset-note {
    font-size: 13px;
  }

  .reset-promo h2 {
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .reset-card {
    padding: 24px 18px;
  }

  .reset-card h1 {
    font-size: 35px;
  }

  .reset-tabs a,
  .reset-tabs button {
    font-size: 15px;
  }

  .auth-back-btn {
    font-size: 14px;
  }

  .reset-promo h2 {
    font-size: 27px;
  }
}

/* ==============================
   Page 9: Articles
============================== */

.articles-page {
  background: var(--bg);
}

.articles-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.98) 0%, rgba(247, 243, 239, 0.86) 34%, rgba(247, 243, 239, 0.18) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0), var(--bg) 100%),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .articles-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.98) 0%, rgba(15, 17, 24, 0.82) 38%, rgba(15, 17, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0), var(--bg) 100%),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=1800&auto=format&fit=crop") center / cover;
}

.articles-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.articles-hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.articles-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
}

.articles-section {
  padding: 16px 0 42px;
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

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

.article-card,
.articles-side-card,
.write-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.article-card {
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.article-card-body {
  padding: 22px 24px 24px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.article-meta span {
  color: var(--primary);
}

.article-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: 25px;
  line-height: 1.18;
}

.article-card p {
  min-height: 78px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}

.article-card a {
  color: var(--text);
  font-weight: 800;
}

.article-card a:hover {
  color: var(--primary);
}

.articles-side-card {
  padding: 42px 40px;
}

.articles-side-card h2,
.popular-articles h3,
.write-article-card h3 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  line-height: 1.2;
}

.articles-side-card h2 {
  font-size: 24px;
}

.articles-categories {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.articles-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-weight: 700;
}

.articles-categories a.active {
  color: var(--primary);
}

.articles-categories b {
  color: var(--text-muted);
  font-weight: 700;
}

.popular-articles {
  padding-bottom: 34px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.popular-articles h3 {
  font-size: 24px;
}

.popular-articles a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.popular-articles a:last-child {
  margin-bottom: 0;
}

.popular-articles img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.popular-articles strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.popular-articles small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.write-article-card {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)),
    var(--surface);
}

[data-theme="dark"] .write-article-card {
  background: var(--surface);
}

.write-article-card .feature-icon {
  margin-bottom: 24px;
}

.write-article-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.write-article-card p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}

.write-article-card .btn {
  width: 100%;
}

/* Page 9 responsive */

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

  .articles-side-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .articles-categories {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .popular-articles {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .write-article-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .articles-hero {
    min-height: 300px;
  }

  .articles-hero h1 {
    font-size: clamp(52px, 12vw, 72px);
  }

  .articles-hero p {
    font-size: 18px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card img {
    height: 220px;
  }

  .article-card p {
    min-height: auto;
  }

  .articles-side-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .articles-categories,
  .popular-articles {
    padding-bottom: 28px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 520px) {
  .articles-hero {
    min-height: 260px;
  }

  .articles-hero h1 {
    font-size: 46px;
  }

  .articles-hero p {
    font-size: 16px;
  }

  .articles-section {
    padding-top: 8px;
  }

  .articles-grid {
    gap: 18px;
  }

  .article-card img {
    height: 180px;
  }

  .article-card-body {
    padding: 20px;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .article-card h2 {
    font-size: 23px;
  }

  .articles-side-card {
    padding: 22px;
  }

  .popular-articles a {
    grid-template-columns: 56px 1fr;
  }

  .popular-articles img {
    width: 56px;
    height: 56px;
  }

  .write-article-card {
    padding: 24px;
  }
}

/* ==============================
   Page 10: Article Detail
============================== */

.article-detail-page {
  background: var(--bg);
}

.article-detail-hero {
  position: relative;
  padding: 44px 0 26px;
  overflow: hidden;
}

.article-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 390px;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 1) 0%, rgba(247, 243, 239, 0.96) 28%, rgba(247, 243, 239, 0.72) 46%, rgba(247, 243, 239, 0.22) 70%, rgba(247, 243, 239, 0) 100%),
    linear-gradient(180deg, rgba(247, 243, 239, 0) 0%, var(--bg) 96%);
  z-index: 0;
}

[data-theme="dark"] .article-detail-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 1) 0%, rgba(15, 17, 24, 0.96) 28%, rgba(15, 17, 24, 0.72) 46%, rgba(15, 17, 24, 0.26) 70%, rgba(15, 17, 24, 0) 100%),
    linear-gradient(180deg, rgba(15, 17, 24, 0) 0%, var(--bg) 96%);
}

.article-detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: 46px;
  align-items: end;
}

.article-detail-head {
  min-width: 0;
  padding-bottom: 14px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 700;
}

.article-breadcrumbs a:last-child {
  color: var(--primary);
}

.article-detail-head h1 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-detail-head > p {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.article-detail-meta img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.article-detail-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-soft);
}

.article-detail-meta b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--primary);
  border: 1px solid rgba(255, 47, 50, 0.45);
  border-radius: 8px;
  font-size: 13px;
}

.article-detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.article-detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.82) 0%, rgba(247, 243, 239, 0.34) 22%, rgba(247, 243, 239, 0) 54%),
    linear-gradient(180deg, rgba(247, 243, 239, 0) 70%, rgba(247, 243, 239, 0.3) 100%);
  z-index: 1;
}

[data-theme="dark"] .article-detail-cover::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.82) 0%, rgba(15, 17, 24, 0.36) 22%, rgba(15, 17, 24, 0) 54%),
    linear-gradient(180deg, rgba(15, 17, 24, 0) 70%, rgba(15, 17, 24, 0.35) 100%);
}

.article-detail-cover img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.article-detail-section {
  padding: 0 0 56px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.article-main-column {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.article-content-card,
.article-side-box,
.article-write-card,
.article-actions-panel,
.article-comments-card,
.article-bottom-promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.article-content-card {
  padding: 34px 32px;
}

.article-content-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.article-content-card h2 {
  margin: 26px 0 10px;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.2;
}

.article-content-card blockquote {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  margin: 22px 0;
  padding: 24px 28px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}

.article-content-card blockquote span {
  color: var(--primary);
  font-family: var(--font-main);
  font-size: 52px;
  line-height: 1;
}

.article-content-card blockquote p {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 21px;
  line-height: 1.35;
}

.article-content-card blockquote cite {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 700;
}

.article-wide-image {
  width: 100%;
  height: 160px;
  margin: 12px 0 18px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.article-content-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.article-content-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-weight: 600;
}

.article-content-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.article-tags-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-tags-line > span {
  color: var(--green);
  font-size: 22px;
}

.article-tags-line p {
  margin: 0;
  font-size: 14px;
}

.article-tags-line a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--primary);
  background: rgba(255, 47, 50, 0.04);
  border: 1px solid rgba(255, 47, 50, 0.22);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.article-actions-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.article-actions-panel button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.article-actions-panel button:last-child {
  border-right: 0;
}

.article-comments-card {
  padding: 24px 28px;
}

.article-comments-card h2,
.article-side-box h2,
.article-write-card h2,
.article-bottom-promo h2 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: 26px;
  line-height: 1.2;
}

.comment-row {
  display: grid;
  grid-template-columns: 42px 120px 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.comment-row:last-of-type {
  border-bottom: 0;
}

.comment-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-row strong {
  font-weight: 800;
}

.comment-row time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.comment-row p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.comment-row a,
.article-red-link {
  color: var(--primary);
  font-weight: 800;
}

.comment-row a {
  font-size: 13px;
}

.comments-link {
  display: block;
  margin-top: 14px;
  text-align: right;
}

.article-detail-sidebar {
  display: grid;
  gap: 20px;
}

.article-side-box,
.article-write-card {
  padding: 26px;
}

.article-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-side-head h2 {
  margin-bottom: 0;
}

.article-side-head span {
  color: var(--green);
  font-size: 22px;
}

.article-toc {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.article-toc a {
  color: var(--text-muted);
  font-weight: 700;
}

.article-author-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.article-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
}

.article-author-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.article-side-box .btn {
  width: 100%;
}

.related-articles {
  display: grid;
  gap: 16px;
}

.related-articles a {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.related-articles img {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.related-articles strong {
  display: block;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.25;
}

.related-articles small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-weight: 700;
}

.article-red-link {
  display: inline-block;
  margin-top: 20px;
}

.article-write-card {
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62)),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=700&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .article-write-card {
  color: #f6f2ea;
  background:
    linear-gradient(180deg, rgba(15,17,24,.9), rgba(15,17,24,.66)),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=700&auto=format&fit=crop") center / cover;
}

.article-write-card p {
  margin: 0 0 22px;
  font-weight: 700;
}

.article-bottom-promo {
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  overflow: hidden;
  padding: 28px 42px;
  color: #11152c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1400&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .article-bottom-promo {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.86), rgba(15,17,24,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1400&auto=format&fit=crop") center / cover;
}

.article-bottom-promo h2 {
  margin-bottom: 6px;
}

.article-bottom-promo p {
  margin: 0;
  font-weight: 700;
}

.article-bottom-promo .btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.article-bottom-promo > span {
  position: absolute;
  right: 34px;
  bottom: 12px;
  color: #ffffff;
  font-size: 66px;
}

/* Page 10 responsive */

@media (max-width: 1120px) {
  .article-detail-hero-grid,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-detail-cover img {
    height: 280px;
  }

  .article-detail-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-write-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .article-detail-hero {
    padding-top: 32px;
  }

  .article-detail-hero::before {
    height: 560px;
  }

  .article-detail-head h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .article-detail-cover img {
    height: 240px;
  }

  .article-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .comment-row {
    grid-template-columns: 42px 1fr auto;
  }

  .comment-row time {
    grid-column: 2;
  }

  .comment-row p {
    grid-column: 1 / -1;
  }

  .comment-row a {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .article-detail-head > p {
    font-size: 16px;
  }

  .article-detail-meta {
    gap: 10px;
  }

  .article-detail-cover img {
    height: 200px;
  }

  .article-content-card {
    padding: 24px 20px;
  }

  .article-content-card p {
    font-size: 15px;
  }

  .article-content-card h2 {
    font-size: 25px;
  }

  .article-content-card blockquote {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .article-actions-panel {
    grid-template-columns: 1fr;
  }

  .article-actions-panel button {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .article-actions-panel button:last-child {
    border-bottom: 0;
  }

  .article-comments-card {
    padding: 22px 20px;
  }

  .article-bottom-promo {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
  }
}

@media (max-width: 460px) {
  .article-detail-head h1 {
    font-size: 36px;
  }

  .article-detail-cover img {
    height: 180px;
  }

  .article-detail-meta b {
    width: 100%;
    justify-content: center;
  }

  .article-wide-image {
    height: 130px;
  }

  .article-side-box,
  .article-write-card {
    padding: 22px;
  }

  .article-author-card,
  .related-articles a {
    grid-template-columns: 1fr;
  }

  .article-author-card img {
    width: 64px;
    height: 64px;
  }

  .related-articles img {
    width: 100%;
    height: 120px;
  }

  .comment-row {
    grid-template-columns: 38px 1fr;
  }

  .comment-row a {
    grid-column: 2;
    grid-row: auto;
  }
}

/* ==============================
   Page 11: New Password
============================== */

.password-page {
  background: var(--bg);
}

.password-hero {
  min-height: 860px;
}

.password-card {
  width: min(100%, 600px);
}

.password-card h1 {
  max-width: 520px;
}

.password-tabs a {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.password-form {
  gap: 12px;
}

.password-group {
  display: grid;
  gap: 8px;
}

.password-group label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.password-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.password-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.password-field button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 18px;
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.password-strength span {
  height: 4px;
  border-radius: 99px;
  background: var(--green);
}

.password-success,
.password-match {
  position: relative;
  margin: 0;
  padding-left: 24px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.password-success::before,
.password-match::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}

.password-login-note {
  margin: 4px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
}

.password-login-note a {
  color: var(--primary);
}

.password-promo h2 {
  max-width: 500px;
}

.password-promo p {
  max-width: 430px;
}

/* Page 11 responsive */

@media (max-width: 1120px) {
  .password-hero {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .password-card {
    padding: 30px 24px;
  }
}

@media (max-width: 680px) {
  .password-card h1 {
    max-width: 100%;
  }

  .password-promo h2 {
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .password-card {
    padding: 24px 18px;
  }

  .password-card h1 {
    font-size: 35px;
  }

  .password-tabs a,
  .password-tabs button {
    font-size: 15px;
  }

  .password-field {
    height: 46px;
  }

  .password-promo h2 {
    font-size: 27px;
  }
}

.rooms-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.rooms-grid.is-list-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rooms-grid.is-list-view .catalog-room-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: stretch;
}

.rooms-grid.is-list-view .catalog-room-cover {
    min-height: 100%;
    height: auto;
}

.rooms-grid.is-list-view .catalog-room-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rooms-grid.is-list-view .catalog-room-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rooms-grid.is-list-view .catalog-room-text {
    max-width: 720px;
}

@media (max-width: 760px) {
    .rooms-grid.is-list-view .catalog-room-card {
        grid-template-columns: 1fr;
    }

    .rooms-grid.is-list-view .catalog-room-cover {
        min-height: 180px;
    }
}


.rooms-page,
.rooms-hero,
.rooms-hero .container,
.rooms-hero-content {
    overflow: visible;
}

.rooms-hero {
    position: relative;
    z-index: 10;
}

.rooms-hero-content {
    position: relative;
    z-index: 20;
}

.rooms-search {
    position: relative;
    z-index: 1000;
}

.rooms-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 99999;
    display: none;
    padding: 10px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.rooms-search-dropdown.is-open {
    display: block;
}

.rooms-search-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rooms-search-item:hover {
    background: rgba(127, 127, 127, 0.08);
    transform: translateY(-1px);
}

.rooms-search-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rooms-search-item-main strong {
    font-size: 15px;
}

.rooms-search-item-main small,
.rooms-search-item-main span,
.rooms-search-item-side small {
    font-size: 13px;
    opacity: 0.75;
}

.rooms-search-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.search-room-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(127, 127, 127, 0.12);
}

.search-room-badge.live {
    background: rgba(232, 86, 86, 0.14);
    color: #d94d4d;
}

.rooms-search-empty {
    padding: 14px;
    font-size: 14px;    
}

@media (max-width: 640px) {
    .rooms-search-item {
        flex-direction: column;
    }

    .rooms-search-item-side {
        align-items: flex-start;
    }
}

.rooms-search-wrap {
  position: relative;
  z-index: 100;
  width: min(100%, 820px);
  margin-bottom: 16px;
}

.rooms-search {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  padding: 0 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.rooms-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 9999;
  display: none;
  padding: 10px;
  border-radius: 22px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.rooms-search-dropdown.is-open {
  display: block;
}

.rooms-filter-row {
  position: relative;
  z-index: 1;
}


.events-grid.is-list-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.events-grid.is-list-view .event-catalog-card {
    display: grid;
    grid-template-columns: 270px 1fr;
}

.events-grid.is-list-view .event-cover {
    height: auto;
    min-height: 100%;
}

.events-grid.is-list-view .event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
    .events-grid.is-list-view .event-catalog-card {
        grid-template-columns: 1fr;
    }

    .events-grid.is-list-view .event-cover {
        min-height: 180px;
    }
}

.archive-grid.is-list-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.archive-grid.is-list-view .archive-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    width: 100%;
}

.archive-grid.is-list-view .archive-cover {
    height: auto;
    min-height: 100%;
}

.archive-grid.is-list-view .archive-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-grid.is-list-view .archive-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.archive-grid.is-list-view .archive-text {
    max-width: 760px;
}

.archive-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
    .archive-grid.is-list-view .archive-card {
        grid-template-columns: 1fr;
    }

    .archive-grid.is-list-view .archive-cover {
        min-height: 180px;
    }
}


#roomTabContent.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.room-chat-tab,
.room-participants-tab {
    display: grid;
    gap: 18px;
}

.room-chat-list {
    display: grid;
    gap: 14px;
}

.room-chat-message {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.room-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.room-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-chat-body {
    min-width: 0;
}

.room-chat-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.room-chat-head strong {
    font-size: 14px;
}

.room-chat-head span {
    font-size: 13px;
    color: var(--text-soft);
}

.room-chat-body p {
    margin: 0;
    color: var(--text-muted);
}

.room-chat-form {
    display: flex;
    gap: 10px;
}

.room-chat-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-solid);
    color: var(--text);
    outline: none;
}

.room-participants-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.room-participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.room-participant-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
}

.room-participant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.room-participant-avatar span {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--surface-solid);
}

.room-participant-card h3 {
    margin: 0;
    font-size: 15px;
}

.room-participant-card p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.room-tab-empty {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.room-tab-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.room-tab-empty p {
    margin: 0;
    color: var(--text-muted);
}

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

    .room-chat-form {
        flex-direction: column;
    }
}


/*Регистрация */

.auth-alert {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.auth-alert h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.auth-alert p {
    margin: 0 0 8px;
}

.auth-alert p:last-child {
    margin-bottom: 0;
}

.auth-alert-success {
    background: rgba(55, 174, 118, 0.12);
    border-color: rgba(55, 174, 118, 0.25);
}

.auth-alert-error {
    background: rgba(255, 47, 50, 0.10);
    border-color: rgba(255, 47, 50, 0.22);
}

.auth-social {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.auth-social.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/** Логин **/

.auth-alert {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.auth-alert h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.auth-alert p {
    margin: 0 0 8px;
}

.auth-alert p:last-child {
    margin-bottom: 0;
}

.auth-alert-success {
    background: rgba(55, 174, 118, 0.12);
    border-color: rgba(55, 174, 118, 0.25);
}

.auth-alert-error {
    background: rgba(255, 47, 50, 0.10);
    border-color: rgba(255, 47, 50, 0.22);
}

.auth-social {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.auth-social.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.header-user {
    position: relative;
    z-index: 100;
}

.header-user-btn {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-muted);
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
    font-size: 14px;
}

.header-user-arrow {
    font-size: 14px;
    color: var(--text-soft);
}

.header-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    display: none;
    padding: 8px;
    border-radius: 18px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.header-user.is-open .header-user-menu {
    display: grid;
}

.header-user-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.header-user-menu a:hover {
    background: var(--surface-muted);
}

@media (max-width: 760px) {
    .header-user-name {
        display: none;
    }

    .header-user-btn {
        padding-right: 8px;
    }

    .header-user-menu {
        right: -8px;
    }
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(1px);
}

.auth-modal-overlay.is-open {
    display: flex !important;
}

.auth-modal {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    animation: authModalIn 0.22s ease;
}

@keyframes authModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-close:hover {
    background: var(--accent);
    color: #fff;
}

.auth-modal-head {
    margin-bottom: 20px;
}

.auth-modal-welcome {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-soft);
}

.auth-modal-head h2 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 34px;
    line-height: 1.08;
    color: var(--text);
}

.auth-modal-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.auth-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.auth-modal-tab {
    position: relative;
    padding: 0 12px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.auth-modal-tab:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}

.auth-modal-tab.active:after {
    background: var(--primary);
}

.auth-modal-panel {
    display: none;
}

.auth-modal-panel.active {
    display: block;
}

.auth-modal-form .auth-field {
    margin-bottom: 10px;
}

.auth-modal-form .auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-modal-form .auth-social {
    margin-top: 10px;
}

.auth-modal-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.auth-modal-switch button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 900;
}

.auth-modal-users {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.auth-modal-avatars {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.auth-modal-avatars span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border-radius: 50%;
    border: 2px solid var(--surface-solid);
    background: var(--accent);
    color: #fff;
    font-size: 8px;
}

.auth-modal-avatars span:first-child {
    margin-left: 0;
}

body.auth-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .auth-modal-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-modal {
        padding: 24px 18px;
        border-radius: 22px;
        max-height: calc(100vh - 24px);
    }

    .auth-modal-head h2 {
        font-size: 28px;
    }
}


/* ===== Auth modal mobile adapt ===== */

@media (max-width: 640px) {
    .auth-modal-overlay {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
        background: rgba(10, 12, 24, 0.76);
        backdrop-filter: blur(7px);
    }

    .auth-modal {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        padding: 24px 18px 20px;
        border-radius: 26px 26px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        animation: authModalMobileIn 0.24s ease;
    }

    @keyframes authModalMobileIn {
        from {
            opacity: 0;
            transform: translateY(40px);
        }

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

    .auth-modal:before {
        content: "";
        display: block;
        width: 46px;
        height: 5px;
        margin: -8px auto 18px;
        border-radius: 999px;
        background: var(--border);
    }

    .auth-modal-close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .auth-modal-head {
        padding-right: 34px;
        margin-bottom: 18px;
    }

    .auth-modal-welcome {
        font-size: 12px;
    }

    .auth-modal-head h2 {
        font-size: 28px;
        line-height: 1.08;
        margin-bottom: 8px;
    }

    .auth-modal-head p {
        font-size: 14px;
        line-height: 1.45;
    }

    .auth-modal-tabs {
        position: sticky;
        top: -24px;
        z-index: 5;
        margin-left: -18px;
        margin-right: -18px;
        padding: 0 18px;
        background: var(--surface-solid);
    }

    .auth-modal-tab {
        min-height: 44px;
        padding-bottom: 10px;
        font-size: 14px;
    }

    .auth-modal-form .auth-field {
        min-height: 48px;
        margin-bottom: 10px;
    }

    .auth-modal-form .auth-field input {
        min-height: 48px;
        font-size: 15px;
    }

    .auth-options {
        gap: 10px;
        align-items: flex-start;
        font-size: 12px;
    }

    .auth-options a {
        white-space: nowrap;
    }

    .auth-modal-form .auth-submit {
        min-height: 48px;
        margin-top: 10px;
    }

    .auth-social {
        min-height: 46px;
        font-size: 13px;
    }

    .auth-modal-switch {
        flex-wrap: wrap;
        margin-top: 16px;
        padding-top: 14px;
        font-size: 13px;
        text-align: center;
    }

    .auth-modal-users {
        align-items: flex-start;
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 380px) {
    .auth-modal {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-modal-tabs {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-modal-head h2 {
        font-size: 25px;
    }

    .auth-modal-head p {
        font-size: 13px;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-modal-users {
        display: none;
    }
}

.auth-link-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

/* ==============================
   Page: About
============================== */

.about-page {
  background: var(--bg);
}

/* About hero */

.about-hero {
  position: relative;
  min-height: 455px;
  padding: 70px 0 38px;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.98) 0%, rgba(247, 243, 239, 0.74) 38%, rgba(247, 243, 239, 0.18) 70%),
    linear-gradient(180deg, rgba(247, 243, 239, 0) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .about-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.98) 0%, rgba(15, 17, 24, 0.78) 42%, rgba(15, 17, 24, 0.2) 76%),
    linear-gradient(180deg, rgba(15, 17, 24, 0) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
}

.about-hero-content {
  max-width: 650px;
}

.about-hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.about-hero p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 38px;
}

.about-hero-users {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-weight: 800;
}

.about-hero-users i {
  color: var(--green);
  font-style: normal;
}

.about-avatars {
  display: flex;
}

.about-avatars img {
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.about-avatars img + img {
  margin-left: -12px;
}

/* Common about blocks */

.about-section {
  position: relative;
  z-index: 2;
  padding: 14px 0;
}

.about-section-tight {
  padding-top: 0;
}

.about-card,
.about-stats-card,
.about-join-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-card {
  padding: 22px;
}

.about-card h2,
.about-join-banner h2 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1.2;
}

.about-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 20px;
  line-height: 1.2;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.about-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.about-icon.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.about-icon.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

/* Mission */

.about-mission-card {
  margin-top: -12px;
  padding: 22px 18px 18px;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-mission-item {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.about-mission-item i {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--green);
  font-style: normal;
}

/* Two columns */

.about-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* How it works */

.about-how-card,
.about-audience-card,
.about-principles-card,
.about-history-card {
  min-height: 100%;
}

.about-steps {
  display: grid;
  gap: 20px;
}

.about-steps article {
  display: grid;
  grid-template-columns: 42px 70px 1fr;
  gap: 18px;
  align-items: center;
}

.about-steps article > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
  border: 1px solid rgba(255, 47, 50, 0.16);
  border-radius: 50%;
  font-family: var(--font-main);
  font-size: 18px;
}

.about-steps article > b.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
  border-color: rgba(72, 177, 53, 0.18);
}

/* Audience */

.about-audience-list {
  display: grid;
  gap: 14px;
}

.about-audience-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* Stats */

.about-stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.about-stats-card article {
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 22px 32px;
  border-right: 1px solid var(--border);
}

.about-stats-card article:last-child {
  border-right: 0;
}

.about-stats-card .about-icon {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  font-size: 28px;
}

.about-stats-card strong {
  font-family: var(--font-main);
  font-size: 28px;
  line-height: 1;
}

.about-stats-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

/* Principles */

.about-principles-card ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-principles-card li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  font-weight: 800;
}

.about-principles-card li::before {
  content: "♧";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
}

/* History */

.about-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 18px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--border);
}

.about-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
}

.about-timeline .about-icon {
  position: relative;
  z-index: 2;
}

/* Join banner */

.about-join-banner {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 34px 42px;
  color: #11152c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1600&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .about-join-banner {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.82), rgba(15,17,24,.34)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1600&auto=format&fit=crop") center / cover;
}

.about-join-banner div {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.about-join-banner h2 {
  margin-bottom: 10px;
  font-size: 36px;
}

.about-join-banner p {
  margin: 0 0 22px;
  color: inherit;
  font-weight: 800;
}

.about-banner-heart {
  position: absolute;
  right: 42px;
  bottom: 28px;
  color: #ffffff;
  font-size: 72px;
  line-height: 1;
}

/* About responsive */

@media (max-width: 1180px) {
  .about-mission-grid,
  .about-stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats-card article:nth-child(2) {
    border-right: 0;
  }

  .about-stats-card article:nth-child(1),
  .about-stats-card article:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .about-hero {
    padding-top: 50px;
  }

  .about-hero::before {
    background:
      linear-gradient(90deg, rgba(247, 243, 239, 0.96), rgba(247, 243, 239, 0.7)),
      linear-gradient(180deg, rgba(247, 243, 239, 0) 70%, var(--bg) 100%),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  }

  [data-theme="dark"] .about-hero::before {
    background:
      linear-gradient(90deg, rgba(15, 17, 24, 0.96), rgba(15, 17, 24, 0.72)),
      linear-gradient(180deg, rgba(15, 17, 24, 0) 70%, var(--bg) 100%),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  }

  .about-two-columns {
    grid-template-columns: 1fr;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
  }

  .about-mission-item {
    min-height: auto;
  }

  .about-join-banner {
    padding: 30px 24px;
  }

  .about-join-banner h2 {
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .about-hero h1 {
    font-size: 40px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .about-hero-actions .btn {
    width: 100%;
  }

  .about-hero-users {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-stats-card {
    grid-template-columns: 1fr;
  }

  .about-stats-card article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .about-stats-card article:last-child {
    border-bottom: 0;
  }

  .about-steps article {
    grid-template-columns: 38px 58px 1fr;
    gap: 12px;
  }

  .about-icon {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }

  .about-audience-list article,
  .about-mission-item,
  .about-timeline article {
    grid-template-columns: 1fr;
  }

  .about-timeline {
    padding-left: 0;
  }

  .about-timeline::before {
    display: none;
  }

  .about-banner-heart {
    display: none;
  }
}

/* ==============================
   Auth left vertical profile menu
============================== */

/* ================================
   Profile sidebar new menu
================================ */

:root {
    --profile-sidebar-red: #ff1d2d;
    --profile-sidebar-red-soft: rgba(255, 29, 45, 0.1);
    --profile-sidebar-bg: #ffffff;
    --profile-sidebar-text: #1a2b52;
    --profile-sidebar-muted: #5f6f91;
    --profile-sidebar-border: #e8edf5;
    --profile-sidebar-shadow: 0 20px 60px rgba(16, 35, 75, 0.16);
    --profile-sidebar-transition: 0.22s ease;
}

html[data-theme="dark"] {
    --profile-sidebar-bg: #101d36;
    --profile-sidebar-text: #edf3ff;
    --profile-sidebar-muted: #9eabc7;
    --profile-sidebar-border: rgba(202, 214, 240, 0.16);
    --profile-sidebar-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

/* Чтобы контент сайта не прятался под левым меню */
body.has-left-profile-menu {
    padding-left: 88px;
}

body.has-left-profile-menu.sidebar-open {
    padding-left: 280px;
}

body.has-left-profile-menu.sidebar-collapsed {
    padding-left: 88px;
}

/* Само меню */
.admin-sidebar.profile-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    width: 280px;
    display: flex;
    flex-direction: column;
    background: var(--profile-sidebar-bg);
    border-right: 1px solid var(--profile-sidebar-border);
    box-shadow: var(--profile-sidebar-shadow);
    transform: translateX(0);
    transition:
        width var(--profile-sidebar-transition),
        transform var(--profile-sidebar-transition);
}

/* Шапка меню */
.admin-sidebar-head {
    min-height: 76px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--profile-sidebar-text);
}

.admin-sidebar-logo-icon {
    font-size: 32px;
    line-height: 1;
    color: var(--profile-sidebar-red);
}

.admin-sidebar-logo-text {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
}

/* Кнопка закрытия на мобильных */
.admin-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--profile-sidebar-border);
    border-radius: 50%;
    background: transparent;
    color: var(--profile-sidebar-text);
    font-size: 28px;
    line-height: 1;
}

/* Навигация */
.admin-sidebar-nav {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.admin-sidebar-link,
.admin-sidebar-collapse {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--profile-sidebar-muted);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    transition:
        background var(--profile-sidebar-transition),
        color var(--profile-sidebar-transition);
}

.admin-sidebar-link:hover,
.admin-sidebar-link.is-active,
.admin-sidebar-collapse:hover {
    color: var(--profile-sidebar-red);
    background: var(--profile-sidebar-red-soft);
}

.admin-sidebar-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.admin-sidebar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-sidebar-text {
    white-space: nowrap;
    overflow: hidden;
}

/* Низ меню */
.admin-sidebar-foot {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--profile-sidebar-border);
}

.admin-sidebar-logout {
    margin-top: 6px;
    color: var(--profile-sidebar-red);
}

/* Свернутое состояние */
body.sidebar-collapsed .admin-sidebar.profile-sidebar {
    width: 88px;
}

body.sidebar-collapsed .admin-sidebar-logo-text,
body.sidebar-collapsed .admin-sidebar-text {
    display: none;
}

body.sidebar-collapsed .admin-sidebar-logo,
body.sidebar-collapsed .admin-sidebar-link,
body.sidebar-collapsed .admin-sidebar-collapse {
    justify-content: center;
}

body.sidebar-collapsed .admin-sidebar-collapse svg {
    transform: rotate(180deg);
}

/* Затемнение для мобильного меню */
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    background: rgba(5, 12, 28, 0.45);
}

/* ================================
   Mobile sidebar
================================ */

@media (max-width: 820px) {
    body.has-left-profile-menu,
    body.has-left-profile-menu.sidebar-open,
    body.has-left-profile-menu.sidebar-collapsed {
        padding-left: 0;
    }

    .admin-sidebar.profile-sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    body.sidebar-open .admin-sidebar.profile-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .admin-sidebar-overlay {
        display: block;
    }

    body.sidebar-open .admin-sidebar-logo-text,
    body.sidebar-open .admin-sidebar-text {
        display: inline;
    }

    body.sidebar-open .admin-sidebar-logo,
    body.sidebar-open .admin-sidebar-link,
    body.sidebar-open .admin-sidebar-collapse {
        justify-content: flex-start;
    }

    body.sidebar-open .admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-collapsed .admin-sidebar.profile-sidebar {
        width: 280px;
    }

    body.sidebar-collapsed .admin-sidebar-logo-text,
    body.sidebar-collapsed .admin-sidebar-text {
        display: inline;
    }

    body.sidebar-collapsed .admin-sidebar-logo,
    body.sidebar-collapsed .admin-sidebar-link,
    body.sidebar-collapsed .admin-sidebar-collapse {
        justify-content: flex-start;
    }
}

/* ==============================
   Page: Legal information
============================== */

.legal-page {
  background: var(--bg);
}

/* ==============================
   Legal hero
   Верхняя часть как на странице "О нас"
============================== */

.legal-hero {
  position: relative;
  min-height: 455px;
  padding: 70px 0 38px;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 239, 0.98) 0%, rgba(247, 243, 239, 0.74) 38%, rgba(247, 243, 239, 0.18) 70%),
    linear-gradient(180deg, rgba(247, 243, 239, 0) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  z-index: 0;
}

[data-theme="dark"] .legal-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.98) 0%, rgba(15, 17, 24, 0.78) 42%, rgba(15, 17, 24, 0.2) 76%),
    linear-gradient(180deg, rgba(15, 17, 24, 0) 70%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-hero-content {
  max-width: 760px;
}

.legal-hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.legal-hero p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

/* Кнопки в одну линию */

.legal-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin-bottom: 34px;
}

.legal-hero-actions .btn.btn-large {
  width: 330px;
  min-width: 330px;
  min-height: 58px;
  padding-left: 18px;
  padding-right: 18px;
  justify-content: center;
  white-space: nowrap;
}

.legal-hero-actions .btn-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.legal-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-weight: 800;
}

.legal-hero-note span {
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

/* ==============================
   Legal sections
============================== */

.legal-section {
  position: relative;
  z-index: 2;
  padding: 18px 0;
}

.legal-section-bottom {
  padding-bottom: 56px;
}

/* ==============================
   Documents grid
============================== */

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

.legal-document-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 210px;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.legal-document-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1.18;
}

.legal-document-card p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.legal-document-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
  transition: 0.2s ease;
}

.legal-document-card a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.legal-document-card a span {
  font-size: 20px;
  line-height: 1;
}

/* ==============================
   Legal icons
============================== */

.legal-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.legal-icon.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
}

.legal-icon.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

/* ==============================
   Contact banner
============================== */

.legal-contact-banner {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 46px 58px;
  color: #11152c;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.58) 42%, rgba(255,255,255,.12) 78%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1600&auto=format&fit=crop") center / cover;
}

[data-theme="dark"] .legal-contact-banner {
  color: #f6f2ea;
  background:
    linear-gradient(90deg, rgba(15,17,24,.88) 0%, rgba(15,17,24,.62) 46%, rgba(15,17,24,.18) 78%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1600&auto=format&fit=crop") center / cover;
}

.legal-contact-banner div {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.legal-contact-banner h2 {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: 38px;
  line-height: 1.15;
}

.legal-contact-banner p {
  margin: 0 0 28px;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.legal-contact-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.legal-contact-btn:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ==============================
   Legal responsive
============================== */

@media (max-width: 1100px) {
  .legal-documents-grid {
    grid-template-columns: 1fr;
  }

  .legal-document-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .legal-hero {
    padding-top: 50px;
  }

  .legal-hero::before {
    background:
      linear-gradient(90deg, rgba(247, 243, 239, 0.96), rgba(247, 243, 239, 0.7)),
      linear-gradient(180deg, rgba(247, 243, 239, 0) 70%, var(--bg) 100%),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  }

  [data-theme="dark"] .legal-hero::before {
    background:
      linear-gradient(90deg, rgba(15, 17, 24, 0.96), rgba(15, 17, 24, 0.72)),
      linear-gradient(180deg, rgba(15, 17, 24, 0) 70%, var(--bg) 100%),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1800&auto=format&fit=crop") center / cover;
  }

  .legal-contact-banner {
    padding: 34px 26px;
  }

  .legal-contact-banner h2 {
    font-size: 32px;
  }
}

@media (max-width: 780px) {
  .legal-hero-content {
    max-width: 100%;
  }

  .legal-hero-actions {
    flex-wrap: wrap;
  }

  .legal-hero-actions .btn.btn-large {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .legal-document-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 24px;
  }

  .legal-icon {
    width: 66px;
    height: 66px;
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .legal-hero h1 {
    font-size: 40px;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-hero-note {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .legal-hero {
    padding-top: 18px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-hero p,
  .legal-document-card p,
  .legal-contact-banner p {
    font-size: 15px;
  }

  .legal-document-card h2 {
    font-size: 23px;
  }

  .legal-icon {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .legal-document-card a,
  .legal-contact-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================
   Auth popup: username and country
   Логин, страна, проверка логина
============================== */

.auth-field select {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.auth-field select option {
  color: #11152c;
  background: #ffffff;
}

[data-theme="dark"] .auth-field select option {
  color: #f6f2ea;
  background: #1b1f2b;
}

.auth-field.auth-username-field input {
  text-transform: lowercase;
}

.auth-username-hint {
  margin: -8px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-username-hint strong {
  color: var(--primary);
  font-weight: 900;
  word-break: break-all;
}

.auth-username-status {
  min-height: 20px;
  margin: -4px 0 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-username-status.checking {
  color: var(--text-muted);
}

.auth-username-status.success {
  color: var(--green);
}

.auth-username-status.error {
  color: var(--primary);
}


/* ==============================
   Auth popup: tablet fixes
============================== */

@media (max-width: 768px) {
  .auth-username-hint {
    margin-top: -6px;
    margin-bottom: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .auth-username-status {
    margin-top: -2px;
    margin-bottom: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .auth-field select {
    font-size: 15px;
  }
}


/* ==============================
   Auth popup: mobile fixes
============================== */

@media (max-width: 560px) {
  .auth-username-hint {
    font-size: 12px;
    line-height: 1.45;
  }

  .auth-username-hint strong {
    display: block;
    margin-top: 4px;
    word-break: break-all;
  }

  .auth-username-status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.45;
  }

  .auth-field select {
    min-width: 0;
    font-size: 14px;
  }
}


/* ==============================
   Auth popup: small mobile fixes
============================== */

@media (max-width: 390px) {
  .auth-username-hint,
  .auth-username-status {
    padding-left: 2px;
    padding-right: 2px;
  }

  .auth-username-hint {
    font-size: 11.5px;
  }

  .auth-username-status {
    font-size: 11.5px;
  }

  .auth-field select {
    font-size: 13px;
  }
}

/* ==============================
   Profile complete page
============================== */

.profile-complete-page {
  min-height: 78vh;
  padding: 70px 16px;
  position: relative;
  overflow: hidden;
}

.profile-complete-bg {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-complete-bg::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto 0;
  height: 360px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 123, 74, 0.18), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(126, 86, 48, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,248,237,0.48));
  border: 1px solid rgba(124, 86, 52, 0.10);
  box-shadow: 0 24px 80px rgba(68, 42, 22, 0.08);
  z-index: 0;
}

.profile-complete-card {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
  padding: 34px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(66, 44, 24, 0.16);
}

.profile-complete-head {
  text-align: center;
  margin-bottom: 24px;
}

.profile-complete-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.profile-complete-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-complete-head h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

.profile-complete-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.profile-complete-result {
  min-height: 22px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.profile-complete-result.checking {
  color: var(--text-muted);
}

.profile-complete-result.success {
  color: var(--green);
}

.profile-complete-result.error {
  color: var(--primary);
}

.complete-field {
  width: 100%;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.complete-field > span {
  width: 22px;
  flex: 0 0 22px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.complete-field input,
.complete-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.complete-field input::placeholder {
  color: var(--text-muted);
}

.complete-field select {
  cursor: pointer;
}

.complete-field select option {
  color: #11152c;
  background: #ffffff;
}

[data-theme="dark"] .complete-field select option {
  color: #f6f2ea;
  background: #1b1f2b;
}

.complete-username-hint {
  margin: -4px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.complete-username-hint strong {
  color: var(--primary);
  font-weight: 900;
  word-break: break-all;
}

.complete-username-status {
  min-height: 20px;
  margin: -2px 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.complete-username-status.checking {
  color: var(--text-muted);
}

.complete-username-status.success {
  color: var(--green);
}

.complete-username-status.error {
  color: var(--primary);
}

.complete-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  justify-content: center;
}

.profile-complete-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.profile-complete-note strong {
  color: var(--primary);
  font-weight: 900;
}

#completeProfileForm.is-loading {
  opacity: 0.72;
  pointer-events: none;
}


/* ==============================
   Profile complete adaptive
============================== */

@media (max-width: 768px) {
  .profile-complete-page {
    padding: 48px 14px;
  }

  .profile-complete-bg {
    min-height: 560px;
  }

  .profile-complete-card {
    max-width: 480px;
    padding: 28px;
    border-radius: 26px;
  }

  .profile-complete-head h1 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .profile-complete-page {
    padding: 34px 12px;
  }

  .profile-complete-bg {
    min-height: auto;
  }

  .profile-complete-bg::before {
    inset: 20px -30px auto -30px;
    height: 300px;
    border-radius: 30px;
  }

  .profile-complete-card {
    padding: 22px;
    border-radius: 24px;
  }

  .profile-complete-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    font-size: 24px;
  }

  .profile-complete-head h1 {
    font-size: 26px;
  }

  .profile-complete-head p {
    font-size: 14px;
  }

  .complete-field {
    min-height: 54px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .complete-username-hint strong {
    display: block;
    margin-top: 3px;
  }

  .complete-username-hint,
  .complete-username-status,
  .profile-complete-note {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .profile-complete-card {
    padding: 18px;
    border-radius: 22px;
  }

  .profile-complete-head h1 {
    font-size: 23px;
  }

  .complete-field input,
  .complete-field select {
    font-size: 14px;
  }

  .complete-submit {
    min-height: 50px;
  }
}

/* ================================
   Mobile sidebar open button
================================ */

.mobile-sidebar-btn {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--profile-sidebar-border, #e8edf5);
    border-radius: 12px;
    background: var(--profile-sidebar-bg, #ffffff);
    color: var(--profile-sidebar-text, #1a2b52);
    box-shadow: 0 8px 22px rgba(16, 35, 75, 0.08);
}

.mobile-sidebar-btn span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

@media (max-width: 820px) {
    .mobile-sidebar-btn {
        display: inline-flex;
    }

    .header-inner {
        gap: 10px;
    }
}

@media (max-width: 820px) {
    body.has-left-profile-menu,
    body.has-left-profile-menu.sidebar-open,
    body.has-left-profile-menu.sidebar-collapsed {
        padding-left: 0;
    }

    .admin-sidebar.profile-sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    body.sidebar-open .admin-sidebar.profile-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .admin-sidebar-overlay {
        display: block;
    }

    body.sidebar-open .admin-sidebar-logo-text,
    body.sidebar-open .admin-sidebar-text {
        display: inline;
    }

    body.sidebar-open .admin-sidebar-logo,
    body.sidebar-open .admin-sidebar-link,
    body.sidebar-open .admin-sidebar-collapse {
        justify-content: flex-start;
    }

    body.sidebar-open .admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-collapsed .admin-sidebar.profile-sidebar {
        width: 280px;
    }

    body.sidebar-collapsed .admin-sidebar-logo-text,
    body.sidebar-collapsed .admin-sidebar-text {
        display: inline;
    }

    body.sidebar-collapsed .admin-sidebar-logo,
    body.sidebar-collapsed .admin-sidebar-link,
    body.sidebar-collapsed .admin-sidebar-collapse {
        justify-content: flex-start;
    }
}

/* ==============================
   Page: Poetry Wheel
============================== */

.poetry-wheel-page {
  background: var(--bg);
}

.poetry-wheel-hero { 
  padding: 34px 0 28px;
  overflow: hidden;
}

.poetry-wheel-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  background:
    linear-gradient(
        180deg,
        rgba(247, 243, 239, 0.00) 0%,
        rgba(247, 243, 239, 0.08) 35%,
        var(--bg) 96%
    ),
    linear-gradient(
        90deg,
        rgba(247, 243, 239, 0.12),
        rgba(247, 243, 239, 0.22)
    ),
    var(--page-bg-image) center top / cover no-repeat;
  z-index: 0;
}

[data-theme="dark"] .poetry-wheel-bg {
  background:    
    linear-gradient(
        180deg,
        rgba(247, 243, 239, 0.00) 0%,
        rgba(247, 243, 239, 0.08) 35%,
        var(--bg) 96%
    ),
    linear-gradient(
        90deg,
        rgba(247, 243, 239, 0.12),
        rgba(247, 243, 239, 0.22)
    ),
    var(--page-bg-image) center top / cover no-repeat;
}

.poetry-wheel-hero .container {
  position: relative;
  z-index: 1;
}

.poetry-wheel-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.poetry-wheel-head h1 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.poetry-wheel-head p {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.poetry-wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.78fr);
  gap: 48px;
  align-items: flex-start;
}

.poetry-wheel-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: flex-start;
  min-width: 0;
}

.poetry-wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 44px;
  transform: translateX(-50%);
  background: var(--primary);
  border-radius: 50% 50% 45% 45%;
  z-index: 6;
  box-shadow: var(--shadow-soft);
}

.poetry-wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--primary);
}

/*
  Оболочка колеса не вращается.
  Вращается только .poetry-wheel-disc, поэтому центральная кнопка всегда ровная.
*/
.poetry-wheel-circle {
  position: relative;
  width: 590px;
  height: 590px;
  overflow: hidden;
  border: 18px solid color-mix(in srgb, var(--surface-solid) 92%, #f4dfb4);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

/*
  Внешний диск.
  JS должен крутить именно #poetryWheelDisc, а не .poetry-wheel-circle.
*/
.poetry-wheel-disc {
  --wheel-rotation: 0deg;

  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #f6c09f 0deg 45deg,
      #f6de7d 45deg 90deg,
      #f7e9c7 90deg 135deg,
      #ffffff 135deg 180deg,
      #dce9f7 180deg 225deg,
      #e2efd7 225deg 270deg,
      #eadcf1 270deg 315deg,
      #f3d9df 315deg 360deg
    );
  transition: transform 4.2s cubic-bezier(.15,.75,.2,1);
}

.poetry-wheel-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -90deg,
      transparent 0deg 44.8deg,
      rgba(160, 120, 70, 0.28) 44.8deg 45deg
    );
  pointer-events: none;
}

.poetry-wheel-disc.is-spinning {
  pointer-events: none;
}

[data-theme="dark"] .poetry-wheel-disc {
  filter: brightness(0.9) saturate(0.9);
}

/*
  Подписи поэтов.
  Они размещены по кругу, но компенсируют вращение диска через --wheel-rotation.
  Поэтому текст остается читаемым после остановки.
*/
.poetry-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 150px;
  min-height: 84px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #11152c;

  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-205px)
    rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
}

.poetry-wheel-sector-name {
  display: block;
  max-width: 142px;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
}

.poetry-wheel-avatar {
  width: 58px;
  height: 58px;
  display: block;
  margin: 0 auto 9px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 8px 20px rgba(40, 31, 25, 0.16);
}

.poetry-wheel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poetry-wheel-sector-name {
  display: block;
  max-width: 142px;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
}

/*
  Центральная кнопка не входит в диск и не вращается.
*/
.poetry-wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--text);
  background: radial-gradient(circle, var(--surface-solid) 0%, var(--bg-soft) 100%);
  border: 3px solid rgba(180, 138, 78, 0.48);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-main);
  font-size: 31px;
  font-weight: 700;
}

.poetry-wheel-center:hover {
  color: var(--primary);
}

.poetry-wheel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 60px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
  background: var(--surface-muted);
}

.poetry-result-card {
  min-height: 510px;
  padding: 38px 42px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.poetry-result-card.is-updated {
  animation: poetryResultPulse 0.6s ease;
}

.poetry-result-card.has-error {
  border-color: rgba(255, 47, 50, 0.35);
}

@keyframes poetryResultPulse {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

.poetry-result-head {
  margin-bottom: 30px;
  text-align: center;
}

.poetry-result-head h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 38px;
  line-height: 1.1;
}

.poetry-result-head h2 span {
  color: #b58b50;
}

.poetry-decor-line {
  position: relative;
  width: 190px;
  height: 16px;
  margin: 14px auto 0;
  border-top: 1px solid rgba(181, 139, 80, 0.42);
}

.poetry-decor-line::after {  
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  padding: 0 10px;
  color: #f51000;
  background: var(--surface-solid);
}

.poetry-result-author {
  margin-bottom: 8px;
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 700;
}

.poetry-result-card h3 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1.12;
}

.poetry-result-text {
  min-height: 210px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 19px;
  line-height: 1.75;
}

.poetry-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.poetry-result-actions button {
  color: var(--text-muted);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.poetry-result-actions button:hover {
  color: var(--primary);
}

.poetry-spin-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.poetry-spin-row .btn {
  width: min(100%, 500px);
}

.poetry-feature-section {
  padding-top: 8px;
}

.poetry-feature-card h3 {
  margin-top: -54px;
}

.poetry-red-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 800;
}

.poetry-red-link:hover {
  color: var(--primary-hover);
}

.poetry-author-avatars {
  display: flex;
  margin: 16px 0 0;
}

.poetry-author-avatars a,
.poetry-author-avatars span {
  width: 42px;
  height: 42px;
  margin-right: -8px;
  overflow: hidden;
  background: var(--surface-muted);
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.poetry-author-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poetry-share-icons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.poetry-share-icons span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.poetry-content-section {
  padding-top: 24px;
}

.poetry-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  margin-bottom: 28px;
}

.poetry-selection-card {
  padding: 24px;
}

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

.poetry-mini-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.poetry-heart-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  font-size: 24px;
}

.poetry-heart-btn:hover {
  color: var(--primary);
}

.poetry-mini-author {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.poetry-mini-card h3 {
  margin: 0 0 12px;
  padding-right: 28px;
  font-family: var(--font-main);
  font-size: 19px;
  line-height: 1.2;
}

.poetry-mini-card p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.poetry-mini-card a {
  color: var(--primary);
  font-weight: 800;
}

.poetry-side-promo {
  min-height: 320px;
}

.poetry-why-panel {
  margin-bottom: 0;
}

.poetry-why-panel .stat-icon:not(.red):not(.green) {
  color: var(--purple);
  background: rgba(128, 103, 184, 0.12);
}

/* Responsive: Poetry Wheel */

@media (max-width: 1180px) {
  .poetry-wheel-layout,
  .poetry-bottom-layout {
    grid-template-columns: 1fr;
  }

  .poetry-spin-row {
    justify-content: center;
  }

  .poetry-result-card {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .poetry-wheel-hero {
    padding-top: 28px;
  }

  .poetry-wheel-bg {
    height: 840px;
  }

  .poetry-wheel-head h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .poetry-wheel-head p {
    font-size: 17px;
  }

  .poetry-wheel-circle {
    width: 500px;
    height: 500px;
  }

  .poetry-wheel-center {
    width: 148px;
    height: 148px;
    font-size: 27px;
  }

  .poetry-wheel-label {
    width: 130px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-174px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-sector-name {
    font-size: 16px;
  }

  .poetry-wheel-sector-icon {
    font-size: 32px;
  }

  .poetry-mini-grid {
    grid-template-columns: 1fr;
  }

  .poetry-result-card h3 {
    font-size: 30px;
  }

  .poetry-result-text {
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .poetry-wheel-circle {
    width: 340px;
    height: 340px;
    border-width: 10px;
  }

  .poetry-wheel-pointer {
    width: 28px;
    height: 36px;
  }

  .poetry-wheel-pointer::after {
    bottom: -8px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-top-width: 13px;
  }

  .poetry-wheel-center {
    width: 112px;
    height: 112px;
    font-size: 21px;
  }

  .poetry-wheel-label {
    width: 82px;
    min-height: 62px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-112px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-sector-name {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.15;
  }

  .poetry-wheel-sector-icon {
    margin-top: 6px;
    font-size: 22px;
  }

  .poetry-result-card {
    padding: 26px 20px;
  }

  .poetry-result-head h2 {
    font-size: 31px;
  }

  .poetry-result-actions {
    gap: 12px;
  }

  .poetry-feature-card h3 {
    margin-left: 78px;
  }
}

@media (max-width: 420px) {
  .poetry-wheel-circle {
    width: 300px;
    height: 300px;
  }

  .poetry-wheel-label {
    width: 76px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-98px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-sector-name {
    font-size: 10px;
  }

  .poetry-wheel-sector-icon {
    display: none;
  }
}
.poetry-poem-preview {
  white-space: pre-line;
  font-family: var(--font-main);
  font-size: 19px;
  line-height: 1.62;
}

.poetry-read-more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 900;
}

.poetry-read-more-link:hover {
  color: var(--primary-hover);
}

@media (max-width: 860px) {
  .poetry-wheel-avatar {
    width: 50px;
    height: 50px;
  }

  .poetry-wheel-sector-name {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .poetry-wheel-avatar {
    width: 34px;
    height: 34px;
    border-width: 2px;
    margin-bottom: 5px;
  }

  .poetry-wheel-sector-name {
    font-size: 10px;
    line-height: 1.1;
  }
}

@media (max-width: 420px) {
  .poetry-wheel-avatar {
    width: 30px;
    height: 30px;
  }

  .poetry-wheel-sector-name {
    font-size: 9px;
  }
}

/* ==============================
   Page: Full Poem
============================== */

.poem-full-page {
  background: var(--bg);
}

.poem-full-hero {
  position: relative;
  padding: 0 0 28px;
  overflow: hidden;
}

.poem-full-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 330px;
  background:
   linear-gradient( 180deg, rgba(247, 243, 239, 0.00) 0%, rgba(247, 243, 239, 0.08) 35%, var(--bg) 96% ), linear-gradient( 90deg, rgba(247, 243, 239, 0.12), rgba(247, 243, 239, 0.22) ), var(--page-bg-image) center top / cover no-repeat;
  z-index: 0;
}

[data-theme="dark"] .poem-full-bg {
  background:
    linear-gradient( 180deg, rgba(247, 243, 239, 0.00) 0%, rgba(247, 243, 239, 0.08) 35%, var(--bg) 96% ), linear-gradient( 90deg, rgba(247, 243, 239, 0.12), rgba(247, 243, 239, 0.22) ), var(--page-bg-image) center top / cover no-repeat;
}

.poem-full-title {
  position: relative;
  z-index: 1;
  padding: 36px 0 26px;
  text-align: center;
}

.poem-full-title h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.poem-full-title p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.poem-full-decor,
.poem-card-decor,
.poem-side-decor,
.poem-main-bottom-decor {
  height: 5px;
  background:
    linear-gradient(90deg, transparent, rgba(254, 61, 7, 0.6), transparent);
  opacity: .8;
}

.poem-full-decor {
  width: 220px;
  margin: 12px auto 0;
}

.poem-back-link {
  position: relative;
  z-index: 2;
  width: max-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.poem-full-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.poem-main-card,
.poem-author-box,
.poem-other-box,
.poem-info-card,
.poem-similar-card,
.poem-wheel-promo,
.poem-more-author-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.poem-main-card {
  min-height: 600px;
  padding: 34px 46px 34px;
  border-top-left-radius: 0;
}

.poem-main-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.poem-main-author {
  margin-bottom: 4px;
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
}

.poem-main-author span {
  margin-left: 18px;
  color: #bc8b59;
  font-family: var(--font-ui);
}

.poem-main-card h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.poem-card-decor {
  width: 240px;
  margin-top: 16px;
}

.poem-main-actions {
  display: flex; 
  justify-content: flex-end;
  gap: 18px;
  padding-top: 4px;
}

.poem-main-actions button {
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.poem-main-actions button:hover {
  color: var(--primary);
}

.poem-main-text {
  margin-top: 14px;
  font-family: var(--font-main);
  font-size: 22px; 
}

.poem-main-bottom-decor {
  width: 82%;
  margin: 34px auto 20px;
}

.poem-main-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  color: var(--text-muted);
  font-weight: 800;
}

.poem-side {
  display: grid;
  gap: 14px;
}

.poem-author-box,
.poem-other-box {
  padding: 26px;
}

.poem-author-box h2,
.poem-other-box h2,
.poem-info-card h2,
.poem-similar-card h2,
.poem-wheel-promo h2,
.poem-more-author-section h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.18;
}

.poem-side-decor {
  width: 120px;
  margin: 10px 0 18px;
}

.poem-author-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.poem-author-row img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.poem-author-row h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.15;
}

.poem-author-row p,
.poem-author-text {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.poem-author-text {
  margin-bottom: 22px;
}

.poem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poem-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--text);
  background: var(--surface-muted);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.poem-tags span:nth-child(1) {
  background: rgba(255, 154, 75, .14);
}

.poem-tags span:nth-child(2) {
  background: rgba(72, 177, 53, .12);
}

.poem-tags span:nth-child(3) {
  background: rgba(99, 132, 194, .14);
}

.poem-other-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.poem-other-head a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.poem-other-list {
  display: grid;
  gap: 14px;
}

.poem-other-list a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.poem-other-list span {
  color: #bc8b59;
}

.poem-info-section {
  padding: 0 0 16px;
}

.poem-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.poem-info-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.poem-similar-card-wide {
  width: 100%;
}

.poem-info-right {
  min-width: 0;
}

.poem-info-right .poem-wheel-promo {
  height: 100%;
}

.poem-info-card,
.poem-similar-card {
  padding: 26px;
}

.poem-info-card p,
.poem-wheel-promo p,
.poem-similar-card p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.poem-similar-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.poem-similar-list a {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/*
  6 похожих стихов:
  2 колонки по 3 блока.
*/
.poem-similar-list.poem-similar-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poem-similar-list.poem-similar-list-wide a {
  min-height: 82px;
}

.poem-similar-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(72,177,53,.11);
  border-radius: 50%;
}

.poem-similar-list strong {
  display: block;
  font-family: var(--font-main);
}

.poem-similar-list small {
  color: var(--text-muted);
  font-weight: 700;
}

.poem-more-link {
  display: block;
  margin-top: 16px;
  color: var(--primary);
  text-align: center;
  font-weight: 900;
}

.poem-wheel-promo {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.poem-wheel-promo h2 {
  max-width: 360px;
  font-size: 27px;
}

.poem-wheel-promo p {
  max-width: 360px;
  color: #11152c;
  margin-bottom: 24px;
}

.poem-more-author-section {
  margin-bottom: 38px;
  padding: 24px 22px;
}

.poem-more-author-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.poem-small-card {
  position: relative;
  min-height: 148px;
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.poem-small-card button {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 20px;
}

.poem-small-card h3 {
  max-width: calc(100% - 24px);
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 18px;
}

.poem-small-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.poem-small-card a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

/* Full Poem responsive */

@media (max-width: 1180px) {
  .poem-full-layout {
    grid-template-columns: 1fr;
  }

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

  .poem-info-layout {
    grid-template-columns: 1fr;
  }

  .poem-info-left {
    grid-template-columns: 1fr;
  }

  .poem-more-author-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .poem-full-title {
    padding-top: 30px;
  }

  .poem-back-link {
    border-radius: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
  }

  .poem-main-card {
    border-top-left-radius: var(--radius-lg);
    padding: 28px 24px;
  }

  .poem-main-top {
    flex-direction: column;
  }

  .poem-main-actions {
    justify-content: flex-start;
  }

  .poem-main-text {
    font-size: 20px;
  }

  .poem-main-meta {
    gap: 16px;
    flex-direction: column;
  }

  .poem-side {
    grid-template-columns: 1fr;
  }

  .poem-info-left {
    grid-template-columns: 1fr;
  }

  .poem-more-author-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .poem-similar-list-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .poem-full-bg {
    height: 380px;
  }

  .poem-full-title h1 {
    font-size: 38px;
  }

  .poem-full-title p {
    font-size: 16px;
  }

  .poem-main-card {
    padding: 24px 18px;
  }

  .poem-main-card h2 {
    font-size: 32px;
  }

  .poem-main-author {
    font-size: 20px;
  }

  .poem-main-text {
    font-size: 18px;
    line-height: 1.32;
  }

  .poem-main-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .poem-author-row {
    grid-template-columns: 64px 1fr;
  }

  .poem-author-row img {
    width: 60px;
    height: 60px;
  }

  .poem-info-card,
  .poem-similar-card,
  .poem-wheel-promo,
  .poem-author-box,
  .poem-other-box {
    padding: 22px 18px;
  }

  .poem-more-author-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Page: Author
============================== */

.author-page {
  background: var(--bg);
}

.author-hero {
  position: relative;
  padding: 0 0 22px;
  overflow: hidden;
}

.author-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%), var(--page-bg-image) center / cover;
}

[data-theme="dark"] .author-hero-bg {
  background: linear-gradient( 180deg, rgba(247, 243, 239, 0.00) 0%, rgba(247, 243, 239, 0.08) 35%, var(--bg) 96% ), linear-gradient( 90deg, rgba(247, 243, 239, 0.12), rgba(247, 243, 239, 0.22) ), var(--page-bg-image) center top / cover no-repeat;
}

.author-hero-layout {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.author-photo-wrap {
  width: 286px;
  height: 286px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}

.author-photo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-hero-info {
  max-width: 620px;
  margin-top: 30px;
}

.author-hero-info h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.author-years {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.author-hero-info p {
  max-width: 600px;
  margin: 26px 0 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

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

.author-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.author-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 15px;
}

.author-stat-card,
.author-about-card,
.author-popular-card,
.author-themes-card,
.author-recommend-card,
.author-facts-card,
.author-quote-card,
.author-similar-card,
.author-promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.author-stat-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
}

.author-stat-card > span {
  color: #bc8b59;
  font-size: 30px;
}

.author-stat-card strong {
  display: block;
  font-family: var(--font-main);
  font-size: 31px;
  line-height: 1;
}

.author-stat-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-weight: 800;
}

.author-content-section {
  padding: 0 0 42px;
}

.author-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.author-left,
.author-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.author-about-card,
.author-popular-card,
.author-themes-card,
.author-recommend-card,
.author-facts-card,
.author-quote-card,
.author-similar-card {
  padding: 26px;
}

.author-about-card h2,
.author-popular-card h2,
.author-themes-card h2,
.author-recommend-card h2,
.author-facts-card h2,
.author-quote-card h2,
.author-similar-card h2,
.author-promo-card h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1.18;
}

.author-decor {
  width: 170px;
  height: 12px;
  margin: 8px 0 18px;
  background: linear-gradient(90deg, rgba(160,117,76,.68), transparent);
}

.author-about-card {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.author-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.author-card-head a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.author-poems-list {
  display: grid;
}

.author-poems-list a {
  
  grid-template-columns: 28px 210px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}

.author-poems-list a:last-child {
  border-bottom: 0;
}

.author-poems-list span {
  color: #bc8b59;
}

.author-poems-list strong {
  font-family: var(--font-main);
  font-size: 17px;
}

.author-poems-list small {
  color: var(--text-muted);
  font-weight: 700;
}

.author-poems-list b {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.author-themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.author-themes-grid div {
  min-height: 130px;
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.author-themes-grid span {
  color: var(--primary);
  font-size: 26px;
}

.author-themes-grid strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-main);
  font-size: 17px;
}

.author-themes-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.author-recommend-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.author-recommend-grid a {
  min-height: 132px;
  padding: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.author-recommend-grid strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-main);
  font-size: 16px;
}

.author-recommend-grid p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.author-recommend-grid span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.author-facts-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.author-facts-list div {
  display: grid;
  grid-template-columns: 32px 1fr 130px;
  gap: 10px;
  align-items: center;
}

.author-facts-list span {
  color: #bc8b59;
}

.author-facts-list small {
  color: var(--text-muted);
  font-weight: 800;
}

.author-facts-list strong {
  font-weight: 900;
  text-align: right;
}

.author-quote-card blockquote {
  margin: 18px 0 10px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.55;
}

.author-quote-card cite {
  display: block;
  color: var(--text-muted);
  text-align: right;
  font-style: normal;
  font-weight: 800;
}

.author-similar-list {
  display: grid;
  margin-top: 18px;
}

.author-similar-list a {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}

.author-similar-list a:last-child {
  border-bottom: 0;
}

.author-similar-list img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.author-similar-list strong {
  font-family: var(--font-main);
}

.author-similar-list span {
  color: var(--text-muted);
  font-size: 24px;
}

.author-promo-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  color: #11152c;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.author-promo-card h2 {
  max-width: 330px;
}

.author-promo-card p {
  margin: 12px 0 22px;
  max-width: 300px;
  color: #11152c;
  font-weight: 800;
}

/* Author responsive */

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

  .author-main-layout {
    grid-template-columns: 1fr;
  }

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

  .author-promo-card {
    grid-column: 1 / -1;
  }

  .author-poems-list a {
    grid-template-columns: 28px 1fr;
  }

  .author-poems-list small,
  .author-poems-list b {
    grid-column: 2;
  }

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

  .author-recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .author-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
    text-align: center;
  }

  .author-photo-wrap {
    width: 220px;
    height: 220px;
    margin-inline: auto;
  }

  .author-years {
    justify-content: center;
  }

  .author-tags {
    justify-content: center;
  }

  .author-stats-grid {
    grid-template-columns: 1fr;
  }

  .author-right {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .author-hero-bg {
    height: 460px;
  }

  .author-hero-info h1 {
    font-size: 42px;
  }

  .author-photo-wrap {
    width: 190px;
    height: 190px;
  }

  .author-about-card,
  .author-popular-card,
  .author-themes-card,
  .author-recommend-card,
  .author-facts-card,
  .author-quote-card,
  .author-similar-card,
  .author-promo-card {
    padding: 22px 18px;
  }

  .author-themes-grid,
  .author-recommend-grid {
    grid-template-columns: 1fr;
  }

  .author-facts-list div {
    grid-template-columns: 28px 1fr;
  }

  .author-facts-list strong {
    grid-column: 2;
    text-align: left;
  }
}

.poetry-wheel-author-link {
  display: grid;
  place-items: center;
  color: inherit;
  text-align: center;
}

.poetry-wheel-author-link:hover .poetry-wheel-sector-name {
  color: var(--primary);
}

.poetry-mini-author {
  display: inline-flex;
  width: max-content;
  color: var(--primary);
  font-weight: 900;
}

.poetry-mini-author:hover {
  color: var(--primary-hover);
}

.poetry-result-author a {
  color: var(--primary);
  font-weight: 900;
}

.poetry-result-author a:hover {
  color: var(--primary-hover);
}

/* ==============================
   Page: Author Poems
============================== */

.author-poems-page {
  background: var(--bg);
}

.author-poems-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 24px;
}

.author-poems-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 340px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
  z-index: 0;
}

[data-theme="dark"] .author-poems-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.author-poems-hero-layout {
  position: relative;
  z-index: 1;
  min-height: 320px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.author-poems-photo {
  width: 286px;
  height: 286px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}

.author-poems-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-poems-info {
  max-width: 650px;
}

.author-poems-info h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.author-poems-years {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.author-poems-years span {
  width: 120px;
  height: 1px;
  background: rgba(160, 117, 76, .6);
}

.author-poems-info p {
  max-width: 620px;
  margin: 26px 0 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.author-poems-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.author-poems-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.author-poems-section {
  padding: 0 0 42px;
}

.author-poems-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.author-poems-main,
.author-poems-side-card,
.author-poems-promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.author-poems-main {
  padding: 26px;
}

.author-poems-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.author-poems-head h2,
.author-poems-side-card h2,
.author-poems-promo h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.15;
}

.author-poems-count {
  color: var(--text-muted);
  font-weight: 800;
}

.author-poems-count span {
  color: #bc8b59;
}

.author-poems-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.author-poems-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  font-weight: 700;
}

.author-poems-search button {
  width: 50px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 22px;
}

.author-poems-search a {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.author-poems-list {
  display: grid;
  gap: 10px;
}

.author-poem-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.author-poem-icon {
  color: #bc8b59;
  font-size: 28px;
}

.author-poem-info h3 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 23px;
  line-height: 1.16;
}

.author-poem-info h3 a {
  color: var(--text);
}

.author-poem-info h3 a:hover {
  color: var(--primary);
}

.author-poem-info p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.author-poem-year {
  color: var(--text);
  text-align: right;
  font-weight: 900;
}

.author-poems-empty {
  padding: 24px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.author-poems-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.author-poems-pagination a {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
}

.author-poems-pagination a.active,
.author-poems-pagination a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.author-poems-side {
  display: grid;
  gap: 18px;
}

.author-poems-side-card {
  padding: 26px;
}

.author-topic-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.author-topic-list div {
  display: grid;
  grid-template-columns: 28px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.author-topic-list span {
  color: #bc8b59;
}

.author-topic-list strong {
  font-weight: 900;
}

.author-topic-list b {
  text-align: right;
}

.author-poems-side-card p {
  margin: 16px 0 18px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.65;
}

.author-side-link {
  color: var(--primary);
  font-weight: 900;
}

.author-quote-box blockquote {
  margin: 18px 0 10px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.55;
}

.author-quote-box cite {
  display: block;
  color: var(--text-muted);
  text-align: right;
  font-style: normal;
  font-weight: 800;
}

.author-poems-promo {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  color: #11152c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.25)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=900&auto=format&fit=crop") center / cover;
}

.author-poems-promo p {
  margin: 12px 0 22px;
  color: #11152c;
  font-weight: 800;
}

/* Author Poems responsive */

@media (max-width: 1180px) {
  .author-poems-layout {
    grid-template-columns: 1fr;
  }

  .author-poems-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-poems-promo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .author-poems-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
    text-align: center;
  }

  .author-poems-photo {
    width: 220px;
    height: 220px;
    margin-inline: auto;
  }

  .author-poems-years,
  .author-poems-tags {
    justify-content: center;
  }

  .author-poems-head {
    flex-direction: column;
  }

  .author-poems-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .author-poems-bg {
    height: 460px;
  }

  .author-poems-info h1 {
    font-size: 42px;
  }

  .author-poems-photo {
    width: 190px;
    height: 190px;
  }

  .author-poems-main,
  .author-poems-side-card,
  .author-poems-promo {
    padding: 22px 18px;
  }

  .author-poem-row {
    grid-template-columns: 34px 1fr;
  }

  .author-poem-year {
    grid-column: 2;
    text-align: left;
  }

  .author-poems-search {
    flex-wrap: wrap;
  }

  .author-poems-search button {
    flex: 1;
  }
}

.author-poems-list.is-loading,
#authorPoemsPagination.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.author-poems-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 900;
}

/* ==============================
   Page: Authors list
============================== */

.authors-page {
  background: var(--bg);
}

.authors-hero {  
  min-height: 290px;
  overflow: hidden;
}

.authors-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .authors-hero-bg {
  background:
    linear-gradient(180deg, rgba(15,17,24,.18), rgba(15,17,24,.9) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.authors-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.authors-hero-content h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(48px, 5.8vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.authors-hero-decor {
  width: 170px;
  height: 14px;
  margin: 10px auto;
  background: linear-gradient(90deg, transparent, rgba(160, 117, 76, .75), transparent);
}

.authors-hero-content p {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.authors-section {
  margin-top: -34px;
  padding-bottom: 44px;
  position: relative;
  z-index: 2;
}

.authors-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.authors-main-card,
.authors-side-card,
.authors-quote-card,
.authors-promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.authors-main-card {
  padding: 24px;
}

.authors-search-form {
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  margin-bottom: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.authors-search-form span {
  color: var(--text-muted);
  font-size: 22px;
}

.authors-search-form input {
  width: 100%;
  height: 52px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
  font-weight: 800;
}

.authors-search-reset {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.authors-letters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 18px;
}

.authors-letters a {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
  line-height: 1;
}

.authors-letters a.active,
.authors-letters a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.authors-count-line {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 800;
}

.authors-count-line strong {
  color: var(--text);
}

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

.author-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  min-height: 220px;
  padding: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.author-card-photo {
  width: 104px;
  height: 104px;
  align-self: start;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 24px rgba(30, 22, 16, .12);
}

.author-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 26px;
  line-height: 1.1;
}

.author-card h3 a {
  color: var(--text);
}

.author-card h3 a:hover {
  color: var(--primary);
}

.author-card-years {
  margin-top: 4px;
  color: var(--text-muted);
  font-weight: 800;
}

.author-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.author-card-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text);
  background: rgba(160, 117, 76, .12);
  border: 1px solid rgba(160, 117, 76, .16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.author-card p {
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}

.author-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.author-card-link {
  color: var(--primary);
  font-weight: 900;
}

.author-card-link:hover {
  color: var(--primary-hover);
}

.authors-empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  font-weight: 900;
}

.authors-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.authors-pagination a,
.authors-pagination span {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 900;
}

.authors-pagination a.active,
.authors-pagination a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.authors-side {
  display: grid;
  gap: 18px;
}

.authors-side-card {
  padding: 26px;
}

.authors-side-card h2,
.authors-promo-card h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 27px;
  line-height: 1.18;
}

.authors-side-decor {
  width: 160px;
  height: 13px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(160, 117, 76, .75), transparent);
}

.authors-side-list {
  display: grid;
  gap: 15px;
}

.authors-side-list div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
}

.authors-side-list span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: rgba(160, 117, 76, .14);
  border-radius: 50%;
  font-size: 14px;
}

.authors-side-list strong {
  font-weight: 900;
}

.authors-side-list b {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.authors-side-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 900;
}

.authors-quote-card {
  position: relative;
  min-height: 170px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(160,117,76,.14), rgba(255,255,255,.62));
}

[data-theme="dark"] .authors-quote-card {
  background:
    linear-gradient(135deg, rgba(160,117,76,.18), rgba(27,29,38,.78));
}

.authors-quote-mark {
  color: #bc8b59;
  font-family: var(--font-main);
  font-size: 58px;
  line-height: 1;
}

.authors-quote-card p {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: 23px;
  line-height: 1.32;
}

.authors-quote-card span {
  color: #a0754c;
  font-weight: 900;
}

.authors-quote-card i {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: #bc8b59;
  font-size: 40px;
  font-style: normal;
}

.authors-promo-card {
  min-height: 210px;
  padding: 26px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .authors-promo-card {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.authors-promo-card p {
  margin: 12px 0 22px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.authors-grid.is-loading,
#authorsPagination.is-loading {
  opacity: .45;
  pointer-events: none;
}

/* responsive */

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

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

  .authors-promo-card,
  .authors-quote-card {
    grid-column: 1 / -1;
  }
}

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

  .authors-side {
    grid-template-columns: 1fr;
  }

  .authors-hero-content p {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .authors-main-card,
  .authors-side-card,
  .authors-quote-card,
  .authors-promo-card {
    padding: 20px 16px;
  }

  .authors-search-form {
    grid-template-columns: 34px 1fr;
  }

  .authors-search-reset {
    grid-column: 2;
    padding-bottom: 10px;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-card-photo {
    margin: 0 auto;
  }

  .author-card-tags,
  .author-card-meta {
    justify-content: center;
  }
}

/* ==============================
   Poetry wheel click effects
============================== */

.poetry-wheel-circle,
.poetry-wheel-disc {
  pointer-events: auto;
}

.poetry-wheel-label {
  transition:
    transform 900ms cubic-bezier(.16,.85,.22,1),
    opacity 600ms ease,
    filter 600ms ease;
  will-change: transform, opacity;
}

.poetry-wheel-label.is-flying-author {
  transform:
    rotate(var(--angle))
    translateY(-43%)
    rotate(var(--angle-neg))
    translate(var(--fly-x), var(--fly-y))
    rotate(var(--fly-r))
    scale(.82);
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
}

.poetry-wheel-box {
  transition:
    transform 1500ms cubic-bezier(.64,-0.16,.76,.44),
    opacity 900ms ease,
    filter 900ms ease;
  will-change: transform, opacity;
}

.poetry-wheel-box.is-wheel-away {
  transform: translateX(130vw) rotate(55deg) scale(.76);
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
}

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

.author-bio-content {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.author-bio-content p {
  margin: 0 0 16px;
  font-weight: 400;
}

.author-bio-content p:last-child {
  margin-bottom: 0;
}

.author-bio-content h2,
.author-bio-content h3,
.author-bio-content h4 {
  margin: 22px 0 12px;
  font-family: var(--font-main);
  line-height: 1.2;
  font-weight: 700;
}

.author-bio-content ul,
.author-bio-content ol {
  margin: 14px 0 18px 22px;
  padding: 0;
  font-weight: 400;
}

.author-bio-content li {
  margin-bottom: 8px;
  font-weight: 400;
}

.author-bio-content blockquote {
  margin: 18px 0;
  padding-left: 18px;
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 1180px) {
  .author-stats-grid.author-stats-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .author-stats-grid.author-stats-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Poetry birthday calendar block
============================== */

.poetry-birthday-section {
  margin-top: 24px;
  margin-bottom: 34px;
}

.poetry-birthday-layout,
.poetry-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: stretch;
}

.poetry-birthday-calendar-card,
.poetry-selection-card {
  min-width: 0;
  width: 100%;
}

.poetry-birthday-today-card,
.poetry-side-promo {
  min-width: 0;
  width: 100%;
  height: 100%;
}

.poetry-birthday-calendar-card,
.poetry-birthday-today-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(232, 222, 211, 0.82);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(66, 49, 35, 0.08);
  backdrop-filter: blur(12px);
}

.poetry-birthday-calendar-card {
  padding: 18px 18px 10px;
}

.poetry-birthday-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.poetry-birthday-icon,
.poetry-birthday-today-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ff3f3f;
  background: rgba(255, 63, 63, 0.08);
  border: 1px solid rgba(255, 63, 63, 0.16);
  border-radius: 10px;
  font-weight: 900;
}

.poetry-birthday-head h2,
.poetry-birthday-today-head h2 {
  margin: 0;
  color: var(--title);
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.poetry-birthday-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.poetry-birthday-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid rgba(232, 222, 211, 0.82);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
}

.poetry-birthday-day {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  color: var(--title);
  text-align: center;
  border-right: 1px solid rgba(232, 222, 211, 0.82);
  background: rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.poetry-birthday-day:last-child {
  border-right: 0;
}

.poetry-birthday-day:hover {
  z-index: 2;
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 28px rgba(66, 49, 35, 0.10);
}

.poetry-birthday-day.is-today {
  background: linear-gradient(180deg, rgba(255, 63, 63, 0.08), rgba(255, 255, 255, 0.86));
  outline: 1px solid rgba(255, 63, 63, 0.34);
  outline-offset: -1px;
}

.poetry-birthday-day.is-today:after {
  content: '✦';
  position: absolute;
  right: 6px;
  bottom: 8px;
  color: #ff3f3f;
  font-size: 18px;
  font-weight: 900;
}

.poetry-birthday-day strong {
  color: var(--title);
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.poetry-birthday-day small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: lowercase;
}

.poetry-birthday-day.is-today strong,
.poetry-birthday-day.is-today small,
.poetry-birthday-day.is-today em {
  color: #ff3f3f;
}

.poetry-birthday-avatar {
  width: 56px;
  height: 56px;
  display: block;
  margin: 14px 0 9px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #f5eee8;
  box-shadow: 0 9px 18px rgba(42, 31, 24, 0.14);
}

.poetry-birthday-day.is-today .poetry-birthday-avatar {
  border-color: rgba(255, 63, 63, 0.78);
}

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

.poetry-birthday-day b {
  display: block;
  min-height: 36px;
  color: var(--title);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.24;
}

.poetry-birthday-day em {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.poetry-birthday-more {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  color: #ff3f3f;
  font-size: 15px;
  font-weight: 900;
}

.poetry-birthday-more:hover {
  color: #e52d2d;
}

.poetry-birthday-more span {
  font-size: 20px;
  line-height: 1;
}

.poetry-birthday-today-card {
  min-height: 100%;
  padding: 22px 22px 20px;  
}

.poetry-birthday-today-card:before {
  right: 16px;
  top: 28px;
  transform: rotate(18deg);
}

.poetry-birthday-today-card:after {
  left: 18px;
  bottom: 28px;
  transform: rotate(-18deg);
}

.poetry-birthday-today-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.poetry-birthday-today-date {
  position: relative;
  z-index: 2;
  margin: 10px 0 18px;
  color: #ff3f3f;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.poetry-birthday-today-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.poetry-birthday-today-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--title);
}

.poetry-birthday-today-author img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #f5eee8;
  box-shadow: 0 10px 22px rgba(42, 31, 24, 0.14);
}

.poetry-birthday-today-author strong {
  display: block;
  color: var(--title);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.poetry-birthday-today-author em {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.poetry-birthday-empty,
.poetry-birthday-today-empty {
  padding: 24px;
  color: var(--text-muted);
  font-weight: 800;
  text-align: center;
}


/* Poetry birthday blocks: dark theme */

[data-theme="dark"] .poetry-birthday-calendar-card,
[data-theme="dark"] .poetry-birthday-today-card {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .poetry-birthday-head h2,
[data-theme="dark"] .poetry-birthday-today-head h2,
[data-theme="dark"] .poetry-birthday-day,
[data-theme="dark"] .poetry-birthday-day strong,
[data-theme="dark"] .poetry-birthday-day b,
[data-theme="dark"] .poetry-birthday-today-author,
[data-theme="dark"] .poetry-birthday-today-author strong {
  color: var(--text);
}

[data-theme="dark"] .poetry-birthday-head p,
[data-theme="dark"] .poetry-birthday-day small,
[data-theme="dark"] .poetry-birthday-day em,
[data-theme="dark"] .poetry-birthday-today-author em,
[data-theme="dark"] .poetry-birthday-empty,
[data-theme="dark"] .poetry-birthday-today-empty {
  color: var(--text-muted);
}

[data-theme="dark"] .poetry-birthday-days {
  background: var(--surface-solid);
  border-color: var(--border);
}

[data-theme="dark"] .poetry-birthday-day {
  background: rgba(255, 255, 255, 0.018);
  border-right-color: var(--border);
}

[data-theme="dark"] .poetry-birthday-day:hover {
  background: var(--surface-muted);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .poetry-birthday-day.is-today {
  background:
    linear-gradient(
      180deg,
      rgba(255, 47, 50, 0.16),
      color-mix(in srgb, var(--surface-solid) 92%, var(--primary) 8%)
    );
  outline-color: rgba(255, 47, 50, 0.48);
}

[data-theme="dark"] .poetry-birthday-day.is-today strong,
[data-theme="dark"] .poetry-birthday-day.is-today small,
[data-theme="dark"] .poetry-birthday-day.is-today em,
[data-theme="dark"] .poetry-birthday-day.is-today::after,
[data-theme="dark"] .poetry-birthday-today-date,
[data-theme="dark"] .poetry-birthday-more {
  color: var(--primary);
}

[data-theme="dark"] .poetry-birthday-icon,
[data-theme="dark"] .poetry-birthday-today-head span {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.12);
  border-color: rgba(255, 47, 50, 0.28);
}

[data-theme="dark"] .poetry-birthday-avatar,
[data-theme="dark"] .poetry-birthday-today-author img {
  background: var(--surface-muted);
  border-color: var(--surface-solid);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .poetry-birthday-day.is-today .poetry-birthday-avatar {
  border-color: var(--primary);
}

[data-theme="dark"] .poetry-birthday-today-author {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

[data-theme="dark"] .poetry-birthday-today-author:hover {
  background: var(--surface-muted);
  border-color: var(--border);
}

[data-theme="dark"] .poetry-birthday-more:hover {
  color: var(--primary-hover);
}

@media (max-width: 1180px) {
  .poetry-birthday-layout,
  .poetry-bottom-layout {
    grid-template-columns: 1fr;
  }

  .poetry-birthday-today-card,
  .poetry-side-promo {
    height: auto;
  }

  .poetry-birthday-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .poetry-birthday-day:nth-child(4n) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .poetry-birthday-calendar-card {
    padding: 15px 12px 10px;
  }

  .poetry-birthday-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poetry-birthday-day {
    min-height: 164px;
  }

  .poetry-birthday-day:nth-child(2n) {
    border-right: 0;
  }

  .poetry-birthday-head h2,
  .poetry-birthday-today-head h2 {
    font-size: 19px;
  }
}

/* ==============================
   Full calendar page
============================== */

.calendar-page {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.calendar-hero {
  min-height: 290px;
  overflow: hidden;
}

.calendar-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .calendar-hero-bg {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.calendar-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.calendar-hero-content h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.calendar-hero-decor {
  width: 170px;
  height: 14px;
  margin: 10px auto;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(160, 117, 76, 0.75),
      transparent
    );
}

.calendar-hero-content p {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

/* Stats */

.calendar-stats-section {
  position: relative;
  z-index: 4;
  margin-top: -34px;
  margin-inline: auto;
}

.calendar-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.calendar-stat-card {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.calendar-stat-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 900;
}

.calendar-stat-icon.orange {
  color: #ff8a00;
  background: rgba(255, 138, 0, 0.12);
}

.calendar-stat-icon.red {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.1);
}

.calendar-stat-icon.purple {
  color: var(--purple);
  background: rgba(128, 103, 184, 0.12);
}

.calendar-stat-icon.green {
  color: var(--green);
  background: rgba(72, 177, 53, 0.1);
}

.calendar-stat-card small {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.calendar-stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.calendar-stat-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Main layout */

.calendar-content-section {
  margin: 24px auto;
}

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

.calendar-months-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calendar-month-card,
.calendar-side-card,
.calendar-quote-card {
  min-width: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.calendar-month-card {
  min-height: 260px;
  padding: 20px 18px 18px;
}

.calendar-month-card.is-current {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-solid) 92%, var(--primary) 8%),
      var(--surface)
    );
}

[data-theme="dark"] .calendar-month-card.is-current {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-solid) 88%, var(--primary) 12%),
      var(--surface)
    );
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.calendar-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-month-head h2,
.calendar-side-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.calendar-month-head span {
  display: inline-flex;
  padding: 6px 12px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.calendar-month-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.calendar-author-row,
.calendar-upcoming-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
}

.calendar-author-row:hover b,
.calendar-upcoming-row:hover b,
.calendar-jubilee-list a:hover b {
  color: var(--primary);
}

.calendar-date-box {
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 5px 2px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.calendar-author-row.is-today .calendar-date-box,
.calendar-upcoming-row.is-active .calendar-date-box {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  background: color-mix(in srgb, var(--surface-solid) 94%, var(--primary) 6%);
}

.calendar-date-box strong {
  display: block;
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.calendar-date-box small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.calendar-author-row img,
.calendar-upcoming-row img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.calendar-author-info,
.calendar-upcoming-row > span {
  min-width: 0;
}

.calendar-author-info b,
.calendar-upcoming-row b,
.calendar-jubilee-list b {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.calendar-author-info em,
.calendar-upcoming-row em,
.calendar-jubilee-list em {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.calendar-month-empty,
.calendar-side-empty {
  color: var(--text-muted);
  font-weight: 800;
}

.calendar-month-empty {
  margin-top: 20px;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

/* Sidebar */

.calendar-sidebar {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.calendar-side-card {
  padding: 20px 18px;
}

.calendar-upcoming-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.calendar-upcoming-row {
  position: relative;
  grid-template-columns: 48px 42px minmax(0, 1fr) 20px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.calendar-upcoming-row.is-active {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--surface-solid) 95%, var(--primary) 5%);
}

.calendar-upcoming-row img {
  width: 42px;
  height: 42px;
}

.calendar-upcoming-row i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
}

.calendar-red-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.calendar-red-link:hover {
  color: var(--primary-hover);
}

.calendar-jubilee-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.calendar-jubilee-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  color: var(--text);
}

.calendar-jubilee-list a > span {
  width: 52px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 5px;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-solid) 95%, var(--primary) 5%);
  text-align: center;
}

.calendar-jubilee-list a > span strong {
  display: block;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.calendar-jubilee-list a > span small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 900;
}

.calendar-side-empty {
  margin: 14px 0 0;
}

/* Quote */

.calendar-quote-card {
  padding: 26px 22px;
  background:
    radial-gradient(
      circle at 10% 10%,
      color-mix(in srgb, var(--primary) 7%, transparent),
      transparent 28%
    ),
    var(--surface);
  text-align: center;
}

.calendar-quote-card blockquote {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
}

.calendar-quote-card blockquote::before {
  content: "“";
  display: block;
  color: var(--primary);
  font-size: 34px;
  font-style: normal;
  line-height: 1;
}

.calendar-quote-card cite {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

/* Bottom banner */

.calendar-bottom-section {
  margin-bottom: 42px;
}

.calendar-bottom-banner {
  min-height: 230px;
  display: flex;
  align-items: center;
  padding: 38px 64px;
  overflow: hidden;
  color: #11152c;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.3)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .calendar-bottom-banner {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.96), rgba(15, 17, 24, 0.56)),
    var(--page-bg-image) center / cover;
}

.calendar-bottom-banner h2 {
  max-width: 520px;
  margin: 0 0 18px;
  color: inherit;
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
}

.calendar-bottom-banner p {
  max-width: 520px;
  margin: 0 0 22px;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

/* Dark theme safeguards */

[data-theme="dark"] .calendar-page,
[data-theme="dark"] .calendar-content-section,
[data-theme="dark"] .calendar-bottom-section {
  color: var(--text);
  background-color: var(--bg);
}

[data-theme="dark"] .calendar-stat-card,
[data-theme="dark"] .calendar-month-card,
[data-theme="dark"] .calendar-side-card,
[data-theme="dark"] .calendar-quote-card {
  color: var(--text);
  background-color: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .calendar-date-box {
  color: var(--text);
  background: var(--surface-solid);
  border-color: var(--border);
}

[data-theme="dark"] .calendar-month-empty {
  color: var(--text-muted);
  background: var(--surface-muted);
  border-color: var(--border);
}

[data-theme="dark"] .calendar-upcoming-row.is-active,
[data-theme="dark"] .calendar-jubilee-list a > span {
  background-color: color-mix(in srgb, var(--surface-solid) 90%, var(--primary) 10%);
}

[data-theme="dark"] .calendar-author-row img,
[data-theme="dark"] .calendar-upcoming-row img {
  background: var(--surface-muted);
}

/* Responsive */

@media (max-width: 1180px) {
  .calendar-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .calendar-hero {
    min-height: 280px;
  }

  .calendar-stats-section {
    margin-top: -28px;
  }

  .calendar-stats-grid,
  .calendar-months-grid,
  .calendar-sidebar {
    grid-template-columns: 1fr;
  }

  .calendar-bottom-banner {
    padding: 28px 24px;
  }

  .calendar-bottom-banner h2 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .calendar-page,
  .calendar-hero,
  .calendar-content-section,
  .calendar-bottom-section {
    width: 100%;
    max-width: 100%;
  }

  .calendar-hero {
    min-height: 240px;
  }

  .calendar-hero-content {
    width: 100%;
    padding: 42px 16px 34px;
  }

  .calendar-hero-content h1 {
    font-size: clamp(36px, 12vw, 48px);
    overflow-wrap: anywhere;
  }

  .calendar-hero-content p {
    font-size: 16px;
  }

  .calendar-stats-section {
    margin-top: -18px;
  }

  .calendar-stats-grid,
  .calendar-layout,
  .calendar-months-grid,
  .calendar-sidebar {
    min-width: 0;
  }

  .calendar-stat-card {
    min-height: 0;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .calendar-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }

  .calendar-stat-card strong {
    font-size: 27px;
  }

  .calendar-month-card,
  .calendar-side-card {
    padding: 16px 14px;
  }

  .calendar-quote-card {
    padding: 20px 16px;
  }

  .calendar-month-head {
    align-items: flex-start;
  }

  .calendar-month-head h2,
  .calendar-side-card h2 {
    font-size: 21px;
  }

  .calendar-author-row {
    grid-template-columns: 44px 34px minmax(0, 1fr);
    gap: 9px;
  }

  .calendar-upcoming-row {
    grid-template-columns: 44px 38px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 4px;
  }

  .calendar-upcoming-row i {
    display: none;
  }

  .calendar-date-box {
    width: 42px;
    min-height: 42px;
  }

  .calendar-author-row img {
    width: 34px;
    height: 34px;
  }

  .calendar-upcoming-row img {
    width: 38px;
    height: 38px;
  }

  .calendar-jubilee-list a {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
  }

  .calendar-jubilee-list a > span {
    width: 48px;
  }

  .calendar-bottom-banner {
    min-height: 0;
    padding: 24px 18px;
  }

  .calendar-bottom-banner h2 {
    font-size: 25px;
  }
}

.poetry-favorite-btn {
  transition: 0.18s ease;
}

.poetry-heart-btn,
.poetry-author-heart-btn {
  color: var(--text);
}

.poetry-heart-btn.is-favorite,
.poetry-author-heart-btn.is-favorite,
.poetry-result-save-btn.is-favorite {
  color: var(--primary);
}

.poetry-heart-btn.is-favorite {
  background: rgba(255, 47, 50, 0.08);
  border-color: rgba(255, 47, 50, 0.18);
}

.poetry-author-fav-wrap {
  position: relative;
  display: inline-block;
}

.poetry-author-heart-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.poetry-author-heart-btn.is-favorite {
  color: var(--primary);
}

/* Популярные поэты — крупные аватарки с сердечком */

.poetry-author-avatars {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0 18px;
}

.poetry-author-fav-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.poetry-author-fav-wrap + .poetry-author-fav-wrap {
  margin-left: -10px;
}

.poetry-author-fav-wrap > a {
  width: 58px;
  height: 58px;
  display: block;
}

.poetry-author-fav-wrap img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: cover;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.poetry-author-heart-btn {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.poetry-author-heart-btn.is-favorite {
  color: var(--primary);
  border-color: rgba(255, 47, 50, 0.22);
  background: rgba(255, 47, 50, 0.08);
}

/* ==============================
   Favorites page
============================== */

.favorites-page {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.favorites-hero {
  min-height: 290px;
  overflow: hidden;
}

.favorites-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .favorites-hero-bg {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.favorites-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.favorites-hero-content h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.04;
  color: var(--text);
}

.favorites-hero-content p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.favorites-hero-decor {
  width: 160px;
  height: 18px;
  margin: 14px auto 14px;
  background: radial-gradient(circle at center, var(--primary) 0 3px, transparent 4px);
  position: relative;
}

.favorites-hero-decor:before,
.favorites-hero-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: var(--border);
}

.favorites-hero-decor:before {
  left: 0;
}

.favorites-hero-decor:after {
  right: 0;
}

.favorites-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  gap: 24px;
}

.favorites-stat-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.favorites-stat-card > span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.18);
  border-radius: 50%;
  font-size: 34px;
}

.favorites-stat-card strong {
  display: block;
  font-family: var(--font-main);
  font-size: 38px;
  line-height: 1;
}

.favorites-stat-card b {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.favorites-stat-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.favorites-content-section {
  padding: 26px 0 22px;
}

.favorites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  align-items: start;
}

.favorites-main-card,
.favorites-side-card,
.favorites-promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.favorites-main-card {
  min-height: 640px;
  padding: 24px 18px;
}

.favorites-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.favorites-tabs button {
  min-width: 92px;
  min-height: 42px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 900;
}

.favorites-tabs button.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.favorites-tools {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 16px;
  margin-bottom: 24px;
}

.favorites-tools label {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.favorites-tools input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.favorites-tools select {
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
}

.favorites-block h2,
.favorites-side-card h2 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: 26px;
}

.favorites-block + .favorites-block {
  margin-top: 34px;
}

.favorites-poems-list,
.favorites-authors-list,
.favorites-recent-list {
  display: grid;
  gap: 14px;
}

.favorites-poem-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px 160px;
  gap: 16px;
  align-items: center;
  padding: 18px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.favorites-poem-icon {
  width: 44px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.14);
  border-radius: 10px;
}

.favorites-poem-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 20px;
}

.favorites-poem-author {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-weight: 800;
}

.favorites-poem-info p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.favorites-heart-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-size: 24px;
  font-weight: 900;
}

.favorites-read-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.favorites-author-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.favorites-author-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.favorites-author-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 20px;
}

.favorites-author-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.favorites-sidebar {
  display: grid;
  gap: 20px;
}

.favorites-side-card {
  padding: 24px;
}

.favorites-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.favorites-side-head h2 {
  margin-bottom: 0;
}

.favorites-side-head a {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.favorites-author-avatars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.favorites-author-avatars a {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
}

.favorites-author-avatars img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.favorites-recent-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.favorites-recent-row:last-child {
  border-bottom: 0;
}

.favorites-recent-row > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border-radius: 50%;
}

.favorites-recent-row b {
  display: block;
  font-family: var(--font-main);
  font-size: 16px;
}

.favorites-recent-row small {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
}

.favorites-recent-row em {
  color: var(--primary);
  font-style: normal;
  font-size: 20px;
}

.favorites-promo-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .favorites-promo-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.favorites-promo-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: 24px;
}

.favorites-promo-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 700;
}

.favorites-bottom-section {
  padding: 0 0 46px;
}

.favorites-bottom-banner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .favorites-bottom-banner {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

.favorites-bottom-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 28px;
}

.favorites-bottom-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.favorites-empty {
  padding: 20px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

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

  .favorites-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .favorites-stats-grid {
    grid-template-columns: 1fr;
  }

  .favorites-tools {
    grid-template-columns: 1fr;
  }

  .favorites-poem-card {
    grid-template-columns: 54px minmax(0, 1fr) 42px;
  }

  .favorites-read-link {
    grid-column: 2 / -1;
    text-align: left;
  }

  .favorites-author-avatars {
    grid-template-columns: repeat(2, 1fr);
  }

  .favorites-bottom-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .favorites-hero-content h1 {
    font-size: 42px;
  }

  .favorites-stat-card {
    grid-template-columns: 64px 1fr;
    padding: 22px;
  }

  .favorites-stat-card > span {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .favorites-main-card,
  .favorites-side-card {
    padding: 18px;
  }

  .favorites-poem-card,
  .favorites-author-card {
    grid-template-columns: 1fr 42px;
  }

  .favorites-poem-icon,
  .favorites-author-card img {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .favorites-poem-card {
    grid-template-columns: 1fr 38px;
    gap: 12px;
    padding: 16px 14px;
  }

  .favorites-poem-icon {
    display: none;
  }

  .favorites-poem-info {
    min-width: 0;
  }

  .favorites-poem-info h3 {
    font-size: 19px;
  }

  .favorites-read-link {
    grid-column: 1 / -1;
    text-align: left;
  }

  .favorites-heart-btn {
    width: 38px;
    height: 38px;
  }

  .favorites-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .favorites-tabs button {
    min-width: 0;
    width: 100%;
  }

  .favorites-author-card {
    grid-template-columns: 54px 1fr 38px;
    gap: 12px;
  }

  .favorites-author-card img {
    width: 52px;
    height: 52px;
  }

  .favorites-author-card h3 {
    font-size: 18px;
  }

  .favorites-author-avatars {
    grid-template-columns: repeat(2, 1fr);
  }

  .favorites-bottom-banner .btn {
    width: 100%;
  }
}

.favorites-recent-photo {
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

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

.favorites-recent-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border-radius: 50%;
}

.favorites-poem-photo {
  width: 52px;
  height: 52px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

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

/* ==============================
   Favorites mobile fix
============================== */

.favorites-page {
  overflow-x: hidden;
}

.favorites-layout,
.favorites-main-card,
.favorites-sidebar,
.favorites-block,
.favorites-poems-list,
.favorites-authors-list,
.favorites-recent-list {
  min-width: 0;
}

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

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

  .favorites-promo-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .favorites-hero {
    padding: 50px 0 38px;
  }

  .favorites-hero-content h1 {
    font-size: 44px;
    line-height: 1.05;
  }

  .favorites-hero-content p {
    font-size: 16px;
  }

  .favorites-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .favorites-stat-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 18px;
  }

  .favorites-stat-card > span {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .favorites-main-card {
    padding: 22px 18px;
  }

  .favorites-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .favorites-tabs button {
    min-width: 0;
    padding: 0 8px;
    font-size: 14px;
  }

  .favorites-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .favorites-tools label,
  .favorites-tools select {
    width: 100%;
  }

  .favorites-sidebar {
    grid-template-columns: 1fr;
  }

  .favorites-bottom-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .favorites-bottom-banner .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .favorites-content-section {
    padding-top: 18px;
  }

  .favorites-block h2 {
    font-size: 24px;
  }

  .favorites-poem-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .favorites-poem-photo {
    width: 54px;
    height: 54px;
  }

  .favorites-poem-photo img {
    width: 54px;
    height: 54px;
  }

  .favorites-poem-info {
    min-width: 0;
  }

  .favorites-poem-info h3 {
    font-size: 20px;
    line-height: 1.18;
  }

  .favorites-poem-info h3 a,
  .favorites-poem-author,
  .favorites-poem-info p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .favorites-heart-btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .favorites-read-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 0;
  }

  .favorites-author-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .favorites-author-card img {
    width: 54px;
    height: 54px;
  }

  .favorites-author-card > div {
    min-width: 0;
  }

  .favorites-author-card h3 {
    font-size: 20px;
    line-height: 1.18;
  }

  .favorites-author-card h3 a,
  .favorites-author-card p {
    overflow-wrap: anywhere;
  }

  .favorites-author-card .favorites-heart-btn {
    grid-column: 1;
    grid-row: 2;
  }

  .favorites-side-card,
  .favorites-promo-card {
    padding: 22px 18px;
  }

  .favorites-side-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .favorites-author-avatars a {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .favorites-author-avatars img,
  .favorites-recent-photo img {
    width: 44px;
    height: 44px;
  }

  .favorites-recent-row {
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .favorites-recent-row b,
  .favorites-recent-row small,
  .favorites-author-avatars span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .favorites-hero-content h1 {
    font-size: 38px;
  }

  .favorites-tabs {
    grid-template-columns: 1fr;
  }

  .favorites-tabs button {
    width: 100%;
  }

  .favorites-poem-card,
  .favorites-author-card {
    grid-template-columns: 1fr;
  }

  .favorites-poem-photo,
  .favorites-author-card > a {
    width: 58px;
  }

  .favorites-heart-btn,
  .favorites-read-link,
  .favorites-author-card .favorites-heart-btn {
    grid-column: auto;
    grid-row: auto;
  }

  .favorites-read-link {
    width: 100%;
  }
}

/* Favorites — ночной режим для промо-блоков */

[data-theme="dark"] .favorites-promo-card {
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.28),
      rgba(15, 17, 24, 0.92) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .favorites-promo-card h2,
[data-theme="dark"] .favorites-promo-card p {
  color: var(--text);
}

[data-theme="dark"] .favorites-bottom-banner {
  color: var(--text);
  background:
    linear-gradient(
      90deg,
      rgba(15, 17, 24, 0.94),
      rgba(15, 17, 24, 0.48)
    ),
    var(--page-bg-image) center / cover;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .favorites-bottom-banner h2,
[data-theme="dark"] .favorites-bottom-banner p {
  color: var(--text);
}

[data-theme="dark"] .favorites-bottom-banner .btn {
  color: #fff;
}

/* ==============================
   Poetici share modal
============================== */

body.poetici-share-open {
  overflow: hidden;
}

.poetici-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.poetici-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 24, 0.62);
  backdrop-filter: blur(8px);
}

.poetici-share-box {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px 30px 30px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.poetici-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.poetici-share-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
  border: 1px solid rgba(255, 47, 50, 0.16);
  border-radius: 50%;
  font-size: 30px;
}

.poetici-share-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.15;
}

.poetici-share-box p {
  max-width: 390px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.poetici-share-round-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.poetici-share-round {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.poetici-share-round span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.poetici-share-round b {
  max-width: 72px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poetici-share-round:hover span {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.poetici-share-telegram span {
  background: linear-gradient(135deg, #2AABEE, #168ACD);
}

.poetici-share-vk span {
  background: linear-gradient(135deg, #0077FF, #005BCC);
  font-size: 15px;
}

.poetici-share-max span {
  background: linear-gradient(135deg, #7B61FF, #4F46E5);
  font-size: 12px;
}

.poetici-share-instagram span {
  background: radial-gradient(circle at 30% 110%, #FEDA75 0 18%, #FA7E1E 28%, #D62976 52%, #962FBF 74%, #4F5BD5 100%);
  font-size: 25px;
}

.poetici-share-tiktok span {
  background: linear-gradient(135deg, #111111, #000000);
  font-size: 24px;
}

.poetici-share-facebook span {
  background: linear-gradient(135deg, #1877F2, #0F5BC8);
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.poetici-share-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.poetici-share-copy-row input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.poetici-share-copy-row button {
  height: 42px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.poetici-share-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .poetici-share-modal {
    padding: 16px;
  }

  .poetici-share-box {
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .poetici-share-box h2 {
    font-size: 26px;
  }

  .poetici-share-round-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px;
  }

  .poetici-share-round span {
    width: 58px;
    height: 58px;
  }

  .poetici-share-copy-row {
    grid-template-columns: 1fr;
  }

  .poetici-share-copy-row button {
    width: 100%;
  }
}

.poetici-share-round span svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.poetici-share-telegram span {
  color: #fff;
}

/* ==============================
   Bookshelf page
============================== */

.bookshelf-page {
  background: var(--bg);
  color: var(--text);
}

.bookshelf-hero { 
  padding: 54px 0 34px;
  min-height: 290px;
  overflow: hidden;
}

.bookshelf-hero-bg {
  position: absolute;
  inset: 0; 
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(245,246,252,.86) 88%, var(--bg) 100%),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .bookshelf-hero-bg {
  background: linear-gradient( 180deg, rgba(247, 243, 239, 0.00) 0%, rgba(247, 243, 239, 0.08) 35%, var(--bg) 96% ), linear-gradient( 90deg, rgba(247, 243, 239, 0.12), rgba(247, 243, 239, 0.22) ), var(--page-bg-image) center top / cover no-repeat;
}

.bookshelf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 8px;
  text-align: center;
}

.bookshelf-hero-content h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
}

.bookshelf-hero-content p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.bookshelf-hero-decor {
  width: 160px;
  height: 18px;
  margin: 12px auto 14px;
  background: radial-gradient(circle at center, var(--primary) 0 3px, transparent 4px);
  position: relative;
}

.bookshelf-hero-decor:before,
.bookshelf-hero-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: var(--border);
}

.bookshelf-hero-decor:before {
  left: 0;
}

.bookshelf-hero-decor:after {
  right: 0;
}

.bookshelf-section {
  padding: 18px 0 22px;
}

.bookshelf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  align-items: start;
}

.bookshelf-main-card,
.bookshelf-side-card,
.bookshelf-quote-card,
.bookshelf-archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.bookshelf-main-card {
  padding: 20px;
}

.bookshelf-search-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bookshelf-search-wrap span {
  color: var(--text);
  font-size: 24px;
}

.bookshelf-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.bookshelf-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bookshelf-letters button {
  min-width: 36px;
  height: 36px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 900;
}

.bookshelf-letters button.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.bookshelf-letters button.is-wide {
  min-width: 84px;
  border-radius: 999px;
}

.bookshelf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.bookshelf-tabs button {
  min-width: 96px;
  height: 40px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 900;
}

.bookshelf-tabs button.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.bookshelf-topbar select {
  height: 40px;
  min-width: 150px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
}

.bookshelf-content-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.bookshelf-authors-panel {
  padding: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bookshelf-authors-panel h2,
.bookshelf-section-head h2,
.bookshelf-side-card h2,
.bookshelf-quote-card h2,
.bookshelf-archive-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 24px;
}

.bookshelf-authors-list {
  display: grid;
  gap: 6px;
}

.bookshelf-authors-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  font-weight: 900;
}

.bookshelf-authors-list button.is-active {
  background: rgba(255, 47, 50, 0.08);
  border-color: rgba(255, 47, 50, 0.16);
  box-shadow: inset 3px 0 0 var(--primary);
}

.bookshelf-authors-list img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.bookshelf-panel-more,
.bookshelf-all-author-poems,
.bookshelf-side-more {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  margin-top: 16px;
  padding: 0 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 900;
}

.bookshelf-center-panel {
  min-width: 0;
}

.bookshelf-author-preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.bookshelf-author-preview > img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.bookshelf-author-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bookshelf-author-headline h2 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 30px;
}

.bookshelf-author-headline p,
#bookshelfCurrentBio {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.45;
}

.bookshelf-author-favorite {
  min-height: 40px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.bookshelf-author-favorite.is-favorite {
  color: var(--primary);
  border-color: rgba(255, 47, 50, 0.24);
  background: rgba(255, 47, 50, 0.08);
}

.bookshelf-author-poems,
.bookshelf-all-poems,
.bookshelf-collections {
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bookshelf-poems-list {
  display: grid;
  gap: 10px;
}

.bookshelf-poem-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px 84px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.bookshelf-poem-row:last-child {
  border-bottom: 0;
}

.bookshelf-poem-icon {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.14);
  border-radius: 9px;
}

.bookshelf-poem-row h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 18px;
}

.bookshelf-poem-row small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-weight: 800;
}

.bookshelf-poem-row p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.35;
}

.bookshelf-poem-heart {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-size: 22px;
  font-weight: 900;
}

.bookshelf-poem-heart.is-favorite {
  color: var(--primary);
}

.bookshelf-poem-row > a {
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.bookshelf-sidebar {
  display: grid;
  gap: 18px;
}

.bookshelf-side-card {
  padding: 22px;
}

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

.bookshelf-side-head h2 {
  margin: 0;
}

.bookshelf-side-head a {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.bookshelf-popular-authors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  text-align: center;
}

.bookshelf-popular-authors a {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.bookshelf-popular-authors img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

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

.bookshelf-new-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
}

.bookshelf-new-list span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border-radius: 10px;
}

.bookshelf-new-list b {
  display: block;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
}

.bookshelf-new-list small {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
}

.bookshelf-new-list em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.bookshelf-quote-card {
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.74), rgba(255,255,255,.92)),
    var(--surface);
}

[data-theme="dark"] .bookshelf-quote-card {
  background: var(--surface);
}

.bookshelf-quote-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.bookshelf-quote-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-weight: 900;
}

.bookshelf-archive-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.94)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .bookshelf-archive-card {
  background:
    linear-gradient(180deg, rgba(15,17,24,.50), rgba(15,17,24,.92)),
    var(--page-bg-image) center / cover;
}

.bookshelf-archive-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 700;
}

.bookshelf-bottom-section {
  padding: 0 0 46px;
}

.bookshelf-bottom-banner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.32)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .bookshelf-bottom-banner {
  background:
    linear-gradient(90deg, rgba(15,17,24,.90), rgba(15,17,24,.42)),
    var(--page-bg-image) center / cover;
}

.bookshelf-bottom-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 28px;
}

.bookshelf-bottom-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.bookshelf-empty {
  padding: 18px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

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

  .bookshelf-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .bookshelf-content-grid {
    grid-template-columns: 1fr;
  }

  .bookshelf-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .bookshelf-topbar select {
    width: 100%;
  }

  .bookshelf-author-preview {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .bookshelf-author-preview > img {
    width: 86px;
    height: 86px;
  }

  .bookshelf-author-headline {
    flex-direction: column;
  }

  .bookshelf-popular-authors {
    grid-template-columns: repeat(3, 1fr);
  }

  .bookshelf-bottom-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 24px;
  }
}

@media (max-width: 560px) {
  .bookshelf-hero-content h1 {
    font-size: 42px;
  }

  .bookshelf-main-card {
    padding: 16px;
  }

  .bookshelf-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .bookshelf-tabs button {
    width: 100%;
  }

  .bookshelf-author-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bookshelf-author-preview > img {
    margin: 0 auto;
  }

  .bookshelf-poem-row {
    grid-template-columns: 38px minmax(0, 1fr) 36px;
  }

  .bookshelf-poem-row > a {
    grid-column: 2 / -1;
    text-align: left;
  }

  .bookshelf-popular-authors {
    grid-template-columns: repeat(2, 1fr);
  }

  .bookshelf-new-list a {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .bookshelf-new-list em {
    grid-column: 2;
    text-align: left;
  }

  .bookshelf-bottom-banner .btn {
    width: 100%;
  }
}

.bookshelf-main-title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
}

.bookshelf-topbar-single {
  align-items: center;
}

.bookshelf-search-status {
  min-height: 22px;
  margin: -8px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.bookshelf-search-status.is-loading {
  color: var(--primary);
}

.bookshelf-search-status.is-error {
  color: var(--primary);
}

.bookshelf-search-status.is-hint {
  color: var(--text-muted);
}

/* ==============================
   Feedback page
============================== */

.feedback-page {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.feedback-hero {
  min-height: 290px;
  overflow: hidden;
}

.feedback-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .feedback-hero-bg {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.feedback-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.feedback-hero-content h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.feedback-hero-content p {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.feedback-hero-decor {
  width: 170px;
  height: 14px;
  margin: 10px auto;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(160, 117, 76, 0.75),
      transparent
    );
}

.feedback-hero-decor:before,
.feedback-hero-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: var(--border);
}

.feedback-hero-decor:before {
  left: 0;
}

.feedback-hero-decor:after {
  right: 0;
}

.feedback-section {
  padding: 22px 0;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.feedback-main,
.feedback-sidebar {
  display: grid;
  gap: 18px;
}

.feedback-card,
.feedback-thanks-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.feedback-card {
  padding: 34px 40px;
}

.feedback-card h2,
.feedback-thanks-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.15;
}

.feedback-card-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-weight: 700;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field label {
  color: var(--text);
  font-weight: 900;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  font-weight: 700;
}

.feedback-field input,
.feedback-field select {
  height: 48px;
  padding: 0 16px;
}

.feedback-field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 16px;
}

.feedback-counter {
  margin-top: -34px;
  padding: 0 14px 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  pointer-events: none;
}

.feedback-agree {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.feedback-agree input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.feedback-agree a {
  color: var(--primary);
  font-weight: 900;
}

.feedback-submit {
  min-height: 56px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(255, 47, 50, 0.28);
  font-size: 17px;
  font-weight: 900;
}

.feedback-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.feedback-alert-success {
  color: #0d6b36;
  background: rgba(24, 173, 91, 0.12);
  border: 1px solid rgba(24, 173, 91, 0.20);
}

.feedback-alert-error {
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
  border: 1px solid rgba(255, 47, 50, 0.16);
}

/* ==============================
   Частые темы обращений
============================== */

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

.feedback-topic {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feedback-topic:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 47, 50, 0.22);
  box-shadow: var(--shadow-soft);
}

.feedback-topic span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.16);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.feedback-topic b {
  display: block;
  width: 100%;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.feedback-topic small {
  display: block;
  width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* ==============================
   Перед отправкой
============================== */

.feedback-before-card {
  padding-bottom: 30px;
}

.feedback-before-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feedback-before-grid > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feedback-before-grid span {
  grid-column: 1;
  grid-row: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.16);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.feedback-before-grid b {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.feedback-before-grid small {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}

.feedback-contact-list,
.feedback-help-list {
  display: grid;
  gap: 22px;
}

.feedback-contact-item,
.feedback-help-list > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feedback-contact-item > span,
.feedback-help-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 1px solid rgba(184, 93, 37, 0.16);
  border-radius: 50%;
  font-size: 22px;
}

.feedback-contact-item b,
.feedback-help-list b {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.feedback-contact-item small,
.feedback-help-list small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.35;
}

.feedback-contact-item a {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.feedback-time-content {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.feedback-time-content > span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #b85d25;
  background: rgba(184, 93, 37, 0.08);
  border: 2px solid rgba(184, 93, 37, 0.32);
  border-radius: 18px;
  font-size: 42px;
}

.feedback-time-content b {
  color: var(--text);
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.2;
}

.feedback-time-content p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.feedback-small-decor {
  position: relative;
  width: 160px;
  height: 18px;
  margin: 22px auto 0;
  background: radial-gradient(circle at center, var(--primary) 0 3px, transparent 4px);
}

.feedback-small-decor:before,
.feedback-small-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: var(--border);
}

.feedback-small-decor:before {
  left: 0;
}

.feedback-small-decor:after {
  right: 0;
}

.feedback-thanks-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.95)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .feedback-thanks-card {
  background:
    linear-gradient(180deg, rgba(15, 17, 24, 0.42), rgba(15, 17, 24, 0.92)),
    var(--page-bg-image) center / cover;
}

.feedback-thanks-card p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.feedback-bottom-section {
  padding: 0 0 46px;
}

.feedback-bottom-banner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 70px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .feedback-bottom-banner {
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.90), rgba(15, 17, 24, 0.42)),
    var(--page-bg-image) center / cover;
}

.feedback-bottom-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 30px;
}

.feedback-bottom-banner p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .feedback-before-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .feedback-before-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   Success message
============================== */

.feedback-success-box {
  display: grid;
  justify-items: center;
  padding: 34px 24px;
  text-align: center;
  background: rgba(24, 173, 91, 0.08);
  border: 1px solid rgba(24, 173, 91, 0.18);
  border-radius: 18px;
}

.feedback-success-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: #18ad5b;
  border-radius: 50%;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(24, 173, 91, 0.24);
}

.feedback-success-box h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.15;
}

.feedback-success-box p {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.feedback-send-again {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 28px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(255, 47, 50, 0.24);
  font-weight: 900;
  text-decoration: none;
}

/* ==============================
   Responsive
============================== */

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

  .feedback-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .feedback-thanks-card {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  .feedback-card {
    padding: 26px 22px;
  }

  .feedback-form-row,
  .feedback-sidebar {
    grid-template-columns: 1fr;
  }

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

  .feedback-before-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-bottom-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }
}

@media (max-width: 620px) {
  .feedback-before-card {
    padding: 24px 18px;
  }

  .feedback-before-grid > div {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  .feedback-before-grid span {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .feedback-before-grid b {
    font-size: 14px;
  }

  .feedback-before-grid small {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .feedback-topics-grid {
    grid-template-columns: 1fr;
  }

  .feedback-topic {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .feedback-hero {
    padding: 50px 0 36px;
  }

  .feedback-hero-content h1 {
    font-size: 42px;
  }

  .feedback-hero-content p {
    font-size: 16px;
  }

  .feedback-card h2,
  .feedback-bottom-banner h2 {
    font-size: 26px;
  }

  .feedback-time-content {
    grid-template-columns: 1fr;
  }

  .feedback-submit,
  .feedback-bottom-banner .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .feedback-before-grid > div {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .feedback-before-grid span {
    margin-bottom: 2px;
  }
}

/* ==============================
   Legal pages
============================== */

.legal-page {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.legal-hero {
  min-height: 290px;
  overflow: hidden;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .legal-hero-bg {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.legal-hero-content h1 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-align: center;
}

.legal-hero-decor {
  width: 170px;
  height: 14px;
  margin: 10px auto;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(160, 117, 76, 0.75),
      transparent
    );
}

.legal-hero-content p {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.legal-hero-decor:before,
.legal-hero-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 1px;
}

.legal-hero-decor:before {
  left: 0;
}

.legal-hero-decor:after {
  right: 0;
}

.legal-features-section {  
  position: relative;
  z-index: 2;
}

.legal-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.legal-feature-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 24px 34px;
  border-right: 1px solid var(--border);
}

.legal-feature-card:last-child {
  border-right: 0;
}

.legal-feature-card > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(184, 93, 37, 0.10);
  border-radius: 50%;
  font-size: 30px;
}

.legal-feature-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 21px;
  line-height: 1.15;
}

.legal-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.legal-section {
  padding: 28px 0 22px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.legal-card,
.legal-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.legal-card {
  padding: 24px 28px;
}

.legal-content-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.legal-content-section:first-child {
  padding-top: 0;
}

.legal-content-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(184, 93, 37, 0.10);
  border-radius: 8px;
  font-weight: 900;
}

.legal-section-body h2 {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 25px;
  line-height: 1.15;
}

.legal-section-body p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.legal-section-body p:last-child {
  margin-bottom: 0;
}

.legal-section-body a {
  color: var(--primary);
  font-weight: 800;
}

.legal-sidebar {
  display: grid;
  gap: 18px;
}

.legal-side-card {
  padding: 24px;
}

.legal-date-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 47, 50, 0.08), rgba(184, 93, 37, 0.08)),
    var(--surface);
}

.legal-date-card > span,
.legal-question-card > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255, 47, 50, 0.08);
  border-radius: 50%;
  font-size: 28px;
}

.legal-date-card p {
  margin: 0 0 2px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 20px;
}

.legal-date-card b {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 26px;
  line-height: 1.1;
}

.legal-date-card small {
  display: block;
  color: var(--text-muted);
  font-weight: 800;
  line-height: 1.45;
}

.legal-question-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-question-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 22px;
}

.legal-question-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.legal-question-card a {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.legal-question-card small {
  color: var(--text-muted);
  font-weight: 800;
}

.legal-bottom-section {
  padding: 0 0 42px;
}

.legal-bottom-banner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 34px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.38)),
    var(--page-bg-image) center / cover;
  box-shadow: var(--shadow-soft);
}

.legal-bottom-banner h2 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 24px;
}

.legal-bottom-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.legal-bottom-btn {
  min-height: 50px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
  padding: 0 32px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 900;
  white-space: nowrap;
}

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

@media (max-width: 860px) {
  .legal-hero {
    padding: 62px 0 64px;
  }

  .legal-features-grid {
    grid-template-columns: 1fr;
  }

  .legal-feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-feature-card:last-child {
    border-bottom: 0;
  }

  .legal-bottom-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .legal-hero-content h1 {
    font-size: 39px;
  }

  .legal-hero-content p {
    font-size: 16px;
  }

  .legal-feature-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 20px;
  }

  .legal-feature-card > span {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  .legal-card {
    padding: 20px;
  }

  .legal-content-section {
    grid-template-columns: 1fr;
    gap: 12px;
    scroll-margin-top: 96px;
  }

  .legal-section-body h2 {
    font-size: 23px;
  }

  .legal-date-card,
  .legal-question-card {
    grid-template-columns: 1fr;
  }

  .legal-bottom-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================
   Author bio collapse
============================== */

.author-about-card {
  position: relative;
}

.author-about-card .author-card-head {
  align-items: center;
}

.author-bio-content {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.author-bio-content p {
  margin: 0 0 14px;
}

.author-bio-content p:last-child {
  margin-bottom: 0;
}

.author-bio-collapsed {
  position: relative;
  max-height: 245px;
  overflow: hidden;
}

.author-bio-collapsed:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface) 82%);
}

[data-theme="dark"] .author-bio-collapsed:after {
  background: linear-gradient(180deg, rgba(15,17,24,0), var(--surface) 82%);
}

.author-bio-content.is-open {
  max-height: none;
  overflow: visible;
}

.author-bio-content.is-open:after {
  display: none;
}

.author-bio-toggle {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  text-align: right;
}

.author-bio-toggle:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .author-about-card .author-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .author-bio-collapsed {
    max-height: 220px;
  }

  .author-bio-toggle {
    width: 100%;
  }
}

/* ==============================
   Poem text collapse fixed
============================== */

.poem-main-text-wrap {
  position: relative;
  overflow-anchor: none;
}

.poem-main-text {
  overflow-anchor: none;
}

.poem-main-text-collapsed {
  max-height: 720px;
  overflow: hidden;
}

.poem-main-text-collapsed:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface) 76%);
}

[data-theme="dark"] .poem-main-text-collapsed:after {
  background: linear-gradient(180deg, rgba(15,17,24,0), var(--surface) 76%);
}

.poem-main-text-wrap.is-open {
  max-height: none;
  overflow: visible;
}

.poem-main-text-wrap.is-open:after {
  display: none;
}

.poem-text-toggle-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow-anchor: none;
}

.poem-text-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--primary);
  background: var(--surface-solid);
  border: 1px solid rgba(255, 47, 50, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  pointer-events: auto;
  overflow-anchor: none;
}

.poem-text-toggle:hover {
  color: #fff;
  background: var(--primary);
}

.poem-main-text-wrap.is-open .poem-text-toggle-wrap {
  display: none;
}

@media (max-width: 620px) {
  .poem-main-text-collapsed {
    max-height: 560px;
  }

  .poem-main-text-collapsed:after {
    height: 140px;
  }

  .poem-text-toggle {
    width: calc(100% - 32px);
  }
}

/* ==============================
   Similar poems mobile fix
============================== */

.poem-info-layout,
.poem-info-left,
.poem-info-right,
.poem-similar-card,
.poem-similar-list,
.poem-similar-list-wide {
  min-width: 0;
}

@media (max-width: 980px) {
  .poem-info-layout {
    grid-template-columns: 1fr;
  }

  .poem-info-right {
    width: 100%;
  }

  .poem-similar-list-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .poem-info-section {
    padding-top: 24px;
  }

  .poem-similar-card,
  .poem-wheel-promo {
    padding: 22px 18px;
  }

  .poem-similar-card h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .poem-similar-list,
  .poem-similar-list-wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .poem-similar-list a,
  .poem-similar-list-wide a {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 15px 14px;
  }

  .poem-similar-list a > span,
  .poem-similar-list-wide a > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
  }

  .poem-similar-list a > div,
  .poem-similar-list-wide a > div {
    min-width: 0;
  }

  .poem-similar-list strong,
  .poem-similar-list-wide strong {
    display: block;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .poem-similar-list small,
  .poem-similar-list-wide small {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .poem-wheel-promo h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .poem-wheel-promo .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .poem-similar-list a,
  .poem-similar-list-wide a {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .poem-similar-list a > span,
  .poem-similar-list-wide a > span {
    width: 40px;
    height: 40px;
  }
}

/* ==============================
   Scroll to top button
============================== */

.poetici-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 54px;
  height: 54px;
  display: grid !important;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(255, 47, 50, 0.28);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.poetici-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.poetici-scroll-top:hover {
  background: #d92225;
  transform: translateY(-3px) scale(1.03);
}

.poetici-scroll-top:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 620px) {
  .poetici-scroll-top {
    right: 16px;
    bottom: 86px;
    z-index: 99999;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* ==============================
   Wheel quote card background
============================== */

.poetry-result-card {
  position: relative;
  overflow: hidden;
}

.poetry-result-quote-card {
  isolation: isolate;
  color: #11152c;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.72)
    ),
    var(--surface-solid);
}

.poetry-result-quote-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    ),
    var(--quote-bg-image) center / cover;
}

.poetry-result-quote-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 47, 50, 0.08);
}

.poetry-result-content {
  position: relative;
  z-index: 2;
}

.poetry-result-quote-card .poetry-result-text {
  position: relative;
}

.poetry-result-quote-card .poetry-poem-preview {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
}

.poetry-result-quote-card .poetry-poem-preview::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -14px;
  color: var(--primary);
  font-size: 58px;
  line-height: 1;
  opacity: 0.9;
}

.poetry-quote-source {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

[data-theme="dark"] .poetry-result-quote-card {
  color: var(--text);
  background: var(--surface);
}

[data-theme="dark"] .poetry-result-quote-bg {
  background:
    linear-gradient(
      135deg,
      rgba(15, 17, 24, 0.94),
      rgba(15, 17, 24, 0.68)
    ),
    var(--quote-bg-image) center / cover;
}

@media (max-width: 680px) {
  .poetry-result-quote-card .poetry-poem-preview {
    font-size: 20px;
    padding-left: 22px;
  }

  .poetry-result-quote-card .poetry-poem-preview::before {
    font-size: 46px;
  }
}

.author-card-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.authors-favorite-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--primary);
  background: var(--surface-solid);
  border: 1px solid rgba(255, 47, 50, 0.18);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  margin-left: -10px;
}

.authors-favorite-btn:hover,
.authors-favorite-btn[aria-pressed="true"] {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.poetry-like-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.poetry-like-btn span {
  filter: grayscale(1);
  opacity: 0.65;
}

.poetry-like-btn b {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.poetry-like-btn:hover {
  color: var(--primary);
  border-color: rgba(255, 47, 50, 0.28);
}

.poetry-like-btn.is-liked,
.poetry-like-btn[aria-pressed="true"] {
  color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
}

.poetry-like-btn.is-liked span,
.poetry-like-btn[aria-pressed="true"] span {
  filter: none;
  opacity: 1;
}

.bookshelf-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0 0 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.bookshelf-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bookshelf-breadcrumbs a:hover {
    color: var(--primary);
}

.bookshelf-breadcrumbs span {
    color: var(--primary);
    opacity: 0.75;
}

.bookshelf-breadcrumbs strong {
    color: var(--text);
    font-weight: 900;
}

@media (max-width: 680px) {
    .bookshelf-breadcrumbs {
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 14px;
        font-size: 13px;
    }
}

/* ===============================
   Global Search
================================ */

.global-search {
    position: relative;
    z-index: 9999;
}

.global-search-toggle svg,
.global-search-field-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.global-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 430px;
    max-width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 22px;

    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.12);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.2s ease;
}

html[data-theme="dark"] .global-search-panel {
    background: #171923;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.global-search.is-open .global-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.global-search-field {
    position: relative;
}

.global-search-field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8a6b3f;
    pointer-events: none;
}

html[data-theme="dark"] .global-search-field-icon {
    color: #d6b16f;
}

.global-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    border: 1px solid rgba(30, 41, 59, 0.14);
    border-radius: 16px;
    background: #f8f5ef;
    color: #1f2937;
    outline: none;
    padding: 0 16px 0 46px;
    font-size: 15px;
    font-weight: 800;
}

html[data-theme="dark"] .global-search-input {
    background: #10131c;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.14);
}

.global-search-input::placeholder {
    color: #9ca3af;
}

.global-search-input:focus {
    border-color: #b9843b;
    box-shadow: 0 0 0 4px rgba(185, 132, 59, 0.12);
}

.global-search-hint {
    padding: 10px 4px 0;
    font-size: 12px;
    font-weight: 800;
    color: #8a8f98;
}

html[data-theme="dark"] .global-search-hint {
    color: #9ca3af;
}

.global-search-results {
    margin-top: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.global-search-empty,
.global-search-loading {
    padding: 16px;
    color: #8a8f98;
    font-size: 14px;
    font-weight: 800;
}

html[data-theme="dark"] .global-search-empty,
html[data-theme="dark"] .global-search-loading {
    color: #cbd5e1;
}

.global-search-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    color: #1f2937;
    text-decoration: none;
    transition: 0.18s ease;
}

html[data-theme="dark"] .global-search-item {
    color: #f8fafc;
}

.global-search-item:hover,
.global-search-item.is-active {
    background: #f3eadc;
}

html[data-theme="dark"] .global-search-item:hover,
html[data-theme="dark"] .global-search-item.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.global-search-item-image {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #f1f5f9;
}

html[data-theme="dark"] .global-search-item-image {
    background: #0f172a;
}

.global-search-item-body {
    min-width: 0;
}

.global-search-item-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    color: #1f2937;
}

html[data-theme="dark"] .global-search-item-title {
    color: #f8fafc;
}

.global-search-item-meta {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 800;
    color: #b9843b;
}

.global-search-item-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
}

html[data-theme="dark"] .global-search-item-text {
    color: #cbd5e1;
}

@media (max-width: 680px) {
    .global-search-panel {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }

    .global-search-results {
        max-height: calc(100vh - 170px);
    }
}

/* ===============================
   Text selection report popup
================================ */

.text-selection-popup {
    position: fixed;
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.14);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

html[data-theme="dark"] .text-selection-popup {
    background: #171923;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.text-selection-popup.is-visible {
    display: flex;
}

.text-selection-popup button {
    border: 0;
    outline: none;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: 0.18s ease;
}

.text-selection-report-btn {
    background: #ff2f32;
    color: #ffffff;
}

.text-selection-report-btn:hover {
    background: #a8732f;
}

.text-selection-copy-btn {
    background: #f3eadc;
    color: #4b3621;
}

.text-selection-copy-btn:hover {
    background: #ead9bf;
}

html[data-theme="dark"] .text-selection-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

html[data-theme="dark"] .text-selection-copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.text-report-thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(5px);
}

.text-report-thanks-overlay.is-visible {
    display: flex;
}

.text-report-thanks-box {
    width: min(420px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.12);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
}

html[data-theme="dark"] .text-report-thanks-box {
    background: #171923;
    border-color: rgba(255, 255, 255, 0.12);
}

.text-report-thanks-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f3eadc;
    color: #b9843b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

html[data-theme="dark"] .text-report-thanks-icon {
    background: rgba(185, 132, 59, 0.16);
}

.text-report-thanks-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    color: #1f2937;
}

html[data-theme="dark"] .text-report-thanks-box h3 {
    color: #f8fafc;
}

.text-report-thanks-box p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

html[data-theme="dark"] .text-report-thanks-box p {
    color: #cbd5e1;
}

@media (max-width: 680px) {
    .text-selection-popup {
        max-width: calc(100vw - 24px);
        left: 12px !important;
        right: 12px;
        justify-content: center;
    }

    .text-selection-popup button {
        flex: 1;
    }
}

/* ==============================
   Author page mobile overflow fix
   Только страница автора
============================== */

.author-page {
  max-width: 100%;
  overflow-x: hidden;
}

.author-page *,
.author-page *::before,
.author-page *::after {
  box-sizing: border-box;
}

.author-page .container,
.author-hero,
.author-content-section,
.author-hero-layout,
.author-main-layout,
.author-left,
.author-right,
.author-stats-grid,
.author-themes-grid,
.author-recommend-grid,
.author-poems-list,
.author-facts-list,
.author-similar-list {
  min-width: 0;
  max-width: 100%;
}

.author-about-card,
.author-popular-card,
.author-themes-card,
.author-recommend-card,
.author-facts-card,
.author-quote-card,
.author-similar-card,
.author-promo-card,
.author-stat-card {
  min-width: 0;
  max-width: 100%;
}

.author-hero-info,
.author-hero-info h1,
.author-hero-info p,
.author-years,
.author-tags,
.author-card-head,
.author-bio-content,
.author-bio-content p,
.author-poems-list a,
.author-recommend-grid a,
.author-themes-grid div,
.author-facts-list div,
.author-similar-list a,
.author-promo-card h2,
.author-promo-card p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.author-bio-content img,
.author-about-card img,
.author-popular-card img,
.author-themes-card img,
.author-recommend-card img,
.author-facts-card img,
.author-quote-card img,
.author-similar-card img,
.author-promo-card img {
  max-width: 100%;
  height: auto;
}

.author-bio-content table,
.author-about-card table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Планшет и мобильная версия */
@media (max-width: 860px) {
  .author-hero-layout,
  .author-main-layout,
  .author-stats-grid,
  .author-themes-grid,
  .author-recommend-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .author-left,
  .author-right {
    width: 100%;
    max-width: 100%;
  }

  .author-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* Телефон */
@media (max-width: 560px) {
  .author-page .container {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding-left: 0;
    padding-right: 0;
  }

  .author-hero-info h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .author-years {
    font-size: 17px;
    line-height: 1.35;
    flex-wrap: wrap;
  }

  .author-tags {
    max-width: 100%;
  }

  .author-tags span {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .author-stat-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .author-stat-card strong {
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .author-poems-list a {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .author-poems-list small,
  .author-poems-list b {
    grid-column: 2;
  }

  .author-facts-list div {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .author-facts-list strong {
    grid-column: 2;
    max-width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .author-promo-card .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}


@media (max-width: 680px) {
  .poem-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .poem-main-actions .poetry-favorite-btn,
  .poem-main-actions .poetici-share-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .poem-audio-player-inline {
    grid-column: 1 / -1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin-top: 2px;
  }

  .poem-audio-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .poem-audio-time {
    min-width: 42px;
    font-size: 12px;
    text-align: left;
  }
}


/* ==============================
   Poem audio player
============================== */

.poem-main-actions {
  align-items: center;
}

.poem-audio-player-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poem-audio-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, transparent);
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.poem-audio-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 47, 50, 0.26);
}

.poem-audio-toggle:active {
  transform: translateY(0);
}

.poem-audio-icon {
  line-height: 1;
  font-size: 16px;
}

.poem-audio-icon-play {
  margin-left: 3px;
}

.poem-audio-icon-pause {
  display: none;
  margin-left: -1px;
  font-size: 14px;
  letter-spacing: -2px;
}

.poem-audio-player.is-playing .poem-audio-icon-play {
  display: none;
}

.poem-audio-player.is-playing .poem-audio-icon-pause {
  display: inline;
}

.poem-audio-time {
  min-width: 42px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

/* Mobile: top actions and audio */
@media (max-width: 680px) {
  .poem-main-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .poem-main-actions .poetry-favorite-btn,
  .poem-main-actions .poetici-share-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .poem-audio-player-inline {
    grid-column: 1 / -1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin-top: 2px;
  }

  .poem-audio-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .poem-audio-time {
    min-width: 42px;
    font-size: 12px;
    text-align: left;
  }
}

/* Mobile: poem bottom meta */
@media (max-width: 680px) {
  .poem-main-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 8px 10px;
    text-align: center;
  }

  .poem-main-meta > span:not(.poem-main-views) {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .poem-main-views {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
    margin: 0;
  }

  .poem-main-like-btn {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    margin: 0;
  }

  .poem-main-views,
  .poem-main-like-btn {
    min-width: 74px;
    width: auto;
    justify-content: center;
  }
}

/* Poem page: other author poems */
.poem-other-box {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.poem-other-head {
  display: block;
  margin-bottom: 14px;
}

.poem-other-head h2 {
  max-width: 100%;
  margin-bottom: 0;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.poem-other-list {
  flex: 1 1 auto;
}

.poem-other-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
}

.poem-other-more a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.poem-other-more a:hover {
  color: var(--primary-hover);
}

@media (max-width: 680px) {
  .poem-other-head h2 {
    max-width: 220px;
    min-height: 2.3em;
  }

  .poem-other-more {
    margin-top: 14px;
    justify-content: flex-end;
  }
}

/* ==============================
   Quotes pages
============================== */
.quotes-page,.quote-single-page{background:radial-gradient(circle at 12% 8%,rgba(255,47,50,.035),transparent 28%),radial-gradient(circle at 88% 18%,rgba(255,170,90,.055),transparent 30%),var(--bg)}
.quotes-hero{position:relative;min-height:260px;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid var(--border)}.quotes-hero-single{min-height:320px}.quotes-hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.82),rgba(255,255,255,.38),rgba(255,255,255,.72)),linear-gradient(180deg,rgba(255,255,255,.02),var(--bg) 108%),var(--page-bg-image) center/cover;z-index:0}[data-theme="dark"] .quotes-hero-bg{background:linear-gradient(90deg,rgba(15,17,24,.86),rgba(15,17,24,.52),rgba(15,17,24,.8)),linear-gradient(180deg,rgba(15,17,24,.02),var(--bg) 108%),var(--page-bg-image) center/cover}.quotes-hero-inner{position:relative;z-index:1;display:grid;justify-items:center;text-align:center;padding:42px 0}.quotes-hero h1{margin:0;color:var(--text);font-family:var(--font-main);font-size:clamp(52px,7vw,82px);line-height:1;letter-spacing:-.055em}.quotes-hero p{max-width:620px;margin:18px 0 0;color:var(--text);font-size:19px;font-weight:800;line-height:1.45}.quotes-hero-decor,.quote-card-decor,.quote-main-decor{width:148px;height:16px;margin-top:18px;background:linear-gradient(90deg,transparent,var(--primary),transparent);-webkit-mask:radial-gradient(circle at 50% 50%,#000 0 4px,transparent 4.5px) center/18px 18px,linear-gradient(#000 0 0) center/100% 1px no-repeat;mask:radial-gradient(circle at 50% 50%,#000 0 4px,transparent 4.5px) center/18px 18px,linear-gradient(#000 0 0) center/100% 1px no-repeat}
.quotes-list-section{padding:34px 0 54px}.quotes-filter{display:grid;grid-template-columns:minmax(280px,1fr) 270px 220px auto;gap:18px;align-items:center;margin-bottom:34px}.quotes-search,.quotes-select,.quotes-sort{min-height:54px;display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-soft);backdrop-filter:blur(18px)}.quotes-search{padding:0 18px}.quotes-search input,.quotes-select select,.quotes-sort select{width:100%;border:0;outline:0;color:var(--text);background:transparent;font-weight:800}.quotes-search span{color:var(--text-muted);font-size:24px}.quotes-select,.quotes-sort{padding:0 14px}.quotes-sort{gap:10px;box-shadow:none;border-color:transparent;background:transparent}.quotes-sort span{color:var(--text-muted);font-weight:800;white-space:nowrap}.quotes-filter-submit{min-height:54px;padding:0 20px;color:#fff;background:var(--primary);border:0;border-radius:12px;font-weight:900;box-shadow:var(--shadow-soft)}
.quotes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.quote-card{position:relative;min-height:370px;overflow:hidden;background:radial-gradient(circle at 24% 0%,rgba(232,172,124,.11),transparent 35%),var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);backdrop-filter:blur(18px);transition:.2s ease}.quote-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.quote-card-link{min-height:370px;display:flex;flex-direction:column;padding:28px 30px 24px}.quote-card-heart{position:absolute;top:22px;right:22px;z-index:2;width:34px;height:34px;display:grid;place-items:center;color:#d69a78;background:transparent;border:0;font-size:26px}.quote-card-heart[aria-pressed="true"],.quote-card-heart.is-favorite{color:var(--primary)}.quote-mark{color:#dfa47e;font-size:52px;font-weight:900;line-height:.7}.quote-card h2{margin:18px 0 0;color:var(--text);font-family:var(--font-main);font-size:25px;line-height:1.2;letter-spacing:-.025em}.quote-card-decor{width:138px;margin:24px auto 20px}.quote-card-author{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center;margin-top:auto}.quote-card-author img{width:58px;height:58px;border-radius:50%;object-fit:cover;filter:grayscale(1)}.quote-card-author strong{display:block;color:var(--text);font-size:17px;font-weight:900}.quote-card-author small,.quote-card-author em{display:block;color:var(--text-muted);font-size:13px;font-style:normal;font-weight:700;line-height:1.25}.quote-card-meta{display:flex;justify-content:space-between;gap:16px;margin-top:24px;color:var(--text-muted);font-size:13px;font-weight:800}.quotes-pagination{display:flex;justify-content:center;align-items:center;gap:9px;margin:30px 0 26px}.quotes-pagination a,.quotes-pagination span{min-width:38px;height:38px;display:grid;place-items:center;color:var(--text);background:var(--surface-solid);border:1px solid var(--border);border-radius:9px;font-weight:900}.quotes-pagination a.is-active{color:#fff;background:var(--primary);border-color:var(--primary)}.quotes-pagination a.is-disabled{pointer-events:none;opacity:.45}.quotes-empty{padding:32px;color:var(--text-muted);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);text-align:center;font-weight:800}.quotes-bottom-promo{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:92px;padding:20px 38px;overflow:hidden;color:#11152c;border-radius:var(--radius-md);margin-top:30px;background:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.55),rgba(255,255,255,.92)),var(--page-bg-image) center/cover;box-shadow:var(--shadow-soft)}[data-theme="dark"] .quotes-bottom-promo{color:var(--text);background:linear-gradient(90deg,rgba(15,17,24,.92),rgba(15,17,24,.55),rgba(15,17,24,.9)),var(--page-bg-image) center/cover}.quotes-bottom-promo h2{margin:0 0 4px;font-family:var(--font-main);font-size:28px}.quotes-bottom-promo p{margin:0;font-weight:800}
.quote-single-section{padding:24px 0 54px}.quote-feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.quote-feature-row article{display:grid;grid-template-columns:58px 1fr;gap:15px;align-items:center;min-height:106px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);backdrop-filter:blur(18px)}.quote-feature-row span{width:58px;height:58px;display:grid;place-items:center;color:var(--primary);background:rgba(255,47,50,.08);border-radius:50%;font-size:30px}.quote-feature-row h3{margin:0 0 4px;font-family:var(--font-main);font-size:18px}.quote-feature-row p{margin:0;color:var(--text-muted);font-size:13px;font-weight:700}.quote-single-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.quote-main-card,.quote-side-card,.quote-similar-card{background:radial-gradient(circle at 12% 0%,rgba(232,172,124,.10),transparent 35%),var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);backdrop-filter:blur(18px)}.quote-main-card{padding:26px 30px 28px}.quote-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;color:var(--text-muted);font-size:14px;font-weight:800}.quote-breadcrumbs a:hover{color:var(--primary)}.quote-main-content{display:grid;justify-items:center;text-align:center}.quote-main-mark{color:#e58c65;font-size:70px;line-height:.8}.quote-main-content h1{max-width:720px;margin:4px auto 0;color:var(--text);font-family:var(--font-main);font-size:30px;line-height:1.46;letter-spacing:-.04em}.quote-main-author{display:flex;align-items:center;gap:18px;margin:16px 0 18px;text-align:left}.quote-main-author img{width:76px;height:76px;border-radius:50%;object-fit:cover;filter:grayscale(1)}.quote-main-author h2{margin:0 0 4px;font-family:var(--font-main);font-size:24px}.quote-main-author p{margin:0;color:var(--text-muted);font-weight:700}.quote-main-meta{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:0;margin:10px 0 18px;overflow:hidden;background:var(--surface-solid)}.quote-main-meta>span,.quote-like-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 22px;color:var(--text-muted);border:0;border-right:1px solid var(--border);background:transparent;font-weight:900}.quote-main-meta>*:last-child{border-right:0}.quote-like-btn{cursor:pointer}.quote-like-btn[aria-pressed="true"],.quote-like-btn.is-liked{color:var(--primary)}.quote-source{width:100%;margin:2px 0 14px;padding:12px 16px;color:var(--text-muted);background:var(--surface-muted);border-radius:10px;text-align:left;font-weight:800}.quote-explanation{width:100%;margin-top:4px;text-align:left}.quote-explanation p{margin:0 0 14px;color:var(--text);font-size:17px;line-height:1.7}.quote-main-actions{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.quote-action-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--text);background:var(--surface-solid);border:1px solid var(--border);border-radius:9px;font-weight:900}.quote-action-btn:hover{color:var(--primary);border-color:rgba(255,47,50,.25)}.quote-side{display:grid;gap:18px}.quote-side-card{padding:24px}.quote-side-card h2{margin:0 0 14px;font-family:var(--font-main);font-size:24px}.quote-content-card a{display:block;margin-top:12px;color:var(--text);font-weight:800}.quote-content-card a:hover{color:var(--primary)}.quote-author-card{display:grid;grid-template-columns:78px 1fr;gap:16px;background:linear-gradient(135deg,rgba(255,47,50,.06),transparent 72%),var(--surface)}.quote-author-card img{width:78px;height:78px;border-radius:50%;object-fit:cover;filter:grayscale(1)}.quote-author-card p{margin:0;color:var(--text-muted);font-weight:700}.quote-stats-card p{display:flex;justify-content:space-between;gap:16px;margin:12px 0;color:var(--text);font-weight:800}.quote-stats-card span{color:var(--text-muted)}.quote-add-card{background:linear-gradient(135deg,rgba(255,47,50,.06),transparent 72%),var(--surface)}.quote-add-card p{color:var(--text-muted);font-weight:700}.quote-add-card .btn{width:100%}.quote-similar-section{margin-top:22px}.quote-similar-section h2{margin:0 0 12px;font-family:var(--font-main);font-size:26px}.quote-similar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quote-similar-card{min-height:210px;padding:20px}.quote-similar-card>span{color:#e58c65;font-size:36px;line-height:.8}.quote-similar-card p{min-height:68px;margin:8px 0 18px;color:var(--text);font-weight:800;line-height:1.45}.quote-similar-card div{display:flex;align-items:center;gap:10px}.quote-similar-card img{width:42px;height:42px;border-radius:50%;object-fit:cover;filter:grayscale(1)}.quote-similar-card a{display:inline-flex;margin-top:16px;color:var(--primary);font-weight:900}
@media(max-width:1100px){.quotes-filter{grid-template-columns:1fr 1fr}.quotes-grid,.quote-similar-grid{grid-template-columns:repeat(2,1fr)}.quote-feature-row{grid-template-columns:repeat(2,1fr)}.quote-single-layout{grid-template-columns:1fr}}@media(max-width:760px){.quotes-hero,.quotes-hero-single{min-height:230px}.quotes-hero h1{font-size:48px}.quotes-hero p{font-size:16px}.quotes-list-section,.quote-single-section{padding-top:22px}.quotes-filter{grid-template-columns:1fr;gap:12px}.quotes-sort{justify-content:space-between;border-color:var(--border);background:var(--surface);box-shadow:var(--shadow-soft)}.quotes-filter-submit{width:100%}.quotes-grid,.quote-feature-row,.quote-similar-grid{grid-template-columns:1fr}.quote-card,.quote-card-link{min-height:320px}.quote-card-link{padding:24px 24px 22px}.quote-card h2{font-size:23px}.quotes-bottom-promo{align-items:flex-start;flex-direction:column;padding:22px}.quotes-bottom-promo .btn{width:100%}.quote-main-card{padding:22px 18px}.quote-main-content h1{font-size:34px}.quote-main-author{align-items:center;justify-content:center;flex-direction:column;text-align:center}.quote-main-meta{display:grid;grid-template-columns:1fr 1fr;border-radius:12px}.quote-main-meta>span,.quote-like-btn{min-height:44px;border-right:0;border-bottom:1px solid var(--border)}.quote-main-meta>*:nth-child(2n+1){border-right:1px solid var(--border)}.quote-main-meta>*:nth-last-child(-n+2){border-bottom:0}.quote-main-actions{grid-template-columns:1fr}.quote-author-card{grid-template-columns:1fr;justify-items:center;text-align:center}}



/* Quotes AJAX */
.quotes-ajax-wrap {
  position: relative;
  transition: opacity 0.2s ease;
}

.quotes-ajax-wrap.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.quotes-ajax-wrap.is-loading::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(255, 47, 50, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: quotesAjaxSpin 0.75s linear infinite;
}

@keyframes quotesAjaxSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   Poetry newsletter block
============================== */

.poetry-newsletter-section {
  margin-top: 34px;
  margin-bottom: 42px;
}

.poetry-newsletter-card {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  align-items: center;
  gap: 34px;
  padding: 30px 42px;
  overflow: hidden;
  color: var(--text);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--surface-solid) 90%, transparent),
      color-mix(in srgb, var(--surface-solid) 58%, transparent)
    ),
    var(--page-bg-image) center / cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.poetry-newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 35%, rgba(255, 255, 255, 0.58), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.poetry-newsletter-glow {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 360px;
  height: 230px;
  background: radial-gradient(circle, rgba(255, 47, 50, 0.22), transparent 68%);
  pointer-events: none;
}

.poetry-newsletter-left,
.poetry-newsletter-form {
  position: relative;
  z-index: 2;
}

.poetry-newsletter-left {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.poetry-newsletter-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: var(--shadow-soft);
}

.poetry-newsletter-left h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.poetry-newsletter-left p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.poetry-newsletter-form {
  width: 100%;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 12px;
  align-items: center;
}

/*
 * Сообщение выносим из потока, чтобы оно не меняло высоту формы
 * и не сбивало вертикальное центрирование поля и кнопки.
 */
.poetry-newsletter-message {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  min-height: 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.poetry-newsletter-input {
  display: block;
  min-width: 0;
}

.poetry-newsletter-input input,
.poetry-newsletter-form button {
  width: 100%;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.poetry-newsletter-input input {
  padding: 0 22px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.poetry-newsletter-input input::placeholder {
  color: var(--text-soft);
}

.poetry-newsletter-input input:focus {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.poetry-newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 14px 34px rgba(255, 47, 50, 0.24);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.poetry-newsletter-form button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(255, 47, 50, 0.32);
}

.poetry-newsletter-form button:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

.poetry-newsletter-message.is-success {
  color: var(--green);
}

.poetry-newsletter-message.is-error {
  color: var(--primary);
}

[data-theme="dark"] .poetry-newsletter-card {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--surface-solid) 90%, transparent),
      rgba(15, 17, 24, 0.54)
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .poetry-newsletter-card::before {
  background:
    radial-gradient(circle at 8% 35%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 17, 24, 0.18), rgba(15, 17, 24, 0.46));
}

[data-theme="dark"] .poetry-newsletter-icon {
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
}

[data-theme="dark"] .poetry-newsletter-input input {
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
}

@media (max-width: 1100px) {
  .poetry-newsletter-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }

  .poetry-newsletter-form {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .poetry-newsletter-section {
    margin-top: 24px;
    margin-bottom: 30px;
  }

  .poetry-newsletter-card {
    min-height: auto;
    padding: 24px 18px 28px;
    border-radius: var(--radius-md);
  }

  .poetry-newsletter-left {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
  }

  .poetry-newsletter-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .poetry-newsletter-left h2 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .poetry-newsletter-left p {
    font-size: 15px;
    line-height: 1.45;
  }

  .poetry-newsletter-form {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .poetry-newsletter-input input,
  .poetry-newsletter-form button {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 13px;
    font-size: 15px;
  }

  .poetry-newsletter-form button {
    display: flex;
  }

  .poetry-newsletter-message {
    position: static;
    min-height: 18px;
    margin-top: 2px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .poetry-newsletter-card {
    padding: 22px 16px 26px;
  }

  .poetry-newsletter-left {
    grid-template-columns: 1fr;
  }

  .poetry-newsletter-icon {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .poetry-newsletter-left h2 {
    font-size: 21px;
  }

  .poetry-newsletter-left p {
    font-size: 14px;
  }

  .poetry-newsletter-input input,
  .poetry-newsletter-form button {
    height: 50px;
    min-height: 50px;
    font-size: 14px;
  }
}

.poetry-result-heading-link {
  color: inherit;
  text-decoration: none;
}

.poetry-result-heading-link:hover {
  color: var(--primary);
}

.poetry-mini-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  color: var(--primary);
  text-decoration: none;
}

.poetry-mini-author:hover {
  color: var(--primary);
  text-decoration: none;
}

.poetry-mini-author-photo {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.poetry-mini-author-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poetry-mini-author-name {
  min-width: 0;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .poetry-mini-author {
    gap: 8px;
  }

  .poetry-mini-author-photo {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}

.poetry-main-share-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.poetry-main-share-icons a {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #343842 !important;
  background: #ffffff !important;
  border: 1px solid #e6e7ec !important;
  border-radius: 50%;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/*
 * В основном CSS выше есть старое правило .poetry-share-icons span.
 * Поэтому здесь принудительно сбрасываем фон/обводку у текста внутри кнопки,
 * чтобы красным становился сам внешний круг, а не маленький span внутри.
 */
.poetry-main-share-icons a span,
.poetry-share-icons.poetry-main-share-icons a span {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.poetry-main-share-icons a:hover,
.poetry-main-share-icons a:focus {
  color: #ffffff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  transform: none !important;
}

.poetry-main-share-icons a:hover span,
.poetry-main-share-icons a:focus span,
.poetry-share-icons.poetry-main-share-icons a:hover span,
.poetry-share-icons.poetry-main-share-icons a:focus span {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .poetry-main-share-icons a {
  color: var(--text-muted) !important;
  background: var(--surface-solid) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .poetry-main-share-icons a:hover,
[data-theme="dark"] .poetry-main-share-icons a:focus {
  color: #ffffff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

@media (max-width: 576px) {
  .poetry-main-share-icons {
    gap: 8px;
  }

  .poetry-main-share-icons a {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .poetry-main-share-icons a span,
  .poetry-share-icons.poetry-main-share-icons a span {
    font-size: 13px;
  }
}

.poetry-like-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.poetry-like-btn span {
  filter: grayscale(1);
  opacity: 0.65;
}

.poetry-like-btn b {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.poetry-like-btn:hover {
  color: var(--primary);
  border-color: rgba(255, 47, 50, 0.28);
}

.poetry-like-btn.is-liked,
.poetry-like-btn[aria-pressed="true"] {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.poetry-like-btn.is-liked span,
.poetry-like-btn[aria-pressed="true"] span {
  filter: none;
  opacity: 1;
}

/* ==============================
   Share poetry icons
============================== */

.poetry-main-share-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.poetry-main-share-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.poetry-main-share-link:hover,
.poetry-main-share-link:focus {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(255, 47, 50, 0.26);
  transform: translateY(-2px);
}

.poetry-share-svg-icon {
  width: 42px;
  height: 42px;
  display: block;
}

.poetry-share-svg-icon circle:first-child {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.35;
}

.poetry-share-svg-icon path,
.poetry-share-svg-icon rect,
.poetry-share-svg-icon circle:not(:first-child) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poetry-share-svg-icon text {
  fill: currentColor;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.poetry-main-share-link:hover .poetry-share-svg-icon circle:first-child,
.poetry-main-share-link:focus .poetry-share-svg-icon circle:first-child {
  fill: var(--primary);
  stroke: var(--primary);
  opacity: 1;
}

.poetry-main-share-link:hover .poetry-share-svg-icon path,
.poetry-main-share-link:hover .poetry-share-svg-icon rect,
.poetry-main-share-link:hover .poetry-share-svg-icon circle:not(:first-child),
.poetry-main-share-link:focus .poetry-share-svg-icon path,
.poetry-main-share-link:focus .poetry-share-svg-icon rect,
.poetry-main-share-link:focus .poetry-share-svg-icon circle:not(:first-child) {
  stroke: #ffffff;
}

.poetry-main-share-link:hover .poetry-share-svg-icon text,
.poetry-main-share-link:focus .poetry-share-svg-icon text {
  fill: #ffffff;
}

/* Индивидуальная подгонка текста VK / MAX */
.poetry-share-vk .poetry-share-svg-icon text {
  font-size: 10px;
}

.poetry-share-max .poetry-share-svg-icon text {
  font-size: 9px;
}

/* Тёмная тема */
[data-theme="dark"] .poetry-main-share-link {
  background: var(--surface-solid);
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="dark"] .poetry-main-share-link:hover,
[data-theme="dark"] .poetry-main-share-link:focus {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Мобильная адаптация */
@media (max-width: 576px) {
  .poetry-main-share-icons {
    gap: 8px;
    margin-top: 16px;
  }

  .poetry-main-share-link {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .poetry-share-svg-icon {
    width: 38px;
    height: 38px;
  }
}

/* ==============================
   Feature cards custom icons
   Изображения примерно в 2 раза больше,
   но карточки не растягиваются
============================== */

.feature-card {
  overflow: hidden;
}

/*
 * Контейнер остаётся небольшим, чтобы НЕ растягивать карточки.
 * А сама картинка внутри визуально увеличена.
 */
.feature-image-icon {
  width: 82px;
  height: 82px;
  max-width: 82px;
  max-height: 82px;
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible;
  font-size: 0 !important;
  line-height: 0 !important;
}

.feature-image-icon img {
  width: 150px;
  height: 150px;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: grayscale(1) saturate(0.45) opacity(0.86);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.feature-card:hover .feature-image-icon img {
  filter: grayscale(0) saturate(1.08) opacity(1);
  transform: scale(1.04);
}

/*
 * Заголовок остаётся справа от компактного контейнера.
 * Отступ не зависит от реального размера картинки.
 */
.feature-card .feature-image-icon + h3 {
  margin-top: -64px;
  margin-left: 96px;
  min-height: 64px;
}

[data-theme="dark"] .feature-image-icon img {
  filter: grayscale(1) brightness(0.95) saturate(0.5) opacity(0.9);
}

[data-theme="dark"] .feature-card:hover .feature-image-icon img {
  filter: grayscale(0) brightness(1.05) saturate(1.08) opacity(1);
}

/* Планшеты */
@media (max-width: 860px) {
  .feature-image-icon {
    width: 78px;
    height: 78px;
    max-width: 78px;
    max-height: 78px;
    flex-basis: 78px;
  }

  .feature-image-icon img {
    width: 132px;
    height: 132px;
  }

  .feature-card .feature-image-icon + h3 {
    margin-top: -60px;
    margin-left: 92px;
    min-height: 60px;
  }
}

/* Мобильная версия */
@media (max-width: 520px) {
  .feature-image-icon {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    flex-basis: 72px;
  }

  .feature-image-icon img {
    width: 112px;
    height: 112px;
  }

  .feature-card .feature-image-icon + h3 {
    margin-top: -56px;
    margin-left: 86px;
    min-height: 56px;
  }
}

/* ==============================
   Share poetry social PNG icons
   Серые изначально, цветные при наведении
   Красный фон отключён
============================== */

.poetry-share-icons.poetry-main-share-icons {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link,
.poetry-share-icons.poetry-main-share-icons a {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 50%;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link img,
.poetry-share-icons.poetry-main-share-icons a img {
  width: 46px !important;
  height: 46px !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  filter: grayscale(1) saturate(0.08) opacity(0.72);
  transition:
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

/* Наведение: без красного фона, только возвращаем цвет самой иконке */
.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:hover,
.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:focus,
.poetry-share-icons.poetry-main-share-icons a:hover,
.poetry-share-icons.poetry-main-share-icons a:focus {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:hover img,
.poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:focus img,
.poetry-share-icons.poetry-main-share-icons a:hover img,
.poetry-share-icons.poetry-main-share-icons a:focus img {
  filter: grayscale(0) saturate(1.12) opacity(1);
  transform: scale(1.06);
}

/* Сброс старых span-правил на случай, если где-то остались текстовые иконки */
.poetry-share-icons.poetry-main-share-icons span {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Тёмная тема */
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link,
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link img,
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons a img {
  filter: grayscale(1) saturate(0.08) brightness(0.9) opacity(0.76);
}

[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:hover img,
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link:focus img,
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons a:hover img,
[data-theme="dark"] .poetry-share-icons.poetry-main-share-icons a:focus img {
  filter: grayscale(0) saturate(1.12) brightness(1) opacity(1);
}

/* Мобильная версия */
@media (max-width: 576px) {
  .poetry-share-icons.poetry-main-share-icons {
    gap: 8px;
  }

  .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link,
  .poetry-share-icons.poetry-main-share-icons a,
  .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link img,
  .poetry-share-icons.poetry-main-share-icons a img {
    width: 42px !important;
    height: 42px !important;
  }

  .poetry-share-icons.poetry-main-share-icons .poetry-main-share-link,
  .poetry-share-icons.poetry-main-share-icons a {
    flex-basis: 42px !important;
  }
}

/* ==============================
   Footer social icons
   Использует те же картинки, что и "Поделиться поэзией"
============================== */

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.site-footer .footer-social-link {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.site-footer .footer-social-link img {
  width: 38px;
  height: 38px;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(1) saturate(0.08) opacity(0.72);
  transition:
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

.site-footer .footer-social-link:hover img,
.site-footer .footer-social-link:focus img {
  filter: grayscale(0) saturate(1.12) opacity(1);
  transform: scale(1.06);
}

[data-theme="dark"] .site-footer .footer-social-link img {
  filter: grayscale(1) saturate(0.08) brightness(0.9) opacity(0.76);
}

[data-theme="dark"] .site-footer .footer-social-link:hover img,
[data-theme="dark"] .site-footer .footer-social-link:focus img {
  filter: grayscale(0) saturate(1.12) brightness(1) opacity(1);
}

@media (max-width: 520px) {
  .site-footer .footer-social-link,
  .site-footer .footer-social-link img {
    width: 36px;
    height: 36px;
  }

  .site-footer .footer-social-link {
    flex-basis: 36px;
  }
}

/* ==============================
   Hero title: "Колесо поэзии"
   Только 3 волны слева направо раз в 25 секунд
============================== */

.poetry-wheel-head h1 {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--text);
  background:
    linear-gradient(
      110deg,
      var(--text) 0%,
      var(--text) 28%,
      #ff2f32 34%,
      #ffb347 38%,
      #48b135 42%,
      #4aa3ff 46%,
      #8067b8 50%,
      var(--text) 58%,
      var(--text) 100%
    );
  background-size: 320% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: poetryTitleWaveOnlyForward 25s linear infinite;
}

.poetry-wheel-head h1::after {
  content: "";
  position: absolute;
  top: 8%;
  left: -22%;
  width: 14%;
  height: 84%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
  transform: skewX(-18deg);
  opacity: 0;
  animation: poetryTitleShineOnlyForward 25s linear infinite;
}

/*
 * За первые 9 секунд проходят 3 волны слева направо.
 * Потом до 25 секунд заголовок стоит спокойно.
 * ВАЖНО: нет возврата назад, только резкий сброс в начале нового цикла.
 */
@keyframes poetryTitleWaveOnlyForward {
  0% {
    background-position: 120% 0;
  }

  12% {
    background-position: 40% 0;
  }

  24% {
    background-position: -40% 0;
  }

  36% {
    background-position: -120% 0;
  }

  36.01% {
    background-position: 120% 0;
  }

  100% {
    background-position: 120% 0;
  }
}

@keyframes poetryTitleShineOnlyForward {
  0% {
    left: -22%;
    opacity: 0;
  }

  3% {
    opacity: 0.75;
  }

  12% {
    left: 108%;
    opacity: 0;
  }

  12.01% {
    left: -22%;
    opacity: 0;
  }

  15% {
    opacity: 0.75;
  }

  24% {
    left: 108%;
    opacity: 0;
  }

  24.01% {
    left: -22%;
    opacity: 0;
  }

  27% {
    opacity: 0.75;
  }

  36% {
    left: 108%;
    opacity: 0;
  }

  100% {
    left: 108%;
    opacity: 0;
  }
}

/* Тёмная тема */
[data-theme="dark"] .poetry-wheel-head h1 {
  background:
    linear-gradient(
      110deg,
      var(--text) 0%,
      var(--text) 28%,
      #ff7678 34%,
      #ffd36a 38%,
      #74d66a 42%,
      #7bc4ff 46%,
      #b89cff 50%,
      var(--text) 58%,
      var(--text) 100%
    );
  background-size: 320% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Уважение системной настройки: меньше анимации */
@media (prefers-reduced-motion: reduce) {
  .poetry-wheel-head h1,
  .poetry-wheel-head h1::after {
    animation: none;
  }
}


/*
 * Старый красный указатель заменяем изображением пера.
 * Кончик пера направлен вниз на верхний сектор колеса.
 */
.poetry-wheel-pointer.poetry-wheel-feather-pointer {
  position: absolute;
  left: 50%;
  top: 0px;
  z-index: 12;
  width: 74px;
  height: 124px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  transform: translateX(-50%);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.poetry-wheel-pointer.poetry-wheel-feather-pointer::before,
.poetry-wheel-pointer.poetry-wheel-feather-pointer::after,
.poetry-wheel-pointer.poetry-wheel-feather-pointer .poetry-wheel-pointer-core {
  display: none !important;
  content: none !important;
}

.poetry-wheel-pointer.poetry-wheel-feather-pointer img {
  width: 190px;
  height: 118px;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  transform: scaleY(1);
  filter:
    drop-shadow(0 8px 14px rgba(120, 33, 18, 0.26))
    drop-shadow(0 0 10px rgba(255, 185, 74, 0.18));
}

/* Лёгкий живой акцент, пока колесо стоит */
.poetry-wheel-pointer.poetry-wheel-feather-pointer img {
  animation: poetryFeatherPointerGlow 4.8s ease-in-out infinite;
}

@keyframes poetryFeatherPointerGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 8px 14px rgba(120, 33, 18, 0.22))
      drop-shadow(0 0 8px rgba(255, 185, 74, 0.14));
  }

  50% {
    filter:
      drop-shadow(0 10px 18px rgba(120, 33, 18, 0.32))
      drop-shadow(0 0 15px rgba(255, 185, 74, 0.28));
  }
}

/* Планшеты */
@media (max-width: 860px) {
  .poetry-wheel-pointer.poetry-wheel-feather-pointer {
    top: -38px;
    width: 64px;
    height: 108px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer img {
    width: 64px;
    height: 108px;
  }
}

/* Мобильная версия */
@media (max-width: 520px) {
  .poetry-wheel-pointer.poetry-wheel-feather-pointer {
    top: 0px;
    width: 36px;
    height: 61px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer img {
    width: 36px;
    height: 61px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poetry-wheel-pointer.poetry-wheel-feather-pointer img {
    animation: none;
  }
}

/* ==========================================================
   Poetry Wheel — refined visual design
   Единый финальный блок без повторных переопределений.
========================================================== */

.poetry-wheel-box {
  padding-top: 18px;
}

.poetry-wheel-circle {
  width: 620px;
  height: 620px;
  overflow: visible;
  isolation: isolate;
  border: 12px solid #fffaf1;
  background: #fffaf1;
  box-shadow:
    0 0 0 2px rgba(201, 157, 85, 0.28),
    0 22px 55px rgba(79, 52, 28, 0.20),
    0 0 38px rgba(255, 224, 167, 0.25);
}

.poetry-wheel-circle::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 4;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(190, 139, 65, 0.20),
    inset 0 0 18px rgba(145, 96, 35, 0.12);
}

.poetry-wheel-disc {
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.20), transparent 50%),
    conic-gradient(
      from -90deg,
      #efaa82 0deg 45deg,
      #f5cf62 45deg 90deg,
      #f3dfac 90deg 135deg,
      #dce5ef 135deg 180deg,
      #bcdfe2 180deg 225deg,
      #d6e5c4 225deg 270deg,
      #d9c6e3 270deg 315deg,
      #edc0c6 315deg 360deg
    );
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    inset 0 0 38px rgba(128, 86, 31, 0.10);
}

.poetry-wheel-disc::before {
  background:
    repeating-conic-gradient(
      from -90deg,
      transparent 0deg 44.65deg,
      rgba(255, 255, 255, 0.92) 44.65deg 45deg
    );
  filter: drop-shadow(0 0 1px rgba(136, 91, 36, 0.35));
}

.poetry-wheel-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 42%, rgba(255, 255, 255, 0.10) 58%, rgba(255, 255, 255, 0.25) 100%);
}

.poetry-wheel-label {
  width: 166px;
  min-height: 116px;
  color: #2b2118;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-218px)
    rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
}

.poetry-wheel-author-link {
  width: 100%;
  gap: 7px;
}

.poetry-wheel-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border: 3px solid rgba(255, 252, 244, 0.96);
  outline: 1px solid rgba(178, 129, 61, 0.52);
  background: #fffaf1;
  box-shadow:
    0 6px 14px rgba(78, 51, 27, 0.20),
    0 0 0 2px rgba(255, 255, 255, 0.34);
}

.poetry-wheel-avatar img {
  filter: contrast(1.03) saturate(0.9);
}

.poetry-wheel-sector-name {
  position: relative;
  max-width: 160px;
  padding-bottom: 0;
  color: #2a2017;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.poetry-wheel-sector-name::after {
  content: none;
  display: none;
}

.poetry-wheel-author-link:hover .poetry-wheel-sector-name {
  color: #9f171b;
}

.poetry-wheel-center {
  width: 208px;
  height: 208px;
  padding: 24px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #2b2118;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.97) 54%, #f3e5ca 100%);
  border: 4px solid #fffaf1;
  outline: 2px solid rgba(184, 132, 61, 0.70);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.52),
    0 11px 27px rgba(83, 54, 28, 0.24),
    inset 0 0 24px rgba(181, 128, 57, 0.14);
  text-transform: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.poetry-wheel-center::before,
.poetry-wheel-center::after {
  content: none;
  display: none;
}

.poetry-wheel-center-title {
  display: block;
  color: inherit;
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
}

.poetry-wheel-center-subtitle {
  display: block;
  color: #5c4935;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
}

.poetry-wheel-center:hover {
  color: #9f171b;
  transform: translate(-50%, -50%) scale(1.025);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.66),
    0 14px 34px rgba(83, 54, 28, 0.28),
    inset 0 0 24px rgba(181, 128, 57, 0.17);
}

.poetry-wheel-center:active {
  transform: translate(-50%, -50%) scale(0.985);
}

.poetry-wheel-pointer.poetry-wheel-feather-pointer {
  top: 32px;  
}

.poetry-wheel-pointer.poetry-wheel-feather-pointer img {
  width: 35px;
  height: 69px;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 10px rgba(86, 35, 21, 0.32))
    drop-shadow(0 0 9px rgba(255, 203, 97, 0.26));
}

[data-theme="dark"] .poetry-wheel-circle,
[data-theme="dark"] .poetry-wheel-disc {
  filter: none;
}

@media (max-width: 860px) {
  .poetry-wheel-circle {
    width: 510px;
    height: 510px;
    border-width: 10px;
  }

  .poetry-wheel-label {
    width: 136px;
    min-height: 96px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-178px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-avatar {
    width: 50px;
    height: 50px;
  }

  .poetry-wheel-sector-name {
    max-width: 132px;
    font-size: 15px;
  }

  .poetry-wheel-center {
    width: 166px;
    height: 166px;
    padding: 18px 13px;
    gap: 7px;
  }

  .poetry-wheel-center-title {
    font-size: 28px;
  }

  .poetry-wheel-center-subtitle {
    font-size: 12px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer {
    top: 0px;
    width: 58px;
    height: 96px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer img {
    width: 58px;
    height: 96px;
  }
}

@media (max-width: 620px) {
  .poetry-wheel-box {
    padding-top: 0px;
  }

  .poetry-wheel-circle {
    width: min(350px, calc(100vw - 32px));
    height: min(350px, calc(100vw - 32px));
    border-width: 8px;
  }

  .poetry-wheel-label {
    width: 86px;
    min-height: 66px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-116px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-avatar {
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
    border-width: 2px;
  }

  .poetry-wheel-sector-name {
    max-width: 84px;
    font-size: 10px;
    line-height: 1.05;
  }

  .poetry-wheel-center {
    width: 116px;
    height: 116px;
    padding: 13px 7px;
    gap: 5px;
    border-width: 3px;
  }

  .poetry-wheel-center-title {
    font-size: 19px;
  }

  .poetry-wheel-center-subtitle {
    max-width: 84px;
    font-size: 8px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer {
    top: 0px;
    width: 34px;
    height: 58px;
  }

  .poetry-wheel-pointer.poetry-wheel-feather-pointer img {
    width: 34px;
    height: 58px;
  }
}

@media (max-width: 420px) {
  .poetry-wheel-circle {
    width: min(310px, calc(100vw - 24px));
    height: min(310px, calc(100vw - 24px));
  }

  .poetry-wheel-label {
    width: 76px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateY(-101px)
      rotate(calc(var(--angle-neg) - var(--wheel-rotation)));
  }

  .poetry-wheel-avatar {
    width: 30px;
    height: 30px;
  }

  .poetry-wheel-sector-name {
    max-width: 74px;
    font-size: 8.5px;
  }

  .poetry-wheel-center {
    width: 104px;
    height: 104px;
  }

  .poetry-wheel-center-title {
    font-size: 17px;
  }

  .poetry-wheel-center-subtitle {
    font-size: 7.5px;
  }
}
