/* ============================================================
   «Панда шагает по миру» — презентация культуры и туризма
   провинции Сычуань, 23.09.2026 (/panda-shagaet-po-miru).

   Отдельный файл, как courses.css и blog.css: стили нужны одной
   странице, а общий styles.css и его ?v= на двадцати страницах
   трогать незачем. Скелет страницы повторяет Праздник середины
   осени (шапка-объявление по центру, программа, карточки), палитра —
   пипеткой с присланной афиши: синий #0048be, красный #fe0036,
   жёлтый #ffac01, «панда» #3d393a, кремовый лист #fffaea.
   ============================================================ */

/* Как и на странице праздника, палитру меняем переменными на <html>:
   кнопки, ссылки, рамки и фирменное «Хуамин» в шапке перекрашиваются
   сами, остальные страницы не задеты. Мелкий текст на красном — на
   чуть более глубоком #e3002f: чистый #fe0036 с белым даёт 4:1,
   этого мало для подписей, а для плашек и фигур он остаётся. */
html.page-sichuan {
  --sc-blue: #0048be;
  --sc-blue-dark: #00379a;
  --sc-blue-soft: #e8effc;
  --sc-red: #fe0036;
  --sc-red-deep: #e3002f;
  --sc-yellow: #ffac01;
  --sc-yellow-soft: #fff3d6;
  --sc-panda: #3d393a;
  --sc-cream: #fffaea;
  --sc-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
           "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Zen Hei", sans-serif;

  --primary: #0048be;
  --primary-dark: #00379a;
  --primary-soft: #e8effc;
  --brand: #e3002f;
  --brand-dark: #b80026;
  --accent: #ffac01;
  --ink: #2e2b2c;
  --text: #45403f;
  --muted: #736c6a;
  --border: #ebe5d6;
  --card: #ffffff;
  --tint: #fffaea;
  --shadow: 0 10px 30px rgba(0, 40, 110, 0.08);
}

html.page-sichuan [lang="zh"] { font-family: var(--sc-zh); }

