/* ═══════════════════════════════════════════════════════════════
   STYLES.CSS — SkoolTimez Design System
   Unified stylesheet for:
     · 404.html
     · homework-skills.html
     · lesson-header.html
     · step_edu.html
     · держстандарт.html

   Google Fonts import (add to <head> of each page):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;700;900&family=Geologica:wght@300;400;500;600&display=swap" rel="stylesheet">
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --ink:        #0d1117;
  --paper:      #f5f2eb;
  --cream:      #ede9df;
  --gold:       #c9a84c;
  --gold-lt:    #e8d5a0;
  --blue:       #1a3a6b;
  --blue-lt:    #2d5fa8;
  --teal:       #1a6b5a;
  --teal-lt:    #28a08a;
  --red:        #8b1a1a;
  --red-lt:     #c94040;

  /* Six Thinking Hats */
  --hat-white:  #f8f8f2;
  --hat-red:    #e63946;
  --hat-black:  #1d1d1d;
  --hat-yellow: #f4c430;
  --hat-green:  #2d8c6e;
  --hat-blue:   #1e4d8c;

  /* Bloom Taxonomy levels */
  --remember:   #6c5ce7;
  --understand: #2d5fa8;
  --apply:      #1a6b5a;
  --analize:    #c9a84c;
  --evaluate:   #c0511a;
  --create:     #8b1a1a;

  /* Misc */
  --radius: 14px;
  --shadow: 0 8px 32px rgba(13, 17, 23, .12);
}


/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Geologica', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* 404 page needs full-height flex column */
body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* lesson-header page padding */
body.page-lesson-header {
  padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 5vw, 3rem);
  min-height: 100vh;
}

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}


/* ═══════════════════════════════════════════════════════════════
   3. LAYOUT HELPERS
═══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
}

/* step_edu / держстандарт inner container */
.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 4rem);
}

.section-wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 5vw, 4rem);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream) 20%, var(--cream) 80%, transparent);
  margin: 0 clamp(1.2rem, 5vw, 4rem);
}

main { flex: 1; }


/* ═══════════════════════════════════════════════════════════════
   4. ANIMATIONS
═══════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   5. HEADER — .header  (404.html)
═══════════════════════════════════════════════════════════════ */

.header {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header__container {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 2rem);
  height: 68px;
}

/* Logo — .logo (404) */
.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(.8rem, 2vw, 1.1rem);
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .18s;
}
.logo:hover { opacity: .8; }
.logo .accent {
  background: linear-gradient(90deg, var(--gold), #e8d5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.header__nav { flex: 1; }

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 1.5vw, 1.4rem);
}

.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 9px;
  transition: background .18s;
  cursor: pointer;
}
.nav__item:hover              { background: rgba(201, 168, 76, .12); }
.nav__item.current            { background: rgba(201, 168, 76, .18); }

.nav__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__icon svg                { width: 28px; height: 28px; fill: #9aa5b4; transition: fill .18s; }
.nav__item:hover .nav__icon svg,
.nav__item.current .nav__icon svg { fill: var(--gold); }

.nav__link--gdisk {
  font-family: 'Unbounded', sans-serif;
  font-size: .44rem;
  font-weight: 600;
  color: #5a6880;
  letter-spacing: .08em;
  white-space: nowrap;
}
.nav__item.current .nav__link--gdisk { color: var(--gold-lt); }

/* Hamburger */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .18s;
}
.menu-btn:hover          { background: rgba(201, 168, 76, .12); }
.menu-btn svg            { width: 28px; height: 28px; fill: var(--gold); }
.rotate180               { transform: rotate(180deg); }

/* Mobile modal */
.mob-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13, 17, 23, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity .25s;
}
.mob-modal.is-hidden { opacity: 0; pointer-events: none; }

.close__button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.close__button svg { width: 24px; height: 24px; fill: var(--gold); }

.mob-menu__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mob-nav__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(201, 168, 76, .18);
  transition: border-color .18s, background .18s;
}
.mob-nav__item:hover   { border-color: var(--gold); background: rgba(201, 168, 76, .08); }
.mob-nav__item.current { border-color: var(--gold); background: rgba(201, 168, 76, .14); }

