/* ============================================================
   ПЛЮША · Как пользоваться интернетом
   Дизайн-система: светлая, дружелюбная, яркие акценты
   ============================================================ */

:root {
  /* Surfaces */
  --bg: oklch(0.99 0.006 95);
  --bg-soft: oklch(0.975 0.012 95);
  --card: oklch(1 0 0);
  --ink: oklch(0.27 0.03 285);
  --ink-soft: oklch(0.45 0.03 285);
  --ink-faint: oklch(0.62 0.025 285);
  --line: oklch(0.9 0.012 285);

  /* Bright accents — shared lightness/chroma, varied hue */
  --coral:  oklch(0.71 0.17 32);
  --sun:    oklch(0.82 0.15 88);
  --mint:   oklch(0.74 0.14 165);
  --sky:    oklch(0.7 0.15 235);
  --violet: oklch(0.64 0.17 300);
  --pink:   oklch(0.72 0.16 350);

  --coral-soft:  oklch(0.94 0.05 32);
  --sun-soft:    oklch(0.95 0.06 88);
  --mint-soft:   oklch(0.94 0.05 165);
  --sky-soft:    oklch(0.94 0.05 235);
  --violet-soft: oklch(0.94 0.05 300);
  --pink-soft:   oklch(0.95 0.05 350);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px oklch(0.5 0.05 285 / 0.08);
  --shadow: 0 14px 40px oklch(0.5 0.05 285 / 0.12);
  --shadow-lg: 0 28px 70px oklch(0.4 0.06 285 / 0.18);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Decorative blurred blobs in the page background */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
}
.blob.b1 { width: 460px; height: 460px; top: -120px; left: -100px;
  background: radial-gradient(circle, var(--sky), transparent 70%); }
.blob.b2 { width: 520px; height: 520px; top: 30%; right: -160px;
  background: radial-gradient(circle, var(--pink), transparent 70%); }
.blob.b3 { width: 480px; height: 480px; bottom: -120px; left: 20%;
  background: radial-gradient(circle, var(--mint), transparent 70%); }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Language toggle visibility */
body.lang-ru [data-lang="en"] { display: none !important; }
body.lang-en [data-lang="ru"] { display: none !important; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.99 0.006 95 / 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand .avatar { width: 42px; height: 42px; flex: 0 0 auto; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 12px; color: var(--ink-faint); font-weight: 600; margin-top: -2px; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 15px;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--sky-soft); color: var(--ink); }

.lang-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; gap: 2px; flex: 0 0 auto;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-weight: 800; font-size: 14px; color: var(--ink-faint);
  padding: 7px 14px; border-radius: 999px; transition: all .2s;
}
.lang-toggle button.active { background: var(--ink); color: white; }

.menu-btn { display: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; width: 44px; height: 44px; cursor: pointer; font-size: 20px; }

/* ============================================================
   BUTTONS / CHIPS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; border: 0; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .25s, filter .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--sky), var(--violet)); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--sky); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 92px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 16px; }
.section-head p { font-size: 20px; color: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.5vw, 78px); margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(115deg, var(--sky), var(--violet) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 22px; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; display: grid; place-items: center; }
.plusha-stage {
  position: relative; width: min(420px, 100%); aspect-ratio: 1;
}
.plusha-stage::before { content: ""; display: block; padding-bottom: 100%; }
.plusha-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--sun-soft), var(--mint-soft), var(--sky-soft), var(--pink-soft), var(--sun-soft));
  animation: spin 22s linear infinite;
}
.plusha-disc::after { content:""; position:absolute; inset: 26px; border-radius:50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.plusha-photo {
  position: absolute; inset: 14%; z-index: 2; display: grid; place-items: center;
}
.plusha-svg-big { width: 100%; height: 100%;
  filter: drop-shadow(0 14px 26px oklch(0.4 0.06 285 / 0.2)); animation: bob 6s ease-in-out infinite; }

.float-badge {
  position: absolute; z-index: 4; background: var(--card); border-radius: 16px;
  padding: 11px 16px; box-shadow: var(--shadow); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  animation: bob 4s ease-in-out infinite;
}
.float-badge .emo { font-size: 18px; line-height: 1; }
.fb1 { top: -4%;  left: -13%; animation-delay: 0s; }
.fb2 { top: -7%; right: -9%; animation-delay: .5s; }
.fb3 { top: 40%; left: -18%; animation-delay: 1s; }
.fb4 { top: 44%; right: -16%; animation-delay: 1.5s; }
.fb5 { bottom: 4%; left: -8%; animation-delay: 2s; }
.fb6 { bottom: -3%; right: 0%; animation-delay: 2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }


/* ============================================================
   PLUSHA SPEECH BUBBLE
   ============================================================ */