/* Кнопка та же, что у праздника (btn--accent), в цветах афиши. */
html.page-sichuan .btn--accent { background: var(--sc-red-deep); color: #fff; }
html.page-sichuan .btn--accent:hover { background: #c40028; color: #fff; }

/* Подвал общий для сайта — возвращаем ему родной цвет, а сверху кладём
   трёхцветную ленту, как полосы в углу афиши. */
html.page-sichuan .footer {
  margin-top: 0;
  background: #2a1d22;
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg,
    var(--sc-blue) 0 58%, #fff 58% 60%, var(--sc-red) 60% 84%, #fff 84% 86%, var(--sc-yellow) 86% 100%) 1;
}

/* ---------- Шапка-объявление ----------
   Та же раскладка, что у первой афиши: слева столбик плиток (матрёшка,
   Кремль, балет), по центру текст, справа геометрическая панда, которая
   уходит за край. Панда нарисована в SVG заново, поэтому остаётся чёткой
   на любом экране и собирается по кусочкам при загрузке. */
.sc-hero {
  --sc-col: clamp(104px, 9.5vw, 164px);
  position: relative; overflow: hidden; background: #fff;
  display: grid;
  grid-template-columns: var(--sc-col) minmax(0, 1fr) clamp(300px, 33vw, 540px);
  align-items: center;
  min-height: clamp(470px, 40vw, 620px);
}
.sc-hero__col { align-self: stretch; display: flex; flex-direction: column; }
.sc-hero__col img {
  display: block; flex: 1 1 0; min-height: 0; width: 100%; height: auto;
  object-fit: cover;
}
/* Верхняя плитка на афише скруглена дугой — повторяем. */
.sc-hero__col img:first-child { border-top-right-radius: 100% 64%; object-position: center bottom; }

.sc-hero__body {
  position: relative; z-index: 1; justify-self: center;
  max-width: 700px; padding: 44px 28px 50px; text-align: center;
}
.sc-hero__logos { display: block; width: 196px; height: auto; margin: 0 auto 16px; }
.sc-hero__slogan {
  margin: 0 0 14px; font-weight: 900; line-height: 1.1; letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); white-space: nowrap;
}
.sc-hero__slogan .sc-b { color: var(--sc-blue); }
.sc-hero__slogan .sc-r { color: var(--sc-red); }
/* «2026» на афише — жёлто-оранжевый градиент. Если background-clip:text
   не поддерживается, остаётся просто жёлтый. */
.sc-hero__slogan .sc-y {
  margin: 0 0.1em; font-family: "Golos Text", sans-serif; font-style: italic; letter-spacing: -0.02em;
  color: var(--sc-yellow);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sc-hero__slogan .sc-y {
    background: linear-gradient(180deg, #ffd24d 0%, #ffac01 55%, #ff8a00 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.sc-hero__band {
  display: inline-block; margin: 0 0 18px; padding: 6px 18px 7px;
  background: var(--sc-red); color: #fff;
  font-weight: 800; font-size: clamp(0.95rem, 1.6vw, 1.2rem); letter-spacing: 0.06em; line-height: 1.35;
}
.sc-hero h1 {
  margin: 0 0 10px; color: var(--ink);
  font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.15;
}
.sc-hero__lead {
  margin: 0 auto; max-width: 42ch;
  font-size: clamp(1rem, 1.45vw, 1.14rem); font-weight: 600; color: var(--text);
}

/* Время и место — как строка с иконками на второй афише. */
.sc-facts {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
}
.sc-fact { display: flex; align-items: center; gap: 10px; text-align: left; line-height: 1.3; }
.sc-fact__ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sc-blue); color: #fff;
}
.sc-fact:nth-child(2) .sc-fact__ic { background: var(--sc-red-deep); }
.sc-fact b { display: block; color: var(--sc-blue); font-weight: 800; font-size: 1rem; }
.sc-fact:nth-child(2) b { color: var(--sc-red-deep); }
.sc-fact span { color: var(--muted); font-size: 0.88rem; font-weight: 500; }

.sc-hero .btn-row { justify-content: center; margin-top: 24px; }

/* Отсчёт до начала: живёт только с JS, без него скрыт атрибутом hidden. */
.sc-count {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 18px 0 0; padding: 7px 15px 7px 12px; border-radius: 999px;
  background: var(--sc-yellow-soft); color: #5c3e00;
  font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums;
}
.sc-count[hidden] { display: none; }
.sc-count__dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sc-yellow);
  animation: sc-ping 1.8s ease-out infinite;
}
.sc-count--live { background: #ffe4ea; color: #9e0021; }
.sc-count--live .sc-count__dot { background: var(--sc-red); animation-name: sc-ping-red; }
.sc-count--past { background: #f2efe9; color: var(--muted); }
.sc-count--past .sc-count__dot { display: none; }
@keyframes sc-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 172, 1, 0.65); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 172, 1, 0); }
}
@keyframes sc-ping-red {
  0% { box-shadow: 0 0 0 0 rgba(254, 0, 54, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(254, 0, 54, 0); }
}

.sc-hero__panda { justify-self: end; width: 108%; margin-right: -8%; }
.sc-panda { display: block; width: 100%; height: auto; overflow: visible; }

/* Панда собирается: четверти влетают поворотом вокруг центра, потом
   выскакивают уши и жёлтое «солнце». Дальше она иногда моргает
   и шевелит ушами. transform-box: view-box — чтобы точки вращения
   задавать в координатах рисунка. */
.sc-panda .p {
  transform-box: view-box; transform-origin: 220px 230px;
  animation: sc-piece 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.sc-panda .p--1 { animation-delay: 0.05s; }
.sc-panda .p--2 { animation-delay: 0.15s; }
.sc-panda .p--3 { animation-delay: 0.25s; }
.sc-panda .p--4 { animation-delay: 0.35s; }
.sc-panda .p--eye { animation: sc-piece 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both, sc-blink 5.5s 2.6s ease-in-out infinite; }
.sc-panda .p--nose { animation-delay: 0.55s; }
.sc-panda .ear { transform-box: view-box; animation: sc-pop 0.55s 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) both, sc-wiggle 7s 3s ease-in-out infinite; }
.sc-panda .ear--l { transform-origin: 72px 66px; }
.sc-panda .ear--r { transform-origin: 368px 66px; animation-delay: 1s, 3.2s; }
.sc-panda .sun { transform-box: view-box; transform-origin: 66px 392px; animation: sc-pop 0.6s 1.15s cubic-bezier(0.3, 1.5, 0.5, 1) both; }

@keyframes sc-piece {
  from { opacity: 0; transform: rotate(-90deg) scale(0.45); }
  to { opacity: 1; transform: none; }
}
@keyframes sc-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: none; }
}
@keyframes sc-blink {
  0%, 90%, 100% { transform: none; }
  94% { transform: scaleY(0.12); }
}
@keyframes sc-wiggle {
  0%, 84%, 100% { transform: none; }
  88% { transform: rotate(-9deg); }
  92% { transform: rotate(7deg); }
  96% { transform: rotate(-3deg); }
}