.mob-nav__item .nav__icon svg              { fill: #5a6880; }
.mob-nav__item:hover .nav__icon svg,
.mob-nav__item.current .nav__icon svg      { fill: var(--gold); }

.mob-menu__link {
  font-family: 'Unbounded', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  color: #7a8898;
  text-decoration: none;
  letter-spacing: .1em;
}
.mob-nav__item.current .mob-menu__link { color: var(--gold-lt); }


/* ═══════════════════════════════════════════════════════════════
   6. HEADER — simple page header (homework-skills)
═══════════════════════════════════════════════════════════════ */

.page-header {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  padding: clamp(1.8rem, 5vh, 3rem) clamp(1.2rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  gap: 24px;
}

.hdr-icon svg  { flex-shrink: 0; }

.hdr-eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: .58rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.hdr-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
}
.hdr-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #e8d5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ═══════════════════════════════════════════════════════════════
   7. HEADER — step_edu.html (site-header / STEP logo)
═══════════════════════════════════════════════════════════════ */

.site-header {
  background: linear-gradient(145deg, var(--ink) 0%, #162032 55%, #0d2a1f 100%);
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 6vh, 4rem);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.site-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, .14) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.logo-step {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -3px;
}
.logo-step .s { color: var(--gold); }

.logo-tagline {
  font-family: 'Unbounded', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.8;
  margin-top: .4rem;
}

.header-intro {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: #7a8fa8;
  line-height: 1.75;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  font-style: italic;
}
.header-intro strong { color: #e0ddd6; font-style: normal; }

/* держстандарт.html header */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 3rem);
  height: 68px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-wrap svg { flex-shrink: 0; }
.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.logo-text span {
  display: block;
  color: #fff;
  font-weight: 300;
  font-size: .65rem;
  letter-spacing: .18em;
}

.ds-nav {
  display: flex;
  gap: clamp(.6rem, 2vw, 1.8rem);
  align-items: center;
}
.ds-nav a {
  font-family: 'Unbounded', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  color: #aab4c4;
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.ds-nav a:hover { color: var(--gold); border-color: var(--gold); }


/* ═══════════════════════════════════════════════════════════════
   8. ATTENTION BANNER (step_edu)
═══════════════════════════════════════════════════════════════ */

.attention-banner {
  background: var(--red);
  padding: 1.2rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.attention-banner .warn  { font-size: 2rem; flex-shrink: 0; }
.attention-banner h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  flex: 1;
  letter-spacing: .05em;
}
.attention-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: .45rem 1.1rem;
  border-radius: 4px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   9. TYPOGRAPHY SHARED
═══════════════════════════════════════════════════════════════ */

h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}
h2 em { font-style: normal; color: var(--blue-lt); }

.section-tag {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--gold-lt);
  border-radius: 4px;
  padding: .22rem .6rem;
  margin-bottom: .9rem;
}
.section-tag.amber { color: #7c4a00; background: #fdecc0; }
.section-tag.teal  { color: #0d4a3a; background: #c2f0e8; }

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: .6rem;
}

.section-desc {
  font-size: 1rem;
  color: #4a5568;
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.sec-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--cream), transparent);
}

.sec-tag {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--gold-lt);
  border-radius: 4px;
  padding: .22rem .6rem;
  margin-bottom: .9rem;
}


/* ═══════════════════════════════════════════════════════════════
   10. HERO — 404.html
═══════════════════════════════════════════════════════════════ */

.hero {
  flex: 1;
  background: linear-gradient(145deg, var(--ink) 0%, #162032 55%, #0d2a1f 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,.10) 0%, transparent 70%);
  top: -180px; right: -180px;
}
.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,106,90,.14) 0%, transparent 70%);
  bottom: -120px; left: -120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* держстандарт hero */
#hero {
  min-height: 100svh;
  background: linear-gradient(145deg, var(--ink) 0%, #162032 55%, #0d2a1f 100%);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 6vw, 5rem) clamp(2rem, 5vh, 4rem);
  position: relative;
  overflow: hidden;
}
#hero::before, #hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  top: -100px; right: -150px;
}
#hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,106,90,.18) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}

/* Giant 404 code */
.hero-code {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(5rem, 18vw, 13rem);
  font-weight: 900;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 3px rgba(201, 168, 76, .35);
  position: relative;
  user-select: none;
  animation: fadeUp .6s .05s ease both;
}
.hero-code::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, #e8d5a0 40%, var(--gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  background-size: 200% 200%;
}

.hero-eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(.58rem, 1vw, .65rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeUp .5s .1s ease both;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  max-width: 800px;
  margin-bottom: 1rem;
  animation: fadeUp .5s .2s ease both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #e8d5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc, .hero-sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: #7a8fa8;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 560px;
  animation: fadeUp .5s .3s ease both;
}
.hero-sub { margin-bottom: 3rem; }

