/* RTS — стили сайта. Размеры и цвета сняты с Тильды (артборд 1200, контент 760 px от x=220). */

@font-face { font-family: "Bebas RTS"; src: url(../fonts/bebas-neue-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Circe"; src: url(../fonts/circe-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Circe"; src: url(../fonts/circe-700.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #111111;
  --band: #1a1a1a;
  --card: #212121;
  --text: #ffffff;
  --muted: #c9c9c9;
  --dim: rgba(255, 255, 255, .5);
  --lime: #bcfe53;
  --lime-btn: #bbff2c;
  --lime-hover: #a0de1c;
  --violet: #7b3cff;
  --lilac: #a48cf5;
  --display: "Bebas RTS", "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Circe", "Onest", Arial, sans-serif;
  --wrap: 760px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.3 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 100px 0 0; }
.accent { color: var(--lime); }
.underline { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 4px; text-underline-offset: 8px; }

.h1, .h2, .h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: 0; }
.h1 { font-size: 50px; }
.h2 { font-size: 50px; max-width: 640px; }
.h3 { font-size: 30px; }
.lead { margin-top: 24px; max-width: 640px; font-size: 18px; color: var(--muted); line-height: 1.2; }
.lead--lg { font-size: 24px; margin-top: 18px; }
.eyebrow { color: var(--lime); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 32px; min-width: 286px; border-radius: 12px;
  background: var(--lime-btn); color: #000; font: 700 18px/1 var(--body); text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--lime-hover); }
.btn--sm { height: 34px; min-width: 0; padding: 0 16px; border-radius: 20px; font-size: 14px; }
.card { background: var(--card); border-radius: 12px; }
.badge { display: inline-block; background: var(--violet); color: #fff; font: 700 13px/1 var(--body); padding: 5px 10px; border-radius: 6px; }

/* Шапка */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding-top: 20px; }
.nav { position: relative; max-width: 800px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 16px;
  background: rgba(34, 34, 34, .82); backdrop-filter: blur(10px); border-radius: 12px; }
.nav__logo img { width: 81px; }
.nav__menu { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav__links { display: flex; align-items: center; gap: 22px; flex: 1; font-size: 14px; }
.nav__links a, .nav__dd-btn { text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav__dot::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.nav__links a:hover, .nav__dd-btn:hover, .nav__lang:hover { color: var(--lime); }
.nav__dd { position: relative; }
.nav__dd-btn::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.nav__dd-list { position: absolute; top: calc(100% + 18px); left: -16px; min-width: 220px; padding: 10px; background: #222; border-radius: 12px;
  display: none; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.nav__dd.is-open .nav__dd-list { display: block; }
.nav__dd-list a { display: block; padding: 8px 10px; border-radius: 8px; }
.nav__dd-list a:hover { background: #2c2c2c; }
.nav__lang { font-size: 14px; text-decoration: none; }
.nav__burger { display: none; }

/* Первый экран */
.hero { position: relative; padding-top: 128px; overflow: hidden; }
.hero__glow { position: absolute; width: 1297px; height: 649px; pointer-events: none; z-index: 0;
  /* было картинкой Ellipse_10.png (112 КБ, становилась элементом LCP): тот же диагональный переход фиолетовый → синий → лайм в мягком овале */
  background: linear-gradient(to bottom right, rgb(107,50,247) 30%, rgb(107,63,243) 35%, rgb(95,83,232) 40%, rgb(82,105,218) 45%, rgb(76,131,195) 50%, rgb(86,157,161) 55%, rgb(106,181,137) 60%, rgb(132,205,126) 65%, rgb(191,254,116) 72%);
  opacity: .8;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, rgba(0,0,0,.87) 70%, rgba(0,0,0,.33) 80%, rgba(0,0,0,.04) 90%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, rgba(0,0,0,.87) 70%, rgba(0,0,0,.33) 80%, rgba(0,0,0,.04) 90%, transparent 100%); }
.hero__glow--a { left: calc(50% - 1513px); top: -414px; }
.hero__glow--b { left: calc(50% - 45px); top: -63px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 341px 1fr; align-items: start; min-height: 468px; }
.hero__lead { margin: 14px 0 28px; max-width: 320px; font-size: 15px; line-height: 1.1; }
.hero__art { margin-top: -17px; margin-right: -166px; }
.hero__art img { width: 585px; }
.stats { position: relative; z-index: 1; background: var(--band); padding: 29px 0 25px; }
.stats__list { display: grid; grid-template-columns: 156px 168px 172px 175px 1fr; }
.stats__value { display: block; font: 400 50px/1 var(--display); text-transform: uppercase; }
.stats__label { display: block; margin-top: 4px; max-width: 151px; font-size: 20px; line-height: 1; color: var(--dim); }

/* Результаты */
.results { display: grid; grid-template-columns: 278px 258px 1fr; row-gap: 120px; margin-top: 100px; }
.results__icon { height: 80px; width: auto; margin-bottom: 30px; }
.results__item p { margin-top: 18px; max-width: 230px; font-size: 18px; line-height: 1.2; color: var(--muted); }
.cert { display: grid; grid-template-columns: 414px 1fr; gap: 39px; align-items: center; margin-top: 120px; }
.cert__text p { margin-top: 18px; max-width: 300px; font-size: 18px; line-height: 1.2; color: var(--muted); }
.video { display: grid; grid-template-columns: 1fr 446px; gap: 20px; align-items: center; margin-top: 80px; }
.video__player { position: relative; display: block; width: 446px; height: 256px; border-radius: 10px; background: #000 center / cover no-repeat; overflow: hidden; }
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; background: var(--lime-btn); }
.video__play::after { content: ""; position: absolute; left: 28px; top: 22px; border: 13px solid transparent; border-left: 20px solid #000; border-right: 0; }

/* Программа */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.module { padding: 20px 20px 24px; display: flex; flex-direction: column; min-height: 473px; }
.module p { margin-top: 12px; font-size: 22px; line-height: 1.2; }
.module__img { margin-top: auto; padding-top: 20px; display: flex; justify-content: center; }
.module__img img { max-height: 260px; width: auto; }
.module--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 301px 1fr; gap: 20px; min-height: 0; }
.module--wide .module__img { padding-top: 0; margin-top: 0; }

/* Проекты учеников */
.project-feat { display: grid; grid-template-columns: 1fr 388px; gap: 20px; margin-top: 30px; padding: 20px 20px 20px 35px; }
.project-feat__text { display: flex; flex-direction: column; align-items: flex-start; padding-top: 6px; }
.project-feat__title { margin-top: 10px; font: 700 30px/1.1 var(--body); }
.project-feat__text p { margin-top: 10px; font-size: 18px; line-height: 1.2; max-width: 303px; }
.project-feat__author { margin-top: auto !important; }
.project-feat__img { border-radius: 8px; }
.projects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.project { padding: 0 0 12px; overflow: hidden; display: flex; flex-direction: column; border-radius: 10px; }
.project__img { width: 100%; aspect-ratio: 139 / 108; object-fit: cover; }
.project__title { padding: 12px 14px 0; font: 700 15px/1.1 var(--body); }
.project__text { padding: 6px 14px 0; font-size: 10px; line-height: 1.2; }
.project__author { margin-top: auto; padding: 14px 14px 0; font-size: 10px; color: var(--dim); }

/* Форматы */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; align-items: start; }
.format { padding: 30px 30px 30px; }
.format__title { font: 700 35px/1 var(--body); }
.format__sub { margin-top: 14px; font-size: 24px; line-height: 1.1; }
.format__media { position: relative; margin: 30px -30px 20px; }
.format__img { width: 100%; }
.bubble { position: absolute; max-width: 200px; padding: 10px 16px; border-radius: 26px; background: var(--violet); color: #fff;
  font-size: 16px; line-height: 1.1; text-align: center; transform: rotate(-8deg); }
.bubble--top-right { right: -6px; top: 6%; }
.bubble--bottom-right { right: 0; bottom: -6%; transform: rotate(-6deg); }
.format__text { font-size: 20px; line-height: 1.2; }

/* Педагоги */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.teacher { padding: 12px 18px 20px 12px; }
.teacher__head { display: flex; gap: 14px; align-items: center; }
.teacher__photo { width: 98px; height: 98px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--lilac); }
.teacher__role { color: var(--lime); font-size: 10px; line-height: 1.1; max-width: 90px; }
.teacher__name { margin-top: 6px; font: 400 22px/1 var(--display); text-transform: uppercase; }
.teacher__text { margin-top: 14px; font-size: 12px; line-height: 1.25; color: var(--muted); }

/* Отзывы */
.reviews { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 60px; margin-top: 50px; }
.review { position: relative; }
.review__quote { font-size: 20px; line-height: 1.1; max-width: 263px; margin-bottom: 18px; }
.review__card { background: #fff; color: #111; border-radius: 12px; padding: 20px; font-size: 16px; line-height: 1.25; position: relative; z-index: 1; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; }
.review__author b { font-size: 18px; }
.review__avatar { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.review__photo { position: relative; z-index: 2; width: 258px; margin: -36px 0 0 83px; transform: rotate(5deg); border-radius: 10px; }
.review:nth-child(2) .review__photo { width: 288px; margin: -70px 0 0 -20px; transform: rotate(-4deg); }
.reviews__summary { position: relative; padding-top: 40px; }
.reviews__squiggle { position: absolute; right: 0; top: -40px; width: 172px; }
.reviews__count { display: flex; align-items: center; gap: 16px; font: 400 78px/1 var(--body); }
.reviews__label { display: flex; flex-direction: column; font-size: 22px; line-height: 1; }
.reviews__stars { color: var(--lime); font-size: 15px; margin-top: 6px; letter-spacing: 1px; }
.reviews__where { font-size: 22px; line-height: 1.1; margin-top: 10px; max-width: 230px; }
.reviews__where a { text-decoration: underline; text-underline-offset: 4px; }
.reviews__img { margin-top: 20px; width: 331px; }

/* Запись на пробный */
.section--cta { padding-bottom: 50px; }
.cta { position: relative; padding: 46px 28px 50px; min-height: 530px; overflow: hidden; }
.cta__title { font: 600 42px/1 var(--body); max-width: 531px; }
.cta__text { display: none; }
.lead-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; width: 292px; margin-top: 40px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email] { height: 50px; padding: 0 16px; border: 1px solid #fff; border-radius: 7px;
  background: #fff; color: #111; font: 16px var(--body); }
.lead-form input::placeholder { color: #777884; }
.btn--form { height: 70px; min-width: 0; width: 100%; border-radius: 9px; background: var(--lime); font-size: 22px; font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.2; }
.consent input { appearance: none; flex: 0 0 18px; height: 18px; margin: 0; border: 2px solid var(--lime); border-radius: 3px; background: transparent; }
.consent input:checked { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.consent a { color: var(--lime); text-decoration: none; }
.lead-form__msg { min-height: 1em; font-size: 14px; color: var(--lime); }
.cta__img { position: absolute; left: 415px; top: 154px; width: 255px; }

/* Подвал */
.site-footer { padding: 60px 0 40px; }
.footer { max-width: 900px; display: grid; grid-template-columns: 273px 205px 140px 1fr; column-gap: 0; row-gap: 26px; font-size: 11px; }
.footer__brand { grid-column: 1 / -1; }
.footer__logo { width: 99px; }
.footer__h { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer__col li + li { margin-top: 3px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--lime); }
.footer__big { display: block; font-size: 16px; margin-bottom: 8px; }
.footer__legal { margin-top: 18px; line-height: 1.4; }
.footer__social { display: flex; gap: 16px; margin-bottom: 16px; }
.footer__social img { width: 34px; }
.footer__docs a { color: var(--lime); }
.footer__copy { grid-column: 1 / -1; }

/* Телефон и планшет */
@media (max-width: 980px) {
  .nav { margin: 0 var(--gut); }
  .nav__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; margin-left: auto; }
  .nav__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 14px;
    padding: 18px; background: #1d1d1d; border-radius: 12px; }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 12px; font-size: 16px; }
  .nav__links a, .nav__dd-btn { font-size: 16px; }
  .nav__dd-list { position: static; display: none; box-shadow: none; padding: 6px 0 0 10px; background: none; }
  .nav__cta { align-self: flex-start; }
}

@media (max-width: 760px) {
  .section { padding-top: 70px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 40px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 18px; }
  .lead--lg { font-size: 18px; }
  .btn { min-width: 0; width: 100%; }
  .nav__logo img { width: 70px; }

  .hero { padding-top: 110px; }
  .hero__glow--a { left: -1059px; top: -521px; }
  .hero__glow--b { left: -8px; top: 123px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__lead { max-width: none; font-size: 16px; line-height: 1.2; }
  .hero__art { margin: 30px 0 0; }
  .hero__art img { width: 100%; }
  .stats { background: none; padding-top: 30px; }
  .stats__list { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .stats__value { font-size: 24px; }
  .stats__label { font-size: 12px; }
  .stats__item--accent .stats__value { color: var(--lime); }

  .results { grid-template-columns: 1fr; row-gap: 40px; margin-top: 40px; }
  .results__icon { height: 52px; margin-bottom: 16px; }
  .results__item p { max-width: none; margin-top: 12px; }
  .cert { grid-template-columns: 1fr; gap: 20px; margin-top: 60px; }
  .video { grid-template-columns: 1fr; margin-top: 60px; }
  .video__player { width: 100%; height: auto; aspect-ratio: 16 / 9; }

  .modules { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .module p { font-size: 18px; }
  .module--wide { grid-template-columns: 1fr; }

  .project-feat { grid-template-columns: 1fr; padding: 20px; }
  .project-feat__text p { max-width: none; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project__text, .project__author { font-size: 12px; }

  .formats { grid-template-columns: 1fr; margin-top: 30px; }
  .format { padding: 20px; }
  .format__title { font-size: 28px; }
  .format__sub, .format__text { font-size: 18px; }
  .format__media { margin: 20px -20px 30px; }

  .teachers { grid-template-columns: 1fr; margin-top: 30px; }
  .teacher__text { font-size: 14px; }

  .reviews { grid-template-columns: 1fr; }
  .review__photo, .review:nth-child(2) .review__photo { position: relative; left: auto; bottom: auto; margin: -20px 0 0 auto; width: 70%; }
  .review { padding-bottom: 0; }
  .reviews__count { font-size: 60px; }
  .reviews__img { width: 100%; }

  .cta { padding: 25px 12px 30px; min-height: 0; }
  .cta__title { font-size: 24px; max-width: 221px; }
  .cta__text { display: block; margin-top: 16px; max-width: 240px; font-size: 12px; line-height: 1.1; opacity: .8; }
  .lead-form { width: 100%; margin-top: 24px; }
  .cta__img { display: none; }

  .footer { grid-template-columns: 1fr 1fr; }
  .footer__col:first-of-type { grid-column: 1 / -1; }
  .footer__side { grid-column: 1 / -1; }
}


/* Статья блога (как в Тильде: обложка, белая колонка 720 px, оранжевые ссылки) */

.post-cover { position: relative; height: 750px; background: #000; overflow: hidden; }
.post-cover__img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%); }
.post-cover__meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: 40px; text-align: center; font-size: 13px; line-height: 1.4; color: #fff; }
.post-body { background: #fff; color: #111; padding: 30px 0 60px; }
.post-wrap { max-width: 960px; margin: 0 auto; padding: 0 var(--gut); }
.post-wrap--wide { max-width: 1000px; }
.post-title { max-width: 860px; font: 700 40px/1.15 var(--body); color: #000; }
.post-title span { background: linear-gradient(transparent 62%, var(--violet) 62%, var(--violet) 86%, transparent 86%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.crumbs { margin: 40px 0 34px; font-size: 12px; color: #8a8a8a; }
.crumbs a { color: #8a8a8a; text-decoration: none; }
.crumbs a:hover { color: #111; }
.post-content { max-width: 720px; font-size: 16px; line-height: 1.55; }
.post-content p { margin: 0 0 16px; }
.post-content h2 { margin: 44px 0 16px; font: 700 24px/1.25 var(--body); scroll-margin-top: 20px; }
.post-content h3 { margin: 30px 0 12px; font: 700 20px/1.3 var(--body); }
.post-content ul, .post-content ol { margin: 0 0 16px; padding-left: 22px; }
.post-content ul { list-style: disc; } .post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 4px; }
.post-content a { color: #f26b3a; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--violet); background: #f6f3ff; }
.post-content table { border-collapse: collapse; }
.toc { margin: 34px 0 30px; }
.toc summary { cursor: pointer; font: 700 24px/1.2 var(--body); color: #2d7ff9; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " ▾"; font-size: 16px; }
.toc[open] summary::after { content: " ▴"; }
.toc ol { margin-top: 14px; }
.toc a { color: #111; }
.promo { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: center; margin: 30px -20px 34px; padding: 28px 30px; border-radius: 12px; background: var(--card); color: #fff; }
.promo img { order: 2; width: 230px; border-radius: 10px; }
.promo__title { font: 700 26px/1.15 var(--body); }
.post-content .promo p { margin: 10px 0 0; font-size: 14px; line-height: 1.35; }
.post-content .promo .promo__title { margin: 0; font-size: 26px; }
.post-content .promo__btn { margin-top: 20px; height: 40px; min-width: 0; padding: 0 18px; border-radius: 20px; font-size: 14px; color: #000; }
.post-content .promo__btn:hover { text-decoration: none; }
.post-more { background: #fff; color: #111; padding: 20px 0 80px; }
.post-more__title { font: 400 50px/1 var(--display); text-transform: uppercase; }
.post-more__title span { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 6px; text-underline-offset: 6px; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.more__item a { display: flex; flex-direction: column; height: 100%; background: #222; color: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; text-align: center; padding-bottom: 18px; }
.more__img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.more__date { margin-top: 14px; font-size: 10px; color: #8a8a8a; }
.more__name { margin: 10px 16px 0; font: 700 20px/1.2 var(--body); }
.more__text { margin: 10px 18px 0; font-size: 12px; line-height: 1.35; color: #c9c9c9; }
.courses-block { padding-top: 70px; }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.course-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 18px; text-decoration: none; transition: background .2s; }
.course-card:hover { background: #2a2a2a; }
.course-card__age { font-size: 12px; color: var(--lime); }
.course-card__name { margin-top: 6px; font: 700 22px/1.1 var(--body); }

@media (max-width: 760px) {
  .post-cover { height: 300px; }
  .post-cover__meta { bottom: 16px; font-size: 11px; }
  .post-title { font-size: 28px; }
  .crumbs { margin: 24px 0; }
  .promo { grid-template-columns: 1fr; margin: 24px 0; padding: 20px; }
  .promo img { order: 0; width: 100%; }
  .post-more__title { font-size: 36px; }
  .more { grid-template-columns: 1fr; }
  .course-cards { grid-template-columns: 1fr 1fr; }
}

/* Телефон с выбором страны (intl-tel-input) */
.lead-form .iti { width: 100%; --iti-path-flag-1x: url(../vendor/intl-tel-input/img/flags.webp); --iti-path-flag-2x: url(../vendor/intl-tel-input/img/flags@2x.webp); }
.lead-form .iti input[type=tel] { width: 100%; }
.iti__dropdown-content { color: #111; border-radius: 8px; }
.lead-form .iti__selected-dial-code { color: #111; }

/* Масштаб как у Тильды: макет 1200 растягивается под ширину окна, мобильный 320 — под ширину телефона */
/* Универсальные секции страниц из Тильды (page-flex) */
.gen--first { padding-top: 140px; }
.gen__title { max-width: 760px; }
h1.gen__title { font-size: 50px; }
.gen__p { margin-top: 18px; max-width: 680px; font-size: 18px; line-height: 1.3; color: var(--muted); }
.gen__p .accent { color: var(--lime); }
.gen__cards { display: grid; gap: 20px; margin-top: 40px; }
.gen__cards--1 { grid-template-columns: 1fr; } .gen__cards--2 { grid-template-columns: 1fr 1fr; } .gen__cards--3 { grid-template-columns: repeat(3, 1fr); }
.gen__card { padding: 24px 22px; }
.gen__card-title { font: 700 22px/1.1 var(--body); }
.gen__card p { margin-top: 12px; font-size: 16px; line-height: 1.3; color: var(--muted); }
.gen__imgs { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; }
.gen__imgs figure { margin: 0; flex: 1 1 200px; }
.gen__imgs--1 figure { flex: 0 1 auto; }
.gen__imgs img { width: 100%; border-radius: 10px; }
.gen__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gen__links a { display: inline-block; padding: 10px 16px; border: 1px solid #3a3a3a; border-radius: 999px; text-decoration: none; font-size: 15px; }
.gen__links a:hover { border-color: var(--lime); color: var(--lime); }
.gen__btn { margin-top: 36px; }
.prose { font-size: 16px; line-height: 1.5; color: #ddd; }
.prose h1, .prose h2, .prose h3 { margin: 36px 0 12px; font: 700 26px/1.15 var(--body); color: #fff; text-transform: none; }
.prose h1 { font-size: 34px; } .prose p, .prose ul, .prose ol { margin: 0 0 14px; } .prose ul { list-style: disc; padding-left: 22px; } .prose ol { padding-left: 22px; }
.prose a { color: var(--lime); }
.prose table { border-collapse: collapse; margin: 10px 0 20px; } .prose td, .prose th { border: 1px solid #333; padding: 6px 10px; vertical-align: top; }
.faq__title { background: var(--violet); border-radius: 24px 24px 0 0; padding: 14px; text-align: center; font: 600 30px/1 var(--body); }
.faq__item { border: 3px solid #fff; border-top-width: 0; }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 26px 80px 26px 40px; font-size: 22px; line-height: 1.1; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 36px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:hover { color: var(--lime); }
.faq__item p { padding: 0 80px 26px 40px; font-size: 18px; line-height: 1.25; color: #cfcfcf; }
@media (max-width: 760px) {
  .gen--first { padding-top: 100px; }
  h1.gen__title { font-size: 30px; }
  .gen__p { font-size: 15px; }
  .gen__cards--2, .gen__cards--3 { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .gen__card { padding: 18px 16px; } .gen__card-title { font-size: 19px; } .gen__card p { font-size: 14px; }
  .gen__imgs { gap: 12px; margin-top: 24px; }
  .faq__title { font-size: 22px; border-radius: 16px 16px 0 0; }
  .faq__item { border-width: 0 2px 2px; }
  .faq__item summary { padding: 18px 46px 18px 16px; font-size: 16px; } .faq__item summary::after { right: 20px; }
  .faq__item p { padding: 0 16px 18px; font-size: 14px; }
}

@media (min-width: 1260px) { body { zoom: 1.05; } }
@media (min-width: 1320px) { body { zoom: 1.1; } }
@media (min-width: 1380px) { body { zoom: 1.15; } }
@media (min-width: 1440px) { body { zoom: 1.2; } }
@media (min-width: 1560px) { body { zoom: 1.3; } }
@media (min-width: 1680px) { body { zoom: 1.4; } }
@media (min-width: 1800px) { body { zoom: 1.5; } }
@media (min-width: 1920px) { body { zoom: 1.6; } }
@media (min-width: 340px) and (max-width: 760px) { body { zoom: 1.06; } }
@media (min-width: 360px) and (max-width: 760px) { body { zoom: 1.12; } }
@media (min-width: 375px) and (max-width: 760px) { body { zoom: 1.17; } }
@media (min-width: 400px) and (max-width: 760px) { body { zoom: 1.25; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.wrap--blog { max-width: calc(1000px + 2 * var(--gut)); }
.blog-list { margin-top: 50px; }
.crumbs + .gen__title { margin-top: 20px; }

/* Отзывы страницы (page-flex, p_reviews) */
.prev__rating { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.prev__rating > b { font: 400 78px/1 var(--body); }
.prev__rating > span { display: flex; flex-direction: column; gap: 4px; font-size: 20px; line-height: 1.1; }
.prev__stars { color: var(--lime); font-size: 16px; letter-spacing: 1px; }
.prev__rating small { font-size: 16px; color: #aaa; }
.prev__list { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.prev__item { padding: 22px 24px; background: #fff; color: #111; border-radius: 12px; }
.prev__item blockquote { margin: 0; font-size: 16px; line-height: 1.35; }
.prev__item p { margin-top: 14px; font-size: 14px; color: #555; } .prev__item b { color: #111; }
@media (max-width: 760px) { .prev__rating > b { font-size: 56px; } .prev__rating > span { font-size: 16px; } }

.projects__btn { margin-top: 24px; }
html { scroll-padding-top: 20px; }

.cta__points { position: absolute; left: 400px; top: 200px; display: flex; flex-direction: column; gap: 24px; max-width: 320px; }
.cta__points li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.25; }
.cta__points li::before { content: "✦"; position: absolute; left: 0; top: 0; color: #a48cf5; }
@media (max-width: 760px) { .cta__points { position: static; margin-top: 24px; gap: 14px; } .cta__points li { font-size: 15px; } }

.course-cards > li { min-width: 0; }
.course-card { min-width: 0; overflow-wrap: anywhere; }

/* Статьи: широкие таблицы и код прокручиваются внутри себя, длинные слова переносятся */
.post-content { overflow-wrap: anywhere; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.post-content pre, .post-content code { overflow-wrap: normal; }
.post-content img, .post-content iframe, .post-content video { max-width: 100%; height: auto; }

.post-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.h1, .h2, .m-h1, .m-h2, .hm-h2, .gen__title { hyphens: auto; -webkit-hyphens: auto; }
