/* =========================================================
   Бібліотека вебінарів — page-webinar-library.php
   Значення з макета ua-webinars_4.html, усі шрифти +3px; архів, сертифікат і нижні блоки ще +4px.
   Усі класи з префіксом wl-, щоб не змішуватись зі стилями теми.
   ========================================================= */
.wl,
.wl-announce {
  --wl-grey: #F0F0F0;
  --wl-inner: #FFFFFF;
  --wl-ink: #16213D;
  --wl-ink-2: #4A5468;
  --wl-ink-3: #8A93A3;
  --wl-ink-dark: #2E3A52;
  --wl-blue: #2D6FE0;
  --wl-blue-soft: #E7F0FD;
  --wl-yellow: #F7E285;
  font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
.wl #live, .wl #archive { scroll-margin-top: 110px; }

/* ---------- скидання стилів теми всередині сторінки ---------- */
.wl { display: block; background: #fff; color: var(--wl-ink); line-height: 1.55; font-size: 19px; -webkit-font-smoothing: antialiased; padding: 0 0 40px; margin: 0; }
.wl *, .wl *::before, .wl *::after { box-sizing: border-box; }
.wl h1, .wl h2, .wl h3, .wl p, .wl ul, .wl li { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; text-transform: none; text-align: inherit; }
.wl h1, .wl h2, .wl h3 { line-height: 1.15; letter-spacing: -.01em; color: inherit; font-weight: 700; }
.wl ul { list-style: none; }
.wl li { list-style: none; }
.wl li::before, .wl li::after { content: none; }
.wl a, .wl a:hover, .wl a:focus, .wl a:visited { text-decoration: none; }
.wl b, .wl strong { font-weight: 700; }
.wl em { font-style: normal; }
.wl img { max-width: none; }
.wl a:focus-visible { outline: 3px solid var(--wl-ink); outline-offset: 2px; }

.wl .wl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wl .wl-sec, .wl .wl-hero, .wl .wl-live { margin: 0 0 28px; }

/* ---------- кнопки ---------- */
.wl .wl-btn { display: inline-block; position: static; width: auto; height: auto; min-width: 0; background: var(--wl-blue); color: #fff; border: 0; border-radius: 40px; padding: 16px 32px; font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; text-decoration: none; text-align: center; box-shadow: none; cursor: pointer; }
.wl .wl-btn::before, .wl .wl-btn::after { content: none; display: none; }
.wl .wl-btn:hover { filter: brightness(1.08); color: #fff; }
.wl .wl-btn--line { background: transparent; color: var(--wl-blue); border: 2px solid var(--wl-blue); }
.wl .wl-btn--line:hover { background: var(--wl-blue-soft); color: var(--wl-blue); filter: none; }
.wl .wl-hero .wl-btn--line,
.wl .wl-idea .wl-btn--line,
.wl .wl-final .wl-btn--line { border-color: var(--wl-ink-dark); color: var(--wl-ink-dark); }
.wl .wl-btn--yellow, .wl .wl-btn--yellow:hover { background: var(--wl-yellow); color: var(--wl-ink); }
.wl .wl-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.wl .wl-cta--center { justify-content: center; }

/* ---------- заголовки секцій ---------- */
.wl .wl-t { font-size: clamp(29px, 3.2vw, 41px); text-align: center; margin-bottom: 10px; color: var(--wl-ink); }
.wl .wl-s { text-align: center; color: var(--wl-ink-3); font-size: 22px; max-width: 70ch; margin: 0 auto 26px; }

/* ---------- HERO ---------- */
.wl .wl-hero { background: var(--wl-yellow); border-radius: 26px; padding: 48px 52px; margin-top: 24px; color: var(--wl-ink); display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.wl .wl-eyebrow { font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wl-blue); margin: 0 0 14px; }
.wl .wl-hero .wl-h1 { font-size: clamp(33px, 4.2vw, 51px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--wl-ink); margin: 0 0 14px; }
.wl .wl-lead { font-size: 22px; color: var(--wl-ink-dark); margin: 0 0 24px; max-width: 60ch; }
.wl .wl-side { background: #fff; border-radius: 22px; padding: 24px 26px; }
.wl .wl-side__title { font-size: 21px; font-weight: 700; line-height: 1.15; margin: 0 0 12px; color: var(--wl-ink); }
.wl .wl-reasons { display: grid; gap: 8px; }
.wl .wl-reason { background: var(--wl-grey); color: var(--wl-ink); border-radius: 14px; padding: 15px 18px; }
.wl .wl-reason b { display: block; font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.wl .wl-reason span { display: block; font-size: 19px; color: var(--wl-ink-2); }
@media (max-width: 900px) { .wl .wl-hero { grid-template-columns: 1fr; padding: 32px 22px; } }

/* ---------- НАЙБЛИЖЧИЙ ВЕБІНАР ---------- */
.wl .wl-live { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--wl-ink); color: #fff; text-decoration: none; }
.wl .wl-live:hover { color: #fff; }
.wl .wl-live__l { padding: 38px 40px; }
.wl .wl-live__k { display: inline-block; font-size: 15.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--wl-yellow); color: var(--wl-ink); border-radius: 20px; padding: 6px 12px; margin-bottom: 16px; }
.wl .wl-live .wl-live__title { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.25; margin-bottom: 16px; color: #fff; }
.wl .wl-live__list { margin: 0 0 20px; display: grid; gap: 10px; }
.wl .wl-live__list li { font-size: 20px; color: #fff; opacity: .9; padding-inline-start: 28px; position: relative; }
.wl .wl-live__list li::before { content: "→"; position: absolute; inset-inline-start: 0; top: 0; color: var(--wl-yellow); }
.wl .wl-live__r { background: var(--wl-blue); padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.wl .wl-live__box { background: rgba(255, 255, 255, .12); border-radius: 16px; padding: 16px 18px; color: #fff; }
.wl .wl-live__box b { display: block; font-size: 22px; color: #fff; }
.wl .wl-live__box span { font-size: 19px; color: rgba(255, 255, 255, .85); }
.wl .wl-live__box .wl-live__date { font-size: clamp(29px, 3vw, 37px); font-weight: 700; color: #fff; line-height: 1.1; }
.wl .wl-spk { display: flex; align-items: center; gap: 14px; }
.wl .wl-spk .wl-spk__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .5); margin: 0; }
.wl .wl-spk em { display: block; font-style: normal; font-size: 17px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
@media (max-width: 860px) { .wl .wl-live { grid-template-columns: 1fr; } .wl .wl-live__l, .wl .wl-live__r { padding: 28px 22px; } }

/* ---------- АРХІВ ---------- */
.wl .wl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.wl .wl-card { display: flex; flex-direction: column; background: var(--wl-grey); border-radius: 22px; padding: 24px 22px; text-decoration: none; color: var(--wl-ink); transition: transform .15s; }
.wl .wl-card:hover { transform: translateY(-2px); color: var(--wl-ink); }
.wl .wl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wl .wl-tags span { font-size: 17px; font-weight: 700; line-height: 1.55; padding: 5px 10px; border-radius: 20px; background: var(--wl-inner); color: var(--wl-ink-2); }
.wl .wl-card .wl-card__title { font-size: 24px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; color: var(--wl-ink); }
.wl .wl-card__list { margin: 0 0 16px; display: grid; gap: 6px; }
.wl .wl-card__list li { font-size: 20.5px; color: var(--wl-ink-2); padding-inline-start: 24px; position: relative; }
.wl .wl-card__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--wl-blue); font-weight: 700; }
.wl .wl-bonus { font-size: 20px; font-weight: 600; color: var(--wl-ink); background: var(--wl-inner); border-radius: 12px; padding: 9px 12px; margin-bottom: 16px; }
.wl .wl-go { margin-top: auto; font-size: 19px; font-weight: 700; color: var(--wl-blue); }
@media (max-width: 1000px) { .wl .wl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wl .wl-grid { grid-template-columns: 1fr; } }

/* ---------- СЕРТИФІКАТ ---------- */
.wl .wl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: wlstep; }
.wl .wl-step { background: var(--wl-grey); border-radius: 20px; padding: 24px 22px; counter-increment: wlstep; }
.wl .wl-step::before { content: counter(wlstep); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wl-blue); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.wl .wl-step b { display: block; font-size: 23px; margin-bottom: 6px; }
.wl .wl-step span { display: block; font-size: 21px; color: var(--wl-ink-2); }
@media (max-width: 760px) { .wl .wl-steps { grid-template-columns: 1fr; } }

/* ---------- ЗАПРОПОНУВАТИ ТЕМУ ---------- */
/* версія CSS: v11 */
.wl .wl-idea { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--wl-yellow); border-radius: 22px; padding: 28px 32px; color: var(--wl-ink); }
.wl .wl-idea b { display: block; font-size: 27px; margin-bottom: 6px; }
.wl .wl-idea span { font-size: 21.5px; color: var(--wl-ink-dark); }
.wl .wl-idea .wl-cta { gap: 10px; }
@media (max-width: 760px) { .wl .wl-idea { grid-template-columns: 1fr; } }

/* ---------- КОНСУЛЬТАЦІЯ ---------- */
.wl .wl-final { text-align: center; background: var(--wl-yellow); border-radius: 26px; padding: 42px 30px; color: var(--wl-ink); }
.wl .wl-final .wl-final__title { font-size: clamp(29px, 3vw, 37px); margin-bottom: 10px; color: var(--wl-ink); text-align: center; }
.wl .wl-final p { font-size: 22px; margin: 0 auto 20px; max-width: 60ch; color: var(--wl-ink-dark); text-align: center; }

/* ---------- ПЛАШКА-АНОНС ---------- */
.wl-announce, .wl-announce:hover, .wl-announce:visited { display: block; background: #2D6FE0; color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.4; }
.wl-announce .wl-announce__in { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 1180px; margin: 0 auto; padding: 10px 20px; text-align: center; }
.wl-announce u { text-decoration: none; flex-shrink: 0; background: #fff; color: #2D6FE0; border-radius: 40px; padding: 5px 14px; font-size: 16px; font-weight: 700; }
.wl-announce:hover u { background: #F7E285; color: #16213D; }
@media (max-width: 620px) { .wl-announce { font-size: 16px; } .wl-announce .wl-announce__in { gap: 10px; text-align: start; } }

@media (prefers-reduced-motion: reduce) { .wl .wl-card { transition: none; } .wl .wl-card:hover { transform: none; } }

/* ---------- СПЛИВАЮЧА ФОРМА «ЗАПРОПОНУВАТИ ТЕМУ» ---------- */
html.wl-lock { overflow: hidden; }
.wl .wl-modal[hidden] { display: none; }
.wl .wl-modal { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; padding: 32px 16px; overflow-y: auto; background: rgba(0, 0, 0, .55); }
.wl .wl-modal__overlay { position: fixed; inset: 0; background: transparent; }
.wl .wl-modal__box { position: relative; width: 100%; max-width: 520px; margin: auto; background: #fff; border-radius: 22px; padding: 34px 32px 30px; color: var(--wl-ink); box-shadow: 0 24px 60px rgba(22, 33, 61, .25); }
.wl .wl-modal__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--wl-grey); color: var(--wl-ink); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.wl .wl-modal__close:hover { background: var(--wl-blue-soft); }
.wl .wl-modal__title { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 40px 8px 0; text-align: center;}
.wl .wl-modal__text { font-size: 17px; color: var(--wl-ink-2); margin: 0 0 20px; }
.wl .wl-modal .box_form { display: grid; gap: 12px; }
.wl .wl-modal .wpcf7-form-control-wrap { display: block; }
.wl .wl-modal input[type="text"],
.wl .wl-modal input[type="tel"],
.wl .wl-modal input[type="email"],
.wl .wl-modal textarea { display: block; width: 100%; font-family: inherit; font-size: 17px; color: var(--wl-ink); background: #fff; border: 1.5px solid #E3E6EA; border-radius: 12px; padding: 14px 16px; margin: 0; box-shadow: none; }
.wl .wl-modal textarea { height: 130px; min-height: 110px; resize: vertical; }
.wl .wl-modal input:focus, .wl .wl-modal textarea:focus { outline: none; border-color: var(--wl-blue); }
.wl .wl-modal .box_form_submit { margin-top: 16px; }
.wl .wl-modal input[type="submit"] { display: block; width: 100%; background: var(--wl-blue); color: #fff; border: 0; border-radius: 40px; padding: 16px 24px; font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.wl .wl-modal input[type="submit"]:hover { filter: brightness(1.08); }
.wl .wl-modal .wpcf7-not-valid-tip { font-size: 14px; margin-top: 4px; }
.wl .wl-modal .wpcf7-response-output { margin: 16px 0 0; border-radius: 12px; font-size: 16px; padding: 12px 14px; }
.wl .wl-modal .wpcf7-spinner { display: block; margin: 10px auto 0; }
@media (max-width: 520px) { .wl .wl-modal__box { padding: 28px 20px 22px; } .wl .wl-modal__title { font-size: 22px; } }

/* стан «надіслано»: без заголовка, лише подяка, по центру
   (!important — бо тема й CF7 мають свої відступи для повідомлення) */
.wl .wl-modal--sent .wl-modal__title,
.wl .wl-modal--sent .wl-modal__text { display: none !important; }
.wl .wl-modal--sent .wl-modal__box { padding: 44px 32px 40px; text-align: center; }
.wl .wl-modal--sent form { display: flex !important; flex-direction: column; align-items: center; justify-content: center; margin: 0 !important; padding: 0 !important; }
.wl .wl-modal--sent form > *:not(.wpcf7-response-output) { display: none !important; }
.wl .wl-modal--sent .wpcf7-response-output { display: block !important; width: 100% !important; max-width: 400px; margin: 0 auto !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 20px; font-weight: 600; line-height: 1.4; text-align: center !important; color: var(--wl-ink); }
.wl .wl-modal--sent .wpcf7-response-output::before { content: "✓"; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #D6EFDD; color: #25794A; font-size: 28px; font-weight: 700; }

.wl .wl-card .wl-bonus { margin-top: auto; }
.wl .wl-card .wl-bonus + .wl-go { margin-top: 0; }