.hero-explainer {
  background: rgba(201, 168, 76, .08);
  border: 1.5px solid rgba(201, 168, 76, .25);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeUp .5s .4s ease both;
}
.hero-explainer h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.hero-explainer p          { font-size: .82rem; color: #a0aab8; line-height: 1.7; }
.hero-explainer p + p      { margin-top: .5rem; }
.hero-explainer strong     { color: var(--gold-lt); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  animation: fadeUp .5s .5s ease both;
}

/* держстандарт hats grid */
.hats-label {
  font-family: 'Unbounded', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a8fa8;
  margin-bottom: 1.2rem;
}

.hats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

.hat-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(4px);
  transition: transform .25s, box-shadow .25s;
  cursor: default;
  animation: fadeUp .6s ease both;
}
.hat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }

.hat-white  { background: rgba(248,248,242,.08); }
.hat-red    { background: rgba(230,57,70,.14); }
.hat-black  { background: rgba(29,29,29,.55); }
.hat-yellow { background: rgba(244,196,48,.1); }
.hat-green  { background: rgba(45,140,110,.15); }
.hat-blue   { background: rgba(30,77,140,.2); }

.hat-card:nth-child(1) { animation-delay: .05s }
.hat-card:nth-child(2) { animation-delay: .12s }
.hat-card:nth-child(3) { animation-delay: .19s }
.hat-card:nth-child(4) { animation-delay: .26s }
.hat-card:nth-child(5) { animation-delay: .33s }
.hat-card:nth-child(6) { animation-delay: .40s }

