/* Баланс 127 — базовые стили, дополняющие Tailwind utility-классы */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0E4F53;
  outline-offset: 3px;
}

.font-heading {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

/* Quiz answer cards */
.quiz-option-card {
  display: block;
  text-align: center;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #E4DACB;
  font-size: 15px;
  font-weight: 600;
  color: #182125;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.quiz-option-card:hover {
  border-color: #0E4F53;
}

.peer:checked + .quiz-option-card {
  border-color: #0E4F53;
  background-color: rgba(14, 79, 83, 0.08);
  color: #0E4F53;
}

.peer:focus-visible + .quiz-option-card {
  outline: 2px solid #0E4F53;
  outline-offset: 2px;
}

/* FAQ */
.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
}

.faq-icon {
  transition: transform .2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ---------------- Декоративная система: камень / кубачи / унцукуль ---------------- */

/* Тонкая кубачинская линия-разделитель */
.kubachi-divider {
  height: 3px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 160px 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='3' viewBox='0 0 160 3'><g fill='none' stroke='%230E4F53' stroke-width='0.6' stroke-linecap='round'><path d='M0 1.5 H72'/><circle cx='80' cy='1.5' r='1' fill='%230E4F53' stroke='none'/><path d='M88 1.5 H160'/></g></svg>");
  opacity: 0.18;
}

/* Унцукульский ритм: штрих-точка-штрих, используется в прогресс-баре и шагах */
.untsukul-rhythm {
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0px, currentColor 10px,
    transparent 10px, transparent 14px,
    currentColor 14px, currentColor 16px,
    transparent 16px, transparent 20px
  );
}

/* Ромбический модуль номера шага */
.stone-step-badge {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stone-step-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.1;
  transform: rotate(45deg);
  border-radius: 6px;
}
.stone-step-badge span {
  position: relative;
  z-index: 1;
}

/* Каменная лесенка-коннектор между шагами */
.stone-connector {
  height: 2px;
  background-image: linear-gradient(to right, currentColor 0 70%, transparent 70%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  opacity: 0.35;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
