/* КультФонд — основные стили шаблона. Bootstrap 5.3.8 + Font Awesome 7 Free.
   Здесь нет собственных цветов, градиентов и шрифтов: всё берётся из variables.css.
   Префикс cf- изолирует оформление шаблона от стилей компонентов и модулей Joomla.
   Свои правки добавляйте в custom.css: он подключается последним. */

/* ─────────────────────────────────────────────────────────────────────
   1. Основа
   ───────────────────────────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--cf-nav-height) + 16px); }
.cf-layout { background: var(--cf-paper); color: var(--cf-ink); font-family: var(--cf-font); font-size: 16px; line-height: 1.5; font-variant-numeric: lining-nums tabular-nums; }
.cf-container.container-xxl { max-width: 1320px; padding-inline: 24px; }
.cf-main { min-height: 40vh; }

.cf-topbar a, .cf-nav a, .cf-mobile-nav a, .cf-home a, .cf-site-footer a { color: inherit; text-decoration: none; }
.cf-topbar img, .cf-home img { display: block; max-width: 100%; }
.cf-home :where(h1, h2, h3, p, ul), .cf-topbar :where(p, ul), .cf-site-footer :where(h2, p) { margin: 0; }

:where(a, button):focus-visible { outline: 3px solid var(--cf-gold); outline-offset: 4px; }

.cf-skip { position: absolute; top: -100px; left: 15px; z-index: 1100; padding: 12px; background: var(--cf-paper); color: var(--cf-ink); }
.cf-skip:focus { top: 15px; }

/* ─────────────────────────────────────────────────────────────────────
   2. Кнопки
   ───────────────────────────────────────────────────────────────────── */
.btn.cf-btn { display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; min-height: 56px; padding: 15px 22px; border: 1px solid var(--cf-gold-button-line); border-radius: 10px; background: var(--cf-gold-gradient); color: var(--cf-ink); box-shadow: var(--cf-gold-button-shadow); font-family: var(--cf-font); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; text-decoration: none; }
.btn.cf-btn:hover, .btn.cf-btn:focus-visible { transform: translateY(-3px); background: var(--cf-gold-button-hover); color: var(--cf-ink); box-shadow: var(--cf-gold-hover-shadow); }
.btn.cf-blue-btn { background: var(--cf-blue-gradient); border-color: var(--cf-blue-button-line); color: var(--cf-white); box-shadow: var(--cf-blue-button-shadow); }
.btn.cf-blue-btn:hover, .btn.cf-blue-btn:focus-visible { background: var(--cf-blue-button-hover); color: var(--cf-white); }
.btn.cf-account { background: var(--cf-account-gradient); border-color: var(--cf-account-border); color: var(--cf-account-text); font-weight: 500; letter-spacing: .3px; }
.btn.cf-account:hover, .btn.cf-account:focus-visible { background: var(--cf-blue-button-hover); color: var(--cf-account-text); }
.cf-arrow { display: inline-block; flex-shrink: 0; font-size: 19px; transform: rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────
   3. Шапка: логотип, контакты, кабинет
   ───────────────────────────────────────────────────────────────────── */
.cf-topbar { background: var(--cf-header-background); color: var(--cf-ink); }
.cf-topbar__inner { min-height: 100px; padding-block: 16px; }
.cf-brand { gap: 13px; min-width: 0; }
.cf-brand__logo { flex: none; width: 68px; height: 68px; padding: 3px; object-fit: contain; }
.cf-brand__name { display: block; color: var(--cf-brand); font-size: 27px; line-height: 1.1; letter-spacing: -1px; }
.cf-brand-dot { color: var(--cf-brand-dot); }
.cf-brand__desc { display: block; margin-top: 6px; color: var(--cf-muted); font-size: 11px; line-height: 1.35; }
.cf-header-right { gap: 26px; }
.cf-phone { color: var(--cf-brand); font-size: 17px; font-weight: 500; letter-spacing: .5px; }
.cf-messengers { gap: 12px; margin-top: 6px; color: var(--cf-muted); font-size: 11px; }
.cf-messengers a:hover { color: var(--cf-blue); }
.cf-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--cf-brand); font-size: 21px; }
.cf-icon-btn:hover { color: var(--cf-blue); }

/* ─────────────────────────────────────────────────────────────────────
   4. Десктопное меню (закрепляется при прокрутке)
   ───────────────────────────────────────────────────────────────────── */
.cf-nav { z-index: 1030; background: var(--cf-header-background); border-bottom: 1px solid var(--cf-header-line); }
.cf-nav > ul { --bs-nav-link-padding-x: 0; --bs-nav-link-padding-y: 8px; --bs-nav-link-color: var(--cf-ink); --bs-nav-link-hover-color: var(--cf-blue); --bs-nav-link-font-size: clamp(13px, 1.2vw, 18px); --bs-nav-link-font-weight: 500; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 24px; width: 100%; max-width: 1320px; padding: 17px 24px; margin-inline: auto; border-top: 1px solid var(--cf-nav-line); letter-spacing: .15px; }
.cf-nav > ul > .nav-item { flex: 0 1 auto; text-align: left; }
.cf-nav > ul > .nav-item > .nav-link { position: relative; }
.cf-nav > ul > .nav-item > .nav-link::before { content: ''; position: absolute; inset: auto 0 2px; height: 2px; background: var(--cf-gold); transform: scaleX(0); transform-origin: left; }
.cf-nav > ul > .nav-item > .nav-link:hover::before, .cf-nav > ul > .nav-item > .nav-link.active::before { transform: scaleX(1); }
.cf-nav .nav-link.active { color: var(--cf-blue); }
.cf-nav .dropdown-menu { --bs-dropdown-bg: var(--cf-surface); --bs-dropdown-border-color: var(--cf-card-line); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-color: var(--cf-ink); --bs-dropdown-link-hover-bg: var(--cf-paper); --bs-dropdown-link-hover-color: var(--cf-blue); --bs-dropdown-link-active-bg: var(--cf-paper); --bs-dropdown-link-active-color: var(--cf-blue); --bs-dropdown-font-size: 15px; --bs-dropdown-padding-y: 8px; box-shadow: var(--cf-card-shadow); }
.cf-nav .dropdown-item { padding-block: 9px; }

/* ─────────────────────────────────────────────────────────────────────
   5. Мобильное меню: боковая панель Bootstrap Offcanvas
   ───────────────────────────────────────────────────────────────────── */
