:root{
  --bg:#f5f8ff;
  --panel:#ffffff;
  --ink:#182334;
  --muted:#66758a;
  --line:#dfe8f4;
  --green:#58cc02;
  --green-dark:#44a302;
  --blue:#1cb0f6;
  --yellow:#ffc800;
  --orange:#ff9600;
  --red:#ff4b4b;
  --purple:#8b5cf6;
  --shadow:0 18px 45px rgba(24,35,52,.12);
  --hard:0 8px 0 rgba(24,35,52,.12),0 24px 50px rgba(24,35,52,.12);
  --radius:28px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top left,#e4fbff 0,#f5f8ff 34%,#fff7e6 100%);
  color:var(--ink);
  min-height:100vh;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Шапка */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  width:min(1320px,calc(100% - 28px));
  margin:10px auto 0;
  display:grid;
  grid-template-columns:minmax(270px,auto) minmax(0,1fr) auto;
  grid-template-areas:"brand nav actions";
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border:2px solid rgba(223,232,244,.9);
  border-radius:30px;
  padding:12px 16px;
  box-shadow:0 10px 34px rgba(24,35,52,.10);
  overflow:visible;
}

/* Шапка пользователя: две строки */
.topbar:has(.hud){
  width:min(1420px,calc(100% - 28px));
  grid-template-columns:minmax(270px,auto) auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  gap:10px 18px;
  padding:12px 18px 14px;
}

.brand{
  grid-area:brand;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1000;
  letter-spacing:-.02em;
  min-width:0;
}

.brand > div:last-child{
  min-width:0;
}

