/* HERO */

.hero {
  padding: 40px 0 28px;
}

.hero-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at top left, rgba(240,179,118,0.16) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(80,128,255,0.16) 0, transparent 60%),
    rgba(5,7,10,0.96);
}

.hero-inner {
  position: relative;
  padding: 30px 26px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.5rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 16px;
}

/* HERO META + CTAS */

.eyeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(5,7,10,0.9);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.88rem;
  min-height: 40px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #ffe1b5 0, #f0b376 38%, #e29c5d 100%);
  color: #1a120b;
  box-shadow: 0 14px 34px rgba(240,179,118,0.45);
}

.btn-secondary {
  background: rgba(5,7,10,0.96);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  border-color: rgba(240,179,118,0.7);
  background:
    radial-gradient(circle at 0 0, rgba(240,179,118,0.22) 0, rgba(5,7,10,0.98) 58%);
  color: #fff;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

/* HERO NOTE */

.hero-note {
  max-width: 320px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: rgba(5,7,10,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 32px rgba(0,0,0,0.7);
  font-size: 0.86rem;
}

.hero-note .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(240,179,118,0.5);
  font-size: 0.74rem;
  color: var(--accent-strong);
  margin-bottom: 6px;
  background: rgba(240,179,118,0.1);
}

.hero-note .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-note strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.86rem;
}

/* CONTENT SECTIONS */

section.section {
  padding: 28px 0 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.section-title {
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.card {
  background:
    radial-gradient(circle at 0 0, rgba(240,179,118,0.10) 0, transparent 55%),
    linear-gradient(145deg, rgba(9,11,16,0.96), rgba(7,10,15,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.7);
  font-size: 0.9rem;
  color: var(--muted);
}

.card h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: var(--text);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* ARCHETYPE MEDIA GRID */

.archetype-media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.arch-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(32,27,23,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.arch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.arch-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.arch-card-body {
  padding: 12px 12px 13px;
}

.arch-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
  color: #1f1a17;
  font-weight: 700;
}

.arch-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(32,27,23,0.8);
}

/* VIDEO BLOCK */

.video-box {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(32,27,23,0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  max-width: 920px;
  margin: 0 auto;
}

.video-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.video-title {
  margin: 0;
  font-size: 20px;
  color: #1f1a17;
}

.video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: #6f7f4a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(111,127,74,0.18);
  transition: transform 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.video-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* BOTTOM PANEL */

.panel {
  border-radius: 24px;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle at 0 0, rgba(240,179,118,0.1) 0, transparent 40%),
    rgba(8,10,14,0.98);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
  margin-top: 8px;
  margin-bottom: 26px;
}

.panel .card {
  background: #05070b;
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}

.panel .card p {
  font-size: 0.9rem;
}

.panel .cta {
  margin-top: 18px;
}

/* PROGRESS BAR */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  width: 0;
  z-index: 60;
  transform-origin: left;
}

/* FADE-IN ANIMATION */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease-out,
    transform 0.45s ease-out;
}

.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}

/* LIGHT THEME OVERRIDES – теплий крем + карамель */

