/*
 * Главная онлайн-школы — та же система, что главная сезонных школ
 * (robocamp/assets/camp.css): сетка .ro-wrap, заголовок секции .ro-head,
 * кнопки .ro-btn, пастельные карточки без рамок и теней, метки-пилюли.
 * Шрифты — из стилей темы; имена в «ёлочках» — так они объявлены в @font-face.
 */
:root {
  --ro-ink: #161213; --ro-text: #3B3536; --ro-mute: #77706E; --ro-line: #EDE5DC;
  --ro-bg: #FFFCF8; --ro-tint: #FFF4E8; --ro-orange: #ED6B10; --ro-orange-d: #D35B06;
  --ro-green: #7abf4f; --ro-green-d: #6aad41; --ro-yellow: #FCC000;
  --ro-r: 24px;
  --ro-head: “Gilroy-Extrabold”, “Gilroy-Bold”, Arial, sans-serif;
  --ro-bold: “Gilroy-Bold”, Arial, sans-serif;
  --ro-body: “Cinta-Regular”, Arial, sans-serif;
  --ro-book: “Cinta-Book”, “Cinta-Regular”, Arial, sans-serif;
}
/* Шапка закреплена — отступ сверху */
.ro-main { padding-top: 96px; background: var(--ro-bg); color: var(--ro-ink); overflow-x: clip; }
.ro-main *, .ro-modal * { box-sizing: border-box; }
.ro-main h1, .ro-main h2, .ro-main h3, .ro-main p, .ro-main ul, .ro-main ol { margin: 0; }
.ro-main ul, .ro-main ol { padding: 0; list-style: none; }
.ro-main img { max-width: 100%; display: block; }
.ro-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.ro-ic { flex: none; width: 1em; height: 1em; }

/* Кнопки */
.ro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--ro-green); color: #fff !important; font: 17px/1.1 var(--ro-bold);
  text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; }
