/*
 * Оформление страниц мероприятий и главной (замена Elementor).
 * Разметка — чистый HTML с классами pc-*; шрифты и цвета берутся из темы Astra.
 * Иконки — Font Awesome Free 5.15 (CC BY 4.0), встроены в разметку как SVG.
 */
.pc-page { --pc-text: var(--ast-global-color-3, #334155); --pc-link: var(--ast-global-color-0, #046bd2); --pc-link-dark: var(--ast-global-color-1, #045cb4); overflow-x: clip;
  /* на всю ширину окна, даже если тема ограничивает контейнер */
  width: auto; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
body { overflow-x: clip; }
/* Astra ограничивает ширину прямых потомков .entry-content — перекрываем */
.pc-page > .pc-sec { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; width: auto !important; }
.pc-page *, .pc-page *::before, .pc-page *::after { box-sizing: border-box; }
.pc-page img { max-width: 100%; height: auto; }

/* ---------- секция и колонки ---------- */
.pc-sec { position: relative; background: #fff; padding: var(--pc-pad, 40px 0); }
.pc-in { display: flex; gap: 20px; align-items: flex-start; width: 100%; max-width: var(--pc-w, 1140px); margin: 0 auto; }
@media (max-width: 1200px) { .pc-in { padding: 0 10px; } }
.pc-row { display: flex; gap: 20px; align-items: flex-start; }
.pc-col { min-width: 0; flex: 1 1 0; }
.pc-col > * { margin: 0 0 20px; }
.pc-col > *:last-child { margin-bottom: 0; }
.pc-w16 { flex: 0 0 16%; } .pc-w20 { flex: 0 0 20%; } .pc-w25 { flex: 0 0 25%; } .pc-w33 { flex: 0 0 33%; }
.pc-w40 { flex: 0 0 40%; } .pc-w50 { flex: 0 0 50%; } .pc-w60 { flex: 0 0 60%; } .pc-w66 { flex: 0 0 66%; }
.pc-w75 { flex: 0 0 75%; } .pc-w100 { flex: 1 1 100%; }
.pc-in.pc-cols-2 > .pc-col, .pc-row.pc-cols-2 > .pc-col { flex: 1 1 0; }
.pc-in.pc-cols-3 > .pc-col, .pc-row.pc-cols-3 > .pc-col { flex: 1 1 0; }
.pc-in.pc-cols-4 > .pc-col, .pc-row.pc-cols-4 > .pc-col { flex: 1 1 0; }
.pc-row { width: 100%; }
.pc-center { text-align: center; }
.pc-right { text-align: right; }

/* ---------- заголовки и текст ---------- */
.pc-page h1, .pc-page h2, .pc-page h3, .pc-page h4 { margin: 0; color: var(--pc-text); }
.pc-page h1 { font-size: 40px; line-height: 1.4; }
.pc-page h2 { font-size: 32px; line-height: 1.3; font-weight: 600; }
.pc-page h3 { font-size: 26px; line-height: 1.3; }
.pc-page h4 { font-size: 22px; line-height: 1.2; }
.pc-text > :first-child { margin-top: 0; }
.pc-text > :last-child { margin-bottom: 0; }
.pc-text p { margin: 0 0 1.2em; }
.pc-text ul, .pc-text ol { margin: 0 0 1.2em 1.3em; }
.pc-text del { color: inherit; opacity: .75; }
.pc-text ins, .pc-text strong, .pc-text b { text-decoration: none; }
.pc-figure { margin: 0; }
.pc-figure img { display: block; }
.pc-figure.pc-center img { margin: 0 auto; }
.pc-video video { display: block; width: 100%; height: auto; }
.pc-anchor { height: 0; margin: 0 !important; scroll-margin-top: 80px; }
.pc-anchor { position: relative; top: -80px; }

/* ---------- кнопка ---------- */
.pc-actions { margin: 0; }
.pc-btn { display: inline-block; padding: 15px 30px; border-radius: 3px; background: var(--pc-link); color: #fff !important; font-size: 15px; line-height: 1; text-decoration: none !important; text-align: center; transition: background .3s; }
.pc-btn:hover, .pc-btn:focus { background: var(--pc-link-dark); color: #fff; }

/* ---------- звёзды ---------- */
.pc-stars { margin: 0; color: #f0ad4e; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.pc-hero .pc-stars { color: #f0ad4e; }

/* ---------- список с галочками / иконками ---------- */
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 .45em; line-height: 1.5; }
.pc-list--check li::before { content: ""; flex: 0 0 14px; width: 14px; height: 14px; margin-top: .3em; background: currentColor; -webkit-mask: var(--pc-check) center/contain no-repeat; mask: var(--pc-check) center/contain no-repeat; }
.pc-page { --pc-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/></svg>"); }
.pc-ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.pc-list .pc-ico { width: 14px; height: 14px; margin-top: .25em; }

/* ---------- hero ---------- */
.pc-hero { background: #fff var(--pc-bg) center left / cover no-repeat; text-align: center; isolation: isolate; }
.pc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pc-ov, rgba(81,81,81,.68)); opacity: var(--pc-ov-o, .9); }
.pc-hero h1, .pc-hero h2, .pc-hero h3, .pc-hero h4, .pc-hero p { color: var(--ast-global-color-5, #fff); }
.pc-hero h1 { margin-bottom: 0; }
.pc-hero .pc-col > h1 + .pc-actions { margin-top: 84px; }
.pc-hero .pc-col { padding-bottom: 14px; }

/* ---------- карточки «Дата / Начало / Стоимость» ---------- */
.pc-facts { padding: 0; z-index: 1; background: transparent; }
.pc-facts .pc-in { max-width: 1140px; }
.pc-facts .pc-col > .pc-row { margin-top: -120px; padding-bottom: 40px; gap: 0; background: transparent; }
.pc-facts .pc-row > .pc-col { padding: 0 50px; }
.pc-fact { text-align: center; background: var(--ast-global-color-5, #fff); border-radius: 5px; box-shadow: 0 0 30px rgba(0,0,0,.1); padding: 20px 20px 35px; transition: box-shadow .3s; }
.pc-fact:hover { box-shadow: 0 0 10px rgba(0,0,0,.12); }
.pc-fact .pc-ico { width: 60px; height: 60px; display: block; margin: 0 auto 10px; color: var(--pc-text); }
.pc-fact h3 { font-size: 26px; font-weight: 500; margin: 0 0 10px; }
.pc-fact p { margin: 0; font-size: 18px; line-height: 1.65; }
.pc-fact del { opacity: .75; }
.pc-fact ins, .pc-fact span.red { color: #d63638; text-decoration: none; }

/* ---------- блок «о спикере» ---------- */
.pc-lead { padding-top: 40px; padding-bottom: 0; }
.pc-lead .pc-in { max-width: 800px; }
.pc-lead .pc-col + .pc-col { padding-left: 50px; }
.pc-lead .pc-col:first-child { flex: 0 0 33%; }
.pc-lead img { display: block; margin: 0 auto; }

/* ---------- карточка «чему научитесь» ---------- */
.pc-panel { padding: 40px 0; }
.pc-panel .pc-in { max-width: 700px; }
.pc-panel .pc-col, .pc-form .pc-col { margin: 40px 20px; padding: 40px; background: #fff; border-radius: 5px; box-shadow: 0 0 60px rgba(0,0,0,.1); }
.pc-panel .pc-col h2 { text-align: center; }
.pc-panel .pc-actions { margin-top: 20px; }

/* ---------- отзывы ---------- */
.pc-reviews { padding: 40px 0; }
.pc-reviews .pc-in { max-width: 1140px; }
.pc-reviews .pc-col > h2 { margin-bottom: 20px; }
.pc-reviews .pc-row { gap: 0; }
.pc-reviews .pc-row > .pc-col > * { margin: 20px; }
.pc-reviews .pc-row > .pc-col > *:last-child { margin: 20px; }
.pc-review { margin: 0; padding: 20px; background: #fff; border-radius: 5px; box-shadow: 0 0 60px rgba(0,0,0,.1); }
.pc-review blockquote { margin: 0 0 20px; padding: 0; border: 0; font-size: 16px; line-height: 1.65; font-style: normal; quotes: none; }
.pc-review blockquote::before, .pc-review blockquote::after { content: none; }
.pc-review figcaption { display: flex; align-items: center; gap: 15px; }
.pc-review figcaption img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.pc-review b { display: block; font-size: 15px; line-height: 2; font-weight: 700; }
.pc-review small { display: block; font-size: 13px; line-height: 1.3; opacity: .8; }

/* ---------- обычные блоки, якорь-заголовки ---------- */
.pc-block { padding: var(--pc-pad, 40px 0); }
.pc-block .pc-in, .pc-anchor-sec .pc-in { max-width: var(--pc-w, 1000px); }
.pc-block h2 { text-align: center; font-weight: 600; }
.pc-block .pc-figure { margin-top: 20px; }
.pc-anchor-sec { padding-top: 40px; }
.pc-features { padding: 40px 0; }

/* ---------- тарифы / карточки ---------- */
.pc-cards { padding: var(--pc-pad, 20px 0 40px); background: #fcfcfc; }
.pc-cards .pc-in { max-width: var(--pc-w, 1000px); }
.pc-cards .pc-col { margin: 20px; padding: 30px; background: #fff; border-radius: 5px; box-shadow: 0 0 10px 2px rgba(33,33,33,.15); }
.pc-cards .pc-col > * { margin-bottom: 20px; }
.pc-cards .pc-col > .pc-stars { margin-bottom: 6px; }
.pc-cards .pc-col > h2, .pc-cards .pc-col > h3 { margin-bottom: 14px; font-size: 22px; }
.pc-cards .pc-col > .pc-text:last-of-type { margin-bottom: 20px; }
.pc-cards .pc-in { gap: 0; }

/* ---------- правила участия (FAQ в 2 колонки) ---------- */
.pc-rules { padding: 40px 0; }
.pc-rules .pc-in { max-width: 1000px; }
.pc-rules .pc-col > h2 { text-align: center; font-weight: 600; margin-bottom: 60px; }
.pc-rules .pc-row { gap: 0; }
.pc-rules .pc-row > .pc-col { padding: 0 30px; }
.pc-rules .pc-row > .pc-col > * { margin-bottom: 30px; }
.pc-item h3, .pc-item h4, .pc-item h5 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.pc-item p { margin: 0; font-size: 14px; line-height: 1.65; }
.pc-item img { margin-bottom: 10px; }
.pc-item ul { margin: 10px 0 0 1.2em; }

/* ---------- раскрывающиеся вопросы ---------- */
.pc-faq { padding: 40px 0; }
.pc-faq .pc-in { max-width: var(--pc-w, 1000px); }
.pc-acc details { border-bottom: 1px solid #d4d4d4; }
.pc-acc details:first-child { border-top: 1px solid #d4d4d4; }
.pc-acc summary { cursor: pointer; list-style: none; padding: 15px 20px 15px 40px; position: relative; font-weight: 600; font-size: 18px; color: var(--pc-text); }
.pc-acc summary::-webkit-details-marker { display: none; }
.pc-acc summary::before { content: "+"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; }
.pc-acc details[open] > summary::before { content: "−"; }
.pc-acc details > div { padding: 5px 20px 20px 40px; }
.pc-acc details > div > :last-child { margin-bottom: 0; }

/* ---------- форма заявки ---------- */
.pc-form .pc-in { max-width: 800px; }
.pc-form .pc-col { width: 100%; }

/* ---------- вставки (тесты, генераторы) ---------- */
.pc-embed { width: 100%; }
.pc-embed-sec { padding: 20px 0; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1024px) {
  .pc-hero { padding-top: 120px !important; padding-bottom: 160px !important; }
  .pc-facts .pc-row > .pc-col { padding: 0 15px; }
  .pc-page h1 { font-size: 34px; }
  .pc-page h2 { font-size: 28px; }
}
@media (max-width: 767px) {
  .pc-in, .pc-row { flex-wrap: wrap; }
  .pc-col, .pc-in.pc-cols-2 > .pc-col, .pc-in.pc-cols-3 > .pc-col, .pc-row.pc-cols-2 > .pc-col, .pc-row.pc-cols-3 > .pc-col,
  .pc-w16, .pc-w20, .pc-w25, .pc-w33, .pc-w40, .pc-w50, .pc-w60, .pc-w66, .pc-w75 { flex: 1 1 100%; width: 100%; }
  .pc-lead .pc-col + .pc-col { padding-left: 0; margin-top: 20px; }
  .pc-lead .pc-col:first-child { flex: 1 1 100%; }
  .pc-hero { padding-top: 80px !important; padding-bottom: 130px !important; }
  .pc-facts .pc-col > .pc-row { margin-top: -90px; }
  .pc-facts .pc-row > .pc-col { padding: 0 20px 20px; }
  .pc-panel .pc-col, .pc-form .pc-col { margin: 20px 10px; padding: 24px 20px; }
  .pc-cards .pc-col { margin: 10px; padding: 20px; }
  .pc-rules .pc-row > .pc-col { padding: 0 10px; }
  .pc-reviews .pc-row > .pc-col > * { margin: 10px; }
  .pc-page h1 { font-size: 26px; }
  .pc-page h2 { font-size: 24px; }
  .pc-page h3 { font-size: 20px; }
}

/* ---------- главная страница ---------- */
.pc-page h1.pc-center, .pc-hero h1 { font-weight: 600; }
.pc-hero h1 { font-size: 41px; }
.pc-home .pc-hero h3 { margin: 20px 0 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
.pc-home .pc-hero .pc-col > h3 + .pc-actions { margin-top: 32px; }
.pc-home .pc-features { text-align: center; }
.pc-home .pc-features h1 { font-size: 30px; font-weight: 500; line-height: 1.3; color: var(--ast-global-color-2, #1e293b); margin-bottom: 20px; }
.pc-home .pc-features .pc-text { font-size: 14px; margin-bottom: 40px; }
.pc-home .pc-features .pc-row { gap: 0; }
.pc-home .pc-features .pc-fact { background: none; box-shadow: none; padding: 0 12px; margin: 0; }
.pc-home .pc-features .pc-fact .pc-ico { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: #f5f5f5; color: #127be3; margin: 0 auto 24px; }
.pc-home .pc-features .pc-fact h3 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.pc-home .pc-features .pc-fact p { font-size: 14px; line-height: 1.85; }
.pc-home .pc-cards { background: #fff; padding: 0 0 20px; }
.pc-home .pc-cards .pc-in { gap: 40px; max-width: 960px; }
.pc-home .pc-cards .pc-col { margin: 20px 0; padding: 30px; }
.pc-home .pc-cards .pc-col > h3 { font-size: 26px; line-height: 1.3; font-weight: 600; margin-bottom: 0; }
.pc-home .pc-cards .pc-col > .pc-figure { margin-bottom: 0; }
.pc-home .pc-cards .pc-text { font-size: 14px; }
.pc-home .pc-cards .pc-text h3 { font-size: 26px; font-weight: 600; margin: 0; }
.pc-home .pc-cards .pc-list { font-size: 12px; opacity: .75; }
@media (max-width: 767px) { .pc-home .pc-cards .pc-in { gap: 0; } .pc-home .pc-features .pc-row { flex-wrap: wrap; } .pc-home .pc-features .pc-fact { margin-bottom: 24px; } }
