/* «Ясно с Еленой» — светлый бренд-слой поверх проверенной структуры сайта. */
:root {
  --green-deep: #516353;
  --green: #718372;
  --green-ink: #27332b;
  --wine: #9b6f61;
  --wine-deep: #785247;
  --cream: #f8f5ee;
  --beige: #eee7dc;
  --ink: #282d28;
  --ink-soft: #5f655f;
  --gold: #b78a4e;
  --gold-soft: rgba(183, 138, 78, 0.38);
  --cream-on-dark: #fffaf0;
  --muted-on-dark: rgba(255, 250, 240, 0.78);
  --header-h: 76px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(217, 200, 171, 0.28), transparent 24rem),
    var(--cream);
}

::selection { background: #d9c29c; color: #233027; }

.container { width: min(1180px, 100% - 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-cream { background: rgba(248, 245, 238, 0.96); }
.section-beige { background: #eee7dc; }

h1, h2, h3 { letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.eyebrow {
  color: var(--wine-deep);
  letter-spacing: 0.18em;
}

.site-header {
  background: rgba(248, 245, 238, 0.9);
  border-color: rgba(39, 51, 43, 0.1);
  box-shadow: 0 10px 36px rgba(48, 54, 47, 0.06);
}
.brand { color: var(--green-ink); }
.brand-name { font-size: 1.18rem; font-weight: 600; }
.brand-sub { color: #8b6840; letter-spacing: 0.17em; }
.brand-mark { border-radius: 12px; box-shadow: 0 4px 14px rgba(58, 72, 61, 0.14); }
.site-nav a { color: #465149; }
.site-nav a:hover { color: var(--wine-deep); border-color: var(--gold-soft); }
.nav-toggle span { background: var(--green-ink); }

.btn { min-height: 50px; box-shadow: none; }
.btn-gold {
  color: #fffdf7;
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-gold:hover {
  background: #405244;
  border-color: #405244;
  box-shadow: 0 12px 28px rgba(64, 82, 68, 0.2);
}
.btn-primary { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-primary:hover { background: #68443c; }
.btn-line { border-color: rgba(39, 51, 43, 0.24); }

.hero {
  min-height: min(860px, 100svh);
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.94), transparent 26rem),
    radial-gradient(circle at 16% 75%, rgba(213, 224, 209, 0.72), transparent 28rem),
    linear-gradient(125deg, #f8f4eb 0%, #f1eadf 56%, #e8e0d3 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -8rem;
  bottom: -12rem;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgba(81, 99, 83, 0.14);
  border-radius: 50%;
}
.hero-bg {
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image: url("assets/img/yasno/hero.webp");
  background-position: 75% center;
  filter: blur(18px);
  transform: scale(1.08);
}
.hero-inner {
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.86fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 9vw, 7.7rem);
}
.hero h1 {
  color: var(--green-ink);
  font-size: clamp(4rem, 8.2vw, 7.4rem);
  line-height: 0.78;
  letter-spacing: -0.07em;
  margin-bottom: 0.3em;
}
.hero h1 em {
  display: inline-block;
  color: var(--wine-deep);
  font-size: 0.58em;
  line-height: 1;
  letter-spacing: -0.03em;
  transform: translateX(0.72em);
}
.hero-kicker {
  max-width: 30em;
  margin: 0 0 0.8rem;
  color: #35433a;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}
.hero-sub { color: #5a635c; font-size: 1.05rem; max-width: 38em; }
.hero-note { color: #687068; }
.hero .btn-ghost {
  color: var(--green-ink);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(39, 51, 43, 0.24);
}
.hero .btn-ghost:hover { color: var(--wine-deep); border-color: var(--wine-deep); }
.hero-portrait { max-width: 570px; }
.hero-slides {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 44% 44% 24px 24px;
  box-shadow: 0 34px 80px rgba(61, 72, 62, 0.2);
  background: #e9e2d6;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms ease-out;
}
.hero-portrait .hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  will-change: opacity, transform;
}
.hero-shot-main {
  z-index: 1;
  animation: yasnoHeroMain 14s ease-in-out infinite;
}
.hero-shot-alt {
  z-index: 2;
  object-position: center 42%;
  animation: yasnoHeroAlt 14s ease-in-out infinite;
}
@keyframes yasnoHeroMain {
  0%, 43% { opacity: 1; transform: scale(1.015); }
  50%, 93% { opacity: 0; transform: scale(1.075); }
  100% { opacity: 1; transform: scale(1.015); }
}
@keyframes yasnoHeroAlt {
  0%, 43% { opacity: 0; transform: scale(1.075); }
  50%, 93% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 0; transform: scale(1.075); }
}
.hero-portrait::after {
  inset: -12px;
  border-color: rgba(183, 138, 78, 0.5);
  border-radius: 47% 47% 32px 32px;
}
.hero-portrait figcaption { color: var(--wine-deep); }

.clarity-line {
  overflow: hidden;
  color: #fffaf0;
  background: var(--green-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}
.clarity-marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: clarityScroll 44s linear infinite;
}
.clarity-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(1.1rem, 2.8vw, 2.4rem);
  padding: 1rem clamp(1.1rem, 2.8vw, 2.4rem);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-style: italic;
  line-height: 1;
}
.clarity-track span { white-space: nowrap; }
.clarity-track i {
  color: var(--gold);
  font-size: 0.58rem;
  font-style: normal;
}
@keyframes clarityScroll {
  to { transform: translateX(-50%); }
}

.creds {
  color: var(--green-ink);
  background: #dfe7dd;
  border-color: rgba(81, 99, 83, 0.13);
}
.creds-grid { padding-block: 2.2rem; }
.cred { border-color: rgba(81, 99, 83, 0.22); }
.cred-title { color: var(--green-ink); font-weight: 600; }
.cred-sub { color: #5d6a61; }

.about-grid {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.25rem, 6vw, 5.5rem);
}
.about-photo { width: min(300px, 100%); }
.about-photo img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-position: center 12%;
  border-radius: 46% 46% 22px 22px;
  box-shadow: 0 28px 64px rgba(58, 66, 58, 0.15);
}
.motion-photo { --motion-y: 0px; }
.motion-photo img {
  transform: translate3d(0, var(--motion-y), 0) scale(1.035);
  will-change: transform;
}
.about-photo::after { border-radius: 46% 46% 24px 24px; }
.about-body { font-size: 1.02rem; }
.about-body p + p { margin-top: 1rem; }
.about-sign { color: var(--wine-deep); }

.education-photo {
  width: min(900px, 100%);
  margin: 2.2rem auto 2.5rem;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(58, 66, 58, 0.14);
}
.education-photo img {
  width: 100%;
  height: clamp(260px, 38vw, 440px);
  object-fit: cover;
  object-position: center 36%;
}
.diplomas-grid { max-width: 1020px; gap: 1.5rem; }
.diploma-open {
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(61, 67, 59, 0.1);
}
.diploma-cap b { color: var(--green-ink); }

.section-deep {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.12), transparent 24rem),
    #586c5d;
}
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.method { max-width: none; }
.method-photo {
  margin: 0;
  align-self: stretch;
  min-height: 620px;
  overflow: hidden;
  border-radius: 48% 48% 24px 24px;
  box-shadow: 0 30px 70px rgba(28, 38, 31, 0.24);
}
.method-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.m-body h3 { color: #fffaf0; }
.method li.visible .m-num { animation: yasnoNumberGlow 700ms ease-out both; }
@keyframes yasnoNumberGlow {
  0% { opacity: 0.25; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

.manifesto {
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.11), transparent 22rem),
    #8e675d;
  border-color: rgba(255, 255, 255, 0.12);
}
.manifesto blockquote { color: #fffaf2; }

.section-photo::after { background: rgba(45, 58, 48, 0.84); }
.section-photo-wine::after { background: rgba(76, 62, 53, 0.84); }
.section-games::before, #outcomes::before, .section-cta::before { background-position: center 38%; }
.section-games::after { background: linear-gradient(120deg, rgba(42, 56, 46, 0.93), rgba(73, 87, 74, 0.8)); }
.roulette-showcase {
  width: min(940px, 100%);
  margin: clamp(2.4rem, 5vw, 4rem) auto 2.2rem;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(22, 30, 25, 0.2);
  backdrop-filter: blur(9px);
}
.roulette-reel {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 46% 46% 22px 22px;
  background: #ead8c8;
  box-shadow: 0 24px 50px rgba(17, 26, 20, 0.32);
}
.roulette-reel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roulette-reel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px rgba(255, 250, 240, 0.08), inset 0 -80px 90px rgba(92, 56, 45, 0.12);
}
.roulette-prompt { max-width: 520px; }
.roulette-prompt h3 {
  max-width: 12ch;
  margin: 0.35rem 0 1rem;
  color: #fffaf0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 0.98;
  font-weight: 500;
}
.roulette-prompt > p:not(.eyebrow) { color: rgba(255, 250, 240, 0.82); }
.roulette-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.reel-toggle {
  min-height: 46px;
  padding: 0.65rem 1rem;
  color: #fffaf0;
  background: transparent;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.reel-toggle:hover, .reel-toggle:focus-visible { background: rgba(255, 250, 240, 0.1); border-color: rgba(255, 250, 240, 0.7); }
.reel-toggle:disabled { cursor: default; opacity: 0.66; }
.game-tile {
  background: rgba(255, 250, 240, 0.11);
  border-color: rgba(255, 250, 240, 0.22);
}
.game-tile .game-emblem { animation: yasnoCardBreath 4.8s ease-in-out infinite; }
.game-tile:nth-child(2) .game-emblem { animation-delay: -1.6s; }
.game-tile:nth-child(3) .game-emblem { animation-delay: -3.2s; }
@keyframes yasnoCardBreath {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.8deg); }
}

.topic {
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 36px rgba(50, 60, 51, 0.06);
}
.topic:hover { box-shadow: 0 20px 48px rgba(50, 60, 51, 0.12); }
.topic { transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease; }
.topic:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.82); }
.topic h3 { color: var(--green-ink); }

.ladder { border-top-color: rgba(39, 51, 43, 0.14); }
.rung {
  padding: 1.8rem 1.5rem;
  border-bottom-color: rgba(39, 51, 43, 0.14);
  border-radius: 18px;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.42);
}
.rung-free { background: #e4eadf; border-left-color: var(--green); }
.rung-main { background: #f6f2e9; border-left-color: var(--wine); }
.rung-wine {
  color: var(--ink);
  background: #e7ddd2;
  border-left-color: #a37c66;
}
.rung-wine:hover { background: #ded1c4; }
.rung-wine .rung-tag { color: var(--wine-deep); }
.rung-wine h3 { color: var(--green-ink); }
.rung-wine .rung-info p:last-child { color: var(--ink-soft); }
.rung-wine .rung-price { color: var(--green-ink); }
.rung-wine .btn-line.light { color: var(--green-ink); border-color: rgba(39, 51, 43, 0.25); }

#outcomes::after { background: linear-gradient(120deg, rgba(62, 68, 56, 0.91), rgba(120, 91, 79, 0.8)); }
.reviews-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
.review {
  min-height: 220px;
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.24);
  border-radius: 22px;
  padding: 1.8rem;
}
.review h3 { color: #f6d9a8; font-size: 1.45rem; }
.review p { margin: 0; }

.faq-item { border-color: rgba(39, 51, 43, 0.14); }
.faq-item summary { color: var(--green-ink); }
.faq-item[open] summary, .faq-item summary:hover { color: var(--wine-deep); }

.section-cta::after { background: linear-gradient(115deg, rgba(43, 55, 46, 0.94), rgba(71, 82, 69, 0.78)); }
.section-cta { padding-block: clamp(5.5rem, 12vw, 9rem); }
.section-cta .narrow { max-width: 820px; }
.section-cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); }

.site-footer { background: #26332b; }

@media (max-width: 1000px) {
  .method-layout { grid-template-columns: 1fr; }
  .method-photo { min-height: 460px; max-width: 720px; width: 100%; margin-inline: auto; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 700px; }
}

@media (max-width: 880px) {
  .site-nav {
    background: rgba(248, 245, 238, 0.99);
    border-color: rgba(39, 51, 43, 0.12);
    box-shadow: 0 22px 36px rgba(39, 51, 43, 0.09);
  }
  .site-nav a { color: var(--green-ink); border-color: rgba(39, 51, 43, 0.08); }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-text { text-align: left; }
  .hero-sub, .hero-kicker { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero h1 { font-size: clamp(4rem, 16vw, 6.5rem); }
  .hero-portrait { max-width: 420px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { width: min(250px, 62vw); }
}

@media (max-width: 700px) {
  .container, .container.narrow { width: min(100% - 1.5rem, 1180px); }
  .section { padding-block: 4.2rem; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: 0.52rem; }
  .hero-inner { padding-block: 3.8rem 4.8rem; gap: 2.5rem; }
  .hero h1 { line-height: 0.82; }
  .hero h1 em { transform: translateX(0.45em); }
  .hero-kicker { font-size: 1.22rem; }
  .hero-actions .btn { width: 100%; }
  .hero-portrait { max-width: 330px; }
  .hero-slides { border-radius: 42% 42% 20px 20px; }
  .clarity-track { padding-block: 0.9rem; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(210px, 56vw); }
  .creds-grid { padding-block: 1.4rem; }
  .cred { border-color: rgba(81, 99, 83, 0.18); }
  .education-photo { margin-bottom: 2rem; border-radius: 20px; }
  .education-photo img { height: 260px; }
  .method-photo { min-height: 380px; border-radius: 40% 40% 20px 20px; }
  .roulette-showcase { grid-template-columns: 1fr; gap: 3rem; padding: 1rem 0.65rem 1.5rem; border-radius: 24px; }
  .roulette-reel { width: min(100%, 330px); }
  .roulette-prompt { text-align: center; margin-inline: auto; }
  .roulette-prompt h3 { max-width: 13ch; margin-inline: auto; }
  .roulette-actions { justify-content: center; }
  .rung { padding: 1.5rem 1.15rem; }
  .review { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 em { transform: none; }
  .hero-slides { transform: none !important; }
  .hero-shot-main { animation: none; opacity: 1; transform: none; }
  .hero-shot-alt { display: none; animation: none; }
  .motion-photo img { transform: none; }
  .clarity-marquee { animation: none; transform: none; }
  .clarity-track + .clarity-track { display: none; }
  .method li.visible .m-num, .game-tile .game-emblem { animation: none; }
}
