/* Healthy HSP Therapy - стили. Токены раздела 6: #FFFFFF / #32342E / #A28867.
   Шрифт Pontano Sans (локальная копия из Google Fonts, лицензия OFL). */
@font-face {
  font-family: "Pontano Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/pontano-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #32342e;
  --accent: #a28867;
  --dark: #32342e;
  --line: #e8e4de;
  --muted: #6b6a63;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Pontano Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.hq-skip {
  position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff;
  padding: 8px 14px; z-index: 50;
}
.hq-skip:focus { left: 8px; top: 8px; }
.hq-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- шапка ---- */
.hq-head {
  position: relative; height: 76px; background: var(--bg);
  border-bottom: 1px solid var(--accent);
}
.hq-head-in {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.hq-logo {
  font-size: 21px; line-height: 1.2; color: var(--ink); text-decoration: none;
  white-space: nowrap; flex: none;
}
.hq-logo:hover { color: var(--ink); }
.hq-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: flex-end; gap: 3px 15px; max-width: 900px;
}
.hq-nav a {
  font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.hq-nav a:hover { color: var(--accent); }
.hq-nav a[aria-current="page"] { color: var(--accent); }
.hq-burger {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0;
  background: transparent; cursor: pointer;
}
.hq-burger span {
  display: block; height: 2px; background: var(--ink); margin: 6px 0;
}

/* ---- каркас ---- */
.hq-main { max-width: var(--wrap); margin: 0 auto; padding: 24px 64px 80px; }
.hq-crumbs { font-size: 14px; line-height: 1.5; color: var(--accent); margin: 0 0 24px; }
.hq-crumbs a { color: var(--accent); text-decoration: none; }
.hq-crumbs a:hover { text-decoration: underline; }
.hq-crumb-sep { margin: 0 8px; }
.hq-crumb-now { color: var(--ink); }

.hq-h1 { font-size: 42px; line-height: 1.2; font-weight: 400; margin: 28px 0 16px; color: var(--ink); }
.hq-h1-art { font-size: 38px; margin-top: 0; }
.hq-lead { font-size: 19px; line-height: 1.6; max-width: 800px; margin: 0 0 24px; }
h2 { font-size: 30px; line-height: 1.25; font-weight: 400; margin: 0 0 16px; color: var(--ink); }
h3 { font-size: 21px; line-height: 1.3; font-weight: 400; margin: 0 0 10px; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

/* ---- главная ---- */
.hq-hero { margin-top: 8px; }
.hq-hero-img, .hq-banner-img { width: 100%; height: auto; border-radius: 4px; }
.hq-hero .hq-h1 { margin-top: 32px; max-width: 900px; }
.hq-ghost {
  display: inline-block; padding: 11px 26px; border: 1px solid var(--accent);
  border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 16px;
}
.hq-ghost:hover { background: var(--accent); color: #fff; }

.hq-split, .hq-cols, .hq-tiles, .hq-accent, .hq-prose-home, .hq-more { margin-top: 72px; }
.hq-split {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
}
.hq-split-pic { grid-column: 1 / 6; }
.hq-split-text { grid-column: 7 / 13; }
.hq-split-rev .hq-split-pic { grid-column: 1 / 6; }
.hq-split-img { width: 100%; height: auto; border-radius: 4px; }
.hq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hq-tiles-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hq-tile { border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.hq-tile h3 { font-size: 20px; }
.hq-tile p { font-size: 16px; margin: 0; }
.hq-accent {
  background: var(--accent); color: #fff; padding: 56px 48px; border-radius: 4px;
  text-align: center;
}
.hq-accent p { font-size: 24px; line-height: 1.45; max-width: 760px; margin: 0 auto 18px; }
.hq-accent a { color: #fff; font-size: 24px; }
.hq-linklist { list-style: none; padding: 0; margin: 0; }
.hq-linklist li { border-bottom: 1px solid var(--line); }
.hq-linklist li:first-child { border-top: 1px solid var(--line); }
.hq-linklist a { display: block; padding: 13px 0; text-decoration: none; }
.hq-linklist a:hover { color: var(--accent); }
.hq-topics { columns: 2; column-gap: 28px; margin: 16px 0 0; padding-left: 1.1em; }
.hq-topics li { margin-bottom: 6px; break-inside: avoid; }
.hq-prose-home { max-width: 800px; margin-left: auto; margin-right: auto; }
.hq-prose-home h2 { margin-top: 40px; }
.hq-prose-home h2:first-child { margin-top: 0; }

/* ---- страница раздела ---- */
.hq-banner { margin-top: 8px; }
.hq-subnav {
  max-width: 800px; margin: 0 0 24px; font-size: 15px; display: flex;
  flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
}
.hq-subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; }
.hq-subnav-t { color: var(--muted); }

/* ---- текст ---- */
.hq-prose { max-width: 800px; margin: 0 auto; }
.hq-article-main .hq-prose { margin: 0; }
.hq-sec { margin-top: 40px; }
.hq-sec:first-child { margin-top: 0; }
.hq-faq { margin-top: 40px; }
.hq-faq-item { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.hq-faq-item h3 { margin-bottom: 6px; }
.hq-lead-in { font-size: 18px; margin-bottom: 8px; }
.hq-prose-service { margin-left: 0; }

/* ---- статья ---- */
.hq-article {
  display: grid; grid-template-columns: minmax(0, 800px) 260px; gap: 56px;
  justify-content: center; align-items: start; margin-top: 8px;
}
.hq-meta { font-size: 14px; color: var(--accent); margin: 0 0 20px; }
.hq-lead-pic { margin: 0 0 28px; }
.hq-lead-img { width: 100%; height: auto; border-radius: 4px; }
.hq-aside { position: sticky; top: 24px; font-size: 15px; }
.hq-aside-box { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; margin-bottom: 32px; }
.hq-aside-t { font-size: 17px; margin: 0 0 8px; }
.hq-aside ul { list-style: none; margin: 0; padding: 0; }
.hq-aside li { margin-bottom: 8px; line-height: 1.4; }
.hq-aside a { text-decoration: none; }
.hq-aside a:hover { color: var(--accent); }
.hq-related { max-width: 800px; margin: 48px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }
.hq-related-t { font-size: 22px; }
.hq-related ul { margin: 0; }
.hq-editors { max-width: 800px; margin: 56px auto 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hq-editors-title { font-size: 22px; margin-bottom: 8px; }
.hq-editors p { margin: 0; }

/* ---- карточки ---- */
.hq-more-title { margin-bottom: 24px; }
.hq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hq-card { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.hq-card-pic { display: block; }
.hq-card-img { width: 100%; height: auto; border-radius: 4px; }
.hq-card-title {
  font-size: 20px; line-height: 1.3; margin: 14px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hq-card-title a { text-decoration: none; }
.hq-card-text {
  font-size: 15px; line-height: 1.5; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hq-card-meta { font-size: 13px; color: var(--accent); margin: 0; }

/* ---- форма ---- */
.hq-form { max-width: 800px; margin: 40px 0 0; }
.hq-field { display: block; margin-bottom: 20px; }
.hq-field span { display: block; font-size: 15px; margin-bottom: 6px; }
.hq-field input, .hq-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 4px;
  font: inherit; color: var(--ink); background: #fff;
}
.hq-send {
  background: var(--dark); color: #fff; border: 0; border-radius: 4px; padding: 13px 28px;
  font: inherit; font-size: 16px; cursor: pointer;
}
.hq-send:hover { background: var(--accent); }
.hq-form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---- ошибки ---- */
.hq-error { text-align: center; padding: 64px 0 40px; }
.hq-error-code { font-size: 128px; line-height: 1; color: var(--accent); margin: 0 0 12px; }
.hq-error-h1 { font-size: 36px; font-weight: 400; margin: 0 0 12px; }
.hq-error-line { max-width: 520px; margin: 0 auto 24px; }
.hq-error-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }

/* ---- подвал ---- */
.hq-foot { background: var(--dark); color: #fff; }
.hq-foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.hq-foot a:hover { color: var(--accent); }
.hq-foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 64px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
.hq-foot-logo { font-size: 22px; margin: 0 0 12px; }
.hq-foot-about { font-size: 15px; line-height: 1.6; margin: 0; max-width: 360px; }
.hq-foot-title { font-size: 17px; font-weight: 400; color: var(--accent); margin: 0 0 12px; }
.hq-foot-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.hq-foot-list li { margin-bottom: 6px; }
.hq-foot-in p { font-size: 15px; }
.hq-foot-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 20px 64px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px;
}
.hq-foot-bottom p { margin: 0; font-size: 14px; }

/* ---- адаптив ---- */
@media (max-width: 1180px) {
  .hq-head-in { padding: 0 24px; }
  .hq-burger { display: block; }
  .hq-nav {
    display: none; position: absolute; left: 0; right: 0; top: 75px; z-index: 20;
    background: var(--bg); border-bottom: 1px solid var(--accent); padding: 8px 24px 16px;
  }
  .hq-nav.hq-open { display: block; }
  .hq-nav ul { display: block; max-width: none; }
  .hq-nav li { border-bottom: 1px solid var(--line); }
  .hq-nav a { display: block; padding: 10px 0; font-size: 16px; white-space: normal; }
}
@media (max-width: 1100px) {
  .hq-article { grid-template-columns: minmax(0, 800px); }
  .hq-aside { position: static; margin-top: 40px; }
}
@media (max-width: 900px) {
  .hq-main { padding: 20px 40px 64px; }
  .hq-foot-in, .hq-foot-bottom { padding-left: 40px; padding-right: 40px; }
  .hq-split { grid-template-columns: 1fr; }
  .hq-split-pic, .hq-split-text { grid-column: auto; }
  .hq-cols { grid-template-columns: 1fr; gap: 0; }
  .hq-cols .hq-col + .hq-col { margin-top: 40px; }
  .hq-tiles-row { grid-template-columns: 1fr; }
  .hq-cards { grid-template-columns: repeat(2, 1fr); }
  .hq-foot-in { grid-template-columns: 1fr; gap: 32px; }
  .hq-split, .hq-cols, .hq-tiles, .hq-accent, .hq-prose-home, .hq-more { margin-top: 56px; }
}
@media (max-width: 600px) {
  .hq-main { padding: 16px 24px 56px; }
  .hq-foot-in, .hq-foot-bottom { padding-left: 24px; padding-right: 24px; }
  .hq-h1 { font-size: 32px; }
  .hq-h1-art { font-size: 30px; }
  h2 { font-size: 26px; }
  .hq-cards { grid-template-columns: 1fr; }
  .hq-accent { padding: 36px 24px; }
  .hq-accent p, .hq-accent a { font-size: 21px; }
  .hq-topics { columns: 1; }
  .hq-error-code { font-size: 96px; }
  .hq-logo { font-size: 19px; }
}
