:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1d1d22;
  --muted: #737887;
  --line: #e4e7ee;
  --soft: #eef0f5;
  --accent: #111318;
  --accent-2: #6b5cff;
  --accent-soft: #f0efff;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 46px rgba(30, 35, 48, 0.08);
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(107, 92, 255, .08), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(61, 116, 255, .06), transparent 24%),
    #fff;
  color: var(--text);
  font-family: "YS Text", "Yandex Sans Text", "Inter", ui-rounded, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 232, 238, 0.9);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 560;
  letter-spacing: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7657ff, #2f6dff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

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

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

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

.search {
  width: min(100%, 230px);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 560;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.button:hover { transform: translateY(-1px); background: var(--accent-2); }
.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.sort-button {
  min-width: 142px;
}

.home-catalog {
  padding: 34px 0 26px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.filter-tabs a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7e9f1;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #465066;
  font-size: 14px;
  font-weight: 560;
  box-shadow: 0 10px 26px rgba(30, 35, 48, .04);
}

.filter-tabs a.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7657ff, #3158ff);
  box-shadow: 0 14px 30px rgba(79, 91, 255, .22);
}

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

.mobile-menu-button { display: none; }
.mobile-nav { display: none; }

.top-board {
  padding: 28px 0 18px;
}

.top-board-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.top-copy,
.search-panel {
  border: 1px solid rgba(228, 231, 238, .9);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(107, 92, 255, .16), transparent 30%),
    #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
}

.top-copy {
  min-height: 278px;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 580;
}

.trend-panel {
  gap: 10px;
}

.trend-panel a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}

.trend-panel a:hover {
  border-color: rgba(17, 17, 17, .22);
  background: #fff;
}

.trend-panel span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 580;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 580;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  margin-bottom: 18px;
}

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

.compact-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fb;
}

.compact-search span {
  color: #8b93a3;
  font-size: 20px;
}

.compact-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-tags a {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
}

.category-section {
  padding: 10px 0 18px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-pill {
  min-height: 74px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(228, 231, 238, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(30, 35, 48, .03);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-pill span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 560;
}

.category-pill strong {
  display: block;
  font-size: 20px;
  font-weight: 580;
}

.category-pill.design span { background: linear-gradient(135deg, #6d5dfc, #b866ff); }
.category-pill.photo span { background: linear-gradient(135deg, #ff8a3d, #ffd35a); }
.category-pill.video span { background: linear-gradient(135deg, #1fb6ff, #3d5afe); }
.category-pill.cases span { background: linear-gradient(135deg, #1eb980, #74e7b2); }

.filters, .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.chip:hover, .chip.active {
  color: var(--text);
  border-color: rgba(17,17,17,.42);
  background: #fff;
}

.section {
  padding: 18px 0;
}

.popular-section {
  padding-top: 8px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 560;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.featured-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 17, .24);
  box-shadow: var(--shadow);
}

.featured-card-main {
  grid-row: 1 / span 2;
  display: block;
}

.featured-image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #e9ecf5, #fff);
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.featured-card-main .featured-image {
  aspect-ratio: 16 / 11;
}

.featured-card-main .featured-image img {
  min-height: auto;
}

.featured-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-main .featured-body {
  padding: 20px 22px 22px;
}

.featured-card h3 {
  margin: 11px 0 8px;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.006em;
  font-weight: 580;
}

.featured-card-main h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.featured-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #7b8190;
  font-size: 13px;
  font-weight: 520;
}

.card-stats span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f3f6;
}

.prompt-card {
  position: relative;
  overflow: hidden;
  min-height: 266px;
  border: 0;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 16px 34px rgba(25, 32, 48, .11);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.prompt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(25, 32, 48, .16);
}

.prompt-card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe5f6, #fff);
}

.prompt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .24s ease;
}

.prompt-card:hover .prompt-card-image img {
  transform: scale(1.06);
}

.image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.24) 42%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.25), transparent 58%);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.badge.primary {
  background: #fff;
  color: #6257ff;
}

.prompt-card-body {
  padding: 15px 16px 17px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.prompt-card h3 {
  max-width: 92%;
  margin: 12px 0 12px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.004em;
  font-weight: 580;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.prompt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 520;
}

.prompt-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255,255,255,.68);
}

.save-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  opacity: .92;
}

.catalog-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 108px;
}

.side-widget {
  padding: 22px;
  border: 1px solid #e7e9f1;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 38px rgba(30, 35, 48, .06);
}

.side-widget h2 {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 580;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e7e9f1;
  border-radius: 999px;
  background: #fff;
  color: #596177;
  font-size: 13px;
  font-weight: 520;
}

.side-list,
.collection-list {
  display: grid;
  gap: 12px;
}