.cf-mobile-nav { --bs-offcanvas-width: min(100%, 440px); --bs-offcanvas-bg: var(--cf-paper); --bs-offcanvas-color: var(--cf-ink); --bs-offcanvas-padding-x: 20px; --bs-offcanvas-padding-y: 12px; --bs-offcanvas-border-width: 0; font-family: var(--cf-font); }
.cf-mobile-nav__header { min-height: 84px; background: var(--cf-header-background); border-bottom: 1px solid var(--cf-header-line); }
.cf-mobile-brand { gap: 12px; color: var(--cf-brand); font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.cf-mobile-brand img { flex: none; width: 52px; height: 52px; object-fit: contain; }
.cf-mobile-nav__close { margin-left: auto; font-size: 28px; }
.cf-mobile-nav__links a, .cf-mobile-nav__links span { position: relative; display: block; padding: 18px 20px; border-bottom: 1px solid var(--cf-nav-line); color: var(--cf-ink); font-size: clamp(17px, 5vw, 20px); font-weight: 500; line-height: 1.25; }
.cf-mobile-nav__links a:hover { color: var(--cf-blue); }
.cf-mobile-nav__links a.active { color: var(--cf-blue); }
.cf-mobile-nav__links a.active::after { content: ''; position: absolute; bottom: -1px; left: 20px; width: 62px; height: 3px; background: var(--cf-gold); }
.cf-mobile-nav__links .cf-mobile-nav__sub { padding-left: 38px; font-size: clamp(16px, 4.4vw, 18px); font-weight: 400; }
.cf-mobile-nav__links .cf-mobile-nav__level-3 { padding-left: 56px; }
.cf-mobile-nav__account { padding: 20px; }
.cf-mobile-nav__account .btn.cf-btn { font-size: 16px; }
.cf-mobile-contacts { display: grid; gap: 14px; padding: 22px 20px 26px; background: var(--cf-footer-bg); color: var(--cf-footer-text); }
.cf-mobile-contacts__phones { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 18px; }
.cf-mobile-contacts__phones a { color: var(--cf-footer-label); }
.cf-mobile-contacts__social { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.cf-mobile-contacts__social a { color: var(--cf-footer-title); }
.offcanvas-backdrop { --bs-backdrop-bg: var(--cf-mobile-overlay); --bs-backdrop-opacity: 1; }

/* ─────────────────────────────────────────────────────────────────────
   6. Главная: первый экран
   ───────────────────────────────────────────────────────────────────── */
.cf-home { background: var(--cf-paper); color: var(--cf-ink); }
.cf-home .cf-kicker { display: block; margin-bottom: 15px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--cf-kicker); }
.cf-home .cf-section-space { padding-block: 54px 46px; }

.cf-hero { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 37px; background: var(--cf-hero-overlay), var(--cf-hero-image, url('../images/sapphire-gold.webp')) center 46% / cover; border-bottom: 1px solid var(--cf-hero-line); }
.cf-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--cf-hero-sheen); background-size: 230% 100%; opacity: .6; }
.cf-hero__inner { position: relative; z-index: 1; }
.cf-hero__overline { gap: 17px; margin-bottom: 25px; color: var(--cf-overline); font-size: 10px; letter-spacing: 3px; text-align: center; }
.cf-hero__overline > span { flex-shrink: 0; width: 45px; height: 1px; background: var(--cf-overline-rule); }
.cf-home .cf-hero h1 { position: relative; font-size: clamp(54px, 8.5vw, 122px); font-weight: 800; line-height: .93; letter-spacing: -5px; text-transform: uppercase; text-align: center; }
.cf-outline-title { display: block; margin-bottom: 6px; color: transparent; -webkit-text-stroke: 1px var(--cf-title-outline); text-shadow: var(--cf-outline-shadow); font-size: .78em; letter-spacing: 2px; }
.cf-home .cf-hero h1 strong { display: block; background-image: var(--cf-title-gradient); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 800; filter: var(--cf-title-shadow); }
.cf-hero__details { max-width: 990px; margin: 26px auto 30px; text-align: center; }
.cf-hero__details p { color: var(--cf-hero-copy); font-size: 16px; line-height: 1.55; }
.cf-hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .25; background: var(--cf-glow); pointer-events: none; }
.cf-glow-left { width: 390px; height: 390px; top: 130px; left: -285px; }
.cf-glow-right { width: 370px; height: 370px; right: -310px; bottom: 100px; }

.cf-stage-window { position: relative; isolation: isolate; max-width: 1120px; height: 390px; margin-inline: auto; overflow: hidden; border: 1px solid var(--cf-stage-line); border-radius: 24px; box-shadow: var(--cf-stage-shadow); }
.cf-stage-window > img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.cf-stage-shadow { position: absolute; inset: 0; background: var(--cf-stage-overlay); pointer-events: none; }
.cf-stage-caption { position: absolute; bottom: 23px; left: 32px; right: 32px; gap: 20px; color: var(--cf-stage-caption); font-size: 9px; letter-spacing: 2px; }
.cf-stage-tag { position: absolute; bottom: 63px; padding: 8px 14px; border: 1px solid var(--cf-stage-tag-line); border-radius: 50px; background: var(--cf-stage-tag); color: var(--cf-stage-caption); backdrop-filter: blur(8px); font-size: 10px; }
.cf-tag-left { left: 32px; }
.cf-tag-right { right: 32px; }
.cf-stage-orbit { position: absolute; inset: 12px; border: 1px solid var(--cf-stage-inner-line); border-radius: 17px; pointer-events: none; }
.cf-home .cf-scroll-cue { position: relative; z-index: 1; width: 38px; height: 38px; margin: 25px auto 0; border: 1px solid var(--cf-scroll-line); border-radius: 50%; color: var(--cf-scroll); font-size: 18px; }

.cf-gold-sparks { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cf-gold-sparks > span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cf-spark); box-shadow: var(--cf-spark-shadow); opacity: .22; }
.cf-gold-sparks > span:nth-child(1) { left: 6%; top: 18%; animation-delay: -1s; }
.cf-gold-sparks > span:nth-child(2) { left: 17%; top: 40%; animation-delay: -4s; }
.cf-gold-sparks > span:nth-child(3) { left: 28%; top: 9%; animation-delay: -2s; }
.cf-gold-sparks > span:nth-child(4) { left: 43%; top: 32%; animation-delay: -6s; }
.cf-gold-sparks > span:nth-child(5) { left: 61%; top: 12%; animation-delay: -3s; }
.cf-gold-sparks > span:nth-child(6) { left: 82%; top: 26%; animation-delay: -5s; }
.cf-gold-sparks > span:nth-child(7) { left: 94%; top: 43%; animation-delay: -1s; }
.cf-gold-sparks > span:nth-child(8) { left: 8%; top: 68%; animation-delay: -3s; }
.cf-gold-sparks > span:nth-child(9) { left: 88%; top: 79%; animation-delay: -6s; }
.cf-gold-sparks > span:nth-child(10) { left: 23%; top: 88%; animation-delay: -4s; }
.cf-gold-sparks > span:nth-child(11) { left: 70%; top: 92%; animation-delay: -2s; }
.cf-gold-sparks > span:nth-child(12) { left: 49%; top: 96%; animation-delay: -5s; }