/* ---------- Лента плиток под шапкой ----------
   Нижний ряд афиши: хого, чайный мастер, маска оперы, золотая птица
   Цзиньша, бронзовая маска Саньсиндуя — и русские плитки. Лента едет
   бесконечно: в дорожке три одинаковых набора, сдвиг ровно на один. */
.sc-ribbon { --rb: clamp(84px, 8.6vw, 132px); overflow: hidden; background: #fff; }
.sc-ribbon__track { display: flex; width: max-content; animation: sc-marquee 70s linear infinite; }
.sc-ribbon:hover .sc-ribbon__track { animation-play-state: paused; }
.sc-ribbon__set { display: flex; flex: none; }
.sc-ribbon__set > * { display: block; flex: none; width: var(--rb); height: var(--rb); }
.sc-rb--stripes {
  background: linear-gradient(90deg,
    #fff 0 16%, var(--sc-blue) 16% 44%, #fff 44% 56%, var(--sc-red) 56% 100%);
}
.sc-rb--quarter {
  background:
    radial-gradient(circle at 100% 100%, var(--sc-red) 0 58%, transparent 58.5%),
    radial-gradient(circle at 26% 26%, var(--sc-yellow) 0 14%, transparent 14.5%),
    var(--sc-blue);
}
@keyframes sc-marquee { to { transform: translateX(-33.3333%); } }

/* ---------- Заголовки разделов ---------- */
.sc-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.sc-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  color: var(--sc-red-deep); font-weight: 800; font-size: 1rem; letter-spacing: 0.08em;
}
/* Три квадратика цветов афиши перед подписью — сквозной знак страницы. */
.sc-kicker::before {
  content: ""; flex: none; width: 30px; height: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sc-blue) 0 33.3%, var(--sc-red) 33.3% 66.6%, var(--sc-yellow) 66.6%);
}
.sc-head .section__title { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; }
.sc-sub { margin: 0; color: var(--muted); font-size: 1.04rem; }
/* Пунктир с красной вставкой по центру — разделитель со второй афиши. */
.sc-dash {
  position: relative; height: 2px; max-width: 560px; margin: 22px auto 0;
  background: repeating-linear-gradient(90deg, var(--sc-blue) 0 14px, transparent 14px 20px, var(--sc-blue) 20px 23px, transparent 23px 29px);
  opacity: 0.85;
}
.sc-dash::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 46px; height: 8px; border-radius: 2px; background: var(--sc-red);
  transform: translate(-50%, -50%);
}

