/* ===== Hallux Valgus — финальный CSS для страницы (без фоновой картинки) ===== */

/* Палитра и базовые переменные */
:root{
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0a84ff;
  --accent-2: #2563eb;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Якоря — с учётом фиксированной шапки */
:target{ scroll-margin-top: 92px; }
@media (max-width: 768px){
  :target{ scroll-margin-top: 74px; }
}

/* Фон и основной цвет текста */
body.has-fixed-header{
  background: var(--bg);
  color: var(--ink);
}

/* ================= HERO (баннер) ================= */
.hero{
  position: relative;
  padding: 96px 0 40px;
  background: linear-gradient(180deg,
              rgba(234,243,255,.85) 0%,
              rgba(234,243,255,.60) 35%,
              rgba(234,243,255,.30) 70%,
              rgba(234,243,255,0) 100%);
}
.hero-shell{ max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* убираем «карточность» у баннера */
.hero-card{
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-content{ padding: 0 16px; }

/* контент баннера */
.hero-badge{
  display:inline-block;
  font-size:12px; letter-spacing:.02em;
  color: var(--accent-2);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.18);
  padding:6px 10px; border-radius: 999px; margin-bottom:10px;
}
.hero-title{
  margin:4px 0 10px; line-height:1.15;
  font-size: clamp(26px, 4vw, 40px); font-weight: 800; color:#0f172a;
}
.hero-text{
  margin:0 0 18px; color:#334155;
  font-size: clamp(15px, 1.8vw, 17px);
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.btn-hero{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; font-weight:600;
  background: var(--accent); color:#fff; text-decoration:none; border:0;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 14px rgba(10,132,255,.25);
}
.btn-hero:hover{ background: var(--accent-2); transform: translateY(-1px); }

/* ================= Хлебные крошки ================= */
.breadcrumbs{
  background: transparent;
  border: 0;
}
.breadcrumbs .container{
  max-width:1120px; margin:0 auto; padding:10px 16px 6px; color:var(--muted);
}
.breadcrumbs a{ color: var(--accent-2); text-decoration:none; }
.breadcrumbs a:hover{ text-decoration: underline; }
.breadcrumbs span[aria-hidden]{ margin:0 6px; color:#c0c4cc; }

/* ================= Якорное меню (TOC) ================= */
.rec-toc{
  position: sticky; top: 64px; z-index: 5;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.rec-toc .container{ max-width:1120px; margin:0 auto; padding:10px 16px; }
.rec-toc__list{
  display:flex; gap:14px; flex-wrap:wrap; list-style:none; margin:0; padding:0;
}
.rec-toc__list a{
  display:inline-block; padding:8px 12px; border-radius:10px;
  border:1px solid var(--line); background:#fff; color:#222; text-decoration:none;
  font-size:14px; transition: background .2s ease, border-color .2s ease, transform .06s ease;
}
.rec-toc__list a:hover{ background:#f7fbff; border-color:#dbeafe; transform: translateY(-1px); }

/* ================= Основной контент ================= */
.rec-main.guide .container{ max-width:1120px; margin:0 auto; padding:20px 16px 56px; }

.guide-section{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  margin:16px 0;
}
.guide-section h3{
  margin:6px 0 12px; line-height:1.25;
  font-size: clamp(18px, 2.6vw, 24px); font-weight: 750;
}
.guide-section h4{
  margin:10px 0 10px; font-size: clamp(15px, 2vw, 18px); font-weight:700;
}

.guide-list{ margin:0; padding-left:20px; }
.guide-list li{ margin:8px 0; }
.guide-list u{ text-underline-offset:2px; }

.guide-steps{ counter-reset: step; margin:8px 0 0; padding-left:22px; }
.guide-steps li{ margin:8px 0; }

/* callouts */
.callout{
  padding:14px; border-radius:12px; border:1px solid; margin:8px 0 14px;
  font-size:15px;
}
.callout--info{ background:#ecfeff; border-color:#bae6fd; color:#075985; }
.callout--warn{ background:#fff7ed; border-color:#fde68a; color:#92400e; }
.callout--tip { background:#f0fdf4; border-color:#bbf7d0; color:#065f46; }

/* FAQ */
details.faq{
  border:1px solid var(--line); border-radius:12px; background:#fff; margin:8px 0;
  overflow:hidden;
}
details.faq > summary{
  cursor:pointer; list-style:none; padding:14px 16px; font-weight:600;
  display:flex; align-items:center; gap:10px;
}
details.faq > summary::-webkit-details-marker{ display:none; }
details.faq[open] > summary{ border-bottom:1px solid var(--line); background:#fafafa; }
details.faq > div{ padding:14px 16px 16px; color:var(--muted); }

/* CTA */
.guide-cta{ margin-top:6px; }
.guide-cta__box{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 60%);
  border:1px solid #dbeafe; border-radius:16px; padding:18px;
}
.guide-cta__box h4{ margin:0; font-size:clamp(16px, 2.2vw, 20px); font-weight:750; }
.guide-cta__box p{ margin:4px 0 0; color:var(--muted); }
.guide-cta__actions{ display:flex; gap:10px; }

/* Ссылка назад */
.backlink{ margin-top:16px; }
.backlink a{ color: var(--accent-2); text-decoration:none; }
.backlink a:hover{ text-decoration: underline; }

/* Утилиты */
.visually-hidden{
  position:absolute!important; height:1px;width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* ================= Адаптив ================= */
@media (max-width: 992px){
  .hero{ padding: 80px 0 32px; }
  .guide-section{ padding:18px; }
}
@media (max-width: 640px){
  .hero{ padding: 68px 0 28px; }
  .btn-hero{ width:100%; }
  .rec-toc{ top:56px; }
}

/* ================= Печать ================= */
@media print{
  .rec-toc, .breadcrumbs, .hero-actions, .guide-cta, .backlink{ display:none !important; }
  .hero{ padding:0; background:none; }
  .guide-section{ box-shadow:none; break-inside:avoid; }
}