html[data-theme="light"] .hero-shell {
  border-color: rgba(104,82,62,.18);
  background:
    radial-gradient(circle at top left, rgba(240,179,118,.22) 0, transparent 42%),
    radial-gradient(circle at bottom right, rgba(232,165,92,.18) 0, transparent 48%),
    linear-gradient(135deg,#fffdf9 0,#f7efe4 56%,#f2e4d5 100%);
  box-shadow: 0 20px 46px rgba(98,76,56,.12);
}

html[data-theme="light"] .eyebrow {
  color:#7f6f62;
}

html[data-theme="light"] .eyebrow::before {
  background:#d58034;
}

html[data-theme="light"] .hero h1 {
  color:#2b2119;
}

html[data-theme="light"] .lead {
  color:#5f5146;
}

html[data-theme="light"] .chip {
  background:#fffaf4;
  border-color:rgba(104,82,62,.2);
  color:#5f5146;
}

/* hero note */

html[data-theme="light"] .hero-note {
  background: linear-gradient(180deg,#fffaf1 0%,#fff3e3 100%);
  border-color:rgba(213,128,52,.36);
  box-shadow:0 14px 34px rgba(216,134,61,.16);
  color:#5f5146;
}

html[data-theme="light"] .hero-note .pill {
  border-color:rgba(213,128,52,.6);
  color:#d58034;
  background:rgba(213,128,52,.10);
}

html[data-theme="light"] .hero-note .pill .dot {
  background:#d58034;
}

html[data-theme="light"] .hero-note strong {
  color:#2b2119;
}

html[data-theme="light"] .hero-note p {
  color:#5f5146;
}

/* cards / sections */

html[data-theme="light"] .card {
  background:linear-gradient(180deg,#fffdf9 0%,#fff8f1 100%);
  border-color:rgba(104,82,62,.16);
  box-shadow:0 14px 30px rgba(98,76,56,.10);
  color:#2b2119;
}

html[data-theme="light"] .section-title {
  color:#2b2119;
}

html[data-theme="light"] .card h2,
html[data-theme="light"] .card h3 {
  color:#2b2119;
}

html[data-theme="light"] .card p,
html[data-theme="light"] .card li {
  color:#5f5146;
}

/* archetype media cards */

html[data-theme="light"] .arch-card {
  background:#fffdf9;
  border-color:rgba(104,82,62,.15);
  box-shadow:0 10px 24px rgba(98,76,56,.10);
}

html[data-theme="light"] .arch-card h3 {
  color:#2b2119;
}

html[data-theme="light"] .arch-card p {
  color:#5f5146;
}

/* video block */

html[data-theme="light"] .video-box {
  background:#fffdf9;
  border-color:rgba(104,82,62,.18);
  box-shadow:0 12px 30px rgba(98,76,56,.12);
}

html[data-theme="light"] .video-title {
  color:#2b2119;
}

html[data-theme="light"] .video-link {
  background:#6f7f4a;
  box-shadow:0 10px 22px rgba(111,127,74,.20);
}

/* bottom panel */

html[data-theme="light"] .panel {
  background:linear-gradient(180deg,#fffaf2 0%,#f7eee4 100%);
  border-color:rgba(104,82,62,.20);
  box-shadow:0 18px 40px rgba(98,76,56,.14);
}

html[data-theme="light"] .panel .card {
  background:#fffdf9;
  border-color:rgba(104,82,62,.16);
  box-shadow:none;
}

html[data-theme="light"] .panel .card p {
  color:#5f5146;
}

/* buttons in light theme */

html[data-theme="light"] .btn {
  background:#fffaf4;
  border-color:rgba(104,82,62,.18);
  color:#2b2119;
  box-shadow:0 8px 20px rgba(98,76,56,.10);
}

html[data-theme="light"] .btn-secondary {
  background:#fffdf9;
  border-color:rgba(104,82,62,.18);
  color:#2b2119;
}

html[data-theme="light"] .btn-primary {
  background:linear-gradient(135deg,#f5c696 0%,#e8a55c 52%,#d58034 100%);
  color:#21150d;
  box-shadow:0 18px 34px rgba(216,134,61,.24);
}

html[data-theme="light"] .btn:hover {
  box-shadow:0 18px 34px rgba(216,134,61,.26);
  background:linear-gradient(135deg,#f8cf9f 0%,#e8a55c 52%,#cf7a30 100%);
  color:#21150d;
}

/* RESPONSIVE */

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

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .hero-side {
    justify-content: flex-start;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .archetype-media {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .arch-card h3 {
    font-size: 16px;
  }
  .arch-card p {
    font-size: 13px;
  }
  .video-box {
    padding: 12px;
    border-radius: 18px;
  }
  .video-title {
    font-size: 18px;
  }
  .video-link {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 28px;
  }
  .hero-inner {
    padding: 20px 16px 16px;
  }
  .hero-shell {
    border-radius: 22px;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.1rem);
  }
  .lead {
    font-size: 0.9rem;
  }
  .card {
    padding: 14px 14px 12px;
  }
  .panel {
    padding: 16px 14px 16px;
    border-radius: 22px;
  }
  .btn {
    width: 100%;
  }
}