.side-list a,
.collection-list a {
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--text);
}

.side-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eeecff;
  color: #6357ff;
}

.side-list strong,
.collection-list strong {
  display: grid;
  gap: 3px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 560;
}

.side-list small,
.collection-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 480;
}

.side-list em {
  color: #8b93a3;
  font-style: normal;
  font-size: 22px;
}

.collection-list a {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 58px;
  padding: 8px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
}

.collection-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef1f6, #b9c4d8);
}

.collection-thumb.one { background: linear-gradient(135deg, #f6f8fb, #b8c2d6); }
.collection-thumb.two { background: linear-gradient(135deg, #eee1d6, #50433b); }
.collection-thumb.three { background: linear-gradient(135deg, #ffeff7, #ff8ac1); }

.all-link {
  display: inline-flex;
  margin-top: 16px;
  color: #6257ff;
  font-size: 14px;
  font-weight: 560;
}

.how-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.step strong { font-weight: 610; }
.step p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.page {
  padding: 24px 0 52px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 330px;
  gap: 34px;
  align-items: start;
  justify-content: center;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 940px) 260px;
  gap: 22px;
  align-items: start;
}

.post-card {
  overflow: hidden;
  border: 1px solid #e7e9f1;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 48px rgba(30, 35, 48, .06);
}

.post-head {
  padding: 30px 28px 14px;
}

.post-head h1 {
  margin-top: 14px;
  max-width: 820px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  font-weight: 580;
}

.post-lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.post-cover {
  overflow: hidden;
  margin: 16px 22px 0;
  border-radius: 14px;
  background: #111;
}

.prompt-gallery {
  position: relative;
  margin: 18px 28px 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: #f1f2f6;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
}

.gallery-main figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(17, 18, 24, .7);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(17, 18, 24, .6);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}

.gallery-arrow:hover {
  background: rgba(17, 18, 24, .78);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd4e3;
  cursor: pointer;
}

.gallery-dots button.is-active {
  width: 24px;
  background: #6257ff;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 6.8;
  object-fit: cover;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 28px 20px;
  color: #667087;
  font-size: 13px;
  border-bottom: 1px solid #edf0f5;
}

.meta-chip {
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4f5fa;
  color: #596177;
}

.meta-save {
  margin-left: auto;
  color: #667087;
  font-size: 24px;
  line-height: 1;
}

.post-section {
  padding: 0 28px 26px;
}

.post-section + .post-section {
  padding-top: 2px;
}

.post-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 580;
}

.post-section p {
  margin-bottom: 0;
  color: #596177;
  font-size: 15px;
  line-height: 1.65;
}

.post-content {
  color: #596177;
  font-size: 15px;
  line-height: 1.65;
}

.post-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.post-content li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f8fb;
  color: #4e586d;
}

.post-content p {
  margin: 0 0 14px;
}

.post-content h3 {
  margin: 20px 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 580;
}

.prompt-items-section {
  padding-top: 4px;
}

.prompt-items {
  display: grid;
  gap: 18px;
}

.prompt-item-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border: 1px solid #e7e9f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 35, 48, .06);
}

.prompt-item-image {
  margin: 0;
  min-height: 100%;
  background: #eef0f5;
}

.prompt-item-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.prompt-item-content {
  padding: 22px;
}

.prompt-item-top span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6257ff;
  font-size: 12px;
  font-weight: 580;
}

.prompt-item-top h3 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.14;
  font-weight: 580;
}

.prompt-item-description {
  margin-bottom: 14px;
}

.prompt-readable {
  padding: 18px;
  border: 1px solid #e9e9f4;
  border-radius: 16px;
  background: #f8f8ff;
  color: #263044;
  font-size: 15px;
  line-height: 1.62;
}

.prompt-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.prompt-item-actions small {
  color: var(--muted);
}

.adapt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.adapt-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  background: #fff;
}

.adapt-grid strong {
  font-weight: 580;
}

.adapt-grid span {
  color: var(--muted);
  font-size: 14px;
}

.media-section {
  padding-bottom: 24px;
}

.post-media-grid,
.post-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.post-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.post-media-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #f1f2f6;
}

.post-media-grid img,
.post-video-grid video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-video-grid video {
  display: block;
  border-radius: 14px;
  background: #111;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding-left: 18px;
}

.prompt-copy {
  color: var(--text);
}

.prompt-text-card {
  padding: 18px;
  border: 1px solid #e9e9f4;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(107, 92, 255, .12), transparent 35%),
    #f7f6ff;
}

.prompt-copy textarea {
  display: block;
  width: 100%;
  min-height: 122px;
  resize: vertical;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2433;
  outline: 0;
  line-height: 1.6;
}

.prompt-copy .button,
.syntax-inline {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 12px;
  font-size: 13px;
}

