/* Лендинг */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(241,184,58,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31,61,143,.10), transparent 60%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 18px 0 6px; color: var(--blue); }
.hero h1 .accent { color: var(--red); white-space: nowrap; }
.hero-theme {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 900; color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 0 var(--red);
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.globe-wrap { border-radius: 40% 40% 36% 36% / 38% 38% 32% 32%; overflow: hidden; box-shadow: var(--shadow-lg); background: #eaf4ff; }
.globe-wrap img { width: 100%; height: auto; animation: floaty 8s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes floaty { 50% { transform: scale(1.03) rotate(-1deg); } }
.hero-emblem { position: absolute; left: -28px; bottom: -18px; width: 130px; height: 130px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.2)); }
.countdown { display: flex; gap: 10px; margin-top: 26px; }
.countdown div { background: #fff; border-radius: 14px; padding: 10px 14px; min-width: 74px; text-align: center; box-shadow: var(--shadow-sm); }
.countdown b { display: block; font-size: 1.6rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .8rem; color: var(--ink-3); font-weight: 700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .hero-art { order: -1; width: min(250px, 62%); }
  .hero-emblem { width: 96px; height: 96px; left: -14px; }
  .hero-actions .btn { flex: 1 1 220px; }
}

.resume { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-top: 24px; border-left: 6px solid var(--green); }
.resume-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.resume-icon svg { width: 24px; height: 24px; }
.resume-text { flex: 1; display: flex; flex-direction: column; }
.resume-text span { color: var(--ink-3); font-size: .95rem; }
@media (max-width: 560px) { .resume { flex-wrap: wrap; } .resume .btn { width: 100%; } }

.section { padding: 72px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--blue); }
.section-head h2::after { content: ""; display: block; width: 120px; height: 12px; margin: 14px auto 0; background: var(--ornament) repeat-x center / 32px 12px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 52px 0; } }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--r-lg); padding: 28px 24px 24px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--ornament) repeat-x center / 32px 12px, var(--gold-50); }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.cat-emblem { width: 120px; height: 120px; margin-bottom: 12px; transition: transform .4s var(--ease); }
.cat-card:hover .cat-emblem { transform: rotate(-6deg) scale(1.05); }
.cat-card h3 { font-size: 1.4rem; color: var(--blue); }
.cat-card p { color: var(--ink-2); flex: 1; }
.cat-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; list-style: none; padding: 0; margin: 4px 0 20px; }
.cat-facts li { background: var(--bg); border-radius: 12px; padding: 10px 4px; }
.cat-facts b { display: block; font-size: 1.5rem; color: var(--red); line-height: 1.1; }
.cat-facts span { font-size: .8rem; color: var(--ink-3); font-weight: 700; }
.cat-card .btn[aria-disabled="true"] { opacity: .6; }
.admin-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; color: #8a5a00; font-weight: 700; }
.admin-note svg { width: 20px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { padding: 22px 18px; } .cat-emblem { width: 96px; height: 96px; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); position: relative; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 900; font-size: 1.4rem; margin-bottom: 14px; transform: rotate(-4deg); box-shadow: 0 4px 0 var(--red-600); }
.steps li:nth-child(2) .step-n { background: var(--blue); box-shadow: 0 4px 0 #142a66; transform: rotate(3deg); }
.steps li:nth-child(3) .step-n { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #c48d10; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-2); margin: 0; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.tip { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--blue-50); }
.tip svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.tip p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 860px) { .steps, .tips { grid-template-columns: 1fr; } }

.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; }
.tl-item { position: relative; background: #fff; border-radius: var(--r); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.tl-dot { position: absolute; left: -31px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--line); }
.tl-item.active .tl-dot { border-color: var(--green); background: var(--green-50); }
.tl-item.done .tl-dot { border-color: var(--blue); background: var(--blue); }
.tl-item b { display: block; font-size: 1.15rem; color: var(--blue); }
.tl-item p { margin: 4px 0 0; color: var(--ink-2); }

.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award { background: #fff; border-radius: var(--r-lg); padding: 26px 16px; text-align: center; box-shadow: var(--shadow-sm); border-top: 6px solid var(--c, var(--blue)); }
.award svg { width: 44px; height: 44px; color: var(--c, var(--blue)); margin: 0 auto 10px; display: block; }
.award b { display: block; font-size: 1.25rem; }
.award span { color: var(--ink-3); font-weight: 700; font-size: .95rem; }
.award.gold { --c: #d69a00; } .award.silver { --c: #8a96ab; } .award.bronze { --c: #b8682d; } .award.all { --c: var(--blue); }
.small-note { margin-top: 18px; font-size: .95rem; }
@media (max-width: 860px) { .awards { grid-template-columns: 1fr 1fr; } }

.org { position: relative; display: flex; gap: 44px; align-items: center; padding: 40px 44px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.org::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--ornament) repeat-x center / 32px 12px, var(--gold-50); }
.org-logo { flex: none; margin: 0; width: 210px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: 22px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(241,184,58,.55), 0 14px 34px rgba(31,61,143,.16); }
.org-logo img { width: 100%; height: auto; }
.org-info { min-width: 0; }
.org h2 { color: var(--blue); margin-top: 0; }
.org-list { margin: 0 0 12px; padding-left: 20px; }
.org-list li { margin-bottom: 4px; font-weight: 700; }
.org-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .org { flex-direction: column; text-align: center; gap: 24px; padding: 34px 20px 26px; } .org-logo { width: 170px; padding: 18px; } .org-list { list-style: none; padding: 0; } .org-contacts { justify-content: center; } }

/* регистрация */
.teachers { border: 0; padding: 14px 16px 16px; margin: 0 0 16px; min-width: 0; border-radius: var(--r); background: var(--bg); }
.teachers .field { margin-bottom: 10px; }
.teacher + .teacher { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #dcd3c2; }
.teachers legend { font-weight: 900; padding: 0; margin: 0 0 10px; display: block; width: 100%; line-height: 1.3; }
.teachers legend small { font-weight: 700; color: var(--ink-3); }
.teacher .field { margin-bottom: 8px; }
.teacher .err { display: none; color: var(--red); font-size: .85rem; font-weight: 700; margin: -2px 0 8px; }
.teacher.has-error .err { display: block; }
.teacher.has-error .input { border-color: var(--red); }
.reg-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gold-50); color: #6b4a00; font-size: .92rem; }
.reg-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-50); color: var(--red-600); font-weight: 700; }
/* поля, которые нужны не всем: прячем лишнее, остальные сохраняют обычное отображение */
dialog.kind-child [data-for="adult"], dialog.kind-child [data-for="teacher"], dialog.kind-child [data-for="parent"], dialog.kind-child [data-label-adult],
dialog.kind-adult [data-for="child"], dialog.kind-adult [data-label-child],
dialog.kind-adult.role-teacher [data-for="parent"], dialog.kind-adult.role-parent [data-for="teacher"] { display: none !important; }