.plusha-says {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, var(--violet-soft), var(--sky-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 8px; box-shadow: var(--shadow-sm);
}
.plusha-says .avatar { width: 56px; height: 56px; flex: 0 0 auto; }
.plusha-says .bubble-body { font-size: 18px; }
.plusha-says .bubble-body b { color: var(--violet); }
.plusha-says .who { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--violet); display:block; margin-bottom: 2px; }

/* ============================================================
   "WHAT IS INTERNET" cards
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .ic-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; font-size: 28px; }
.info-card h3 { font-size: 22px; margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); font-size: 17px; }

.analogy {
  margin-top: 40px; background: var(--sun-soft); border-radius: var(--radius);
  padding: 36px 40px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.analogy .big-emoji { font-size: 56px; }
.analogy p { font-size: 20px; max-width: 760px; }

/* ============================================================
   HISTORY narrative
   ============================================================ */
.history-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.history-intro .pic {
  border-radius: var(--radius); aspect-ratio: 4/3; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--sky-soft), var(--sky-soft) 14px, var(--violet-soft) 14px, var(--violet-soft) 28px);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.history-intro .pic .ph-note { font-family: ui-monospace, monospace; font-size: 14px; color: var(--ink-soft);
  background: var(--card); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.retro-svg { width: 100%; height: auto; display: block; }
.retro-reel { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .retro-reel { animation: spin 7s linear infinite; }
  .retro-cursor { animation: blink 1.1s steps(1, end) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   TIMELINE (interactive)
   ============================================================ */
.timeline { position: relative; margin-top: 20px; }
.timeline-track {
  display: flex; gap: 0; overflow-x: auto; padding: 30px 4px 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.timeline-track::-webkit-scrollbar { height: 8px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.tl-line { position: absolute; left: 0; right: 0; top: 64px; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)); border-radius: 999px; opacity: 0.4; }
.tl-item { flex: 0 0 230px; scroll-snap-align: center; padding: 0 12px; position: relative; cursor: pointer; }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--violet); }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 4px solid var(--violet);
  margin: 10px 0; transition: transform .2s, background .2s; }
.tl-item:hover .tl-dot { transform: scale(1.3); }
.tl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: var(--shadow-sm); transition: all .25s var(--ease); min-height: 132px;
}
.tl-item:hover .tl-card, .tl-item.active .tl-card { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--violet); }
.tl-card h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 7px; }
.tl-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.tl-hint { text-align: center; color: var(--ink-faint); font-size: 14px; font-weight: 700; margin-top: 10px; }

/* ============================================================
   FLIP CARDS (opportunities)
   ============================================================ */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flip { perspective: 1200px; height: 280px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.flip-front { background: var(--card); }
.flip-front .fc-icon { font-size: 44px; margin-bottom: auto; }
.flip-front h3 { font-size: 22px; margin-bottom: 8px; }
.flip-front .tap { font-size: 14px; font-weight: 800; color: var(--ink-faint); display:flex; align-items:center; gap:6px; }
.flip-back { transform: rotateY(180deg); color: white; }
.flip-back p { font-size: 16.5px; line-height: 1.5; }
.flip-back h3 { font-size: 20px; margin-bottom: 10px; }

/* ============================================================
   THREATS
   ============================================================ */
.threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.threat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s var(--ease);
}
.threat:hover { transform: translateY(-5px); }
.threat::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; background: var(--coral); }
.threat .t-icon { font-size: 36px; margin-bottom: 14px; }
.threat h3 { font-size: 21px; margin-bottom: 8px; }
.threat p { color: var(--ink-soft); font-size: 16.5px; }

/* ============================================================
   SAFETY RULES
   ============================================================ */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.rule {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
  align-items: flex-start; transition: transform .2s var(--ease);
}
.rule:hover { transform: translateX(6px); }
.rule .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; }
.rule h3 { font-size: 18px; margin-bottom: 3px; }
.rule p { font-size: 16px; color: var(--ink-soft); }