/* ─────────────────────────────────────────────────────────────────────
   7. Главная: направления, преимущества
   ───────────────────────────────────────────────────────────────────── */
.cf-discipline-strip { padding-block: 20px; border-block: 1px solid var(--cf-strip-line); background: var(--cf-strip-bg); }
.cf-directions { gap: 12px 20px; padding: 0; color: var(--cf-strip-text); font-size: 10px; font-weight: 400; letter-spacing: 1.4px; }
.cf-directions li { display: inline-flex; align-items: center; gap: 20px; }
.cf-directions i { color: var(--cf-strip-gold); font-size: 12px; }

.cf-pillars { padding-block: 40px 35px; }
.cf-pillar-row { --bs-gutter-x: 35px; --bs-gutter-y: 26px; }
.cf-pillar { height: 100%; border-right: 1px solid var(--cf-pillar-line); padding-right: 25px; }
.cf-pillar-row > div:last-child .cf-pillar { border-right: 0; }
.cf-pillar-icon { display: flex; align-items: center; width: 36px; height: 36px; margin-bottom: 14px; color: var(--cf-pillar-icon); font-size: 29px; }
.cf-pillars h2 { min-height: 45px; margin-bottom: 9px; color: var(--cf-pillar-title); font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.cf-pillars p { color: var(--cf-muted); font-size: 12px; line-height: 1.55; }

/* ─────────────────────────────────────────────────────────────────────
   8. Главная: форматы участия
   ───────────────────────────────────────────────────────────────────── */
.cf-formats { scroll-margin-top: calc(var(--cf-nav-height) + 16px); }
.cf-section-heading { position: relative; margin-bottom: 28px; padding: 25px 28px; border: 2px solid transparent; border-radius: 20px; background: var(--cf-format-heading-bg) padding-box, var(--cf-format-heading-border) border-box; box-shadow: var(--cf-format-heading-shadow); text-align: center; }
.cf-section-heading::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--cf-format-heading-inner); border-radius: 12px; pointer-events: none; }
.cf-section-heading h2 { color: var(--cf-format-heading-text); font-size: 44px; font-weight: 600; line-height: 1.12; letter-spacing: -1px; text-shadow: var(--cf-format-heading-text-shadow); }
.cf-gold-dot { color: var(--cf-format-dot); }
.cf-format-row { --bs-gutter-x: 26px; --bs-gutter-y: 24px; }
.cf-format-card { display: flex; flex-direction: column; width: 100%; padding: 30px 34px 0; overflow: hidden; border: 1px solid var(--cf-card-line); border-radius: 24px; box-shadow: var(--cf-card-shadow); }
.cf-live-format { background: var(--cf-live-background); color: var(--cf-live-text); }
.cf-online-format { background: var(--cf-online-background); color: var(--cf-online-text); }
.cf-format-label { font-size: 9px; font-weight: 400; line-height: 1.5; letter-spacing: 2px; }
.cf-live-format .cf-format-label { color: var(--cf-live-label); }
.cf-online-format .cf-format-label { color: var(--cf-online-label); }
.cf-format-card h3 { margin: 17px 0 25px; font-size: 49px; font-weight: 600; line-height: 1.05; letter-spacing: -2px; }
.cf-live-format h3 { color: var(--cf-live-heading); }
.cf-online-format h3 { color: var(--cf-online-heading); }
.cf-format-card ul { display: flex; flex-direction: column; gap: 12px; min-height: 185px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.cf-format-card li { position: relative; padding-left: 25px; }
.cf-list-icon { position: absolute; top: .55em; left: 0; color: transparent; -webkit-text-stroke: .8px var(--cf-bullet); font-size: 10px; }
.cf-format-card .btn.cf-btn { width: 100%; margin-top: auto; margin-bottom: 26px; border-radius: 3px; }
.cf-format-image { height: 280px; margin-inline: -34px; overflow: hidden; }
.cf-format-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }

/* ─────────────────────────────────────────────────────────────────────
   9. Главная: о фонде и ВКонтакте
   ───────────────────────────────────────────────────────────────────── */
.cf-about-row { --bs-gutter-x: 90px; --bs-gutter-y: 28px; margin-inline: 0; }
.cf-about-row > div:first-child { padding-left: 0; }
.cf-about-row > div:last-child { padding-right: 0; }
.cf-about-title { position: relative; }
.cf-about-title h2 { color: var(--cf-heading); font-size: clamp(40px, 4.6vw, 65px); font-weight: 500; line-height: 1.1; letter-spacing: -2px; }
.cf-about-title h2 > span { color: var(--cf-about-accent); }
.cf-about-star { display: inline-block; width: 115px; height: 115px; margin-top: 25px; fill: none; stroke: var(--cf-about-star); stroke-width: .9; transform: rotate(12deg); }
.cf-about-copy > p { max-width: 480px; margin-bottom: 17px; color: var(--cf-muted); font-size: 15px; line-height: 1.5; }
.cf-about-copy .cf-large-copy { margin-bottom: 22px; color: var(--cf-heading); font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -1px; }
.cf-about-copy .btn.cf-btn { margin-top: 8px; }

.cf-social-wrap { margin-top: 30px; margin-bottom: 65px; }
.cf-social-section { padding: 48px 50px; border: 1px solid var(--cf-social-line); border-radius: 24px; background: var(--cf-social-overlay), var(--cf-hero-image, url('../images/sapphire-gold.webp')) center / cover; box-shadow: var(--cf-social-shadow); }
.cf-social-section .cf-kicker { color: var(--cf-social-kicker); }
.cf-social-section h2 { color: var(--cf-social-heading); font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -2px; }
.cf-social-section p { margin: 18px 0 24px; color: var(--cf-social-text); font-size: 14px; }
.cf-social-mark { position: relative; width: fit-content; margin-inline: auto 35px; color: transparent; -webkit-text-stroke: 1px var(--cf-social-mark); font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -12px; transform: rotate(-8deg); }
.cf-social-mark > .cf-arrow { position: absolute; top: -45px; right: -25px; font-size: 54px; color: var(--cf-social-mark); -webkit-text-stroke: 0; letter-spacing: 0; }

/* ─────────────────────────────────────────────────────────────────────
   10. Внутренние страницы: статьи, модули, подменю
   ───────────────────────────────────────────────────────────────────── */
