/* Азбука Движения — лонгрид. Переменные из /css/style.css. */

/* ===== Шапка ===== */

.az-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 78%, rgba(240, 138, 60, 0.38), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(79, 184, 214, 0.18), transparent 60%),
    linear-gradient(180deg, #0c1424 0%, #1b2a46 62%, #2c2a44 100%);
  color: #f6eedf;
  padding: 72px 0 120px;
}

.az-hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 200%;
  height: 140px;
  animation: az-drift 18s linear infinite;
}

.az-hw--1 { fill: rgba(18, 48, 74, 0.85); }
.az-hw--2 { fill: #0b2236; }

@keyframes az-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.az-hero-inner {
  position: relative;
  max-width: 780px;
}

.az-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c94c;
  font-weight: 700;
  margin: 0 0 14px;
}

.az-hero h1 {
  max-width: 18ch;
  color: #fff6e3;
  font-size: clamp(34px, 5.6vw, 60px);
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.az-lead {
  font-size: 19px;
  line-height: 1.65;
  color: #efe4d0;
  max-width: 60ch;
  margin: 0 0 26px;
}

.az-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.az-btn-ghost {
  background: transparent;
  color: #fff6e3;
  border-color: rgba(255, 246, 227, 0.55);
}

.az-btn-ghost:hover { background: rgba(255, 246, 227, 0.1); }

/* ===== Оглавление ===== */

.az-toc {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.az-toc-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

.az-toc ol {
  columns: 3 220px;
  column-gap: 32px;
  margin: 0;
  padding-left: 22px;
}

.az-toc li { margin: 0 0 6px; break-inside: avoid; }
.az-toc a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.az-toc a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Секции ===== */

.az-section {
  padding: 64px 0;
  scroll-margin-top: 80px;
}

.az-section + .az-section { border-top: 1px solid var(--line); }
.az-section--soft { background: var(--surface); }

.az-section--night {
  background: linear-gradient(180deg, #131b2d, #1d2740);
  color: #efe4d0;
}

.az-section--night .az-prose h2,
.az-section--night .az-prose h3 { color: #fff1d0; }
.az-section--night .az-prose p,
.az-section--night .az-prose li { color: #e6dac4; }
.az-section--night a { color: #f2c94c; }
.az-section--night .az-num { color: #f2c94c !important; }

.az-prose {
  max-width: 72ch;
  margin: 0 auto;
}

.az-prose p,
.az-prose li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.az-prose h2 {
  max-width: none;
  font-family: var(--font-display);
  color: var(--accent-dark);
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 20px;
}

.az-prose h3 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 23px;
  margin: 34px 0 10px;
}

.az-num {
  font-family: var(--font-display);
  font-size: 15px !important;
  letter-spacing: 0.12em;
  color: var(--accent-2) !important;
  margin: 0 0 6px;
}

.az-center { text-align: center; }
.az-small { font-size: 14px; color: var(--muted); line-height: 1.6; }

.az-quote {
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  line-height: 1.55;
  color: var(--accent-dark);
}

.az-author {
  margin: 26px 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.az-author-title {
  font-family: var(--font-display);
  font-size: 19px !important;
  color: var(--accent-dark) !important;
  margin: 0 0 6px;
}

.az-author p:last-child { margin-bottom: 0; }

.az-cta-line {
  margin-top: 26px;
  font-style: italic;
}

/* ===== Места под иллюстрации и видео ===== */

.az-media {
  margin: 30px 0;
}

.az-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 120%, rgba(242, 183, 5, 0.32), transparent 60%),
    radial-gradient(circle at 15% 10%, rgba(200, 55, 45, 0.22), transparent 50%),
    linear-gradient(160deg, #1b2236, #12172a);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(242, 201, 76, 0.25);
}

.az-media-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(242, 201, 76, 0.35);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.az-media-frame--wide { aspect-ratio: 21 / 9; }
.az-media-frame--square { aspect-ratio: 1 / 1; }

.az-media-frame--video::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(242, 201, 76, 0.75);
  background: rgba(242, 201, 76, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23f2c94c'/%3E%3C/svg%3E") center / 26px no-repeat;
}

.az-media-tag {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2c94c;
  font-weight: 700;
}

.az-media-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: #fff1d0;
}

.az-media-frame img,
.az-media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.az-media figcaption {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.az-section--night .az-media figcaption { color: #cdbf9f; }

.az-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.az-media-row .az-media { margin: 0; }

/* ===== Схема цепи ===== */

.az-chain {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin: 30px 0 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.az-chain-svg { width: 100%; height: auto; display: block; }

.az-chain-line {
  fill: none;
  stroke: url(#azChainGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.az-chain-line--soft { stroke: rgba(139, 69, 24, 0.35); stroke-width: 4; }

.az-chain-nodes circle { fill: #fffaf3; stroke: var(--accent); stroke-width: 2.5; }
.az-chain-nodes text { font-size: 12px; fill: var(--muted); font-family: var(--font-body); }

.az-chain-pulse {
  fill: #f2b705;
  filter: drop-shadow(0 0 6px rgba(242, 183, 5, 0.9));
  offset-path: path("M110 340 L110 300 L102 250 L110 200 L114 150 L110 110 L150 120 L176 82 L196 52");
  animation: az-pulse 3.2s cubic-bezier(0.55, 0, 0.7, 1) infinite;
}

@keyframes az-pulse {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.az-chain-cap {
  font-family: var(--font-display);
  font-size: 21px !important;
  color: var(--accent-dark) !important;
  margin: 0 0 8px;
}

.az-chain-text p:last-child { margin-bottom: 0; }

/* ===== Четыре ключа ===== */

.az-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 26px auto 0;
}

.az-key {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
}

.az-key svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  margin-bottom: 6px;
}

.az-key h3 {
  font-family: var(--font-display);
  color: var(--accent-dark);
  font-size: 22px;
  margin: 0 0 8px;
}

.az-key p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ===== Дыхание ===== */

.az-breath {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0;
}

.az-breath-card {
  border-radius: var(--radius);
  padding: 24px 24px 18px;
  color: #fff6e3;
  box-shadow: var(--shadow);
}

.az-breath-card--dragon { background: linear-gradient(160deg, #6b4a0e, #3b2a0c); }
.az-breath-card--tiger { background: linear-gradient(160deg, #7a1f17, #3d100c); }

.az-breath-card h3 {
  color: #fff6e3 !important;
  margin: 0 0 6px !important;
  font-size: 25px !important;
}

.az-breath-card p,
.az-breath-card li {
  color: #f3e6cf !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.az-breath-card ul { padding-left: 20px; margin: 8px 0 0; }

.az-breath-eyebrow {
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 2px;
  color: #f2c94c !important;
}

.az-breath-card--tiger .az-breath-eyebrow { color: #ff9b8a !important; }

.az-breath-how {
  font-weight: 700;
  font-size: 17px !important;
  margin: 0 0 10px;
}

/* ===== Нулевой цикл ===== */

.az-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 18px;
}

.az-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 201, 76, 0.2);
}

.az-steps h3 { margin: 4px 0 6px !important; font-size: 21px !important; }
.az-steps p { margin: 0; font-size: 17px !important; }

.az-step-n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff4cc, #f2b705 60%, #b8661c);
  color: #3b2410;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(242, 183, 5, 0.5);
}

/* ===== Фрактал ===== */

.az-fractal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: center;
  margin: 26px 0;
}

.az-fractal-svg { width: 100%; height: auto; }

.az-fr { fill: none; stroke-width: 2; }
.az-fr--1 { fill: rgba(242, 183, 5, 0.35); stroke: #e0a733; }
.az-fr--2 { stroke: #e0a733; }
.az-fr--3 { stroke: #c8742d; }
.az-fr--4 { stroke: #a8452a; }
.az-fr--5 { stroke: #7a2e1e; }

.az-fractal-svg text {
  font-size: 13px;
  fill: var(--accent-dark);
  font-family: var(--font-body);
  font-weight: 700;
}

.az-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.az-table th,
.az-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.az-table th { background: var(--bg); color: var(--accent-dark); font-size: 14px; }
.az-table td:first-child { font-weight: 700; color: var(--accent-dark); }

.az-life { padding-left: 20px; }
.az-life li { margin-bottom: 10px; }

/* ===== Форматы ===== */

.az-formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 10px auto 28px;
}

.az-format {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.az-format h3 {
  font-family: var(--font-display);
  color: var(--accent-dark);
  font-size: 21px;
  margin: 0 0 8px;
}

.az-format p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

.az-svecha {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Форма ===== */

.az-form {
  max-width: 620px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.az-form label { display: block; margin: 0 0 14px; font-weight: 600; color: var(--text); }

.az-form input:not([type=checkbox]),
.az-form select,
.az-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fff;
}

.az-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.az-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.az-form .check input { margin-top: 5px; }

.az-note { min-height: 1.3em; margin: 12px 0 0; color: var(--accent-dark); }

/* ===== Адаптив ===== */

@media (max-width: 900px) {
  .az-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .az-hero { padding: 48px 0 100px; }
  .az-lead { font-size: 17px; }
  .az-section { padding: 46px 0; }
  .az-prose p, .az-prose li { font-size: 17px; }
  .az-chain, .az-fractal { grid-template-columns: 1fr; }
  .az-chain-svg, .az-fractal-svg { max-width: 240px; margin: 0 auto; }
  .az-breath, .az-media-row, .az-formats { grid-template-columns: 1fr; }
  .az-table { font-size: 14px; }
  .az-table th, .az-table td { padding: 8px; }
  .az-form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .az-keys { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .az-hero-waves, .az-chain-pulse { animation: none; }
}