.hat-icon {
  font-size: 2rem;
  margin-bottom: .7rem;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.hat-title {
  font-family: 'Unbounded', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.hat-white  .hat-title { color: #f0f0e8; }
.hat-red    .hat-title { color: #ff8fa0; }
.hat-black  .hat-title { color: #c8c8c8; }
.hat-yellow .hat-title { color: var(--hat-yellow); }
.hat-green  .hat-title { color: #6ddcba; }
.hat-blue   .hat-title { color: #8bbfff; }

.hat-body {
  font-size: .85rem;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
}


/* ═══════════════════════════════════════════════════════════════
   11. BUTTONS
═══════════════════════════════════════════════════════════════ */

.btn {
  font-family: 'Unbounded', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.btn:hover             { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,17,23,.3); }

.btn-primary           { background: linear-gradient(135deg, var(--gold), #d4a830); color: var(--ink); }
.btn-outline           { background: transparent; border: 1.5px solid rgba(201,168,76,.5); color: var(--gold-lt); }
.btn-outline:hover     { border-color: var(--gold); background: rgba(201,168,76,.08); }

.btn svg               { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary svg       { fill: var(--ink); }
.btn-outline svg       { fill: var(--gold-lt); }


/* ═══════════════════════════════════════════════════════════════
   12. CONTRIBUTE STRIP (404.html)
═══════════════════════════════════════════════════════════════ */

.contribute {
  background: var(--ink);
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
}

.contribute-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.contribute-eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.contribute-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.contribute-desc {
  font-size: .85rem;
  color: #6a7585;
  line-height: 1.7;
  max-width: 540px;
}
.contribute-steps {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contribute-steps li {
  font-size: .8rem;
  color: #a0aab8;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.contribute-steps li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}


/* ═══════════════════════════════════════════════════════════════
   13. FOOTER — shared (.footer / footer)
═══════════════════════════════════════════════════════════════ */

.footer,
footer {
  background: var(--ink);
  border-top: 3px solid var(--gold);
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  color: #5a6880;
  font-family: 'Unbounded', sans-serif;
  letter-spacing: .08em;
}

/* Simple centered footer (step_edu / держстандарт) */
footer.simple {
  text-align: center;
  padding: 2rem;
  font-size: .72rem;
}
footer.simple span { color: var(--gold); }
footer.simple a    { color: var(--gold); text-decoration: none; }

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 1.5rem;
}

.footer-block__title {
  font-family: 'Unbounded', sans-serif;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,168,76,.2);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.footer-copy {
  font-family: 'Unbounded', sans-serif;
  font-size: .5rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: #3a4455;
}
.footer-copy span { color: var(--gold); }

/* Steps ribbon (step_edu) */
.steps-ribbon {
  background: var(--ink);
  border-top: 3px solid var(--gold);
  padding: clamp(2rem, 5vh, 3rem) clamp(1.2rem, 5vw, 4rem);
}
.steps-ribbon h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  list-style: none;
}
.steps-list li {
  font-family: 'Geologica', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: #c8d4e0;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.steps-list li::before {
  content: attr(data-n);
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 900;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   14. FOOTER ICON BUTTONS (shared across all pages)
═══════════════════════════════════════════════════════════════ */

.skills__list,
.mob-menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Category / header button */
.set-btn {
  width: 48px; height: 48px;
  background: rgba(201,168,76,.12);
  border: 1.5px solid rgba(201,168,76,.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.set-icon { fill: var(--gold); width: 28px; height: 28px; }

/* Bloom-level coloured routine buttons */
.routine-btn {
  width: 44px; height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  border: 1.5px solid transparent;
}
.routine-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13,17,23,.3);
}
.routine-icon { width: 26px; height: 26px; }

.routine-btn.remember__mode   { background: rgba(108,92,231,.18); border-color: rgba(108,92,231,.4); }
.routine-btn.understand__mode { background: rgba(45,95,168,.18);  border-color: rgba(45,95,168,.4); }
.routine-btn.apply__mode      { background: rgba(26,107,90,.18);  border-color: rgba(26,107,90,.4); }
.routine-btn.analize__mode    { background: rgba(201,168,76,.18); border-color: rgba(201,168,76,.4); }
.routine-btn.evaluate__mode   { background: rgba(192,81,26,.18);  border-color: rgba(192,81,26,.4); }
.routine-btn.create__mode     { background: rgba(139,26,26,.18);  border-color: rgba(139,26,26,.4); }

.routine-btn.remember__mode   .routine-icon { fill: #8b7cf5; }
.routine-btn.understand__mode .routine-icon { fill: #6a9dd4; }
.routine-btn.apply__mode      .routine-icon { fill: #4dd8b8; }
.routine-btn.analize__mode    .routine-icon { fill: var(--gold); }
.routine-btn.evaluate__mode   .routine-icon { fill: #e0844a; }
.routine-btn.create__mode     .routine-icon { fill: #e08080; }

/* Time buttons */
.time-btn {
  width: 44px; height: 44px;
  background: rgba(45,95,168,.14);
  border: 1.5px solid rgba(45,95,168,.35);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s;
}
.time-btn:hover { transform: translateY(-2px); }
.time-icon { fill: #6a9dd4; width: 26px; height: 26px; }

/* Symbol / function icon buttons */
.symbols {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.symbol-icon { fill: #5a6880; width: 22px; height: 22px; }


/* ═══════════════════════════════════════════════════════════════
   15. SECTIONS — step_edu.html
═══════════════════════════════════════════════════════════════ */

section {
  padding: clamp(3rem, 7vh, 5rem) 0;
  border-bottom: 1px solid var(--cream);
}
section:nth-child(odd)  { background: var(--paper); }
section:nth-child(even) { background: #fff; }

/* Modes grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.mode-card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
  animation: fadeUp .5s ease both;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(13,17,23,.25); }
.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,.08));
  pointer-events: none;
}
.mode-icon   { font-size: 2.5rem; margin-bottom: .9rem; display: block; }
.mode-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .4rem;
}
.mode-card p { font-size: .82rem; color: #7a8fa8; }

.mode-card:nth-child(1) { animation-delay: .05s }
.mode-card:nth-child(2) { animation-delay: .12s }
.mode-card:nth-child(3) { animation-delay: .19s }

/* Algo list */
.algo-list {
  counter-reset: algo;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 580px;
}
.algo-list li {
  counter-increment: algo;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}
.algo-list li::before {
  content: counter(algo);
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  opacity: .35;
  text-align: right;
  line-height: 1;
}
.algo-list li span {
  font-size: .95rem;
  font-weight: 400;
  padding: .9rem 1.2rem;
  background: #fff;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color .18s, background .18s;
  cursor: default;
}
.algo-list li:hover span { border-color: var(--gold); background: #fffbf0; }

/* Homework cols */
.homework-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hw-note {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--gold);
}
.hw-note p          { font-size: .9rem; line-height: 1.75; color: #a0aab8; }
.hw-note p strong   { color: var(--gold-lt); }

/* Skills 21 */
.skills21-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.skill-group {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13,17,23,.05);
  animation: fadeUp .5s ease both;
}
.skill-group-head {
  padding: .9rem 1.3rem .75rem;
  border-bottom: 1.5px solid var(--cream);
}
.skill-group:nth-child(1) .skill-group-head { background: #fdf8e8; border-bottom-color: #e8d070; }
.skill-group:nth-child(2) .skill-group-head { background: #eaf5f2; border-bottom-color: #6dcfb8; }
.skill-group:nth-child(3) .skill-group-head { background: #fdf0f0; border-bottom-color: #e08080; }

.skill-group-head h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .05em;
}
.skill-group ul {
  list-style: none;
  padding: .9rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.skill-group ul li {
  font-size: .83rem;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
  color: #4a5568;
}
.skill-group ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.skill-group ul li strong { color: var(--ink); font-weight: 600; }

.skill-group:nth-child(1) { animation-delay: .08s }
.skill-group:nth-child(2) { animation-delay: .16s }
.skill-group:nth-child(3) { animation-delay: .24s }

/* Competences */
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 1.8rem; }

.comp-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream);
  box-shadow: 0 2px 8px rgba(13,17,23,.04);
  transition: transform .2s, box-shadow .2s;
  animation: fadeUp .45s ease both;
}
.comp-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(13,17,23,.09); }

.comp-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  text-align: right;
}
.comp-body h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.comp-body p { font-size: .83rem; line-height: 1.7; color: #4a5568; }

.comp-callouts { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.callout {
  background: var(--gold-lt);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: .75rem 1.2rem;
  font-family: 'Geologica', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.comp-item:nth-child(odd)  { animation-delay: .04s }
.comp-item:nth-child(even) { animation-delay: .10s }


/* ═══════════════════════════════════════════════════════════════
   16. HOMEWORK SKILLS PAGE — progress & routine cards
═══════════════════════════════════════════════════════════════ */

.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 5rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
}

/* Progress bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
  background: #fff;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius);
  padding: .9rem 1.4rem;
}
.progress-track {
  flex: 1;
  height: 7px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), #28a08a);
  border-radius: 4px;
  transition: width .35s ease;
}
.progress-label {
  font-family: 'Unbounded', sans-serif;
  font-size: .6rem;
  color: #6a7585;
  min-width: 52px;
  text-align: right;
}
.reset-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border: 1.5px solid var(--cream);
  border-radius: 20px;
  background: transparent;
  color: #7a8898;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.reset-btn:hover { background: var(--cream); border-color: #bbb; }

/* Routine grid */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 4rem;
}

.r-card {
  background: #fff;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  animation: fadeUp .45s ease both;
  box-shadow: 0 2px 8px rgba(13,17,23,.05);
}
.r-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13,17,23,.1);
}
.r-card.done         { opacity: .45; }
.r-card.done .r-check{ display: flex; }

.r-icon {
  background: var(--cream);
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  position: relative;
}
.r-num {
  position: absolute;
  top: 6px; left: 9px;
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  color: #bbb;
}
.r-check {
  display: none;
  position: absolute;
  top: 6px; right: 7px;
  width: 21px; height: 21px;
  background: var(--teal);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.r-check svg { width: 11px; height: 11px; }

.r-label {
  padding: 9px 9px 11px;
  font-family: 'Geologica', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: #4a5568;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r-card:nth-child(1) { animation-delay: .04s }
.r-card:nth-child(2) { animation-delay: .09s }
.r-card:nth-child(3) { animation-delay: .14s }
.r-card:nth-child(4) { animation-delay: .19s }
.r-card:nth-child(5) { animation-delay: .24s }
.r-card:nth-child(6) { animation-delay: .29s }
.r-card:nth-child(7) { animation-delay: .34s }

/* Skills groups */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.sg-card {
  background: #fff;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,17,23,.05);
  animation: fadeUp .5s ease both;
  transition: transform .22s, box-shadow .22s;
}
.sg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,17,23,.1); }

.sg-head {
  padding: 1rem 1.3rem .85rem;
  border-bottom: 1.5px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sg-head h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.sg-card:nth-child(1) .sg-head { background: #fdf8e8; border-bottom-color: #e8d070; }
.sg-card:nth-child(2) .sg-head { background: #eaf5f2; border-bottom-color: #6dcfb8; }
.sg-card:nth-child(3) .sg-head { background: #fdf0f0; border-bottom-color: #e08080; }

.sg-body { padding: 1rem 1.3rem 1.3rem; }

.sg-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--cream);
}
.sg-item:last-child { border-bottom: none; }

.sg-item-icon {
  width: 42px; height: 42px;
  background: var(--cream);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sg-item-text strong {
  display: block;
  font-family: 'Geologica', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}
.sg-item-text span { font-size: .7rem; color: #9aa5b4; font-style: italic; }

.link-ref {
  font-family: 'Geologica', sans-serif;
  font-size: .78rem;
  color: #9aa5b4;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.link-ref a { color: var(--blue); }

.sg-card:nth-child(1) { animation-delay: .1s }
.sg-card:nth-child(2) { animation-delay: .2s }
.sg-card:nth-child(3) { animation-delay: .3s }


/* ═══════════════════════════════════════════════════════════════
   17. LESSON HEADER COMPONENT
═══════════════════════════════════════════════════════════════ */

.lesson-header { max-width: 960px; margin: 0 auto; }

.lh-card {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: visible;
  border: 1.5px solid rgba(201,168,76,.35);
  box-shadow: 0 6px 28px rgba(13,17,23,.15);
}

.lh-icon-block {
  background: #1a3a6b;
  width: 90px; min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px solid rgba(201,168,76,.35);
  border-radius: var(--radius) 0 0 var(--radius);
  cursor: pointer;
  position: relative;
  transition: background .18s;
  user-select: none;
}
.lh-icon-block:hover { background: #243f7a; }

.lh-icon-emoji { font-size: 38px; line-height: 1; display: block; }

.lh-icon-hint {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  font-size: .48rem;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  pointer-events: none;
}

.lh-picker {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--ink);
  border: 1.5px solid rgba(201,168,76,.4);
  border-radius: var(--radius);
  padding: 10px;
  z-index: 100;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 220px;
  box-shadow: 0 10px 32px rgba(13,17,23,.35);
}
.lh-picker.open { display: grid; }
.lh-picker span {
  font-size: 22px;
  cursor: pointer;
  text-align: center;
  padding: 5px;
  border-radius: 8px;
  line-height: 1.3;
  transition: background .12s;
}
.lh-picker span:hover { background: rgba(255,255,255,.1); }

.lh-main {
  flex: 1;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  transition: background .3s;
}

.lh-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  text-transform: uppercase;
  cursor: text;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.lh-title:focus {
  border-bottom-color: var(--gold);
  white-space: normal;
  overflow: visible;
}

.lh-goal-box {
  background: rgba(201,168,76,.15);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 9px 15px;
  min-width: 155px;
  max-width: 215px;
  text-align: center;
  flex-shrink: 0;
  transition: background .15s;
}
.lh-goal-box:hover { background: rgba(201,168,76,.25); }

.lh-goal-label {
  font-family: 'Unbounded', sans-serif;
  font-size: .5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.lh-goal-text {
  font-family: 'Geologica', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: #e0ddd6;
  line-height: 1.45;
  outline: none;
  cursor: text;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.lh-goal-text:focus { border-bottom-color: var(--gold); }

.lh-check {
  width: 66px; min-width: 66px;
  background: rgba(201,168,76,.08);
  border-left: 1.5px solid rgba(201,168,76,.35);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lh-check svg { width: 34px; height: 34px; }

/* Controls panel */
.lh-controls {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--ink);
  border: 1.5px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
}

.lh-controls label {
  font-family: 'Unbounded', sans-serif;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 4px;
}

.lh-controls input[type=text] {
  font-family: 'Geologica', sans-serif;
  font-size: .85rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .45rem .9rem;
  color: #e0ddd6;
  outline: none;
  width: 230px;
  transition: border-color .15s;
}
.lh-controls input[type=text]::placeholder { color: #4a5568; }
.lh-controls input[type=text]:focus        { border-color: var(--gold); }

.lh-controls select {
  font-family: 'Geologica', sans-serif;
  font-size: .85rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .45rem .9rem;
  color: #e0ddd6;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.lh-controls select:focus          { border-color: var(--gold); }
.lh-controls select option         { background: #1a1a2e; color: #e0ddd6; }

.ctrl-sep { width: 1px; height: 28px; background: rgba(255,255,255,.1); }


/* ═══════════════════════════════════════════════════════════════
   18. ДЕРЖСТАНДАРТ — result cards & group headers
═══════════════════════════════════════════════════════════════ */

/* Group header block */
.group-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.group-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,.15));
  pointer-events: none;
}

/* Amber / teal accent variants */
.group-header.amber { background: linear-gradient(135deg, #3d2000 0%, #1a0e00 100%); }
.group-header.amber .group-num  { color: #f4c430; }
.group-header.amber .group-code { color: #f4c430; }
.group-header.amber .badge-class { background: rgba(244,196,48,.2); color: #f4c430; border-color: rgba(244,196,48,.35); }
.group-header.amber .badge-count { background: rgba(180,100,0,.3);  color: #ffc86e; border-color: rgba(180,100,0,.4); }

.group-header.teal { background: linear-gradient(135deg, #0d3028 0%, #061a14 100%); }
.group-header.teal .group-num  { color: #4dd8b8; }
.group-header.teal .group-code { color: #4dd8b8; }
.group-header.teal .badge-class { background: rgba(77,216,184,.2); color: #4dd8b8; border-color: rgba(77,216,184,.35); }
.group-header.teal .badge-count { background: rgba(26,107,90,.3);  color: #80f0d8; border-color: rgba(26,107,90,.4); }

.group-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  opacity: .9;
}
.group-code {
  font-family: 'Unbounded', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.group-name {
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: #e0ddd6;
}
.group-meta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }

.group-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 20px;
}
.badge-class { background: rgba(201,168,76,.2);  color: var(--gold-lt); border: 1px solid rgba(201,168,76,.35); }
.badge-count { background: rgba(45,95,168,.3);   color: #8bbfff;        border: 1px solid rgba(45,95,168,.4); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream);
  box-shadow: 0 2px 12px rgba(13,17,23,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  animation: fadeUp .5s ease both;
}
.result-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(13,17,23,.13); }

.card-top {
  padding: 1.1rem 1.4rem .8rem;
  border-bottom: 1px solid var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
}
.card-code-pill {
  font-family: 'Unbounded', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--gold);
  border-radius: 6px;
  padding: .3rem .7rem;
  letter-spacing: .1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-class-pill {
  font-family: 'Unbounded', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .25rem .65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.cls-2 { background: #e8f0fb; color: var(--blue); border: 1px solid #c3d5f4; }
.cls-4 { background: #eafaf4; color: var(--teal); border: 1px solid #b3e8d5; }

.card-body {
  padding: 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-field-label {
  font-family: 'Unbounded', sans-serif;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9aa5b4;
  margin-bottom: .3rem;
}
.card-general {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.card-specific {
  font-size: .84rem;
  color: #4a5568;
  line-height: 1.62;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

/* Stagger result-cards */
.cards-grid .result-card:nth-child(1)  { animation-delay: .05s }
.cards-grid .result-card:nth-child(2)  { animation-delay: .10s }
.cards-grid .result-card:nth-child(3)  { animation-delay: .15s }
.cards-grid .result-card:nth-child(4)  { animation-delay: .20s }
.cards-grid .result-card:nth-child(5)  { animation-delay: .25s }
.cards-grid .result-card:nth-child(6)  { animation-delay: .30s }
.cards-grid .result-card:nth-child(7)  { animation-delay: .35s }
.cards-grid .result-card:nth-child(8)  { animation-delay: .40s }
.cards-grid .result-card:nth-child(9)  { animation-delay: .45s }
.cards-grid .result-card:nth-child(10) { animation-delay: .50s }

/* Dual-period cards (5-6 / 7-9) */
.dual-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.dual-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream);
  box-shadow: 0 2px 12px rgba(13,17,23,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  animation: fadeUp .5s ease both;
}
.dual-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(13,17,23,.13); }

.dual-card-top {
  padding: .9rem 1.3rem .7rem;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.dual-card-code {
  font-family: 'Unbounded', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--gold);
  border-radius: 6px;
  padding: .28rem .65rem;
  letter-spacing: .1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.dual-card-general {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  padding: .85rem 1.3rem .5rem;
}

.dual-periods { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }

.period-col {
  padding: .75rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.period-col:first-child { border-right: 1px solid var(--cream); background: #fafcff; }

.period-label {
  font-family: 'Unbounded', sans-serif;
  font-size: .51rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-bottom: .15rem;
}
.label-56 { background: #e8f0fb; color: var(--blue); border: 1px solid #c3d5f4; }
.label-79 { background: #eafaf4; color: var(--teal); border: 1px solid #b3e8d5; }

.period-text {
  font-size: .8rem;
  color: #4a5568;
  line-height: 1.6;
  padding-left: .75rem;
  border-left: 3px solid var(--gold);
}
.period-text.empty { color: #b0bbc8; font-style: italic; border-left-color: #e0e0e0; }

/* Stagger dual-cards */
.dual-cards-grid .dual-card:nth-child(1) { animation-delay: .05s }
.dual-cards-grid .dual-card:nth-child(2) { animation-delay: .12s }
.dual-cards-grid .dual-card:nth-child(3) { animation-delay: .19s }
.dual-cards-grid .dual-card:nth-child(4) { animation-delay: .26s }
.dual-cards-grid .dual-card:nth-child(5) { animation-delay: .33s }
.dual-cards-grid .dual-card:nth-child(6) { animation-delay: .40s }
.dual-cards-grid .dual-card:nth-child(7) { animation-delay: .47s }
.dual-cards-grid .dual-card:nth-child(8) { animation-delay: .54s }


/* ═══════════════════════════════════════════════════════════════
   19. BLOOM TAXONOMY SECTION
═══════════════════════════════════════════════════════════════ */

.bloom-header {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.bloom-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,.08));
  pointer-events: none;
}

.vidget {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.vidget.remember__mode { background: rgba(108,92,231,.25); border: 2px solid rgba(108,92,231,.5); }
.vidget .done {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(201,168,76,.6);
  position: relative;
}
.vidget .done::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.bloom-header .section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(.85rem, 1.8vw, 1.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.bloom-header .section-title.skill-up {
  background: linear-gradient(90deg, var(--gold), #e8d5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bloom-header .aim  { font-family: 'Geologica', sans-serif; font-size: .88rem; font-weight: 500; color: #c8d4e0; margin-bottom: .4rem; }
.bloom-header .info { font-size: .78rem; color: #6a7585; line-height: 1.6; }

.bloom-routines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

.bloom {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--cream);
  background: #fff;
  box-shadow: 0 2px 10px rgba(13,17,23,.05);
  transition: transform .22s, box-shadow .22s;
  animation: fadeUp .45s ease both;
}
.bloom:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,17,23,.12); }

.bloom.remember__mode   { border-top: 3px solid #6c5ce7; }
.bloom.understand__mode { border-top: 3px solid #2d5fa8; }
.bloom.apply__mode      { border-top: 3px solid #1a6b5a; }
.bloom.analize__mode    { border-top: 3px solid #c9a84c; }
.bloom.evaluate__mode   { border-top: 3px solid #c0511a; }
.bloom.create__mode     { border-top: 3px solid #8b1a1a; }

.routine-title {
  font-family: 'Unbounded', sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .75rem 1rem .6rem;
  border-bottom: 1px solid var(--cream);
}
.remember__mode  .routine-title { background: #f0eeff; color: #6c5ce7; }
.understand__mode .routine-title { background: #edf2fc; color: #2d5fa8; }
.apply__mode     .routine-title { background: #eaf5f2; color: #1a6b5a; }
.analize__mode   .routine-title { background: #fdf8e8; color: #8a6800; }
.evaluate__mode  .routine-title { background: #fdf0e8; color: #c0511a; }
.create__mode    .routine-title { background: #fdf0f0; color: #8b1a1a; }

.mode-routines {
  list-style: none;
  padding: .6rem .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.mode-routine {
  font-family: 'Geologica', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  color: #4a5568;
  padding: .32rem .7rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  cursor: default;
}
.bloom.remember__mode   .mode-routine:hover { background: #f0eeff; color: #6c5ce7; }
.bloom.understand__mode .mode-routine:hover { background: #edf2fc; color: #2d5fa8; }
.bloom.apply__mode      .mode-routine:hover { background: #eaf5f2; color: #1a6b5a; }
.bloom.analize__mode    .mode-routine:hover { background: #fdf8e8; color: #8a6800; }
.bloom.evaluate__mode   .mode-routine:hover { background: #fdf0e8; color: #c0511a; }
.bloom.create__mode     .mode-routine:hover { background: #fdf0f0; color: #8b1a1a; }

.bloom:nth-child(1) { animation-delay: .05s }
.bloom:nth-child(2) { animation-delay: .11s }
.bloom:nth-child(3) { animation-delay: .17s }
.bloom:nth-child(4) { animation-delay: .23s }
.bloom:nth-child(5) { animation-delay: .29s }
.bloom:nth-child(6) { animation-delay: .35s }


/* ═══════════════════════════════════════════════════════════════
   20. RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .nav .nav__link--gdisk { display: none; }
}
@media (max-width: 720px) {
  .hero-inner      { grid-template-columns: 1fr; text-align: center; }
  .hero-actions    { justify-content: center; }
}
@media (max-width: 680px) {
  .homework-cols   { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav             { display: none; }
  .header-inner    { grid-template-columns: 1fr; gap: 20px; }
  .logo-step       { font-size: 4rem; }
  .contribute-inner{ grid-template-columns: 1fr; }
  .contribute-inner .btn { width: 100%; justify-content: center; }
  .footer-container{ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .ds-nav a:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
  .routine-grid    { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .lh-goal-box     { min-width: 110px; max-width: 140px; }
  .lh-main         { padding: 10px 12px; gap: 10px; }
  .lh-icon-block   { width: 62px; min-width: 62px; }
  .lh-icon-emoji   { font-size: 26px; }
  .lh-check        { width: 46px; min-width: 46px; }
  .lh-controls input[type=text] { width: 160px; }
}
@media (max-width: 500px) {
  .dual-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dual-periods    { grid-template-columns: 1fr; }
  .period-col:first-child { border-right: none; border-bottom: 1px solid var(--cream); }
}