.cf-content-section { padding-block: 40px 56px; }
.cf-content-section--tint { background: var(--cf-strip-bg); border-top: 1px solid var(--cf-strip-line); }
.cf-content-section :where(h1, h2, h3, h4, h5, h6) { color: var(--cf-heading); letter-spacing: -.5px; }
.cf-content-section h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.12; }
.cf-content-section img { max-width: 100%; height: auto; }
.cf-content-section a:not(.btn):not(.cf-festival a):not(.cf-about-page a):not(.cf-contacts-page a):not(.cf-materials a):not(.cf-news-page a) { color: var(--cf-blue); }
.cf-content-section a:not(.btn):not(.cf-festival a):not(.cf-about-page a):not(.cf-contacts-page a):not(.cf-materials a):not(.cf-news-page a):hover { color: var(--cf-blue-dark); }

.cf-module { margin-bottom: 28px; padding: 24px; border: 1px solid var(--cf-card-line); border-radius: 16px; background: var(--cf-surface); box-shadow: var(--cf-card-shadow); }
/* Подменю раздела лежит в обёртке модуля — рамку и фон снимаем, остаётся только полоса. */
.cf-module:has(> .cf-module__body > .cf-submenu) { margin-bottom: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.cf-module__title { margin-bottom: 14px; color: var(--cf-heading); font-size: 20px; font-weight: 600; }

.cf-submenu { margin-block: 24px 4px; border-block: 1px solid var(--cf-strip-line); background: var(--cf-strip-bg); }
.cf-submenu__list { padding: 0; list-style: none; }
.cf-submenu__link { display: block; padding: 14px 18px; color: var(--cf-strip-text); font-size: 15px; font-weight: 500; text-decoration: none; }
a.cf-submenu__link:hover, .cf-submenu__link.is-active { color: var(--cf-blue); }
.cf-submenu__link.is-active { font-weight: 700; }
.cf-submenu__divider { width: 1px; height: 22px; background: var(--cf-strip-line); }

.breadcrumb { --bs-breadcrumb-divider-color: var(--cf-strip-gold); --bs-breadcrumb-item-active-color: var(--cf-muted); font-size: 14px; }
.pagination { --bs-pagination-color: var(--cf-blue); --bs-pagination-hover-color: var(--cf-blue-dark); --bs-pagination-active-bg: var(--cf-blue); --bs-pagination-active-border-color: var(--cf-blue); --bs-pagination-focus-color: var(--cf-blue-dark); --bs-pagination-border-color: var(--cf-card-line); }
.btn-primary { --bs-btn-bg: var(--cf-blue); --bs-btn-border-color: var(--cf-blue); --bs-btn-hover-bg: var(--cf-blue-dark); --bs-btn-hover-border-color: var(--cf-blue-dark); --bs-btn-active-bg: var(--cf-blue-dark); --bs-btn-active-border-color: var(--cf-blue-dark); }
.form-control:focus, .form-select:focus { border-color: var(--cf-gold); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }

/* ─────────────────────────────────────────────────────────────────────
   11. Подвал и кнопка «Мерцание»
   ───────────────────────────────────────────────────────────────────── */
.cf-site-footer { padding-block: 50px 24px; background: var(--cf-footer-bg); color: var(--cf-footer-text); font-size: 12px; }
.cf-footer-row { --bs-gutter-x: 65px; --bs-gutter-y: 25px; margin-inline: 0; }
.cf-footer-row > div:first-child { padding-left: 0; }
.cf-footer-row > div:last-child { padding-right: 0; }
.cf-site-footer h2 { margin-bottom: 18px; color: var(--cf-footer-title); font-size: 19px; font-weight: 500; line-height: 1.2; }
.cf-site-footer p { margin-bottom: 14px; line-height: 1.75; }
.cf-site-footer p span { display: block; margin-bottom: 3px; color: var(--cf-footer-label); }
.cf-site-footer p a:hover, .cf-footer-end a:hover { color: var(--cf-footer-title); }
.cf-footer-social { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; color: var(--cf-footer-title); }
.cf-footer-end { gap: 25px; margin-top: 35px; padding-top: 15px; border-top: 1px solid var(--cf-footer-line); font-size: 11px; }
.cf-footer-end a:first-of-type { margin-left: auto; }
.cf-motion-control { padding: 12px 20px 18px; text-align: center; background: var(--cf-footer-bg); }
.cf-motion-control button { padding: 7px 15px; border: 1px solid var(--cf-motion-line); border-radius: 20px; background: transparent; color: var(--cf-motion-text); font: 11px/1.5 var(--cf-font); }

/* ─────────────────────────────────────────────────────────────────────
   11а. Служебные страницы: ошибка и «сайт закрыт»
   Берут оформление первого экрана (.cf-hero), поэтому выглядят как часть сайта.
   ───────────────────────────────────────────────────────────────────── */
.cf-error { padding-block: 64px 72px; color: var(--cf-hero-copy); text-align: center; }
.cf-error .cf-container { position: relative; z-index: 1; }
.cf-error a { text-decoration: none; }
.cf-error__brand { gap: 12px; margin-bottom: 34px; color: var(--cf-title-outline); font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.cf-error__brand img { border-radius: 12px; object-fit: contain; }
.cf-error__code { display: block; background-image: var(--cf-title-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; filter: var(--cf-title-shadow); font-size: clamp(88px, 20vw, 200px); font-weight: 800; line-height: .95; letter-spacing: -6px; }
.cf-error h1 { margin: 14px 0 12px; color: var(--cf-format-heading-text); font-size: clamp(26px, 4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.5px; }
.cf-error p { max-width: 560px; margin: 0 auto 28px; }
.cf-error .btn.cf-btn { min-width: 220px; }

/* ─────────────────────────────────────────────────────────────────────
   12. Движение: переходы, золотое мерцание, плавная прокрутка
   Анимации объявлены только там, где они разрешены: у посетителя не включён
   режим «уменьшить движение», а в настройках шаблона мерцание не выключено
   (класс cf-no-shimmer на <html>). Иначе остаётся спокойное статичное состояние.
   ───────────────────────────────────────────────────────────────────── */
@keyframes cf-sparkle { 0%, 100% { opacity: .12; transform: translateY(0) scale(.75); } 50% { opacity: .8; transform: translateY(-7px) scale(1.15); } }
@keyframes cf-title-glimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cf-light-drift { 0%, 100% { background-position: 0% 50%; opacity: .45; } 50% { background-position: 100% 50%; opacity: .8; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn.cf-btn { transition: transform .2s, box-shadow .2s; }
  .cf-nav > ul > .nav-item > .nav-link::before { transition: transform .2s; }
  .cf-format-image img { transition: transform .6s; }
  .cf-format-card:hover .cf-format-image img { transform: scale(1.03); }

  html:not(.cf-no-shimmer) .cf-hero::before { animation: cf-light-drift 15s ease-in-out infinite; }
  html:not(.cf-no-shimmer) .cf-home .cf-hero h1 strong { animation: cf-title-glimmer 11s ease-in-out infinite; }
  html:not(.cf-no-shimmer) .cf-gold-sparks > span { animation: cf-sparkle 7s ease-in-out infinite; }
}

/* ─────────────────────────────────────────────────────────────────────
   13. Адаптивность
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .cf-header-right { gap: 18px; }
  .cf-header-right .btn.cf-account { padding: 13px 17px; gap: 12px; font-size: 12px; }
  .cf-nav > ul { gap: 14px; }
  .cf-formats .cf-format-card ul { min-height: 220px; font-size: 14px; }
  .cf-section-heading h2 { font-size: 38px; }
}

/* Ниже 992 px вместо десктопного меню работает боковая панель, а шапка закрепляется. */
@media (max-width: 991.98px) {
  html { scroll-padding-top: calc(var(--cf-topbar-mobile-height) + 16px); }
  .cf-topbar { position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid var(--cf-header-line); box-shadow: var(--cf-menu-shadow); }
  .cf-topbar__inner { min-height: var(--cf-topbar-mobile-height); padding-block: 10px; }
  .cf-brand { gap: 10px; }
  .cf-brand__logo { width: 52px; height: 52px; }
  .cf-brand__name { font-size: 24px; letter-spacing: -.6px; }
  .cf-brand__desc { margin-top: 3px; font-size: 10px; }
  .cf-formats { scroll-margin-top: calc(var(--cf-topbar-mobile-height) + 16px); }

  .cf-hero { padding-top: 37px; }
  .cf-hero__overline { font-size: 8px; letter-spacing: 2px; }
  .cf-hero__details p { font-size: 13px; }
  .cf-home .cf-hero h1 { letter-spacing: -3px; }
  .cf-stage-window { height: 330px; }
  .cf-pillar-row { --bs-gutter-x: 18px; }
  .cf-pillar { padding-right: 13px; }
  .cf-pillars h2 { font-size: 15px; }
  .cf-format-card { padding-inline: 24px; }
  .cf-format-card h3 { font-size: 41px; }
  .cf-format-image { margin-inline: -24px; }
  .cf-format-label { letter-spacing: 1.5px; }
  .cf-about-row { --bs-gutter-x: 35px; }
  .cf-about-copy .cf-large-copy { font-size: 24px; }
  .cf-social-section h2 { font-size: 35px; }
  .cf-social-mark { font-size: 90px; margin-right: 15px; }
  .cf-footer-row { --bs-gutter-x: 30px; }
}

@media (max-width: 767.98px) {
  .cf-container.container-xxl { padding-inline: 20px; }
  .cf-hero { padding: 27px 0 24px; }
  .cf-hero__overline { font-size: 7px; letter-spacing: 1.1px; gap: 10px; margin-bottom: 23px; }
  .cf-hero__overline > span { width: 16px; }
  .cf-home .cf-hero h1 { font-size: 10.8vw; line-height: 1.02; letter-spacing: -1.8px; }
  .cf-outline-title { letter-spacing: 1px; margin-bottom: 3px; }
  .cf-hero__details { margin-top: 22px; margin-bottom: 26px; }
  .cf-stage-window { height: 285px; border-radius: 18px; }
  .cf-stage-window > img { object-position: 45% center; }
  .cf-stage-orbit { inset: 8px; border-radius: 12px; }
  .cf-stage-caption { left: 18px; right: 18px; bottom: 17px; justify-content: center; font-size: 7px; letter-spacing: 1.5px; }
  .cf-stage-caption > span:last-child { display: none; }
  .cf-stage-tag { bottom: 45px; max-width: 46%; padding: 6px 9px; font-size: 8px; text-align: center; }
  .cf-tag-left { left: 12px; }
  .cf-tag-right { right: 12px; }
  .cf-home .cf-scroll-cue { margin-top: 20px; width: 32px; height: 32px; font-size: 15px; }
  .cf-discipline-strip { padding-block: 15px; }
  .cf-directions { gap: 9px 13px; font-size: 9px; letter-spacing: .8px; }
  .cf-directions li { gap: 13px; }
  .cf-directions i { font-size: 9px; }
  .cf-pillars { padding-block: 30px 10px; }
  .cf-pillar-row { --bs-gutter-x: 20px; }
  .cf-pillar-row > div:nth-child(2) .cf-pillar { border-right: 0; }
  .cf-pillars h2 { font-size: 16px; min-height: 40px; }
  .cf-home .cf-section-space { padding-block: 35px 30px; }
  .cf-section-heading { margin-bottom: 22px; padding: 24px 18px; border-radius: 16px; }
  .cf-section-heading::after { inset: 6px; border-radius: 9px; }
  .cf-section-heading h2 { font-size: 29px; line-height: 1.15; letter-spacing: -.6px; }
  .cf-format-card { padding: 25px 26px 0; border-radius: 20px; }
  .cf-format-label { font-size: 8px; letter-spacing: 1.7px; }
  .cf-format-card h3 { font-size: 43px; margin: 23px 0; }
  .cf-formats .cf-format-card ul { min-height: 0; gap: 13px; font-size: 14px; line-height: 1.55; }
  .cf-format-card .btn.cf-btn { margin-top: 0; }
  .cf-format-image { height: 255px; margin-inline: -26px; }
  .cf-about-title h2 { font-size: 49px; }
  .cf-about-title { padding-bottom: 100px; }
  .cf-about-row > div, .cf-footer-row > div { padding-inline: 0; }
  .cf-about-star { position: absolute; right: 0; bottom: 0; width: 80px; height: 80px; margin-top: 0; }
  .cf-about-copy .cf-large-copy { font-size: 27px; }
  .cf-about-copy > p { font-size: 14px; }
  .cf-social-wrap { margin-top: 25px; margin-bottom: 40px; }
  .cf-social-section { padding: 28px; border-radius: 18px; overflow: hidden; }
  .cf-social-section h2 { font-size: 32px; letter-spacing: -1.3px; }
  .cf-social-section p { font-size: 13px; }
  .cf-site-footer { padding-block: 35px 20px; }
  .cf-footer-row > div:nth-child(2) { border-block: 1px solid var(--cf-footer-line); padding-block: 20px; }
  .cf-footer-social { flex-direction: row; gap: 20px; }
  .cf-footer-end { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cf-footer-end a:first-of-type { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .cf-brand__desc { display: none; }
  .cf-brand__logo { width: 46px; height: 46px; }
  .cf-brand__name { font-size: clamp(19px, 6vw, 24px); }
  .cf-icon-btn { width: 40px; }
}

@media (max-width: 359.98px) {
  .cf-about-title h2 { font-size: 43px; }
  .cf-social-section { padding: 24px; }
  .cf-social-section h2 { font-size: 28px; }
  .cf-home .btn.cf-btn { gap: 12px; padding-inline: 18px; }
}

/* ── 13. Панель преимуществ (модуль в позициях benefits, och-after-hero и др.) ──
   Работает с разметкой макета (.cf-benefits > .cf-benefit) и со старой
   разметкой Тургенева (.benefit-item): пять отдельных карточек в ряд;
   на телефоне — горизонтальная прокрутка. */
.cf-benefits, :has(> .benefit-item) { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; padding: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
.cf-benefit, .benefit-item { display: block; width: auto; max-width: none; min-width: 0; margin: 0; padding: 21px 17px 22px; border: 1px solid var(--cf-benefit-line); border-radius: 16px; background: var(--cf-benefit-background); box-shadow: var(--cf-benefit-shadow); color: var(--cf-muted); font-size: 14px; line-height: 1.5; text-align: center; transition: box-shadow .25s, transform .25s; }
.cf-benefit:hover, .benefit-item:hover { transform: translateY(-3px); box-shadow: var(--cf-benefit-hover-shadow); }
.cf-benefit__icon, .benefit-item > i, .benefit-item > .icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 auto 15px; border: 0; color: var(--cf-pillar-icon); font-size: 29px; }
.cf-benefit h2, .cf-benefit h3, .cf-benefit h4, .benefit-item :is(h2, h3, h4, h5, h6, strong) { display: block; min-height: 2.5em; margin: 0 0 10px; color: var(--cf-benefit-title); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; }
.cf-benefit p, .benefit-item p, .benefit-item :is(small, span) { margin: 0; color: var(--cf-muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 1150px) and (min-width: 768px) {
  .cf-benefits, :has(> .benefit-item) { gap: 10px; }
  .cf-benefit, .benefit-item { padding: 18px 11px; }
  .cf-benefit h2, .cf-benefit h3, .cf-benefit h4, .benefit-item :is(h2, h3, h4, h5, h6, strong) { font-size: 16px; }
  .cf-benefit p, .benefit-item p { font-size: 13px; }
}
@media (max-width: 767.98px) {
  .cf-benefits, :has(> .benefit-item) { overflow-x: auto !important; display: flex; gap: 12px; margin-bottom: 26px; padding-bottom: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
  .cf-benefit, .benefit-item { flex: 0 0 210px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .cf-benefit, .benefit-item { transition: none; } .cf-benefit:hover, .benefit-item:hover { transform: none; } }

/* ── 14. Первый экран внутренних страниц (модуль mod_cf_pagehero, позиция page-hero) ──
   Фон — то же фото, что у главной (параметр шаблона «hero_image»). */
.cf-page-intro { position: relative; overflow: hidden; isolation: isolate; padding: 32px 0 48px; border-bottom: 1px solid var(--cf-intro-line); background: var(--cf-intro-overlay), var(--cf-hero-image, url('../images/sapphire-gold.webp')) center 46% / cover; color: var(--cf-white); }
.cf-page-intro::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--cf-intro-sheen); background-size: 230% 100%; }
.cf-page-intro-inner { position: relative; z-index: 1; margin-inline: 0; --bs-gutter-x: 60px; --bs-gutter-y: 28px; }
.cf-page-intro-inner > .cf-intro-copy { padding-left: 0; }
@media (min-width: 768px) { .cf-page-intro-inner > .cf-intro-copy.col-md-7 { width: 55%; } .cf-page-intro-inner > .cf-intro-media { width: 45%; padding-right: 0; } }
.cf-page-intro .cf-kicker { display: block; margin-bottom: 15px; color: var(--cf-intro-kicker); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.cf-page-intro__title { margin: 17px 0 23px; max-width: 950px; color: var(--cf-white); font-size: clamp(36px, 4.6vw, 68px); font-weight: 600; line-height: 1.05; letter-spacing: -2.2px; text-wrap: balance; }
.cf-page-intro p { max-width: 640px; margin: 0; color: var(--cf-intro-copy); font-size: 16px; line-height: 1.65; }
.cf-page-intro-photo { overflow: hidden; aspect-ratio: 1.6 / 1; border-radius: 20px; box-shadow: var(--cf-intro-photo-shadow); transform: rotate(1deg); }
.cf-page-intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-breadcrumbs { gap: 10px; margin-bottom: 26px; color: var(--cf-intro-crumb); font-size: 12px; line-height: 1.5; }
.cf-breadcrumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cf-breadcrumbs a:hover { color: var(--cf-white); }
@media (max-width: 850px) { .cf-page-intro-inner { --bs-gutter-x: 24px; } .cf-page-intro p { font-size: 14px; } .cf-page-intro-photo { aspect-ratio: 1.1 / 1; } }
@media (max-width: 767.98px) {
  .cf-page-intro { padding: 24px 0 35px; }
  .cf-page-intro-inner > .cf-intro-copy, .cf-page-intro-inner > .cf-intro-media { padding-inline: 0; }
  .cf-page-intro__title { font-size: 38px; line-height: 1.1; letter-spacing: -1.4px; }
  .cf-page-intro-photo { aspect-ratio: 1.8 / 1; transform: none; }
  .cf-breadcrumbs { margin-bottom: 24px; font-size: 10px; }
  .cf-page-intro .cf-kicker { font-size: 9px; }
}
@media (max-width: 359.98px) { .cf-page-intro__title { font-size: 34px; } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.cf-no-shimmer) .cf-page-intro::before { animation: cf-light-drift 15s ease-in-out infinite; }
}

/* Если модуль первого экрана оказался в позиции с обёрткой «card» и контейнером (например, main-top),
   снимаем рамку и растягиваем его на всю ширину. Правильная позиция — page-hero. */
.cf-module:has(> .cf-module__body > .cf-page-intro) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.container-xxl:has(> .cf-module > .cf-module__body > .cf-page-intro) { max-width: none; padding-inline: 0; }

/* Широкие страницы (во всю ширину окна): боковая колонка скрывается, контент занимает весь ряд.
   Иначе приём «100vw от центра» смещается, когда колонка контента не по центру окна. */
.cf-content-section .row:has(.cf-about-page, .cf-contacts-page, .cf-materials, .cf-festival) > .cf-sidebar { display: none; }
.cf-content-section .row:has(.cf-about-page, .cf-contacts-page, .cf-materials, .cf-festival) > [class*="col-"]:not(.cf-sidebar) { flex: 0 0 100%; width: 100%; max-width: 100%; }


/* Пагинация Joomla (общая): кнопки с отступами, иконки шрифта Joomla заменены символами */
.pagination { --bs-pagination-padding-x: 14px; --bs-pagination-padding-y: 9px; --bs-pagination-font-size: 15px; --bs-pagination-color: var(--cf-m-heading); --bs-pagination-bg: var(--cf-m-card-background); --bs-pagination-border-color: var(--cf-m-card-line); --bs-pagination-hover-color: var(--cf-white); --bs-pagination-hover-bg: var(--cf-blue); --bs-pagination-hover-border-color: var(--cf-blue); --bs-pagination-focus-color: var(--cf-white); --bs-pagination-focus-bg: var(--cf-blue); --bs-pagination-focus-box-shadow: none; --bs-pagination-active-color: var(--cf-white); --bs-pagination-active-bg: var(--cf-blue); --bs-pagination-active-border-color: var(--cf-blue); --bs-pagination-disabled-color: var(--cf-m-story-meta); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-border-color: var(--cf-m-card-line); --bs-pagination-border-radius: 10px; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination .page-item .page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; line-height: 1; }
.pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
.pagination .page-item.active .page-link { background: var(--cf-blue-gradient); border-color: var(--cf-blue-button-line); color: var(--cf-white); }
/* Иконки Joomla (шрифт иконок не подключён) заменены символами */
.pagination [class^="icon-"], .pagination [class*=" icon-"] { display: inline-block; font-style: normal; font-size: 20px; line-height: 1; }
.pagination .icon-angle-double-left::before, .pagination .icon-first::before, .pagination .icon-backward-2::before { content: "\00AB"; }
.pagination .icon-angle-left::before, .pagination .icon-previous::before, .pagination .icon-backward::before { content: "\2039"; }
.pagination .icon-angle-right::before, .pagination .icon-next::before, .pagination .icon-forward::before { content: "\203A"; }
.pagination .icon-angle-double-right::before, .pagination .icon-last::before, .pagination .icon-forward-2::before { content: "\00BB"; }
.pagination .page-link .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Цвет ссылок в контенте (.cf-content-section a:not(.btn)) не должен перекрашивать пагинацию */
.cf-content-section .pagination .page-item.active > .page-link,
.cf-content-section .pagination .page-item.active > .page-link:hover,
.cf-content-section .pagination .page-link:hover,
.cf-content-section .pagination .page-link:focus { color: var(--cf-white) !important; }
.cf-content-section .pagination .page-item:not(.active):not(.disabled) > a.page-link:not(:hover):not(:focus) { color: var(--cf-m-heading); }

/* Ссылка-возврат в конце обычной статьи («Вернуться в раздел …») — кнопкой (макет page.php) */
.cf-content-section .cf-article > p:last-child > a:only-child { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 18px; padding: 11px 20px; border: 1px solid var(--cf-blue-button-line); border-radius: 10px; background: var(--cf-blue-gradient); color: var(--cf-white); box-shadow: var(--cf-blue-button-shadow); font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: transform .2s; }
.cf-content-section .cf-article > p:last-child > a:only-child::before { content: "\2190"; font-size: 18px; line-height: 1; }
.cf-content-section .cf-article > p:last-child > a:only-child:hover { transform: translateY(-3px); background: var(--cf-blue-button-hover); color: var(--cf-white); text-decoration: none; }

/* ═══════════ ВСПЛЫВАЮЩАЯ ФОРМА Wedal Joomla Callback (#wjcallback-modal, форма .wjcallbackform) ═══════════ */
#wjcallback-modal.show, #wjcallback-loader { display: block; background: var(--cf-form-backdrop); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overscroll-behavior: contain; }
#wjcallback-modal .modal-dialog { max-width: 640px; margin: 28px auto; padding-inline: 12px; }
.wjcallbackform { max-width: min(640px, calc(100vw - 16px)); margin-inline: auto; overflow: hidden; border: 1px solid var(--cf-form-head-line); border-radius: 18px; background: var(--cf-form-bg); box-shadow: var(--cf-form-shadow); color: var(--cf-ink); font-family: var(--cf-font); font-size: 15px; line-height: 1.45; }
.wjcallbackform .modal-content { border: 0; border-radius: 0; background: transparent; }

/* Шапка */
.wjcallbackform .modal-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 2px solid var(--cf-form-head-line); background: var(--cf-form-head-bg); }
.wjcallbackform .modal-header :is(h1, h2, h3, h4, h5, .modal-title) { margin: 0; color: var(--cf-form-head-title); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; }
.wjcallbackform .modal-header :is(.close, .btn-close, button) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: var(--cf-white); font-size: 22px; line-height: 1; opacity: .9; filter: none; cursor: pointer; transition: background-color .2s, opacity .2s; }
.wjcallbackform .modal-header :is(.close, .btn-close, button):hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.wjcallbackform .modal-header .btn-close { background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 12px no-repeat; }

/* Поля: две колонки, телефон и почта рядом */
.wjcallbackform .modal-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 14px; padding: 22px 24px 8px; }
.wjcallbackform .modal-body > * { grid-column: 1 / -1; min-width: 0; }
.wjcallbackform .modal-body > .control-group.phone { grid-column: 1; }
.wjcallbackform .modal-body > .control-group.email { grid-column: 2; }
.wjcallbackform .control-group { margin: 0; }
.wjcallbackform .control-label { margin-bottom: 6px; }
.wjcallbackform .control-label label, .wjcallbackform label { margin: 0; color: var(--cf-form-label); font-size: 13px; font-weight: 600; line-height: 1.35; }
.wjcallbackform .star, .wjcallbackform label .required, .wjcallbackform .control-label span[aria-hidden] { color: var(--cf-form-required); }
.wjcallbackform :is(.form-control, .form-select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea) { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--cf-form-field-line); border-radius: 10px; background: var(--cf-form-field-bg); color: var(--cf-ink); font-family: inherit; font-size: 15px; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.wjcallbackform textarea { min-height: 110px; resize: vertical; }
.wjcallbackform :is(.form-control, .form-select, input, select, textarea):focus { border-color: var(--cf-form-field-focus); outline: 0; box-shadow: 0 0 0 4px var(--cf-form-field-ring); }
.wjcallbackform ::placeholder { color: var(--cf-muted); opacity: .7; }

/* Заголовки разделов формы («Информация о заявителе» и т. п.) */
.wjcallbackform .modal-body :is(h2, h3, h4, h5, h6, legend) { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--cf-form-section-line); color: var(--cf-form-section); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.wjcallbackform .modal-body > :first-child :is(h2, h3, h4, h5, h6, legend), .wjcallbackform .modal-body > :is(h2, h3, h4, h5, h6, legend):first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Согласие (поля-чекбоксы check_*): галочка слева, текст справа */
.wjcallbackform .control-group[class*="check_"] { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; margin-top: 4px; padding: 12px 14px; border-radius: 10px; background: var(--cf-strip-bg); border: 1px solid var(--cf-form-section-line); }
.wjcallbackform .control-group[class*="check_"] > .controls { display: contents; }
.wjcallbackform .control-group[class*="check_"] .form-check { grid-column: 1; grid-row: 1; min-height: 0; margin: 0; padding-left: 0; }
.wjcallbackform .control-group[class*="check_"] > .control-label { grid-column: 2; grid-row: 1; margin: 0; }
.wjcallbackform .control-group[class*="check_"] > .control-label label { font-size: 13px; font-weight: 400; color: var(--cf-muted); cursor: pointer; }
.wjcallbackform .control-group[class*="check_"] [id$="-desc"] { grid-column: 2; grid-row: 2; }
.wjcallbackform .form-check-input, .wjcallbackform input[type="checkbox"] { float: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid var(--cf-form-field-focus); border-radius: 5px; accent-color: var(--cf-blue); cursor: pointer; }
.wjcallbackform .form-check-input:checked { background-color: var(--cf-blue); border-color: var(--cf-blue); }
.wjcallbackform a { color: var(--cf-blue); text-decoration: underline; text-underline-offset: 2px; }

/* Подвал с кнопкой */
.wjcallbackform .modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px 22px; border-top: 0; background: transparent; }
.wjcallbackform .modal-footer :is(.btn, button[type="submit"]), .wjcallbackform button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 28px; border: 1px solid var(--cf-blue-button-line); border-radius: 10px; background: var(--cf-blue-gradient); color: var(--cf-white); box-shadow: var(--cf-blue-button-shadow); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; transition: transform .2s, background .2s; }
.wjcallbackform .modal-footer :is(.btn, button[type="submit"]):hover, .wjcallbackform button[type="submit"]:hover { transform: translateY(-2px); background: var(--cf-blue-button-hover); color: var(--cf-white); }
.wjcallbackform .modal-footer :is(.btn, button[type="submit"])::after { content: "\2197"; font-size: 18px; line-height: 1; }

/* Ошибки и сообщения */
.wjcallbackform :is(.invalid, .is-invalid) { border-color: var(--cf-form-error) !important; }
.wjcallbackform :is(.alert, .wjcallback-message) { border-radius: 10px; }

@media (max-width: 575.98px) {
  #wjcallback-modal .modal-dialog { margin: 12px auto; padding-inline: 8px; }
  .wjcallbackform .modal-header { padding: 16px 18px; }
  .wjcallbackform .modal-header :is(h1, h2, h3, h4, h5, .modal-title) { font-size: 18px; }
  .wjcallbackform .modal-body { display: block; padding: 18px 18px 4px; }
  .wjcallbackform .modal-body > * + * { margin-top: 14px; }
  .wjcallbackform .modal-footer { padding: 14px 18px 18px; }
  .wjcallbackform .modal-footer :is(.btn, button[type="submit"]) { width: 100%; }
}

/* Скрыта пустая капча в форме Wedal (добавлено на сайте 31.10.2026) */
.control-group .captcha,
.control-group.captcha { display: none !important; }

/* Главная: блок преимуществ (cf-pillars) — иконка, заголовок и текст по центру */
.cf-pillar { padding-inline: 12px; text-align: center; }
.cf-pillar-icon { justify-content: center; margin-inline: auto; }
@media (max-width: 1199.98px) { .cf-pillar { padding-inline: 8px; } }

/* ═══════════ МОДУЛЬ «СВЯЗЬ С НАМИ» (mod_cf_contact) — дизайн каталогов очных/заочных ═══════════ */
.cf-contact-block { margin-block: 32px 8px; }
.cf-contact-panel { padding: 32px 30px; border: 1px solid var(--cf-contact-panel-line); border-radius: 18px; background: var(--cf-contact-panel-background); text-align: center; }
.cf-contact-panel .cf-contact-title { margin: 0 0 25px; color: var(--cf-heading); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.cf-contact-guidance.row { --bs-gutter-x: 28px; --bs-gutter-y: 0; max-width: 1020px; margin: 0 auto; }
.cf-contact-guidance p { max-width: 310px; margin: 0 auto; color: var(--cf-muted); font-size: 15px; line-height: 1.6; }
.cf-contact-guidance strong { display: block; color: var(--cf-contact-guidance); font-weight: 600; }
.cf-contact-panel .cf-contact-reassurance { margin: 20px 0 24px; color: var(--cf-contact-reassurance); font-size: 15px; }
.cf-contact-links.row { --bs-gutter-x: 16px; --bs-gutter-y: 11px; justify-content: center; max-width: 1036px; margin: -11px auto 0; }
.cf-contact-links .btn.cf-btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--cf-blue-button-line); border-radius: 11px; background: var(--cf-blue-gradient); color: var(--cf-white); box-shadow: var(--cf-blue-button-shadow); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s; }
.cf-contact-links .btn.cf-btn:hover { transform: translateY(-3px); background: var(--cf-blue-button-hover); color: var(--cf-white); }
.cf-contact-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; color: var(--cf-contact-symbol); font-size: 20px; font-style: normal; }
span.cf-contact-symbol { font-weight: 700; }
.cf-contact-arrow { margin-left: auto; color: var(--cf-contact-arrow); font-size: 20px; }
/* В позиции со стилем «card» (main-bottom) рамка модуля не нужна — у блока своя панель */
.cf-module:has(.cf-contact-block) { padding: 0; border: 0; background: none; box-shadow: none; }
.cf-module:has(.cf-contact-block) .cf-contact-block { margin: 0; }
@media (max-width: 1150px) and (min-width: 768px) {
  .cf-contact-guidance.row { --bs-gutter-x: 18px; }
  .cf-contact-guidance p { font-size: 14px; }
  .cf-contact-links .btn.cf-btn { padding-inline: 10px; gap: 7px; font-size: 12px; }
}
@media (max-width: 850px) and (min-width: 768px) {
  .cf-contact-links .cf-contact-symbol { display: none; }
}
@media (max-width: 767.98px) {
  .cf-contact-panel { padding: 26px 20px; }
  .cf-contact-panel .cf-contact-title { margin-bottom: 20px; font-size: 27px; }
  .cf-contact-guidance.row { row-gap: 16px; }
  .cf-contact-guidance > div { padding-inline: 0; }
  .cf-contact-guidance p { max-width: 320px; font-size: 14px; }
  .cf-contact-panel .cf-contact-reassurance { margin: 19px 0 22px; font-size: 14px; }
  .cf-contact-links.row { margin-inline: 0; }
  .cf-contact-links > div { padding-inline: 0; }
  .cf-contact-links .btn.cf-btn { font-size: 15px; }
}
@media (max-width: 359.98px) {
  .cf-contact-panel { padding-inline: 16px; }
  .cf-contact-links .btn.cf-btn { padding-inline: 12px; font-size: 13px; }
}