/* Password checker */
.pw-box {
  background: linear-gradient(135deg, var(--violet-soft), var(--pink-soft));
  border-radius: var(--radius); padding: 36px; border: 1px solid var(--line);
}
.pw-box h3 { font-size: 26px; margin-bottom: 8px; }
.pw-box > p { color: var(--ink-soft); margin-bottom: 22px; }
.pw-input-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pw-input {
  flex: 1 1 280px; font-family: var(--font-body); font-size: 18px; font-weight: 600;
  padding: 15px 20px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
}
.pw-input:focus { outline: none; border-color: var(--violet); }
.pw-eye { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 0 18px; cursor: pointer; font-size: 20px; }
.pw-meter { height: 14px; border-radius: 999px; background: var(--card); margin: 20px 0 10px; overflow: hidden; border: 1px solid var(--line); }
.pw-fill { height: 100%; width: 0; border-radius: 999px; transition: width .35s var(--ease), background .35s; }
.pw-label { font-weight: 800; font-size: 17px; }
.pw-tips { margin-top: 16px; display: grid; gap: 7px; }
.pw-tip { display: flex; align-items: center; gap: 9px; font-size: 15.5px; color: var(--ink-soft); font-weight: 600; }
.pw-tip .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--line); color: white; flex: 0 0 auto; transition: background .2s; }
.pw-tip.ok .tick { background: var(--mint); }
.pw-tip.ok { color: var(--ink); }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.quiz-progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quiz-progress .qp-bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 999px; margin-left: 16px; overflow: hidden; }
.quiz-progress .qp-fill { height: 100%; background: linear-gradient(90deg, var(--sky), var(--violet)); width: 0; transition: width .4s var(--ease); border-radius: 999px; }
.quiz-q { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); margin-bottom: 26px; line-height: 1.25; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  text-align: left; font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--ink);
  background: var(--bg-soft); border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; cursor: pointer;
  transition: all .18s var(--ease); display: flex; align-items: center; gap: 12px;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--violet); transform: translateX(4px); }
.quiz-opt .mark { margin-left: auto; font-size: 20px; opacity: 0; }
.quiz-opt.correct { background: var(--mint-soft); border-color: var(--mint); }
.quiz-opt.correct .mark { opacity: 1; }
.quiz-opt.wrong { background: var(--coral-soft); border-color: var(--coral); }
.quiz-opt.wrong .mark { opacity: 1; }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback { margin-top: 20px; padding: 16px 20px; border-radius: 14px; font-size: 17px; font-weight: 700;
  display: none; align-items: flex-start; gap: 12px; }
.quiz-feedback.show { display: flex; }
.quiz-feedback.good { background: var(--mint-soft); }
.quiz-feedback.bad { background: var(--coral-soft); }
.quiz-foot { margin-top: 24px; display: flex; justify-content: flex-end; }
.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result .score { font-family: var(--font-display); font-size: 64px; color: var(--violet); }
.quiz-result h3 { font-size: 30px; margin: 8px 0 12px; }
.quiz-result p { color: var(--ink-soft); font-size: 19px; margin-bottom: 24px; }

/* ============================================================
   GLOSSARY (accordion)
   ============================================================ */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.term {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.term-q { width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
  padding: 20px 22px; display: flex; align-items: center; gap: 12px; }
.term-q .plus { margin-left: auto; font-size: 22px; color: var(--violet); transition: transform .3s var(--ease); }
.term.open .term-q .plus { transform: rotate(45deg); }
.term-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.term-a-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: 16.5px; }

/* ============================================================
   PARENTS
   ============================================================ */
.parents {
  background: linear-gradient(135deg, var(--sky-soft), var(--mint-soft));
  border-radius: var(--radius); padding: 44px;
}
.parent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.plink { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .25s; }
.plink:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plink .pl-ic { font-size: 30px; margin-bottom: 12px; }
.plink h3 { font-size: 18px; margin-bottom: 6px; }
.plink p { font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-grid .avatar { width: 52px; height: 52px; }
.site-footer p { color: var(--ink-soft); font-size: 16px; }
.site-footer .disc { margin-left: auto; max-width: 420px; font-size: 14px; color: var(--ink-faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .plusha-disc, .float-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .cards-3, .threat-grid, .parent-grid { grid-template-columns: 1fr 1fr; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .history-intro { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--card); padding: 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-btn { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .cards-3, .threat-grid, .parent-grid, .flip-grid, .safety-grid { grid-template-columns: 1fr; }
  .analogy { padding: 26px; }
  .quiz, .pw-box, .parents { padding: 26px; }
  .hero p.lead { font-size: 19px; }
  .float-badge { display: none; }
}