.ro-btn:hover { background: var(--ro-green-d); transform: translateY(-1px); }
.ro-btn--ghost { background: #fff; color: var(--ro-ink) !important; box-shadow: inset 0 0 0 2px var(--ro-line); }
.ro-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--ro-green); }
.ro-btn--light { background: rgba(122,191,79,.16); color: #4f8a2b !important; }
.ro-btn--light:hover { background: rgba(122,191,79,.28); }
.ro-btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.ro-btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Секции */
.ro-sec { padding: 72px 0; }
.ro-sec--tint { background: var(--ro-tint); }
.ro-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.ro-kicker { display: inline-block; margin-bottom: 14px !important; padding: 6px 14px; border-radius: 999px; background: rgba(237,107,16,.1);
  color: var(--ro-orange); font: 14px/1.2 var(--ro-bold); letter-spacing: .02em; text-transform: uppercase; }
.ro-h2 { font: 46px/1.08 var(--ro-head); letter-spacing: -.01em; }
.ro-sub { margin-top: 16px !important; font: 19px/1.55 var(--ro-body); color: var(--ro-text); }
.ro-note { max-width: 760px; margin: 0 auto !important; padding: 16px 20px; border-radius: 18px; background: #FFF1E2;
  font: 17px/1.5 var(--ro-body); text-align: center; }
.ro-note a { color: var(--ro-orange); white-space: nowrap; }

/* Первый экран */
.ro-hero { padding: 8px 0 56px; background:
  radial-gradient(900px 500px at 92% 10%, rgba(252,192,0,.18), transparent 60%),
  radial-gradient(700px 500px at -10% 90%, rgba(237,107,16,.10), transparent 60%), var(--ro-bg); }
.ro-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ro-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 15px/1 var(--ro-bold); text-decoration: none; }
.ro-chip--orange { background: #FFEEDD; color: var(--ro-orange); }
.ro-chip--blue { background: #EAF2FF; color: #3D7BE0; }
.ro-chip--green { background: #E7F6EA; color: #2E9E48; }
.ro-hero__title { font: 60px/1.03 var(--ro-head); letter-spacing: -.02em; }
.ro-hero__lead { margin-top: 22px !important; max-width: 560px; font: 20px/1.55 var(--ro-body); color: var(--ro-text); }
.ro-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* Цифры первого экрана — одной строкой фактов, а не четырьмя плашками:
   плашки занимали полэкрана и спорили с кнопками */
.ro-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px !important; max-width: 600px; }
.ro-stats li { display: flex; align-items: baseline; gap: 6px; padding: 0; background: none !important; }
.ro-stats li + li { position: relative; }
.ro-stats li + li::before { content: ''; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #d8cfc4; }
.ro-stats b { font: 20px/1 var(--ro-head); white-space: nowrap; }
.ro-stats span { font: 15px/1.3 var(--ro-body); color: var(--ro-mute); }
.ro-hero__media { position: relative; }
/* Картинка на прозрачном фоне, как на главной robolatoriya.com: без плашки и обрезки */
.ro-hero__photo { display: flex; align-items: center; justify-content: center; }
.ro-hero__photo img { width: 100%; height: auto; object-fit: contain; }
.ro-hero__photo--empty { aspect-ratio: 1; border-radius: 40px 40px 40px 120px; background: #FFEEDD; color: var(--ro-orange); font-size: 160px; }
.ro-spark { position: absolute; color: var(--ro-yellow); }
.ro-spark .ro-ic { fill: currentColor; stroke: none; }
.ro-spark--a { top: -18px; right: 22px; font-size: 52px; }
.ro-spark--b { top: 40%; right: -20px; font-size: 28px; color: var(--ro-orange); }

/* Почему онлайн */
.ro-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ro-perk { padding: 32px; border-radius: var(--ro-r); }
.ro-perk--1 { background: #ffe8d2; } .ro-perk--2 { background: #fef0c4; } .ro-perk--3 { background: #e7f6ea; }
.ro-perk__ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 20px;
  border-radius: 18px; background: rgba(255,255,255,.7); color: var(--ro-orange); font-size: 30px; }
.ro-perk h3 { font: 23px/1.2 var(--ro-bold); }
.ro-perk p { margin-top: 10px !important; font: 17px/1.55 var(--ro-body); color: var(--ro-text); }

/* Курсы — пастельные карточки, картинка вплотную к краю, группы внутри */
.ro-courses { display: grid; gap: 24px; }
.ro-course { display: grid; grid-template-columns: 340px minmax(0, 1fr); border-radius: 20px; overflow: hidden; scroll-margin-top: 120px; }
.ro-course__pic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; background: rgba(255,255,255,.45); }
.ro-course__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ro-course__art { color: var(--ro-orange); font-size: 96px; }
.ro-course__body { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; }
.ro-course__title { font: 28px/1.15 “Cinta-Bold”, var(--ro-bold); }
.ro-course__title a { color: var(--ro-ink); text-decoration: none; }
.ro-course__title a:hover { color: var(--ro-orange); }
.ro-course__text { font: 17px/1.5 var(--ro-book); color: var(--ro-text); }
.ro-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ro-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 18px; font: 15px/1 var(--ro-book); color: #fff; background: #ff9900; white-space: nowrap; }
.ro-pill--red { background: #e63612; } .ro-pill--green { background: var(--ro-green); } .ro-pill--orange { background: #ff9900; }
.ro-groups { display: grid; gap: 8px; }
.ro-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px 10px 16px; border-radius: 14px; background: rgba(255,255,255,.75); }
.ro-group__when { flex: 1 1 200px; font: 17px/1.3 var(--ro-book); }
.ro-group__when b { font-family: “Cinta-Bold”, var(--ro-bold); font-weight: normal; }
.ro-group__price { font: 15px/1.3 var(--ro-book); color: var(--ro-mute); white-space: nowrap; }
.ro-group__act { display: flex; gap: 8px; }
.ro-course__wait { font: 16px/1.5 var(--ro-book); }
.ro-course__wait a, .ro-course__more { color: #4f8a2b; }
.ro-course__more { margin-top: auto; font: 16px/1.3 var(--ro-bold); text-decoration: none; }
.ro-course__more:hover { text-decoration: underline; }

/* Как устроено */
.ro-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.ro-steps li { padding: 26px 24px; border-radius: var(--ro-r); background: #fff; box-shadow: inset 0 0 0 1px var(--ro-line); }
.ro-steps b { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ro-orange); color: #fff; font: 20px/1 var(--ro-head); }
.ro-steps h3 { font: 20px/1.2 var(--ro-bold); }
.ro-steps p { margin-top: 8px !important; font: 16px/1.5 var(--ro-body); color: var(--ro-text); }

/* Полоса записи */
.ro-cta { padding-top: 24px; }
.ro-cta__box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 56px;
  border-radius: 36px; background: linear-gradient(120deg, #ED6B10, #F49A1E); color: #fff; }
.ro-cta__text { flex: 1 1 420px; }
.ro-cta__text h2 { font: 40px/1.08 var(--ro-head); color: #fff; }
.ro-cta__text p { margin-top: 14px !important; max-width: 560px; font: 18px/1.55 var(--ro-body); color: rgba(255,255,255,.92); }
.ro-cta__act { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ro-cta .ro-btn--light { background: #fff; color: var(--ro-orange) !important; }
.ro-cta__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 22px/1 var(--ro-bold); white-space: nowrap; }

/* Окно заявки */
.ro-modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: 20px; }
.ro-modal:target, .ro-modal.is-open { display: flex; }
.ro-modal__back { position: absolute; inset: 0; background: rgba(22,18,19,.55); }
.ro-modal__box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 36px 32px; border-radius: 28px; background: #fff; }
.ro-modal__x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; line-height: 38px; text-align: center; border-radius: 50%;
  font-size: 28px; color: var(--ro-ink); text-decoration: none; }
.ro-modal__x:hover { background: #F4EEE8; }
.ro-modal__title { margin: 0 40px 10px 0; font: 30px/1.1 var(--ro-head); }
.ro-modal__lead { margin: 0 0 22px; font: 17px/1.5 var(--ro-body); color: var(--ro-text); }

@media (max-width: 1100px) {
  .ro-hero__title { font-size: 48px; }
  .ro-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ro-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .ro-hero__media { order: -1; max-width: 420px; margin: 0 auto; }
  .ro-perks { grid-template-columns: 1fr; }
  .ro-course { grid-template-columns: 1fr; }
  .ro-course__pic { min-height: 0; aspect-ratio: 16 / 9; }
  .ro-h2 { font-size: 36px; }
}
@media (max-width: 640px) {
  .ro-main { padding-top: 80px; }
  .ro-wrap { padding: 0 16px; }
  .ro-sec { padding: 44px 0; }
  .ro-h2 { font-size: 30px; }
  .ro-sub { font-size: 17px; }
  .ro-hero { padding: 4px 0 40px; }
  .ro-hero__title { font-size: 36px; }
  .ro-hero__lead { font-size: 17px; }
  .ro-hero__btns .ro-btn { flex: 1 1 100%; }
  .ro-stats b { font-size: 18px; }
  .ro-stats { gap: 4px 16px; }
  .ro-stats li + li::before { display: none; }
  .ro-spark--b { display: none; }
  .ro-steps { grid-template-columns: 1fr; }
  .ro-course__body, .ro-perk { padding: 22px 20px; }
  .ro-course__title { font-size: 23px; }
  .ro-group__act { width: 100%; }
  .ro-group__act .ro-btn { flex: 1; }
  .ro-cta__box { padding: 32px 22px; border-radius: 28px; }
  .ro-cta__text h2 { font-size: 28px; }
  .ro-cta__act, .ro-cta__act .ro-btn { width: 100%; }
  .ro-modal { padding: 0; align-items: stretch; }
  .ro-modal__box { max-height: none; height: 100%; border-radius: 0; padding: 28px 20px; }
}


/* Карточки курсов — шаблон основного сайта; здесь только мягче:
   без серой тени, скругление чуть больше, тень кнопок слабее */
.ro-main .choice__card { box-shadow: none; border-radius: 24px; }
.ro-main .choice__card-button { box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.ro-main .choice__card-button:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.ro-main .choice__card-img img { border-radius: 16px; }

/* ── Страница онлайн-курса (cource-pageNew.php): несколько крупных блоков
   в одну колонку — без меню разделов, номеров и мелких карточек;
   программа свёрнута, раскрывается по нажатию ── */
.ro-cp-top { padding: 4px 0 48px; background: radial-gradient(800px 420px at 90% 0, rgba(252,192,0,.16), transparent 60%), var(--ro-bg); }
.ro-cp-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.ro-cp-top__grid > :only-child { grid-column: 1 / -1; }
.ro-cp-back { display: inline-block; margin-bottom: 16px; color: var(--ro-mute); font: 15px/1 var(--ro-bold); text-decoration: none; }
.ro-cp-back:hover { color: var(--ro-orange); }
.ro-cp-title { font: 52px/1.05 var(--ro-head); letter-spacing: -.02em; }
.ro-cp-meta { margin-top: 14px !important; font: 19px/1.4 var(--ro-bold); color: var(--ro-orange); }
.ro-cp-lead { margin: 16px 0 28px !important; max-width: 620px; font: 20px/1.55 var(--ro-body); color: var(--ro-text); }
.ro-cp-meta + .ro-btn { margin-top: 28px; }
.ro-cp-pic img { width: 100%; border-radius: 32px; }
.ro-cp-block { padding: 56px 0; }
.ro-cp-block--tint { background: var(--ro-tint); }
.ro-cp-narrow { max-width: 1220px; }
.ro-cp-text, .ro-cp-for, .ro-cp-sub, .ro-cp-list { max-width: 860px; }
.ro-cp-h { margin-bottom: 18px !important; font: 36px/1.1 var(--ro-head); }
.ro-cp-for { margin-bottom: 14px !important; font: 18px/1.55 var(--ro-body); color: var(--ro-text); }
.ro-cp-for b { color: var(--ro-ink); font-family: var(--ro-bold); }
.ro-cp-text { font: 18px/1.65 var(--ro-body); color: var(--ro-text); }
.ro-cp-text p { margin: 0 0 12px; }
.ro-cp-text ul { list-style: disc; padding-left: 22px; }
.ro-cp-video { margin-top: 24px; aspect-ratio: 16 / 9; border-radius: var(--ro-r); overflow: hidden; background: #000; }
.ro-cp-video iframe { width: 100%; height: 100%; display: block; }
.ro-cp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-bottom: 18px !important; }
.ro-cp-list li { position: relative; padding-left: 30px; font: 18px/1.45 var(--ro-body); }
.ro-cp-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ro-green); box-shadow: inset 0 0 0 4px #E7F6EA; }
.ro-cp-prog { border-radius: var(--ro-r); background: #fff; box-shadow: inset 0 0 0 1px var(--ro-line); }
.ro-cp-prog summary { display: flex; align-items: center; gap: 14px; padding: 24px 28px; cursor: pointer; list-style: none; font: 26px/1.1 var(--ro-head); }
.ro-cp-prog summary::-webkit-details-marker { display: none; }
.ro-cp-prog summary small { font: 16px/1 var(--ro-body); color: var(--ro-mute); }
.ro-cp-prog summary::after { content: '+'; margin-left: auto; color: var(--ro-orange); font: 32px/1 var(--ro-body); }
.ro-cp-prog[open] summary::after { content: '−'; }
.ro-cp-prog h3 { margin: 4px 28px 8px !important; font: 18px/1.3 var(--ro-bold); }
.ro-cp-prog ol { padding: 0 28px 8px !important; columns: 2; column-gap: 32px; }
.ro-cp-prog li { break-inside: avoid; padding: 7px 0; font: 17px/1.4 var(--ro-body); }
.ro-cp-prog li span { display: inline-block; min-width: 28px; color: var(--ro-mute); }
.ro-cp-pdf { display: inline-block; margin: 8px 28px 24px; color: var(--ro-orange); font: 16px/1 var(--ro-bold); }
.ro-cp-sub { margin-bottom: 22px !important; font: 18px/1.55 var(--ro-body); color: var(--ro-text); }
.ro-cp .rcs { margin: 0; }
.ro-cp .rcs-head { display: none; }
.ro-cp .rcs-table { border: 0; border-radius: var(--ro-r); }
@media (min-width: 901px) { .ro-cp .rcs--online .rcs-row { grid-template-columns: 140px 130px 110px minmax(240px, 1fr); padding: 16px 22px; } }
.ro-cp .rcs-day, .ro-cp .rcs-time { font-size: 17px; }
.ro-cp .rcs-btn { height: 44px; padding: 0 20px; font-size: 15px; background: var(--ro-orange); }
.ro-cp .rcs-btn--trial { background: var(--ro-green); }
.ro-cp-wait { padding: 28px; border-radius: var(--ro-r); background: #fff; }
.ro-cp-wait p { margin-bottom: 18px !important; font: 18px/1.5 var(--ro-body); }
.ro-cp-ask { margin-top: 22px !important; font: 17px/1.5 var(--ro-body); color: var(--ro-text); }
.ro-cp-ask a { color: var(--ro-orange); font-family: var(--ro-bold); }
.ro-cp-offer { margin: 0 auto !important; padding-top: 20px; padding-bottom: 24px; font: 13px/1.4 var(--ro-body); color: var(--ro-mute); }
@media (max-width: 900px) {
  .ro-cp-top__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ro-cp-pic { order: -1; max-width: 300px; }
  .ro-cp-title { font-size: 36px; }
  .ro-cp-h { font-size: 28px; }
  .ro-cp-block { padding: 40px 0; }
  .ro-cp-list { grid-template-columns: minmax(0, 1fr); }
  .ro-cp-prog ol { columns: 1; }
  .ro-cp-prog summary { font-size: 22px; padding: 20px; }
}

/* Окно заявки: внутри — форма CF7 со своим заголовком и раскладкой под
   широкую секцию сайта. В окне заголовок уже есть, поэтому её заголовок
   прячем, поля ставим во всю ширину друг под другом */
.ro-modal .appointment__form, .ro-modal form { width: 100% !important; margin: 0 !important; }
.ro-modal .form__title, .ro-modal form h1, .ro-modal form h2, .ro-modal form h3, .ro-modal form .title { display: none !important; }
.ro-modal .form__items { display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: none !important; gap: 12px !important; }
.ro-modal .form__input { width: 100% !important; max-width: none !important; margin: 0 !important; }
.ro-modal .form__input > span, .ro-modal .form__input input { width: 100% !important; }
.ro-modal .btn.form__btn, .ro-modal input[type=submit] { width: 100% !important; max-width: none !important; margin: 4px 0 0 !important; }
.ro-modal .form__items small, .ro-modal .rbl-consent { display: block; font: 13px/1.45 var(--ro-body); color: var(--ro-mute); }

/* Главная короче: «почему онлайн» — три строки в первом экране, шаги —
   строкой без карточек. Без фото первый экран в одну колонку, а не с
   пустой плашкой-заглушкой справа. */
.ro-hero--solo .ro-hero__grid { grid-template-columns: 1fr; }
.ro-hero--solo .ro-hero__text { max-width: 820px; }
.ro-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0 !important; padding: 0; list-style: none; }
.ro-facts li { display: flex; align-items: center; gap: 10px; font: 17px/1.35 var(--ro-body); color: var(--ro-ink); }
.ro-facts li svg { flex: none; width: 22px; height: 22px; color: var(--ro-orange); }
.ro-head { margin-bottom: 28px; }
.ro-steps { gap: 28px; }
.ro-steps li { padding: 0; background: none; box-shadow: none; }
.ro-steps b { width: 36px; height: 36px; margin-bottom: 12px; font-size: 17px; }
@media (max-width: 640px) {
  .ro-facts { flex-direction: column; gap: 10px; }
  .ro-facts li { font-size: 16px; }
  .ro-steps { gap: 18px; }
  .ro-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .ro-steps b { grid-row: 1 / span 2; margin: 0; }
  .ro-steps p { margin-top: 4px !important; }
  .ro-h2 { font-size: 30px; }
}

/* Окно заявки: кнопка формы — зелёная, как все кнопки сайта (CF7 рисовал
   её жёлтой с тенью). Плашку WP Armour «Act as Spam Bot» видит только
   администратор, но в окне она занимала полэкрана — прячем. */
.ro-modal .form__btn, .ro-modal input[type=submit], .ro-modal button[type=submit] {
  width: 100%; height: 56px; border: 0; border-radius: 999px; box-shadow: none !important;
  background: var(--ro-green) !important; color: #fff !important; font: 18px/1 var(--ro-bold); cursor: pointer; }
.ro-modal .form__btn:hover, .ro-modal input[type=submit]:hover { background: var(--ro-green-d) !important; }
.ro-modal .form__btn::before, .ro-modal .form__btn::after { display: none !important; }
.ro-modal [class*="wpa-test"], .ro-modal [class*="wpa_test"], .ro-modal .wpa-admin-notice { display: none !important; }
.ro-modal small, .ro-modal .rbl-consent { display: block; margin-top: 12px; font: 13px/1.45 var(--ro-body); color: var(--ro-mute); }
