/* prostaya-rabota.ru — base styles (Phase 1) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #111;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === HEADER === */
.site-header {
  background: #ff6f4d;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.site-header .logo {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.site-header__nav {
  display: flex;
  gap: 22px;
  margin-left: 14px;
  flex: 1;
  align-items: center;
}
.site-header__nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.site-header__nav a:hover { opacity: 0.85; }
.site-header__auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header__auth-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.site-header__auth-link:hover { opacity: 0.9; }
.site-header__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.25); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.site-header__author-name { font-size: 13px; font-weight: 600; color: #fff; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header__logout { color: rgba(255,255,255,0.85); font-size: 15px; padding: 0 6px; text-decoration: none; }
.site-header__logout:hover { color: #fff; }
.site-header__login-link { color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.45); border-radius: 4px; text-decoration: none; }
.site-header__login-link:hover { background: rgba(255,255,255,0.18); }
.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* === SEARCH (шапка + страница /search) === */
.site-header__search { display: flex; align-items: center; order: 2; }
.site-header__search-input {
  width: 200px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  outline: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, width .18s ease, box-shadow .18s ease;
}
.site-header__search-input::placeholder { color: rgba(255,255,255,0.8); }
.site-header__search-input:hover { background: rgba(255,255,255,0.22); }
.site-header__search-input:focus {
  width: 240px;
  background: #fff;
  color: #2a2a2a;
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.site-header__search-input:focus::placeholder { color: #9a9a9a; }

.search-page__form { display: flex; margin: 14px 0 6px; max-width: 480px; }
.search-page__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
}
.search-page__input:focus { border-color: #ff6f4d; }
.search-page__btn {
  border: 0;
  background: #ff6f4d;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.search-page__btn:hover { background: #ff5a34; }
.search-page__count { color: #666; font-size: 14px; margin: 4px 0 18px; }

/* === SUB-NAV === */
.subnav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 24px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  -webkit-overflow-scrolling: touch;
}
.subnav a { color: #444; text-decoration: none; flex: 0 0 auto; }
.subnav a:hover { color: #ff6f4d; }

/* === MAIN === */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.home-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 4px 0 18px 0;
}
@media (max-width: 768px) {
  .home-title { font-size: 20px; }
}

/* === CATEGORIES LIST (на главной Phase 1) === */
.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.category-card {
  background: #fff;
  border-radius: 6px;
  padding: 18px 20px;
  border-left: 4px solid #ff6f4d;
  display: block;
  transition: box-shadow 0.15s;
}
.category-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.category-card .emoji {
  font-size: 20px;
  margin-bottom: 8px;
}
.category-card .name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.category-card .desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* === FOOTER === */
.site-footer {
  background: #1a1a1a;
  color: #888;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  margin-top: 40px;
}
.site-footer a { color: #ccc; }

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 60px 24px;
}
.error-404 h1 {
  font-size: 72px;
  color: #ff6f4d;
  font-weight: 800;
}
.error-404 p {
  font-size: 18px;
  color: #666;
  margin: 14px 0 22px;
}

/* === ARTICLE GRID === */
.main--article {
  max-width: 1280px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #ff6f4d; }
.breadcrumb__sep { margin: 0 6px; color: #ccc; }

/* === ARTICLE CARD === */
.article-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px 40px 40px;
  min-width: 0;
}
.article-card__content { min-width: 0; }
.toc__list a { word-break: break-word; }
.article-card__meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  align-items: center;
}
.article-card__category {
  color: #ff6f4d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-card__category:hover { text-decoration: underline; }
.article-card__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.article-card__lead {
  font-size: 19px;
  line-height: 1.45;
  color: #444;
  margin-bottom: 22px;
}
.article-card__author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.article-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.article-card__avatar--placeholder {
  background: #ff6f4d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.article-card__author-name {
  font-size: 14px;
  font-weight: 700;
}
.article-card__author-role {
  font-size: 12px;
  color: #888;
}
.article-card__hero {
  margin: 0 -40px 24px;
}
.article-card__hero img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.article-card__hero figcaption {
  font-size: 12px;
  color: #888;
  padding: 8px 40px 0;
}
.article-card__content {
  font-size: 17px;
  line-height: 1.65;
  color: #222;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-card__content > * { max-width: 100%; }
.article-card__content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
.article-card__content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
}
.article-card__content p { margin-bottom: 14px; }
.article-card__content ul,
.article-card__content ol {
  margin: 0 0 14px 22px;
  padding-left: 4px;
}
.article-card__content li { margin-bottom: 6px; }
.article-card__content a {
  color: #1e6cb8;
  text-decoration: underline;
}
.article-card__content a:hover { color: #ff6f4d; }
.article-card__content strong { font-weight: 700; }

.article-card__content .table-wrap {
  margin: 22px 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-card__content .table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.article-card__content th,
.article-card__content td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
@media (max-width: 720px) {
  .article-card__content .table-wrap table { font-size: 13px; line-height: 1.4; }
  .article-card__content th,
  .article-card__content td { padding: 7px 10px; }
}
.article-card__content thead th {
  background: #f7f7f7;
  font-weight: 700;
}
.article-card__content tbody tr:nth-child(even) {
  background: #fafafa;
}

/* === AD-SLOT PLACEHOLDERS (резерв под РСЯ — пока не используются) === */
.ad-slot {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  color: #999;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-slot--inline {
  height: 200px;
  margin: 28px 0;
}
.ad-slot--side {
  height: 300px;
}

/* === PROMO-CARD (заглушка вместо РСЯ → внутренняя ссылка на случайную статью) === */
.promo-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #ffd1c2;
}
.promo-card__thumb {
  background: #f6f6f6;
  overflow: hidden;
}
.promo-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.promo-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6f4d;
  font-weight: 700;
}
.promo-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card__lead {
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: #ff6f4d;
  margin-top: 2px;
}

/* Inline: горизонтальная карточка, картинка слева — общий размер ~640×200 */
.promo-card--inline {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin: 28px 0;
}
.promo-card--inline .promo-card__thumb {
  height: 200px;
}
.promo-card--inline .promo-card__body {
  padding: 18px 20px;
  justify-content: center;
}

/* Side: квадратная карточка 300×300 */
.promo-card--side .promo-card__thumb {
  height: 170px;
}
.promo-card--side .promo-card__body {
  padding: 12px 14px 14px;
}
.promo-card--side .promo-card__title {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

/* === RELATED === */
.related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.related__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* === SIDEBAR === */
.sidebar { min-width: 0; }
.sidebar__sticky {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar__widget {
  background: #fff;
  border-radius: 6px;
  padding: 18px 20px;
}
.sidebar__widget-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 14px;
}
.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar__list .post-card--compact {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.sidebar__list .post-card--compact:first-child {
  border-top: 0;
  padding-top: 0;
}

/* === POST CARD === */
.post-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.15s;
}
.post-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  overflow: hidden;
}
.post-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffeada 0%, #fff 100%);
}
.post-card__emoji { font-size: 48px; opacity: 0.8; }
.post-card__body { padding: 14px 16px 18px; }
.post-card__meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}
.post-card__category {
  color: #ff6f4d;
  font-weight: 700;
  text-transform: uppercase;
}
.post-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #111;
}
.post-card:hover .post-card__title { color: #ff6f4d; }
.post-card__lead {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* compact-вариант (для sidebar / related-mini) */
.post-card--compact {
  background: transparent;
  padding: 0;
}
.post-card--compact .post-card__title { font-size: 14px; margin-bottom: 0; }

/* === CATEGORY === */
.category-main { min-width: 0; }
.category-header { margin-bottom: 22px; }
.category-header__desc {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  max-width: 720px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #eee;
}
.pagination__link {
  background: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.pagination__link:hover {
  background: #ff6f4d;
  color: #fff;
}
.pagination__current {
  font-size: 13px;
  color: #888;
}

/* === HOME — HERO === */
.main--home { padding-top: 18px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 36px;
}
.hero__main {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.hero__main:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.hero__thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  overflow: hidden;
}
.hero__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__thumb--placeholder {
  background: linear-gradient(135deg, #ffeada 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__emoji { font-size: 88px; opacity: 0.85; }
.hero__body { padding: 22px 28px 28px; }
.hero__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.hero__category {
  color: #ff6f4d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #111;
}
.hero__main:hover .hero__title { color: #ff6f4d; }
.hero__lead {
  font-size: 15px;
  color: #555;
  line-height: 1.45;
}
.hero__side {
  background: #fff;
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__side .post-card--compact {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.hero__side .post-card--compact:first-child {
  border-top: 0;
  padding-top: 0;
}

/* === HOME — КАТЕГОРИЙНЫЕ СЕКЦИИ === */
.cat-section { margin-bottom: 36px; }
.cat-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6f4d;
}
.cat-section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cat-section__more {
  font-size: 13px;
  font-weight: 700;
  color: #ff6f4d;
}
.cat-section__more:hover { text-decoration: underline; }
.cat-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .article-grid,
  .hero {
    grid-template-columns: 1fr;
  }
  .sidebar__sticky { position: static; }
  .sidebar__sticky .ad-slot--side,
  .sidebar__sticky .promo-card--side { order: 2; }
  .promo-card--inline {
    grid-template-columns: 1fr;
  }
  .promo-card--inline .promo-card__thumb {
    height: 180px;
  }
  .cat-section__grid { grid-template-columns: repeat(2, 1fr); }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { padding: 10px 16px; gap: 10px 12px; flex-wrap: wrap; }
  .site-header__author-name { max-width: none; }
  .site-header__login-link { display: inline-block; }
  .site-header__search { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-header__search-input,
  .site-header__search-input:focus { flex: 1; width: auto; }
  .subnav { padding: 8px 16px; gap: 18px; }

  .main { padding: 14px 16px; }
  .page-title { font-size: 24px; }
  .article-card { padding: 22px 18px 28px; }
  .article-card__hero { margin: 0 -18px 18px; }
  .article-card__title { font-size: 24px; }
  .article-card__lead { font-size: 16px; }
  .article-card__content { font-size: 16px; }
  .article-card__content h2 { font-size: 20px; }
  .article-card__hero figcaption { padding: 8px 0 0; }
  .hero__title { font-size: 22px; }
  .hero__body { padding: 18px 20px 22px; }
  .cat-section__title { font-size: 19px; }
}
@media (max-width: 480px) {
  .main { padding: 12px 12px; }
  .article-card { padding: 18px 14px 22px; }
  .article-card__hero { margin: 0 -14px 16px; }
  .article-card__title { font-size: 22px; }
  .related__grid { grid-template-columns: 1fr; }
  .cat-section__grid { grid-template-columns: 1fr; }
  .pagination { flex-direction: column; gap: 10px; align-items: stretch; }
  .pagination__link { text-align: center; }
}

/* ===== Phase 4: like-button, comments, sidebar-comments ===== */

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 22px;
  padding: 16px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  flex-wrap: wrap;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 8px 18px;
  font: 600 15px/1.2 inherit;
  color: #444;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.like-btn:hover { border-color: #ff6f4d; color: #ff6f4d; }
.like-btn__icon { font-size: 18px; line-height: 1; color: #c0c0c0; transition: color .15s; }
.like-btn:hover .like-btn__icon { color: #ff6f4d; }
.like-btn--liked,
.like-btn--liked:hover {
  background: #fff1ec;
  border-color: #ff6f4d;
  color: #ff6f4d;
  cursor: default;
}
.like-btn--liked .like-btn__icon { color: #ff6f4d; }
.like-btn__count { font-variant-numeric: tabular-nums; }
.article-actions__comments-link {
  font-size: 14px;
  color: #777;
  text-decoration: none;
}
.article-actions__comments-link:hover { color: #ff6f4d; }

.comments {
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #ececec;
}
.comments__title {
  font: 700 22px/1.3 inherit;
  margin: 0 0 18px;
}
.comments__count {
  color: #999;
  font-weight: 500;
  font-size: 17px;
}
.comments__empty {
  color: #888;
  font-style: italic;
  margin: 0 0 22px;
}
.comments__list { margin: 0 0 24px; }
.comment {
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
}
.comment:first-child { border-top: none; padding-top: 0; }
.comment__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  flex-wrap: wrap;
}
.comment__name { color: #222; font-weight: 600; }
.comment__date { color: #999; font-size: 13px; }
.comment__body { color: #333; line-height: 1.55; white-space: pre-wrap; }

.comment-form {
  margin: 16px 0 0;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}
.comment-form__title { margin: 0 0 14px; font: 600 17px/1.3 inherit; }
.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 10px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: 15px/1.4 inherit;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #ff6f4d;
}
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}
.comment-form__bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.comment-form__submit {
  background: #ff6f4d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font: 600 15px/1.2 inherit;
  cursor: pointer;
  transition: background .15s;
}
.comment-form__submit:hover { background: #e85a3a; }
.comment-form__submit:disabled { background: #ccc; cursor: wait; }
.comment-form__status { font-size: 14px; color: #666; }
.comment-form__status[data-kind="ok"] { color: #1d8e3a; }
.comment-form__status[data-kind="error"] { color: #c0392b; }
.comment-form__status[data-kind="pending"] { color: #888; }

/* Sidebar widget «Новые комментарии» */
.sidebar__comments {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-comment {
  padding: 10px 0;
  border-top: 1px solid #ececec;
}
.sidebar-comment:first-child { border-top: none; padding-top: 0; }
.sidebar-comment__link {
  display: block;
  text-decoration: none;
  color: #333;
  line-height: 1.4;
}
.sidebar-comment__link:hover .sidebar-comment__name { color: #ff6f4d; }
.sidebar-comment__name { font-weight: 600; font-size: 13px; color: #222; transition: color .15s; }
.sidebar-comment__post { display: block; font-size: 12px; color: #888; margin: 2px 0; }
.sidebar-comment__excerpt { display: block; font-size: 13px; color: #555; }

@media (max-width: 480px) {
  .comment-form__row { grid-template-columns: 1fr; }
  .comment-form { padding: 16px; }
  .article-actions { gap: 10px; }
}

/* Категорийные иконки (заменили emoji) */
.cat-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.cat-icon--lg { margin-right: 12px; }
.page-title { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.cat-section__title { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cat-icon--lg { width: 40px; height: 40px; }
}

/* ============================================================
   Article visual components (TOC, callout, steps, summary-box,
   compare-table, blockquote). Spec: 2026-05-15-prostaya-article-visuals
   ============================================================ */

/* ────── TOC ────── */
.toc {
  margin: 20px 0 28px;
  padding: 16px 20px;
  background: #f3f5f8;
  border-radius: 10px;
}
.toc__title {
  font-size: 12px;
  font-weight: 700;
  color: #6a7280;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.toc__list { list-style: none; padding: 0; margin: 0; }
.toc__list li { padding: 4px 0; font-size: 15px; }
.toc__list li::before { content: "→ "; color: #ff6f4d; font-weight: 700; }
.toc__list a { color: #1f2127; text-decoration: none; }
.toc__list a:hover { color: #ff6f4d; }

/* ────── Callout ────── */
.article-card__content .callout {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout__icon { font-size: 22px; line-height: 1.1; flex: 0 0 auto; }
.callout__body { font-size: 16px; line-height: 1.55; }
.callout__body p:last-child { margin-bottom: 0; }
.callout--tip  { border-color: #2bb673; background: #e8f7ef; }
.callout--warn { border-color: #ff9a3c; background: #fff4e6; }
.callout--info { border-color: #4a90e2; background: #ebf3fc; }

/* ────── Numbered steps ────── */
.article-card__content .steps {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card__content .step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.step__num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6f4d, #ff8e3c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step__body { flex: 1; }
.step__body strong { display: block; font-size: 16px; margin-bottom: 4px; color: #ff6f4d; }
.step__body p { margin: 0; font-size: 16px; }

/* ────── Summary box ────── */
.article-card__content .summary-box {
  margin: 32px 0 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fffbe6, #fff5d6);
  border-radius: 12px;
  border-left: 5px solid #ffc83d;
}
.article-card__content .summary-box h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}
.article-card__content .summary-box h2::before { content: "✨"; }
.article-card__content .summary-box p { margin: 0; }

/* ────── Compare table (pros/cons) ────── */
.article-card__content .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  font-size: 15px;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}
.article-card__content .compare-table th,
.article-card__content .compare-table td {
  padding: 11px 12px;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}
.article-card__content .compare-table thead th {
  background: #f3f5f8;
  font-weight: 700;
  border-top: 0;
}
.article-card__content .compare-table thead th:nth-child(2) {
  background: #e8f7ef;
  color: #1d7f4d;
}
.article-card__content .compare-table thead th:nth-child(3) {
  background: #fbe9e9;
  color: #a83232;
}
.article-card__content .compare-table tbody td:nth-child(2) {
  background: rgba(232, 247, 239, .4);
}
.article-card__content .compare-table tbody td:nth-child(3) {
  background: rgba(251, 233, 233, .4);
}
.article-card__content .compare-table tbody td:first-child {
  font-weight: 600;
  color: #444;
}

/* ────── Blockquote ────── */
.article-card__content blockquote {
  margin: 24px 0;
  padding: 14px 22px 14px 58px;
  background: #f3f5f8;
  border-radius: 10px;
  font-style: italic;
  font-size: 17px;
  position: relative;
  color: #2a2a2a;
}
.article-card__content blockquote::before {
  content: "«";
  position: absolute;
  left: 14px;
  top: 0;
  font-size: 64px;
  font-family: Georgia, serif;
  color: #ff6f4d;
  line-height: 1;
}
.article-card__content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #6a7280;
  font-style: normal;
}

/* Mobile-tweaks (≤700px) для article visual components */
@media (max-width: 700px) {
  .article-card__content .step__num { flex: 0 0 36px; height: 36px; font-size: 15px; }
  .article-card__content .step { padding: 14px 14px; gap: 12px; }
  .article-card__content .summary-box { padding: 18px 20px; }
  .article-card__content .summary-box h2 { font-size: 20px; }
  .article-card__content blockquote { padding: 12px 18px 12px 50px; font-size: 16px; }
  .article-card__content blockquote::before { font-size: 52px; left: 10px; }
}

/* ============================================================
   Article visual components (TOC, callout, steps, summary-box,
   compare-table, blockquote). Spec: 2026-05-15-prostaya-article-visuals
   ============================================================ */

/* ────── TOC ────── */
.toc {
  margin: 20px 0 28px;
  padding: 16px 20px;
  background: #f3f5f8;
  border-radius: 10px;
}
.toc__title {
  font-size: 12px;
  font-weight: 700;
  color: #6a7280;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.toc__list { list-style: none; padding: 0; margin: 0; }
.toc__list li { padding: 4px 0; font-size: 15px; }
.toc__list li::before { content: "→ "; color: #ff6f4d; font-weight: 700; }
.toc__list a { color: #1f2127; text-decoration: none; }
.toc__list a:hover { color: #ff6f4d; }

/* ────── Callout ────── */
.article-card__content .callout {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout__icon { font-size: 22px; line-height: 1.1; flex: 0 0 auto; }
.callout__body { font-size: 16px; line-height: 1.55; }
.callout__body p:last-child { margin-bottom: 0; }
.callout--tip  { border-color: #2bb673; background: #e8f7ef; }
.callout--warn { border-color: #ff9a3c; background: #fff4e6; }
.callout--info { border-color: #4a90e2; background: #ebf3fc; }

/* ────── Numbered steps ────── */
.article-card__content .steps {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card__content .step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.step__num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6f4d, #ff8e3c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step__body { flex: 1; }
.step__body strong { display: block; font-size: 16px; margin-bottom: 4px; color: #ff6f4d; }
.step__body p { margin: 0; font-size: 16px; }

/* ────── Summary box ────── */
.article-card__content .summary-box {
  margin: 32px 0 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fffbe6, #fff5d6);
  border-radius: 12px;
  border-left: 5px solid #ffc83d;
}
.article-card__content .summary-box h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}
.article-card__content .summary-box h2::before { content: "✨"; }
.article-card__content .summary-box p { margin: 0; }

/* ────── Compare table (pros/cons) ────── */
.article-card__content .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  font-size: 15px;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}
.article-card__content .compare-table th,
.article-card__content .compare-table td {
  padding: 11px 12px;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}
.article-card__content .compare-table thead th {
  background: #f3f5f8;
  font-weight: 700;
  border-top: 0;
}
.article-card__content .compare-table thead th:nth-child(2) {
  background: #e8f7ef;
  color: #1d7f4d;
}
.article-card__content .compare-table thead th:nth-child(3) {
  background: #fbe9e9;
  color: #a83232;
}
.article-card__content .compare-table tbody td:nth-child(2) {
  background: rgba(232, 247, 239, .4);
}
.article-card__content .compare-table tbody td:nth-child(3) {
  background: rgba(251, 233, 233, .4);
}
.article-card__content .compare-table tbody td:first-child {
  font-weight: 600;
  color: #444;
}

/* ────── Blockquote ────── */
.article-card__content blockquote {
  margin: 24px 0;
  padding: 14px 22px 14px 58px;
  background: #f3f5f8;
  border-radius: 10px;
  font-style: italic;
  font-size: 17px;
  position: relative;
  color: #2a2a2a;
}
.article-card__content blockquote::before {
  content: "«";
  position: absolute;
  left: 14px;
  top: 0;
  font-size: 64px;
  font-family: Georgia, serif;
  color: #ff6f4d;
  line-height: 1;
}
.article-card__content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #6a7280;
  font-style: normal;
}

/* Mobile-tweaks (≤720px) для article visual components */
@media (max-width: 720px) {
  .article-card__content .step__num { flex: 0 0 36px; height: 36px; font-size: 15px; }
  .article-card__content .step { padding: 14px 14px; gap: 12px; }
  .article-card__content .summary-box { padding: 18px 20px; }
  .article-card__content .summary-box h2 { font-size: 20px; }
  .article-card__content blockquote { padding: 12px 18px 12px 50px; font-size: 16px; }
  .article-card__content blockquote::before { font-size: 52px; left: 10px; }
}

/* ─── Автор-карточка под статьёй ─── */
.author-card {
  display: flex;
  gap: 18px;
  margin: 32px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  min-width: 0;
}
.author-card__avatar {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  overflow: hidden;
}
.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__body { min-width: 0; flex: 1 1 auto; }
.author-card__name { font-weight: 700; font-size: 18px; margin: 0 0 2px; }
.author-card__role { color: #888; font-size: 13px; margin: 0 0 8px; }
.author-card__bio  { margin: 0 0 10px; color: #333; font-size: 14px; line-height: 1.5; }
.author-card__socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.author-card__socials a { display: inline-block; padding: 4px 10px; background: #fff; border: 1px solid #ddd; border-radius: 999px; color: #555; text-decoration: none; font-size: 12px; }
.author-card__socials a:hover { border-color: #ff6f4d; color: #ff6f4d; }
@media (max-width: 600px) {
  .author-card { flex-direction: column; align-items: flex-start; }
  .author-card__avatar { width: 64px; height: 64px; flex-basis: 64px; }
}