.copy-status {
  min-height: 20px;
  margin-top: 8px;
  color: #4c55da;
  font-size: 13px;
}

.how-use {
  padding-bottom: 24px;
}

.how-use ol,
.how-use ul {
  margin: 0;
  padding: 14px 18px 14px 34px;
  border-radius: 14px;
  background: #f7f6ff;
  color: #596177;
  font-size: 14px;
  line-height: 1.65;
}

.post-tags {
  gap: 8px;
}

.post-tags a {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 14px;
}

.soft-cta {
  margin: 0 28px 26px;
  padding: 22px;
  border: 1px solid #e7e9f1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(107, 92, 255, .12), transparent 38%),
    #fff;
}

.soft-cta p {
  max-width: 680px;
  margin-bottom: 16px;
}

.related-section {
  padding-top: 0;
  border-top: 1px solid #edf0f5;
}

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

.related-grid .prompt-card {
  min-height: 210px;
  border-radius: 16px;
}

.related-grid .prompt-card h3 {
  font-size: 17px;
  line-height: 1.22;
}

.related-grid .badge {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10px;
}

.related-grid .prompt-meta {
  font-size: 11px;
}

.related-grid .save-link {
  right: 9px;
  bottom: 9px;
  font-size: 20px;
}

.post-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}

.post-nav-widget {
  display: grid;
  gap: 12px;
}

.post-nav-widget a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #667087;
  font-size: 13px;
  font-weight: 520;
}

.post-nav-widget a span {
  width: 10px;
  height: 10px;
  border: 2px solid #d9deea;
  border-radius: 999px;
  background: #fff;
}

.post-nav-widget a:hover {
  color: var(--text);
}

.post-nav-widget a:hover span {
  border-color: #6257ff;
}

.prompt-hero-image {
  overflow: hidden;
  margin: 22px 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(17, 24, 39, .08);
}

.prompt-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.meta-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.meta-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 620;
}

.content-block {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.content-block h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 620;
}

.result-list {
  padding-left: 18px;
  color: var(--muted);
  margin-bottom: 0;
}

.sidebar-card {
  position: sticky;
  top: 86px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-card p { color: var(--muted); }
.sidebar-card .button { width: 100%; }
.sidebar-card h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 620;
}

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

.site-footer {
  margin-top: 42px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.seo-text {
  max-width: 860px;
  color: var(--muted);
}

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

@media (max-width: 1100px) {
  .top-board-inner { grid-template-columns: 1fr; }
  .search-panel { display: none; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .featured-card-main { grid-row: auto; }
  .featured-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .prompt-layout { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sidebar-card { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner {
    min-height: 58px;
    grid-template-columns: auto auto;
  }
  .nav, .header-actions .search { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav {
    display: none;
    gap: 8px;
    padding: 0 12px 12px;
  }
  .mobile-nav a {
    padding: 12px;
    border-radius: 14px;
    background: var(--surface);
  }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-sidebar { grid-template-columns: 1fr; }
  .post-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-item-card {
    grid-template-columns: 1fr;
  }
  .prompt-item-image img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  h1 { letter-spacing: -0.025em; }
  .hero { padding-top: 20px; }
  .top-board { padding-top: 18px; }
  .top-copy {
    min-height: auto;
    border-radius: 24px;
    padding: 24px 18px;
  }
  .quick-actions .button { width: auto; }
  .category-strip { grid-template-columns: 1fr; }
  .filter-tabs {
    gap: 8px;
    margin-bottom: 22px;
  }
  .filter-tabs a {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }
  .featured-card,
  .featured-card-main {
    display: block;
    border-radius: 24px;
  }
  .featured-card .featured-image,
  .featured-card-main .featured-image {
    aspect-ratio: 1 / 1;
  }
  .featured-card h3,
  .featured-card-main h3 {
    font-size: 21px;
    line-height: 1.16;
  }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card { min-height: 280px; }
  .post-card { border-radius: 16px; }
  .post-head,
  .post-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .prompt-gallery {
    margin-left: 16px;
    margin-right: 16px;
  }
  .post-cover { margin-left: 16px; margin-right: 16px; }
  .post-cover img { aspect-ratio: 4 / 3; }
  .post-meta-row { padding-left: 16px; padding-right: 16px; }
  .compact-list,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .post-content ul,
  .adapt-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main img {
    aspect-ratio: 4 / 3;
  }
  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }
  .prompt-item-content {
    padding: 18px;
  }
  .prompt-readable {
    font-size: 14px;
  }
  .soft-cta {
    margin-left: 16px;
    margin-right: 16px;
  }
  .post-media-grid,
  .post-video-grid {
    grid-template-columns: 1fr;
  }
  .meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
