/* ============================================
   TOKENS
============================================ */
:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F4EF;
  --border: #E4E0D6;
  --text: #1C1B18;
  --text-dim: #6B6862;
  --accent: #B8860B;
  --accent-dim: #8A6508;
  --radius: 10px;
  --mono: 'JetBrains Mono', 'Space Mono', monospace;
  --display: 'Manrope', 'Inter Tight', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ============================================
   PARTICLE NETWORK BACKGROUND
============================================ */
#particle-net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 480px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--accent);
  color: #14100D;
}
.btn-primary:hover { background: #9C7209; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(184, 134, 11, 0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   HEADER
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

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

/* ============================================
   NAV WEB DROPDOWN
============================================ */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-web {
  position: absolute;
  top: 100%;
  left: -14px;
  width: 280px;
  height: 150px;
  pointer-events: none;
  z-index: 60;
}
.nav-web-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.web-line {
  stroke: var(--border);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.web-hub {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-item:hover .web-line,
.nav-item:hover .web-hub {
  opacity: 1;
}

.web-pill {
  position: absolute;
  display: inline-block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(28, 27, 24, 0.18);
  opacity: 0;
  transform: scale(0.7) translateY(-6px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, color 0.2s ease;
}
.web-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.wp-1 { left: 16px; top: 26px; rotate: -3deg; }
.wp-2 { left: 78px; top: 62px; rotate: 2deg; }
.wp-3 { left: 38px; top: 102px; rotate: -2deg; }

.nav-item:hover .nav-web {
  pointer-events: auto;
}
.nav-item:hover .web-pill {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.nav-item:hover .wp-1 { transition-delay: 0.02s; }
.nav-item:hover .wp-2 { transition-delay: 0.08s; }
.nav-item:hover .wp-3 { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .web-pill, .web-line, .web-hub { transition: none; }
}
@media (max-width: 860px) {
  .nav-web { display: none; }
}

.nav-toggle { display: none; }

/* ============================================
   HERO
============================================ */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; align-items: center; margin-bottom: 40px; }
.hero-cta .hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.hero-stat .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================
   AMBIENT GLOW — every card gets a subtle accent outline
============================================ */
.pain-detail-grid,
.about-photo {
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.05), 0 0 22px -6px rgba(184, 134, 11, 0.16);
  transition: box-shadow 0.25s ease;
}

/* ============================================
   RANK WIDGET (hero)
============================================ */
.rank-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.05), 0 0 22px -6px rgba(184, 134, 11, 0.16);
}
.rank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rank-header svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.rank-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: none;
  color: var(--text-dim);
  letter-spacing: normal;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: none; }
.rank-kw {
  font-size: 14.5px;
  color: var(--text);
}
.rank-pos {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  flex-shrink: 0;
}
.rank-arrow {
  width: 13px;
  height: 13px;
  color: #16A34A;
}

.rank-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.rank-footer-num {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: #16A34A;
}
.rank-footer-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  max-width: 180px;
}
.rank-chart {
  width: 130px;
  height: 34px;
  flex-shrink: 0;
}
.rank-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-dot { animation: none; opacity: 0.9; }
}
@media (max-width: 860px) {
  .rank-footer { flex-direction: column; align-items: flex-start; }
  .rank-chart { width: 100%; }
}

/* ============================================
   PAIN — pills + expandable detail grid
============================================ */
.pain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.pain-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.pain-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100D;
  font-weight: 700;
}

.pain-detail-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pain-detail-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.pain-detail-grid.active { display: grid; }
.pain-detail-card {
  background: var(--bg);
  padding: 26px 24px;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-detail-card:hover { background: var(--bg-panel); }
.pdc-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.pdc-text {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.pain-detail-single {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.05), 0 0 22px -6px rgba(184, 134, 11, 0.16);
}
.pain-detail-single.active { display: block; }
.pdc-text-lg {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .pain-detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pain-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CASES — tabs + expandable detail
============================================ */
.cases-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.cases-tabs.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.case-tab {
  background: var(--bg);
  border: none;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-tab:hover { background: var(--bg-panel); color: var(--text); }
.case-tab.active {
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.case-tab-name {
  font-weight: 700;
  font-size: 15px;
}
.case-tab.active .case-tab-name { color: var(--accent); }
.case-tab-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.case-detail {
  display: none;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.06), 0 0 26px -8px rgba(184, 134, 11, 0.15);
}
.case-detail.active { display: block; }

.case-detail-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
}
.case-detail-head h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 6px 0 14px;
}
.case-detail-head .hl { color: var(--accent); }
.case-detail-sub {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
}
.case-detail-quote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.case-detail-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.case-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 11, 0.22);
}
.case-stat-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.case-stat-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.case-chart-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 8px;
}
.case-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ct-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 10px;
}
.ct-dots {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.ct-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}
.case-chart-svg {
  width: 100%;
  height: 180px;
  display: block;
}
.case-chart-area {
  fill: rgba(184, 134, 11, 0.05);
  stroke: none;
}
.case-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-chart-trend {
  stroke: var(--text-dim);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  opacity: 0.6;
}
.case-chart-dot {
  fill: var(--accent);
}
.case-chart-dot.end {
  filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.45));
}