/* учреждение из списка */
.inst-field > label:first-child { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
.inst-field > label:first-child i { color: var(--red); font-style: normal; }
.inst-field .inst-custom { margin-top: 8px; display: none; }
.inst-field.inst-has-list .inst-custom { display: flex; }
.check-sm { font-size: .88rem; gap: 8px; }
.check-sm input { width: 18px; height: 18px; }
.reg-privacy { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue); font-size: .9rem; }
.reg-privacy svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.reg-privacy a, .check a { color: inherit; font-weight: 800; }
.btn-icon-only { padding-left: 16px; padding-right: 16px; }
.btn-icon-only svg { margin: 0; }

/* Комфортные интервалы на узких экранах. */
.hero-text, .hero-art, .cat-card, .steps li, .org-info { min-width: 0; }
.hero h1 .accent { white-space: normal; }
.countdown { flex-wrap: wrap; }
.countdown div { flex: 0 1 auto; }
.section-head p:last-child, .cat-card p:last-child, .org-info p:last-child { margin-bottom: 0; }
@media (max-width: 380px) {
  .countdown { gap: 6px; }
  .countdown div { min-width: 0; flex: 1 1 60px; padding: 8px 4px; }
  .awards { gap: 10px; }
  .award { padding: 20px 10px; }
}

/* Баннер мобильного приложения с QR-кодами */
.app-banner {
  position: relative; overflow: hidden; margin-top: 28px;
  padding: 28px 30px 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  background: linear-gradient(135deg, #fff 0%, #f4f7ff 100%);
  border: 1px solid var(--line);
}
.app-banner::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: var(--ornament) repeat-x center / 32px 12px, var(--gold-50);
}
.app-banner-info { min-width: 0; }
.app-banner-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.app-banner-emblem { width: 68px; height: 68px; flex: none; object-fit: contain; }
.app-banner-head .badge { margin-bottom: 6px; }
.app-banner-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--blue); margin: 0; }
.app-banner-info > p { margin: 0 0 14px; color: var(--ink-2); font-size: 1rem; max-width: 40em; }
.app-banner .for-mob { display: none; }
.app-banner-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.app-banner-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 800; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.app-banner-perks svg { width: 16px; height: 16px; color: var(--red); flex: none; }

.app-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 14px; }
.app-qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.app-qr-box {
  display: block; width: 156px; height: 156px; padding: 6px;
  border-radius: 16px; background: #fff; border: 1.5px solid #e7ecf7;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.app-qr-box:hover { transform: translateY(-2px); border-color: var(--blue-600); box-shadow: 0 8px 20px rgba(31,61,143,.12); }
.app-qr-box img { width: 100%; height: 100%; display: block; }
.app-qr-card .store-badge { width: 100%; justify-content: center; min-height: 48px; padding: 8px 12px; box-shadow: 0 4px 12px rgba(20,27,45,.15); }

@media (max-width: 960px) {
  .app-banner { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px 22px; }
  .app-qr-grid { max-width: 420px; }
}
@media (max-width: 600px) {
  .app-banner { padding: 24px 18px 20px; gap: 16px; }
  .app-banner .for-desk { display: none; }
  .app-banner .for-mob { display: inline; }
  .app-banner-head { align-items: flex-start; gap: 12px; }
  .app-banner-emblem { width: 56px; height: 56px; }
  .app-qr-grid { max-width: none; grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-qr-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .app-qr-box { display: none; }
}
@media (max-width: 390px) {
  .app-qr-grid { grid-template-columns: 1fr; }
}