/* ---------- Восемь активностей: мозаика плиток ---------- */
.sc-mosaic {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.sc-tile {
  --sh: rgba(255, 255, 255, 0.16);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 190px; padding: 16px 20px 22px; border-radius: 6px;
  display: flex; flex-direction: column;
}
.sc-tile::before {
  content: ""; position: absolute; z-index: -1; background: var(--sh);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.sc-tile:hover::before { transform: rotate(90deg) scale(1.08); }
/* Четыре фигуры афиши: четверть круга, полукруг, круг, кольцо. */
.sc-tile--s1::before { top: 0; right: 0; width: 118px; height: 118px; border-bottom-left-radius: 100%; transform-origin: 100% 0; }
.sc-tile--s1:hover::before { transform: scale(1.18); }
.sc-tile--s2::before { top: -60px; right: -60px; width: 150px; height: 150px; border-radius: 50%; }
.sc-tile--s3::before { top: 18px; right: 18px; width: 64px; height: 64px; border-radius: 50%; }
.sc-tile--s3:hover::before { transform: scale(1.25); }
.sc-tile--s4::before {
  top: 12px; right: 12px; width: 70px; height: 70px; border-radius: 50%;
  background: transparent; border: 12px solid var(--sh);
}
.sc-tile--blue { background: var(--sc-blue); color: #fff; }
.sc-tile--red { background: var(--sc-red-deep); color: #fff; }
.sc-tile--yellow { background: var(--sc-yellow); color: #2b2420; --sh: rgba(255, 255, 255, 0.42); }
.sc-tile--white { background: #fff; color: var(--sc-blue); box-shadow: inset 0 0 0 2px var(--border); --sh: var(--sc-blue-soft); }
.sc-tile__n {
  margin-bottom: auto; padding-bottom: 14px;
  font-weight: 900; font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.sc-tile__zh { display: block; margin-bottom: 6px; font-size: 1.55rem; font-weight: 900; line-height: 1.15; letter-spacing: 0.04em; }
.sc-tile--white .sc-tile__zh { color: var(--sc-red-deep); }
.sc-tile__ru { display: block; font-weight: 600; font-size: 0.96rem; line-height: 1.35; }

/* ---------- Программа: три блока ---------- */
.sc-cream { background: var(--sc-cream); }
.sc-blocks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start;
}
.sc-block {
  --c: var(--sc-blue); --on-c: #fff;
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0, 40, 110, 0.07);
}
.sc-block--red { --c: var(--sc-red-deep); }
.sc-block--yellow { --c: var(--sc-yellow); --on-c: #2b2420; }
.sc-block__head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 18px 22px 20px; background: var(--c); color: var(--on-c);
}
/* Крупная цифра блока и четверть круга — геометрия афиши. */
.sc-block__head::before {
  content: ""; position: absolute; z-index: -1; right: -34px; bottom: -34px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.sc-block__num {
  position: absolute; z-index: -1; right: 16px; top: 4px;
  font-size: 4.4rem; font-weight: 900; line-height: 1; opacity: 0.2; letter-spacing: -0.04em;
}
.sc-block__zh { display: block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.9; }
.sc-block__title { margin: 2px 0 8px; color: inherit; font-size: 1.3rem; font-weight: 900; }
.sc-block__time {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.sc-block--yellow .sc-block__time { background: rgba(255, 255, 255, 0.5); }

/* Шаги внутри блока — вертикальная линия с точками цвета блока. */
.sc-steps { list-style: none; margin: 0; padding: 20px 22px 22px; }
.sc-step { position: relative; padding: 0 0 18px 24px; }
.sc-step:last-child { padding-bottom: 0; }
.sc-step::before {
  content: ""; position: absolute; left: 4px; top: 16px; bottom: -2px;
  width: 2px; background: var(--border);
}
.sc-step:last-child::before { display: none; }
.sc-step::after {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--c);
}
.sc-block--yellow .sc-step::after { box-shadow: inset 0 0 0 3px #e39800; }
.sc-step__time {
  display: flex; align-items: center; gap: 8px;
  color: var(--sc-blue); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sc-block--red .sc-step__time { color: var(--sc-red-deep); }
.sc-block--yellow .sc-step__time { color: #9a5a00; }
.sc-step__title { display: block; margin: 2px 0 2px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.sc-step__text { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* Репертуар оркестра: пьесы — отдельными «билетиками». */
.sc-tunes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tunes li {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
  padding: 4px 10px 5px; border-radius: 8px;
  background: var(--sc-cream); border: 1px dashed #e2cf9c;
  font-size: 0.86rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.sc-tunes [lang="zh"] { color: var(--sc-red-deep); font-weight: 700; white-space: nowrap; }

/* Что идёт прямо сейчас — в день мероприятия подсвечивает скрипт. */
.sc-step.is-now {
  margin: 0 -10px; padding-left: 34px; padding-right: 10px; padding-top: 8px;
  border-radius: 12px; background: var(--sc-yellow-soft);
}
.sc-step.is-now::after { left: 10px; top: 13px; background: var(--c); box-shadow: 0 0 0 4px rgba(255, 172, 1, 0.35); }
.sc-step.is-now::before { left: 14px; top: 24px; }
.sc-step.is-now .sc-step__time::after {
  content: "Сейчас"; padding: 1px 8px; border-radius: 999px;
  background: var(--sc-red-deep); color: #fff; font-size: 0.72rem; letter-spacing: 0.04em;
}
.sc-program__note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* ---------- Интерактивные зоны ---------- */
.sc-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sc-zones__col { display: grid; gap: 18px; }
.sc-zone {
  --c: var(--sc-blue);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 20px 22px 22px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0, 40, 110, 0.06);
}
.sc-zone--red { --c: var(--sc-red); }
.sc-zone--yellow { --c: var(--sc-yellow); }
.sc-zone::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: 56px; height: 56px; border-top-left-radius: 100%;
  background: var(--c); opacity: 0.1;
}
.sc-zone__pic {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 3px var(--c), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.sc-zone__pic img { display: block; width: 66%; height: auto; }
.sc-zone__zh { margin: 2px 0 0; color: var(--sc-red-deep); font-weight: 900; font-size: 1.2rem; letter-spacing: 0.06em; line-height: 1.3; }
.sc-zone h3 { margin: 0 0 10px; color: var(--sc-blue); font-weight: 800; font-size: 1.16rem; }
.sc-zone__list { margin: 0; display: grid; gap: 7px; }
.sc-zone__list div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; }
.sc-zone__list dt { color: var(--muted); font-weight: 500; }
.sc-zone__list dd { margin: 0; color: var(--text); }
.sc-zone__text { margin: 0 0 10px; color: var(--text); }
.sc-zone__text[lang="zh"] { color: var(--muted); font-size: 0.9rem; }
.sc-zone__text:last-child { margin-bottom: 0; }
/* У консультации три партнёра — чипами, чтобы читались с одного взгляда. */
.sc-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chips li {
  padding: 4px 11px; border-radius: 999px;
  background: var(--sc-blue-soft); color: var(--sc-blue-dark); font-weight: 700; font-size: 0.86rem;
}

/* ---------- Карточка для сбора печатей ---------- */
.sc-stamps {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  margin-top: 40px; padding: 38px; border-radius: 20px; background: var(--sc-cream);
}
.sc-stamps::before {
  content: ""; position: absolute; z-index: -1; left: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 172, 1, 0.18);
}
.sc-card {
  position: relative; max-width: 420px; justify-self: center; width: 100%;
  padding: 22px 22px 24px; border-radius: 16px; background: #fff;
  box-shadow: 0 16px 36px rgba(60, 40, 0, 0.12); transform: rotate(-2.2deg);
}
/* Перфорация по краю — чтобы карточка читалась как карточка, а не блок. */
.sc-card::before {
  content: ""; position: absolute; inset: 8px; border-radius: 11px;
  border: 1.5px dashed #e3d9c3; pointer-events: none;
}
.sc-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sc-card__zh { color: var(--sc-red-deep); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.12em; }
.sc-card__ru { color: var(--muted); font-size: 0.84rem; font-weight: 600; text-align: right; line-height: 1.3; }
.sc-card__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sc-stamp {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed #ddd3bd; display: grid; place-items: center;
}
.sc-stamp__ink {
  --ink-c: var(--sc-red-deep);
  position: absolute; inset: 7%; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--ink-c);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--ink-c);
  color: var(--ink-c); font-weight: 900; font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: 0.02em;
  transform: rotate(var(--rot, -8deg)); opacity: 0.9;
}
.sc-stamp:nth-child(even) .sc-stamp__ink { --ink-c: var(--sc-blue); }
.sc-stamp__ink small { display: block; font-size: 0.5em; font-weight: 700; letter-spacing: 0.3em; margin-top: -0.6em; }
/* Печати проставляются по очереди, когда карточка въезжает в экран
   (класс is-visible ставит общий механизм .reveal из main.js). */
.js .sc-stamps .sc-stamp__ink { opacity: 0; transform: rotate(var(--rot, -8deg)) scale(1.9); }
.js .sc-stamps.is-visible .sc-stamp__ink {
  animation: sc-stamp 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
  animation-delay: calc(var(--i) * 0.3s + 0.35s);
}
@keyframes sc-stamp {
  0% { opacity: 0; transform: rotate(var(--rot, -8deg)) scale(1.9); }
  65% { opacity: 0.95; transform: rotate(var(--rot, -8deg)) scale(0.93); }
  100% { opacity: 0.9; transform: rotate(var(--rot, -8deg)) scale(1); }
}
.sc-howto h3 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 900; }
.sc-howto > p { margin: 0 0 18px; color: var(--muted); }
.sc-howto ol { list-style: none; margin: 0; padding: 0; counter-reset: sc; display: grid; gap: 14px; }
.sc-howto li { counter-increment: sc; position: relative; padding-left: 50px; min-height: 36px; }
.sc-howto li::before {
  content: counter(sc); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sc-yellow); color: #2b2420; font-weight: 900;
}
.sc-howto li:nth-child(2)::before { background: var(--sc-blue); color: #fff; }
.sc-howto li:nth-child(3)::before { background: var(--sc-red-deep); color: #fff; }
.sc-howto li b { display: block; color: var(--ink); }
.sc-howto li span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .sc-hero { grid-template-columns: minmax(0, 1fr) clamp(260px, 36vw, 400px); }
  .sc-hero__col { display: none; }
  .sc-hero__body { padding-left: 20px; }
  .sc-blocks { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .sc-hero { grid-template-columns: 1fr; min-height: 0; }
  .sc-hero__panda { order: -1; justify-self: center; width: min(250px, 62vw); margin: 26px 0 0; }
  .sc-hero__body { padding: 14px 20px 40px; }
  .sc-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-zones { grid-template-columns: 1fr; }
  .sc-stamps { grid-template-columns: 1fr; padding: 30px 24px; gap: 30px; }
}

@media (max-width: 640px) {
  .sc-hero__logos { width: 160px; }
  .sc-hero__slogan { font-size: clamp(1.25rem, 7vw, 1.6rem); letter-spacing: 0.02em; }
  .sc-hero__band { font-size: 0.88rem; padding: 5px 12px 6px; letter-spacing: 0.03em; }
  .sc-facts { flex-direction: column; align-items: flex-start; max-width: 340px; margin-left: auto; margin-right: auto; }
  .sc-hero .btn-row { gap: 10px; }
  .sc-hero .btn-row .btn { flex: 1 1 100%; }
  .sc-tile { min-height: 150px; padding: 12px 14px 16px; }
  .sc-tile__zh { font-size: 1.25rem; }
  .sc-tile__ru { font-size: 0.86rem; }
  .sc-tile--s1::before { width: 84px; height: 84px; }
  .sc-tile--s4::before { width: 52px; height: 52px; border-width: 9px; }
  .sc-block__head { padding: 16px 18px 18px; }
  .sc-steps { padding: 18px 18px 20px; }
  .sc-zone { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 18px 16px 20px; }
  .sc-zone__pic { width: 60px; height: 60px; }
  .sc-zone__list div { grid-template-columns: 1fr; gap: 0; }
  .sc-stamps { padding: 26px 16px; }
  .sc-card { padding: 18px 16px 20px; }
  .sc-card__grid { gap: 10px; }
}

/* Отключение анимаций: общий блок в styles.css про эти правила не знает. */
@media (prefers-reduced-motion: reduce) {
  .sc-panda .p, .sc-panda .p--eye, .sc-panda .ear, .sc-panda .sun { animation: none !important; }
  .sc-ribbon__track { animation: none; }
  .sc-count__dot { animation: none; }
  .sc-tile::before { transition: none; }
  .js .sc-stamps .sc-stamp__ink, .js .sc-stamps.is-visible .sc-stamp__ink {
    animation: none; opacity: 0.9; transform: rotate(var(--rot, -8deg));
  }
}
