/* ============================================================
   dopamine-interior.ru – блог, статья, контакты
   ============================================================ */

.pg { padding-top: var(--header-h); }

/* ---------- Общая шапка страницы ---------- */
.pg-head { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 2.6vw, 32px); }
.pg-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 62px); line-height: .98; letter-spacing: -.02em; margin: 0; }
.pg-head .pg-sub { margin: 14px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 60ch; }
.pg-crumbs { padding-block: 14px 8px; font-size: 13px; color: var(--muted); }
.pg-crumbs a { color: var(--muted); text-decoration: none; }
.pg-crumbs a:hover { color: var(--accent); }
.pg-crumbs span { margin-inline: 8px; opacity: .5; }

/* ---------- Блог: фильтры ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 34px); }
.blog-filters button {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  padding: 9px 16px; border-radius: var(--pill); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.blog-filters button:hover { border-color: var(--ink); }
.blog-filters button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Блог: главный материал ---------- */
.blog-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.blog-lead .pic { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--bg-2); }
.blog-lead .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.blog-lead:hover .pic img { transform: scale(1.03); }
.blog-lead h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.08; margin: 14px 0 0; }
.blog-lead p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; margin: 14px 0 0; }
.blog-lead a { text-decoration: none; color: inherit; display: contents; }

/* ---------- Блог: карточки ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card .pic { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.post-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.post-card:hover .pic img { transform: scale(1.05); }
.post-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.22; margin: 14px 0 0; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 10px 0 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.post-meta .tag { background: var(--bg-2); border-radius: var(--pill); padding: 5px 11px; font-weight: 600; color: var(--ink-2); }
.post-meta time { white-space: nowrap; }

.blog-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }

/* ---------- Статья ---------- */
.art-hero { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.art-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-2); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-body { max-width: 760px; margin: 0 auto; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.art-body > * { margin-inline: auto; }
.art-body p { color: var(--ink-2); font-size: 17.5px; line-height: 1.72; margin: 0 0 20px; }
.art-body .lead { font-size: 20px; color: var(--ink); }
.art-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.14; margin: 38px 0 14px; }
.art-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 28px 0 10px; }
.art-body ul, .art-body ol { color: var(--ink-2); font-size: 17px; line-height: 1.7; padding-left: 22px; margin: 0 0 20px; display: grid; gap: 8px; }
.art-body figure { margin: 30px 0; }
.art-body figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.art-body figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.art-body blockquote { margin: 30px 0; padding: 22px 26px; border-radius: 20px 20px 20px 6px; background: var(--accent-soft); font-size: 19px; line-height: 1.5; color: var(--ink); }
.art-body blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }
.art-checklist { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 30px 0; }
.art-checklist h3 { margin-top: 0; }
.art-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.art-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.art-checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.art-author { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.art-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.art-author b { display: block; font-size: 15px; }
.art-author span { font-size: 14px; color: var(--muted); }

/* ---------- Контакты ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 84px); }
.ct-cards { display: grid; gap: 14px; }
.ct-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--card); }
.ct-card span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ct-card a, .ct-card b { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.7vw, 23px); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.ct-card a:hover { color: var(--accent); }
.ct-messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ct-messengers a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color .25s, background .25s;
}
.ct-messengers a:hover { border-color: var(--ink); background: var(--bg-2); }
.ct-note { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ct-geo { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--bg-2); }
.ct-geo ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.ct-geo b { display: block; font-size: 15px; }
.ct-geo p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

.ct-form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); background: var(--card); }
.ct-form h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 8px; }
.ct-form .sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.ct-form .form { display: grid; gap: 14px; }
.ct-req { margin-top: clamp(28px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.ct-req b { color: var(--ink-2); }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .blog-lead { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .art-cover { aspect-ratio: 4 / 3; }
  .art-body p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-lead .pic img, .post-card .pic img { transition: none; }
}

/* ---------- Мини-опрос в статье («пули») ---------- */
.poll { margin: 30px 0; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.poll__q { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 12px; color: var(--ink); }
.poll__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.poll__opt {
  border: 1px solid rgba(23, 22, 26, .18); background: var(--card); color: var(--ink);
  padding: 9px 16px; border-radius: var(--pill); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.poll__opt:hover:not(:disabled) { border-color: var(--ink); }
.poll__opt:disabled { cursor: default; opacity: .65; }
.poll__opt.is-chosen { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.poll__thanks { display: none; margin-top: 10px; font-size: 14px; color: var(--muted); }
.poll.is-answered .poll__thanks { display: block; }

/* Ссылки внутри текста статьи */
.art-body a:not(.btn):not(.poll__opt) { color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 0 var(--accent); transition: color .2s, box-shadow .2s; }
.art-body a:not(.btn):not(.poll__opt):hover { color: var(--accent); box-shadow: inset 0 -2px 0 0 var(--accent); }
.svp-body a:not(.btn):not(.poll__opt) { color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 0 var(--accent); transition: color .2s, box-shadow .2s; }
.svp-body a:not(.btn):not(.poll__opt):hover { color: var(--accent); box-shadow: inset 0 -2px 0 0 var(--accent); }