.brand-mark{
  width:52px;
  height:52px;
  border-radius:17px;
  background:linear-gradient(145deg,#6fe21a,#1cb0f6);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:27px;
  box-shadow:0 7px 0 rgba(70,155,25,.25);
  flex:0 0 auto;
}

.brand strong{
  display:block;
  font-size:18px;
  line-height:1.05;
  max-width:290px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand small{
  display:block;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  line-height:1.1;
  margin-top:2px;
}

.nav{
  grid-area:nav;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  padding:3px;
}

.topbar:has(.hud) .nav{
  width:100%;
  justify-content:center;
  flex-wrap:wrap;
  overflow:visible;
  padding:6px 4px 0;
  border-top:1px solid rgba(223,232,244,.75);
}

.nav::-webkit-scrollbar{
  display:none;
}

.nav button{
  flex:0 0 auto;
  white-space:nowrap;
  border:0;
  background:transparent;
  color:#536274;
  font-weight:1000;
  border-radius:999px;
  padding:10px 13px;
  font-size:16px;
  line-height:1;
  transition:.16s ease;
}

.topbar:has(.hud) .nav button{
  font-size:15px;
  padding:9px 12px;
}

.nav button:hover,
.nav button.active{
  background:#eaf7ff;
  color:#0c74ae;
}

.top-actions{
  grid-area:actions;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:max-content;
  flex-shrink:0;
}

.topbar:has(.hud) .top-actions{
  justify-self:end;
  flex-wrap:wrap;
}

.top-actions select{
  border:2px solid var(--line);
  border-radius:999px;
  background:#fff;
  padding:10px 14px;
  font-weight:900;
  color:var(--ink);
  outline:0;
  max-width:160px;
  font-size:15px;
}

.hud{
  display:flex;
  gap:6px;
  align-items:center;
  flex-shrink:0;
}

.hud span,
.guest-pill{
  border:2px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:1000;
  color:#35455a;
  white-space:nowrap;
  font-size:14px;
}

.guest-pill{
  background:#fff8df;
  color:#8a5e00;
  border-color:#ffe29a;
}

/* Кнопки */

.btn{
  border:0;
  border-radius:999px;
  padding:13px 19px;
  font-weight:1000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  box-shadow:0 5px 0 rgba(24,35,52,.12);
  transition:.15s ease;
  color:var(--ink);
  background:#fff;
  line-height:1;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn:active{
  transform:translateY(2px);
  box-shadow:0 2px 0 rgba(24,35,52,.12);
}

.btn.primary{
  background:linear-gradient(180deg,#67df18,#4eb702);
  color:#fff;
  box-shadow:0 7px 0 #3f9600;
}

.btn.light{
  background:#fff;
  border:2px solid var(--line);
  color:#284057;
}

.btn.ghost{
  background:#f4f8ff;
  color:#526174;
  box-shadow:none;
  border:1px solid var(--line);
}

.btn.big{
  font-size:18px;
  padding:16px 26px;
}

.btn.small{
  font-size:14px;
  padding:10px 15px;
  box-shadow:none;
  white-space:nowrap;
}

/* Основная сетка */

.shell{
  width:min(1180px,calc(100% - 28px));
  margin:28px auto 0;
}

.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:stretch;
}

.public-hero{
  grid-template-columns:1fr;
  justify-items:center;
  margin-top:14px;
}

.competition-hero{
  margin-top:14px;
}

.hero-copy,
.hero-game-card,
.page-title,
.card,
.feature-card,
.world-path,
.lesson-card,
.game-card,
.complete-card,
.locked-page,
.auth-card,
.soft-lock{
  background:rgba(255,255,255,.94);
  border:2px solid var(--line);
  border-radius:36px;
  box-shadow:var(--hard);
}

/* Главная страница */

.public-hero .hero-copy{
  width:min(980px,100%);
  min-height:560px;
  padding:64px 72px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.public-hero .kicker{
  margin-bottom:12px;
}

.public-hero .hero-copy h1{
  max-width:780px;
  margin:10px auto 22px;
  font-size:clamp(48px,5.8vw,78px);
  line-height:.96;
  letter-spacing:-.065em;
}

.public-hero .hero-copy p{
  max-width:760px;
  margin:0 auto;
  font-size:20px;
  line-height:1.55;
}

.public-hero .hero-actions{
  justify-content:center;
  align-items:center;
  margin-top:30px;
  max-width:720px;
}

.public-hero .hero-actions .btn{
  min-width:150px;
}

.public-hero .hero-actions .btn.ghost{
  flex-basis:300px;
}

/* Остальные hero-блоки */

.hero-copy{
  padding:46px;
}

.hero-copy h1,
.page-title h1,
.complete-card h1,
.locked-page h1{
  font-size:clamp(38px,4.3vw,56px);
  line-height:.98;
  letter-spacing:-.06em;
  margin:8px 0 18px;
}

.hero-copy p,
.page-title p,
.card p,
.feature-card p,
.game-card p,
.lesson-card p,
.locked-page p,
.complete-card p{
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eaf7ff;
  color:#0879b8;
  border:1px solid #cbeeff;
  border-radius:999px;
  padding:8px 13px;
  font-weight:1000;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.hero-game-card{
  padding:30px;
  text-align:center;
  display:grid;
  align-content:center;
  gap:18px;
  overflow:hidden;
  position:relative;
}

.hero-game-card:before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle,#dfffd1 0,#dfffd1 18%,transparent 20%),
    radial-gradient(circle at 80% 20%,#dff4ff 0,#dff4ff 16%,transparent 18%);
  opacity:.85;
}

.hero-game-card > *{
  position:relative;
}

.pet-preview,
.pet-large{
  font-size:88px;
  width:140px;
  height:140px;
  margin:0 auto;
  border-radius:44px;
  background:linear-gradient(145deg,#fff8dc,#e6fbff);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 -12px 0 rgba(24,35,52,.06),0 15px 35px rgba(24,35,52,.10);
}

.hero-game-card h2{
  font-size:36px;
  line-height:1.08;
  letter-spacing:-.045em;
  margin:0;
}

/* Статистика */

.mini-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:18px;
  max-width:900px;
  margin:22px auto 0;
  width:100%;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.stat-pill{
  background:#fff;
  border:2px solid var(--line);
  border-radius:24px;
  padding:20px 12px;
  text-align:center;
  box-shadow:0 6px 0 rgba(24,35,52,.08);
  min-height:142px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.stat-pill span{
  font-size:34px;
  line-height:1;
  margin-bottom:8px;
}

.stat-pill b{
  display:block;
  font-size:24px;
  line-height:1.05;
  letter-spacing:-.03em;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

.stat-pill small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:15px;
  line-height:1.15;
  font-weight:900;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

/* Секции */

.section{
  margin-top:32px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.section-head h2,
.card h2,
.feature-card h3,
.world-head h2,
.game-card h3,
.lesson-card h3,
.auth-card h1{
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.045em;
  margin:8px 0 10px;
}

/* Преимущества */

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,280px));
  justify-content:center;
  gap:22px;
  max-width:980px;
  margin:0 auto;
}

.feature-card,
.game-card{
  padding:24px;
}

.feature-card{
  text-align:center;
}

.feature-card > div,
.game-icon,
.lesson-icon,
.world-icon{
  font-size:36px;
  width:68px;
  height:68px;
  border-radius:22px;
  background:linear-gradient(145deg,#f7ffef,#e6f7ff);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
}

.game-icon,
.lesson-icon,
.world-icon{
  margin-left:0;
}

/* Темы */

.topic-strip{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:12px;
}

.topic-strip article{
  background:#fff;
  border:2px solid var(--line);
  border-radius:24px;
  padding:16px;
  min-height:154px;
  box-shadow:0 5px 0 rgba(24,35,52,.08);
}

.topic-strip span{
  font-size:34px;
}

.topic-strip b{
  display:block;
  margin:10px 0 6px;
  font-weight:1000;
}

.topic-strip small{
  color:var(--muted);
  font-weight:800;
  line-height:1.35;
}

/* Заголовки страниц */

.page-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  padding:34px 38px;
  margin-bottom:26px;
}

.page-title h1{
  font-size:clamp(38px,4.3vw,56px);
}

.demo-card,
.daily-reward{
  background:#fff8df;
  border:2px solid #ffe29a;
  color:#8a5e00;
  border-radius:24px;
  padding:16px 18px;
  font-weight:1000;
  display:grid;
  gap:5px;
  min-width:240px;
}

.soft-lock{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(135deg,#fff9db,#f0fbff);
  padding:24px;
  margin-bottom:24px;
}

.soft-lock h2{
  font-size:34px;
  margin:0 0 8px;
  letter-spacing:-.04em;
}

.soft-lock p{
  color:#536274;
  line-height:1.55;
  margin:0;
}

/* Карта обучения */

.map-board{
  display:grid;
  gap:24px;
}

.world-path{
  padding:26px;
  overflow:hidden;
  position:relative;
}

.world-path:before{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:color-mix(in srgb,var(--accent) 18%,transparent);
  pointer-events:none;
}

.world-head{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  margin-bottom:24px;
}

.world-head h2{
  font-size:32px;
}

.world-head p{
  color:var(--muted);
  margin:0 0 12px;
}

.progress,
.lesson-progress{
  height:16px;
  background:#edf3fa;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #d8e4f2;
}

.progress span,
.lesson-progress span{
  height:100%;
  display:block;
  background:linear-gradient(90deg,var(--accent,var(--green)),var(--blue));
  border-radius:999px;
  transition:.25s ease;
}

.path-road{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  align-items:center;
  padding:18px 12px 26px;
}

.path-road:before{
  content:"";
  position:absolute;
  left:12%;
  right:12%;
  top:58px;
  height:14px;
  border-radius:999px;
  background:linear-gradient(90deg,#dfe8f4,#eef4fb);
  z-index:0;
}

.level-node{
  position:relative;
  z-index:1;
  border:0;
  background:transparent;
  display:grid;
  justify-items:center;
  gap:9px;
  text-align:center;
  color:var(--ink);
}

.level-node span{
  width:92px;
  height:92px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  background:#eef3f8;
  color:#97a6b8;
  border:5px solid #fff;
  box-shadow:0 9px 0 rgba(24,35,52,.13),0 22px 35px rgba(24,35,52,.12);
  transition:.15s ease;
}

.level-node:hover span{
  transform:translateY(-3px);
}

.level-node.done span{
  background:linear-gradient(180deg,#70e817,#4fbd00);
  color:#fff;
}

.level-node.current span{
  background:linear-gradient(180deg,#ffd84d,#ffad20);
  color:#724700;
  animation:pulse 1.7s infinite;
}

.level-node.open span{
  background:linear-gradient(180deg,#7fdfff,#1cb0f6);
  color:#fff;
}

.level-node.locked span{
  background:#e7edf5;
  color:#9cabbc;
}

.level-node b{
  max-width:180px;
  font-size:17px;
}

.level-node small{
  color:var(--muted);
  font-weight:1000;
}

.zig{
  transform:translateY(16px);
}

.zag{
  transform:translateY(-7px);
}

@keyframes pulse{
  0%,100%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.07);
  }
}

/* Уроки */

.lesson-list{
  display:grid;
  gap:16px;
}

.lesson-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:20px;
}

.lesson-card.disabled{
  opacity:.7;
}

.lesson-card h3,
.game-card h3{
  font-size:24px;
}

.lesson-card p,
.game-card p{
  margin:0 0 8px;
}

.lesson-card small,
.game-card small{
  font-weight:1000;
  color:#8a5e00;
}

.lesson-screen{
  margin-bottom:20px;
}

.lesson-top{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
  margin-bottom:20px;
}

.lesson-progress{
  height:20px;
  background:#fff;
  border-width:2px;
}

.lesson-hud{
  display:flex;
  gap:8px;
}

.lesson-hud span{
  background:#fff;
  border:2px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  font-weight:1000;
  box-shadow:0 4px 0 rgba(24,35,52,.08);
}

.lesson-layout{
  display:grid;
  grid-template-columns:290px 1fr;
  gap:22px;
  align-items:start;
}

.mentor-card,
.task-card{
  background:#fff;
  border:2px solid var(--line);
  border-radius:34px;
  box-shadow:var(--hard);
}

.mentor-card{
  padding:24px;
  position:sticky;
  top:118px;
}

.mentor-avatar{
  font-size:64px;
  width:112px;
  height:112px;
  border-radius:34px;
  background:linear-gradient(145deg,#fff9db,#e8fbff);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  box-shadow:inset 0 -9px 0 rgba(24,35,52,.06);
}

.mentor-card h3{
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.04em;
  margin:0 0 10px;
}

.mentor-card p{
  color:var(--muted);
  line-height:1.55;
}

.hint-box{
  background:#fff8df;
  border:2px solid #ffe29a;
  color:#8a5e00;
  border-radius:18px;
  padding:12px;
  font-weight:1000;
}

.task-card{
  padding:34px;
  min-height:520px;
}

.task-kicker{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.task-kicker span,
.timer-pill{
  background:#f4faff;
  border:1px solid #dbeaf7;
  border-radius:999px;
  padding:8px 12px;
  color:#37536b;
  font-weight:1000;
}

.timer-pill{
  background:#fff3cf!important;
  color:#8a5e00!important;
  border-color:#ffe29a!important;
}

.task-card h1{
  font-size:38px;
  line-height:1.08;
  letter-spacing:-.045em;
  margin:0 0 16px;
}

.scene-text{
  font-size:18px;
  line-height:1.55;
  color:#43566c;
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:22px;
  padding:17px;
}

.option-grid,
.link-list,
.chip-grid,
.builder-grid,
.pair-list,
.sort-list{
  display:grid;
  gap:12px;
  margin:18px 0;
}

.answer-option,
.link-choice,
.chip,
.part{
  background:#fff;
  border:2px solid var(--line);
  border-radius:20px;
  padding:16px;
  text-align:left;
  font-weight:1000;
  color:#26364a;
  box-shadow:0 5px 0 rgba(24,35,52,.08);
  transition:.14s ease;
}

.answer-option:hover,
.link-choice:hover,
.chip:hover,
.part:hover{
  transform:translateY(-2px);
  border-color:var(--blue);
}

.answer-option.selected,
.link-choice.selected,
.chip.selected,
.part.selected{
  background:#eaffdf;
  border-color:#86e345;
  color:#286d00;
}

.link-choice{
  display:flex;
  align-items:center;
  gap:12px;
}

.link-choice code{
  white-space:normal;
  word-break:break-word;
  color:#1e5f84;
}

.chip-grid,
.builder-grid{
  grid-template-columns:repeat(2,1fr);
}

.chip,
.part{
  text-align:center;
}

.pair-row{
  display:grid;
  grid-template-columns:.9fr 1.2fr;
  align-items:center;
  gap:12px;
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:20px;
  padding:13px;
  font-weight:1000;
}

.pair-row select,
.auth-card input,
.auth-card select,
.auth-card textarea{
  width:100%;
  border:2px solid var(--line);
  border-radius:16px;
  padding:13px;
  background:#fff;
  outline:0;
  font-weight:900;
}

.auth-card textarea{
  min-height:110px;
  resize:vertical;
}

.sort-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:20px;
  padding:12px;
}

.sort-row div{
  display:flex;
  gap:8px;
}

.sort-row button{
  border:2px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:9px 12px;
  font-weight:1000;
}

.sort-row button.picked:first-child{
  background:#eaffdf;
  border-color:#86e345;
  color:#286d00;
}

.sort-row button.picked:last-child{
  background:#fff0f0;
  border-color:#ffb8b8;
  color:#9d2626;
}

.feedback{
  margin-top:22px;
  border-radius:24px;
  padding:18px;
  border:2px solid;
  animation:pop .22s ease;
}

.feedback b{
  font-size:22px;
}

.feedback p{
  line-height:1.5;
  margin:8px 0;
}

.feedback small{
  font-weight:900;
}

.feedback.ok{
  background:#efffe8;
  border-color:#a7eb7d;
  color:#225f00;
}

.feedback.bad{
  background:#fff5f5;
  border-color:#ffb8b8;
  color:#8d2424;
}

.feedback-actions{
  margin-top:14px;
}

@keyframes pop{
  from{
    transform:scale(.98);
    opacity:.4;
  }
  to{
    transform:scale(1);
    opacity:1;
  }
}

/* Завершение, блокировки, награды */

.complete-card,
.locked-page{
  padding:52px;
  text-align:center;
}

.reward-burst,
.lock-big{
  font-size:90px;
  margin-bottom:8px;
}

.reward-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  max-width:620px;
  margin:24px auto;
}

.reward-grid div{
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:24px;
  padding:18px;
}

.reward-grid span{
  font-size:32px;
}

.reward-grid b{
  display:block;
  font-size:30px;
}

.muted{
  color:var(--muted)!important;
}

/* Кабинет */

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.card{
  padding:26px;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.quick-grid.mini{
  grid-template-columns:repeat(3,1fr);
}

.quick-grid button{
  border:2px solid var(--line);
  background:#fff;
  border-radius:22px;
  padding:18px;
  font-weight:1000;
  box-shadow:0 5px 0 rgba(24,35,52,.08);
}

.dashboard-title{
  align-items:stretch;
}

.pet-bubble{
  background:linear-gradient(145deg,#fff8dc,#e9fbff);
  border:2px solid var(--line);
  border-radius:28px;
  padding:18px;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  max-width:280px;
}

.pet-bubble span{
  font-size:54px;
}

.pet-bubble b{
  font-size:22px;
}

.pet-bubble small{
  color:var(--muted);
  font-weight:900;
  line-height:1.35;
}

.daily-reward{
  grid-template-columns:1fr;
}

/* Игры */

.game-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  align-items:stretch;
}

.game-card{
  display:grid;
  grid-template-rows:auto auto 1fr auto auto;
  align-items:start;
  min-height:318px;
}

.game-card p{
  margin-bottom:4px;
}

.game-card small{
  display:block;
  margin:8px 0 14px;
  line-height:1.35;
  color:#8a5e00;
  font-weight:1000;
}

.game-card .btn{
  justify-self:start;
  align-self:end;
  white-space:nowrap;
}

/* Состязания */

.competition-hero .league-preview{
  display:grid;
  gap:10px;
}

.league-preview div,
.league-card,
.badge-card{
  background:#fff;
  border:2px solid var(--line);
  border-radius:24px;
  padding:18px;
  box-shadow:0 5px 0 rgba(24,35,52,.08);
}

.league-preview div{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 12px;
  align-items:center;
}

.league-preview div span{
  grid-row:1 / 3;
}

.league-preview span,
.league-card span,
.badge-card span{
  font-size:34px;
}

.league-preview b{
  display:block;
  line-height:1.2;
}

.league-preview small{
  display:block;
  line-height:1.35;
  color:var(--muted);
}

.leaderboard{
  display:grid;
  gap:9px;
}

.rank-row{
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:18px;
  padding:12px;
}

.rank-row.me{
  background:#eaffdf;
  border-color:#9be96f;
}

.rank-row span{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  font-weight:1000;
}

.rank-row em{
  font-weight:1000;
  color:#8a5e00;
}

.reward-list{
  display:grid;
  gap:10px;
  margin-bottom:20px;
}

.reward-list div{
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:18px;
  padding:12px;
  font-weight:900;
}

.league-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.league-card.active{
  background:#efffe8;
  border-color:#9be96f;
}

/* Питомец */

.pet-card .pet-stage{
  min-height:260px;
  border-radius:30px;
  background:radial-gradient(circle at center,#fff9d6,#e8fbff);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.pet-stage span{
  font-size:120px;
}

.pet-stage em{
  position:relative;
  font-style:normal;
  font-size:32px;
  margin-left:-20px;
}

.pet-bars{
  display:grid;
  gap:12px;
  margin:20px 0;
}

.pet-bars label{
  font-weight:1000;
  color:#536274;
}

.shop-list,
.admin-list,
.weak-list{
  display:grid;
  gap:12px;
}

.shop-row,
.admin-list div,
.weak-list div{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:12px;
  align-items:center;
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:18px;
  padding:12px;
}

.shop-row span{
  font-size:30px;
}

.shop-row em{
  font-weight:1000;
  color:#8a5e00;
}

/* Значки */

.badge-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.badge-card{
  text-align:center;
}

.badge-card h3{
  font-size:20px;
  line-height:1.2;
}

/* Формы */

.auth-wrap{
  display:flex;
  justify-content:center;
}

.auth-card{
  width:min(520px,100%);
  padding:32px;
}

.auth-card form{
  display:grid;
  gap:14px;
}

.auth-card label{
  font-weight:1000;
  display:grid;
  gap:8px;
}

.demo-box{
  background:#f7fbff;
  border:2px solid var(--line);
  border-radius:20px;
  padding:16px;
  margin-top:16px;
}

/* Уведомления */

.toast{
  position:fixed;
  top:92px;
  left:50%;
  transform:translateX(-50%);
  z-index:80;
  max-width:min(720px,calc(100% - 28px));
  padding:14px 18px;
  border-radius:18px;
  font-weight:1000;
  box-shadow:var(--shadow);
  text-align:center;
}

.toast.ok{
  background:#efffe8;
  border:2px solid #a7eb7d;
  color:#225f00;
}

.toast.bad{
  background:#fff5f5;
  border:2px solid #ffb8b8;
  color:#8d2424;
}

/* Таблицы */

.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}

th,
td{
  text-align:left;
  border-bottom:1px solid var(--line);
  padding:12px;
}

th{
  color:#536274;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* Подвал */

.footer{
  width:min(1180px,calc(100% - 28px));
  margin:52px auto 26px;
  padding:24px 0;
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:28px;
  color:#66758a;
  border-top:1px solid var(--line);
}

.footer strong{
  color:var(--ink);
  font-size:18px;
}

.footer p{
  margin:6px 0 0;
}

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

.footer-links button{
  background:transparent;
  border:0;
  color:#66758a;
  font-weight:900;
}

.footer a{
  display:block;
  color:#0b78b6;
  font-weight:900;
  text-decoration:none;
  margin-top:6px;
}

/* Цвета зон */

.zone-passwords{
  --accent:#58cc02;
}

.zone-phishing{
  --accent:#ffb020;
}

.zone-social{
  --accent:#ff6b9d;
}

.zone-phone{
  --accent:#1cb0f6;
}

.zone-bank{
  --accent:#8b5cf6;
}

.zone-wifi{
  --accent:#20c997;
}

.zone-footprint{
  --accent:#7c8da5;
}

.world-path[class*="zone-"] .world-icon{
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 24%,#fff),#fff);
}

/* Чтобы слова не ломались посередине */

.card h2,
.game-card h3,
.lesson-card h3,
.stat-pill b,
.stat-pill small,
.feature-card h3,
.feature-card p,
.league-card h3,
.badge-card h3,
.hero-copy h1,
.hero-copy p{
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

/* Админка */

.challenge-card{
  max-width:760px;
}

.admin-users-card{
  margin-top:22px;
}

/* Адаптация */

@media (max-width:1450px){
  .topbar{
    width:min(1240px,calc(100% - 24px));
    gap:9px;
  }

  .topbar:has(.hud){
    width:min(1320px,calc(100% - 24px));
  }

  .brand strong{
    font-size:16px;
    max-width:250px;
  }

  .nav button{
    font-size:14px;
    padding:8px 9px;
  }

  .topbar:not(:has(.hud)) .hud span:nth-child(n+3){
    display:none;
  }

  .top-actions select{
    max-width:145px;
  }
}

@media (max-width:1180px){
  .topbar,
  .topbar:has(.hud){
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    justify-items:center;
    overflow:visible;
  }

  .brand{
    justify-content:center;
  }

  .brand strong{
    max-width:calc(100vw - 150px);
  }

  .nav,
  .topbar:has(.hud) .nav{
    justify-content:center;
    flex-wrap:wrap;
    overflow:visible;
    width:100%;
  }

  .top-actions,
  .topbar:has(.hud) .top-actions{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }

  .public-hero .hero-copy{
    min-height:auto;
    padding:54px 46px;
  }
}

@media (max-width:1100px){
  .hero,
  .lesson-layout,
  .grid-2{
    grid-template-columns:1fr;
  }

  .mentor-card{
    position:static;
  }

  .feature-grid{
    grid-template-columns:repeat(3,minmax(200px,260px));
  }

  .game-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .topic-strip{
    grid-template-columns:repeat(3,1fr);
  }

  .league-grid,
  .badge-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .quick-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .page-title{
    display:grid;
  }

  .stat-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:900px){
  .mini-stats{
    grid-template-columns:repeat(2,minmax(160px,1fr));
    max-width:520px;
  }

  .stat-pill{
    min-height:130px;
  }

  .stat-pill b{
    font-size:23px;
  }

  .stat-pill small{
    font-size:15px;
  }

  .public-hero .hero-copy{
    text-align:left;
    align-items:flex-start;
  }

  .public-hero .hero-copy h1,
  .public-hero .hero-copy p{
    margin-left:0;
    margin-right:0;
  }

  .public-hero .hero-actions{
    justify-content:flex-start;
  }
}

@media (max-width:780px){
  .feature-grid{
    grid-template-columns:1fr;
    max-width:360px;
  }
}

@media (max-width:720px){
  .shell,
  .topbar,
  .topbar:has(.hud),
  .footer{
    width:min(100% - 16px,1180px);
  }

  .hero-copy,
  .page-title,
  .card,
  .world-path,
  .task-card,
  .complete-card,
  .locked-page,
  .auth-card{
    padding:22px;
    border-radius:26px;
  }

  .public-hero .hero-copy{
    padding:36px 24px;
    border-radius:28px;
  }

  .public-hero .hero-copy h1{
    font-size:42px;
  }

  .public-hero .hero-copy p{
    font-size:17px;
  }

  .hero-copy h1,
  .page-title h1,
  .complete-card h1,
  .locked-page h1{
    font-size:38px;
  }

  .section-head{
    display:grid;
  }

  .game-grid,
  .topic-strip,
  .league-grid,
  .badge-grid,
  .quick-grid,
  .stat-grid,
  .reward-grid{
    grid-template-columns:1fr;
  }

  .mini-stats{
    grid-template-columns:repeat(2,minmax(130px,1fr));
    max-width:420px;
  }

  .stat-pill{
    min-height:122px;
    padding:16px 10px;
  }

  .stat-pill span{
    font-size:30px;
  }

  .stat-pill b{
    font-size:21px;
  }

  .stat-pill small{
    font-size:14px;
  }

  .path-road{
    grid-template-columns:1fr;
  }

  .path-road:before{
    display:none;
  }

  .zig,
  .zag{
    transform:none;
  }

  .lesson-card,
  .world-head,
  .lesson-top,
  .pair-row,
  .sort-row,
  .shop-row,
  .admin-list div,
  .weak-list div{
    grid-template-columns:1fr;
  }

  .chip-grid,
  .builder-grid{
    grid-template-columns:1fr;
  }

  .lesson-hud,
  .hero-actions,
  .footer-links{
    justify-content:center;
  }

  .footer{
    grid-template-columns:1fr;
    text-align:center;
  }

  .nav,
  .topbar:has(.hud) .nav{
    width:100%;
    justify-content:center;
  }

  .top-actions{
    flex-wrap:wrap;
  }

  .hud{
    flex-wrap:wrap;
    justify-content:center;
  }

  .task-card h1{
    font-size:30px;
  }

  .sort-row div{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .soft-lock{
    display:grid;
    text-align:center;
  }

  .pet-large{
    width:110px;
    height:110px;
    font-size:68px;
  }

  .toast{
    top:78px;
  }

  .nav button,
  .topbar:has(.hud) .nav button{
    font-size:13px;
    padding:8px 9px;
  }

  .brand strong{
    font-size:15px;
  }

  .top-actions select{
    max-width:135px;
  }

  .game-card{
    min-height:auto;
  }

  .public-hero .hero-actions{
    width:100%;
  }

  .public-hero .hero-actions .btn{
    width:100%;
    min-width:0;
  }

  .public-hero .hero-actions .btn.ghost{
    flex-basis:auto;
  }
}

@media (max-width:460px){
  .mini-stats{
    grid-template-columns:1fr;
    max-width:280px;
  }

  .stat-pill b,
  .stat-pill small{
    white-space:normal;
  }

  .public-hero .hero-copy h1{
    font-size:36px;
  }
}
/* Яркая розовая тема и новая структура уроков */
:root{
  --bg:#fff1f8;
  --panel:#ffffff;
  --ink:#24182f;
  --muted:#7a647d;
  --line:#ffd1e6;
  --green:#ff4fa3;
  --green-dark:#d92d84;
  --blue:#8b5cf6;
  --yellow:#ffd166;
  --orange:#ff9f1c;
  --red:#ff4b7d;
  --purple:#a855f7;
  --shadow:0 18px 45px rgba(138,43,117,.14);
  --hard:0 8px 0 rgba(214,64,144,.13),0 24px 50px rgba(138,43,117,.15);
}

body{
  background:
    radial-gradient(circle at 10% 0%,#ffe0ef 0,#fff1f8 30%,transparent 58%),
    radial-gradient(circle at 92% 10%,#e8d9ff 0,#fff1f8 32%,transparent 60%),
    radial-gradient(circle at 50% 100%,#fff3b8 0,#fff7e6 22%,#fff1f8 70%);
}

.topbar,
.hero-copy,
.hero-game-card,
.page-title,
.card,
.feature-card,
.world-path,
.lesson-card,
.game-card,
.complete-card,
.locked-page,
.auth-card,
.soft-lock{
  border-color:#ffd1e6;
  background:rgba(255,255,255,.95);
}

.brand-mark{
  background:linear-gradient(145deg,#ff4fa3,#8b5cf6);
  box-shadow:0 7px 0 rgba(217,45,132,.26);
}

.nav button:hover,
.nav button.active{
  background:#ffe5f2;
  color:#c21876;
}

.kicker{
  background:#ffe5f2;
  color:#bf1d76;
  border-color:#ffc0df;
}

.btn.primary{
  background:linear-gradient(180deg,#ff6fb7,#e83e97);
  color:#fff;
  box-shadow:0 7px 0 #b91d72;
}

.btn.ghost{
  background:#fff1f8;
  color:#7a3f65;
  border-color:#ffd1e6;
}

.btn.light{
  border-color:#ffd1e6;
  color:#6b3158;
}

.progress,
.lesson-progress{
  background:#fff1f8;
  border-color:#ffd1e6;
}

.progress span,
.lesson-progress span{
  background:linear-gradient(90deg,#ff4fa3,#8b5cf6,#1cb0f6);
}

.public-hero .hero-copy{
  min-height:620px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.97)),
    radial-gradient(circle at top left,#ffb4d8,transparent 42%),
    radial-gradient(circle at bottom right,#d7c2ff,transparent 46%);
}

.hero-photos{
  display:grid;
  grid-template-columns:repeat(3,minmax(160px,1fr));
  gap:16px;
  width:min(760px,100%);
  margin:32px auto 0;
}

.hero-photo{
  min-height:142px;
  border-radius:28px;
  border:2px solid rgba(255,255,255,.78);
  box-shadow:0 12px 28px rgba(138,43,117,.16);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  padding:16px;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  position:relative;
}

.hero-photo:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 35%,rgba(36,24,47,.46));
}

.hero-photo span,
.hero-photo b{
  position:relative;
  color:#fff;
  text-shadow:0 2px 8px rgba(36,24,47,.26);
}

.hero-photo span{
  font-size:36px;
}

.hero-photo b{
  display:block;
  margin-top:6px;
  font-size:20px;
}

.photo-lessons{background-image:url('../img/lesson-photo.svg');}
.photo-tests{background-image:url('../img/test-photo.svg');}
.photo-progress{background-image:url('../img/progress-photo.svg');}

.world-level-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fff1f8;
  color:#be1d76;
  border:1px solid #ffd1e6;
  border-radius:999px;
  padding:6px 10px;
  font-weight:1000;
  font-size:12px;
  margin-bottom:6px;
}

.level-group{
  margin-top:30px;
}

.subtopic-road{
  grid-template-columns:repeat(4,1fr);
  align-items:stretch;
  padding:8px 0 4px;
}

.subtopic-road:before{
  display:none;
}

.subtopic-card{
  position:relative;
  z-index:1;
  background:#fff;
  border:2px solid #ffd1e6;
  border-radius:26px;
  padding:18px;
  box-shadow:0 6px 0 rgba(214,64,144,.10);
  min-height:300px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.subtopic-card.current{
  border-color:#ff9cca;
  background:linear-gradient(180deg,#fff,#fff1f8);
}

.subtopic-card.done{
  border-color:#9d5cff;
  background:linear-gradient(180deg,#fff,#f3eaff);
}

.subtopic-card.locked{
  opacity:.66;
}

.subtopic-number{
  position:absolute;
  top:14px;
  right:14px;
  width:30px;
  height:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff1f8;
  color:#bf1d76;
  font-weight:1000;
}

.subtopic-icon{
  width:64px;
  height:64px;
  border-radius:22px;
  background:linear-gradient(145deg,#ffe1f0,#e9d8ff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  box-shadow:inset 0 -8px 0 rgba(36,24,47,.05);
}

.subtopic-card h3{
  margin:4px 0 0;
  font-size:21px;
  line-height:1.12;
  letter-spacing:-.03em;
}

.subtopic-card p{
  color:var(--muted);
  line-height:1.42;
  margin:0;
  font-weight:800;
}

.subtopic-status{
  display:grid;
  gap:7px;
  margin-top:auto;
}

.subtopic-status span{
  background:#fff7fb;
  border:1px solid #ffd1e6;
  border-radius:999px;
  padding:7px 10px;
  font-size:13px;
  font-weight:1000;
  color:#6b3158;
}

.subtopic-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}

.subtopic-actions .btn{
  flex:1 1 118px;
}

.lesson-topic-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}

.lesson-topic-card{
  background:#fff;
  border:2px solid #ffd1e6;
  border-radius:32px;
  padding:22px;
  box-shadow:var(--hard);
}

.world-head.compact{
  margin-bottom:16px;
}

.lesson-rows{
  display:grid;
  gap:10px;
}

.lesson-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto auto auto;
  gap:10px;
  align-items:center;
  background:#fff7fb;
  border:1px solid #ffd1e6;
  border-radius:18px;
  padding:12px;
}

.lesson-row b{
  display:block;
  font-size:16px;
  line-height:1.22;
}

.lesson-row small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-weight:800;
  line-height:1.3;
}

.lesson-row > span{
  white-space:nowrap;
  font-weight:1000;
  color:#6b3158;
}

.profile-tool-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:14px 0;
}

.profile-tool-grid button,
.quick-grid button{
  border:2px solid #ffd1e6;
  background:#fff7fb;
  border-radius:18px;
  padding:14px;
  font-weight:1000;
  color:#6b3158;
  box-shadow:0 4px 0 rgba(214,64,144,.09);
}

.mini-badges{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.mini-badges span{
  background:#fff1f8;
  border:1px solid #ffd1e6;
  border-radius:14px;
  padding:9px 11px;
  font-weight:900;
}

.pet-bubble,
.pet-preview,
.pet-large,
.pet-card .pet-stage{
  background:linear-gradient(145deg,#ffe1f0,#e9d8ff);
}

.stat-pill,
.rank-row,
.reward-list div,
.league-card,
.badge-card,
.topic-strip article{
  border-color:#ffd1e6;
}

@media (max-width:1100px){
  .subtopic-road{
    grid-template-columns:repeat(2,1fr);
  }
  .lesson-row{
    grid-template-columns:1fr 1fr 1fr;
  }
  .lesson-row div{
    grid-column:1/-1;
  }
}

@media (max-width:720px){
  .hero-photos,
  .subtopic-road,
  .profile-tool-grid{
    grid-template-columns:1fr;
  }
  .lesson-row{
    grid-template-columns:1fr;
  }
  .subtopic-card{
    min-height:auto;
  }
}

/* Анимация кошек на главной странице */
.public-hero .hero-copy{
  position:relative;
  overflow:hidden;
}

.public-hero .hero-copy > .kicker,
.public-hero .hero-copy > .cat-runway,
.public-hero .hero-copy > h1,
.public-hero .hero-copy > p,
.public-hero .hero-copy > .hero-actions,
.public-hero .hero-copy > .hero-photos{
  position:relative;
  z-index:3;
}

.cat-runway{
  width:min(790px,100%);
  height:128px;
  margin:0 auto 8px;
  position:relative;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
}

.cat-runner{
  position:absolute;
  bottom:2px;
  width:88px;
  height:96px;
  filter:drop-shadow(0 14px 16px rgba(123,47,109,.16));
}

.cat-runner img{
  display:block;
  width:100%;
  height:auto;
}

.cat-runner-pink{
  left:0;
  animation:catRunLeftToRight 10.5s ease-in-out infinite;
}

.cat-runner-bow{
  left:calc(100% - 104px);
  width:104px;
  animation:catRunRightToLeft 11.2s ease-in-out infinite;
}

.cat-runner-bow img{
  transform:scaleX(-1);
}

.cat-bubble,
.cat-ribbon{
  position:absolute;
  height:34px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#bf1d76;
  border:2px solid #ffc0df;
  border-radius:999px;
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(138,43,117,.14);
}

.cat-bubble{
  left:50%;
  bottom:84px;
  width:148px;
  transform:translateX(-50%);
}

.cat-bubble:after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width:12px;
  height:12px;
  background:#fff;
  border-right:2px solid #ffc0df;
  border-bottom:2px solid #ffc0df;
  transform:translate(-50%,-7px) rotate(45deg);
}

.cat-ribbon{
  right:72px;
  bottom:38px;
  width:162px;
  color:#6b3158;
  background:linear-gradient(180deg,#fff,#fff1f8);
}

.cat-ribbon:after{
  content:"🎀";
  position:absolute;
  right:-18px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
}

.cat-bubble span,
.cat-ribbon span{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  opacity:0;
  padding:0 12px;
  animation:catWords 9s ease-in-out infinite;
}

.cat-bubble span:nth-child(2),
.cat-ribbon span:nth-child(2){
  animation-delay:3s;
}

.cat-bubble span:nth-child(3),
.cat-ribbon span:nth-child(3){
  animation-delay:6s;
}

@keyframes catRunLeftToRight{
  0%,100%{left:0; transform:translateY(0) rotate(-2deg)}
  18%{transform:translateY(-8px) rotate(3deg)}
  50%{left:calc(100% - 88px); transform:translateY(0) rotate(2deg)}
  68%{transform:translateY(-7px) rotate(-2deg)}
}

@keyframes catRunRightToLeft{
  0%,100%{left:calc(100% - 104px); transform:translateY(0) rotate(2deg)}
  20%{transform:translateY(-7px) rotate(-3deg)}
  50%{left:0; transform:translateY(0) rotate(-2deg)}
  72%{transform:translateY(-8px) rotate(2deg)}
}

@keyframes catWords{
  0%,8%{opacity:0; transform:translateY(6px) scale(.96)}
  12%,30%{opacity:1; transform:translateY(0) scale(1)}
  36%,100%{opacity:0; transform:translateY(-6px) scale(.96)}
}

@media (max-width:1180px){
  .cat-runway{
    width:min(680px,100%);
    height:116px;
  }
  .cat-runner{
    width:76px;
  }
  .cat-runner-bow{
    left:calc(100% - 90px);
    width:90px;
  }
  .cat-bubble{
    bottom:74px;
    width:132px;
    font-size:12px;
  }
  .cat-ribbon{
    right:62px;
    bottom:34px;
    width:142px;
    font-size:12px;
  }
}

@media (max-width:980px){
  .cat-runway{
    height:108px;
  }
  .cat-bubble,
  .cat-ribbon{
    opacity:.95;
  }
}

@media (max-width:720px){
  .cat-runway{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .cat-runner,
  .cat-bubble span,
  .cat-ribbon span{
    animation:none !important;
  }
  .cat-bubble span:first-child,
  .cat-ribbon span:first-child{
    opacity:1;
  }
}

/* Слайдер с разными изображениями на главной странице */
.home-slider-section{
  margin-top:28px;
}

.home-slider-card{
  width:min(980px,100%);
  margin:0 auto;
  position:relative;
  background:rgba(255,255,255,.96);
  border:2px solid #ffd1e6;
  border-radius:36px;
  padding:30px;
  box-shadow:var(--hard);
  overflow:hidden;
}

.home-slider-window{
  position:relative;
  aspect-ratio:16/9;
  border-radius:30px;
  overflow:hidden;
  background:#fff1f8;
  box-shadow:0 18px 34px rgba(138,43,117,.16);
}

.home-slider-slide{
  position:absolute;
  inset:0;
  margin:0;
  opacity:0;
  transform:scale(1.025);
  transition:opacity .32s ease, transform .32s ease;
}

.home-slider-slide.active{
  opacity:1;
  transform:scale(1);
  z-index:1;
}

.home-slider-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.home-slider-arrow{
  position:absolute;
  top:50%;
  z-index:4;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:50%;
  border:2px solid #ffd1e6;
  background:#fff;
  color:#8f2f70;
  font-size:42px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(138,43,117,.16);
}

.home-slider-prev{
  left:48px;
}

.home-slider-next{
  right:48px;
}

.home-slider-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}

.home-slider-dots button{
  width:14px;
  height:14px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#ead7e7;
  box-shadow:none;
}

.home-slider-dots button.active{
  background:#ff4fa3;
  transform:scale(1.12);
}

.home-slider-arrow:hover,
.home-slider-dots button:hover{
  cursor:pointer;
}

@media (max-width:720px){
  .home-slider-card{
    padding:18px;
    border-radius:28px;
  }
  .home-slider-window{
    border-radius:22px;
  }
  .home-slider-arrow{
    width:44px;
    height:44px;
    font-size:34px;
  }
  .home-slider-prev{
    left:24px;
  }
  .home-slider-next{
    right:24px;
  }
}
