@charset "utf-8";
/* Главная (index.html) и «Звонки и расписание вместе» (zvonok-i-raspisanie.html). Поверх site.css и ri.css.
   Режимы: ≤ 767 телефон, 768–1023 планшет, ≥ 1024 компьютер с живой сценой. */

/* --- первый экран главной: что мы делаем за 5 секунд. H1, одна строка, три плитки направлений, «Получить КП».
   Живой сцены здесь нет: она ниже, в «Один день школы». --- */
.hub-hero { padding: 88px 0 88px; }
.hub-hero .wrap { display: block; }
.hub-hero h1 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; max-width: 1000px; margin: 0 0 20px; }
.hub-hero .lead { max-width: 720px; margin: 0 0 40px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
/* три направления: белые плитки с тонкой рамкой; наведение — рамка темнее, мягкая тень, подъём на 2 px, стрелка сдвигается */
.hub-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.hub-tile { display: flex; flex-direction: column; gap: 20px; background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: 24px;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 15, 23, .04);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.hub-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.hub-tile:active { transform: translateY(0); }
.hub-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hub-tile-ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 15, 23, .05);
  color: var(--accent); display: grid; place-items: center; flex: none; }
.hub-tile-ico svg { width: 22px; height: 22px; stroke-width: 1.75; }
.hub-tile-t { display: flex; flex-direction: column; gap: 6px; }
.hub-tile-t small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.hub-tile-t b { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.hub-tile-t b::after { content: "→"; display: inline-block; margin-left: .3em; color: var(--ink-3); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.hub-tile:hover .hub-tile-t b::after { transform: translateX(3px); color: var(--accent); }
.hub-tile-t > span { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.hub-int { color: var(--ink); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.hub-int:hover { color: var(--ink); text-decoration-color: currentColor; }
.hub-hero .buy-strip { margin-top: 18px; }

/* рамка панели (живая сцена) */
.hub-frame { background: #11161C; border-radius: 16px; padding: 9px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.hub-frame .hub-kiosk { position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.hub-frame-port { width: 250px; flex: none; }
.hub-frame-name { display: block; text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* --- что входит в каждое направление (компьютер; на телефоне хватает плиток первого экрана) --- */
.hub-what-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-what-c { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; }
.hub-what-c h3 { font-size: 20px; margin: 0 0 12px; }
.hub-what-c h3 a { color: var(--ink); }
.hub-what-c ul.check { flex: 1; }
.hub-what-c li { font-size: 16px; color: var(--ink-2); }
.hub-what-a { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 16px; }
.hub-what-n { margin-top: 16px; font-size: 15px; }

/* --- один день школы: лента + живая сцена --- */
.hub-stand { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 32px; align-items: start; }
.hub-tl { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.hub-tl > li { counter-increment: tl; position: relative; padding: 0 0 18px 50px; }
.hub-tl > li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums; }
.hub-tl > li::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px; width: 1px; background: var(--line-2); }
.hub-tl > li:last-child::after { display: none; }
.hub-tl b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.hub-tl p { margin: 0; color: var(--ink-2); font-size: 16px; }
.hub-tl .hub-go { margin-top: 8px; min-height: 40px; padding: 7px 16px; font-size: 15px; }
.hub-tl .hub-go[disabled] { opacity: .55; cursor: wait; }
.hub-tl .hub-go[aria-pressed="true"] { background: var(--blue); color: #fff; }
.hub-tl > li.al::before { background: var(--evac); border-color: var(--evac); color: #fff; }
.hub-stand-side { position: sticky; top: calc(var(--top-h) + 16px); min-width: 0; }
.hub-scene-stand { display: flex; gap: 24px; align-items: flex-start; }
.hub-scene-stand [data-hub-zv] { flex: 1 1 auto; min-width: 0; }
.hub-say { min-height: 3em; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; font-size: 15px; }
.hub-reset { margin-top: 10px; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hub-stand figure.demo .demo-pic img { max-width: 640px; }
.hub-stand .note { margin-top: 18px; font-size: 15px; }
@keyframes hub-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(191, 54, 12, .7); } 50% { box-shadow: 0 0 0 10px rgba(191, 54, 12, 0); } }
.ira-alb.hub-pulse { animation: hub-pulse 1s ease-in-out infinite; outline: 3px solid #FFB300; outline-offset: 2px; }
@media (max-width: 1023.98px) {
  .hub-stand { grid-template-columns: 1fr; }
  .hub-stand-side { display: none; }        /* живая сцена только на компьютере; на телефоне лента текстом */
  .hub-tl > li { padding-bottom: 14px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .hub-scene-stand { flex-direction: column; }
  .hub-frame-port { margin: 0 auto; }
}

/* --- роли --- */
.hub-roles .card { display: flex; flex-direction: column; }
.hub-roles .card p { font-size: 15px; }
.hub-roles .go { margin-top: auto; font-weight: 600; color: var(--accent); }
.hub-for { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; margin-bottom: 12px; }

/* --- как купить --- */
.hub-buy .flow li { display: flex; flex-direction: column; gap: 4px; }
.hub-buy .flow .btn { align-self: flex-start; margin-top: 10px; }
.hub-docs { margin-top: 20px; color: var(--ink-2); }
.hub-docs b { color: var(--ink); }

/* --- доверие --- */
.hub-trust .trust div { font-size: 15px; }
.hub-trust .trust { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023.98px) { .hub-trust .trust { grid-template-columns: 1fr 1fr; } }

/* --- партнёрам --- */
.hub-partner { display: grid; grid-template-columns: 7fr 5fr; gap: 24px var(--gutter); align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 32px; }
.hub-partner h2 { font-size: clamp(22px, 2.4vw, 28px); }
.hub-partner ul.lines { margin-bottom: 0; }
.hub-partner-cta p { color: var(--ink-2); }

/* --- бесплатно для школ --- */
.hub-free { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- заявка --- */
.hub-lead { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.hub-lead .lead-inline { max-width: none; }
.hub-lead ul.lines { color: var(--ink-2); }
.hub-tel { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }

/* --- страница «вместе»: что передаётся, схема --- */
.hub-pass { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-net { margin: 24px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; overflow-x: auto; }
.hub-net svg { display: block; width: 100%; min-width: 640px; height: auto; }
.hub-net figcaption { color: var(--ink-3); font-size: 15px; margin-top: 8px; }
.hub-net-v { display: none; }
@media (max-width: 767.98px) {
  .hub-net { overflow: visible; }
  .hub-net .hub-net-h { display: none; }   /* .hub-net svg выше перебивал .hub-net-h: схема на 640 px растягивала страницу */
  .hub-net-v { display: block; margin: 0 0 8px; padding-left: 20px; }
  .hub-net-v li { margin: 8px 0; color: var(--ink-2); }
}

/* --- телефон и планшет --- */
@media (max-width: 1023.98px) {
  .hub-partner, .hub-lead { grid-template-columns: 1fr; }
  .hub-tile { padding: 18px; gap: 12px; }
  .hub-tile-t b { font-size: 19px; }
  .hub-what-g { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  /* первый экран: плитки строкой (значок слева), все три видны на 375×812 */
  .hub-hero { padding: 28px 0 40px; }
  .hub-hero h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 12px; }
  .hub-hero .lead { font-size: 16px; margin-bottom: 18px; }
  .hub-tiles { grid-template-columns: 1fr; gap: 10px; }
  .hub-tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; }
  .hub-tile-ico { width: 40px; height: 40px; border-radius: 10px; }
  .hub-tile-ico svg { width: 20px; height: 20px; }
  .hub-tile-t { gap: 1px; }
  .hub-tile-t small { display: none; }
  .hub-tile-t b { font-size: 17px; }
  .hub-tile-t > span { font-size: 14px; line-height: 1.3; }
  .hub-cta { margin-top: 18px; gap: 12px; }
  .hub-cta .btn { width: 100%; justify-content: center; }
  .hub-int { font-size: 16px; }
  .hub-hero .buy-strip { font-size: 14px; gap: 4px 14px; margin-top: 14px; }
  .hub-what { display: none; }
  .hub-buy .flow { gap: 8px; }
  .hub-buy .flow li { padding: 14px 16px 14px 60px; }
  .hub-buy .flow li::before { position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; margin: 0; }
  .hub-partner-cta p { margin-bottom: 12px; }
  .hub-partner { padding: 20px 16px; }
  .hub-free, .hub-pass { grid-template-columns: 1fr; }
  .hub-tel { font-size: 20px; }
  /* короче по вертикали: поля разделов, подписи над заголовками, плотные карточки */
  section.ri { padding: 32px 0; }
  section.ri .section-head .kicker { display: none; }
  .hub-roles { gap: 10px; }
  .hub-roles .card { padding: 14px 16px; }
  .hub-roles .card h3 { font-size: 18px; margin-bottom: 4px; }
  .hub-roles .card p { margin-bottom: 6px; }
  .hub-for { margin-bottom: 6px; }
  .hub-trust .trust { grid-template-columns: 1fr; gap: 8px; }
  .hub-trust .trust div { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; padding: 10px 14px; }
  .hub-trust .trust div svg { grid-row: span 2; }
  .hub-trust .trust b { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ira-alb.hub-pulse { animation: none; }
  .hub-tile { transition: none; }
}