@media (max-width: 860px) {
  .cases-tabs { grid-template-columns: repeat(2, 1fr); }
  .cases-tabs.cols-3 { grid-template-columns: 1fr; }
  .case-detail-top { grid-template-columns: 1fr; }
  .case-detail { padding: 24px; }
}

/* ============================================
   PROCESS
============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}
.process-step .idx {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ============================================
   FEATURE PANEL (pricing detail content)
============================================ */
.tab-more {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

.feature-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-panel-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.feature-check {
  width: 15px;
  height: 15px;
  color: #16A34A;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-panel .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
============================================ */
.contact-section { }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; max-width: 400px; }
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-direct-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 14px;
}
.contact-direct-item .label { color: var(--text-dim); }

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.05), 0 0 22px -6px rgba(184, 134, 11, 0.16);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 134, 11, 0.22);
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.15), 0 0 28px -4px rgba(184, 134, 11, 0.28);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card-body { flex-grow: 1; }
.contact-card-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-card-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.contact-card-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}
.contact-card:hover .contact-card-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ============================================
   ABOUT
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}
.about-text p.lead {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 560px;
}
.about-text .pill-group {
  margin-bottom: 28px;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 32px;
}
.about-fact {
  background: var(--bg);
  padding: 20px 24px;
}
.about-fact .num {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}
.about-fact .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .about-facts { grid-template-columns: 1fr; }
}

/* ============================================
   BREADCRUMBS
============================================ */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.breadcrumbs .container {
  padding-top: 14px;
  padding-bottom: 14px;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover { color: var(--accent); }

/* ============================================
   FAQ
============================================ */
.faq-section { }
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer p {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  padding-right: 40px;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.open .faq-answer p {
  padding-bottom: 22px;
}
.faq-answer > p {
  min-height: 0;
}

/* ============================================
   TAGS
============================================ */
.tags-section { border-bottom: none; }
.tags-wrap {
  position: relative;
  max-height: 132px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tags-wrap.expanded {
  max-height: 2000px;
}
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.tags-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 90%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tags-wrap.expanded .tags-fade {
  opacity: 0;
}
.tags-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.tags-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tags-toggle.open .tags-toggle-icon {
  transform: rotate(180deg);
}

/* ============================================
   USLUGI PAGE — org scheme, task cards, fit cards, service icon, final cta
============================================ */
.org-scheme-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.05), 0 0 22px -6px rgba(184, 134, 11, 0.16);
}
.org-scheme {
  width: 100%;
  height: auto;
  display: block;
}
.org-line {
  stroke: var(--border);
  stroke-width: 1.5;
}
.org-node {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1;
}
.org-node-root {
  fill: var(--accent);
  stroke: var(--accent);
}
.org-text {
  font-family: var(--mono);
  font-size: 15px;
  fill: var(--text);
}
.org-text-root {
  fill: #14100D;
  font-weight: 700;
}

.task-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.task-cards.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.task-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.task-card:hover { background: var(--bg-panel); }
.task-card-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.task-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }

.case-stat-card .case-stat-value + .case-stat-label {
  margin-top: 6px;
  margin-bottom: 0;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fit-card {
  background: var(--bg);
  padding: 26px 24px;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.fit-card:hover { background: var(--bg-panel); }
.fit-situation {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
  min-height: 66px;
}
.fit-arrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  margin-bottom: 8px;
}
.fit-service {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.case-stat-card.mini {
  margin-bottom: 16px;
}
.mini-case-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-block;
}

.final-cta-section { border-bottom: none; }
.final-cta {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  .task-cards { grid-template-columns: 1fr 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .org-scheme-box { margin-top: 32px; }
}
@media (max-width: 560px) {
  .task-cards { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 20px; }
  .pain-pills { gap: 8px; }
  .cases-tabs { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cases-tabs { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 64px 0; }
  .site-footer .container { flex-direction: column; gap: 16px; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .audit-line { opacity: 1; animation: none; }
  .cursor-blink { animation: none; }
  html { scroll-behavior: auto; }
}
