/* ===== Кнопки в боковом меню ===== */
.cgd-tools { display: flex; align-items: center; margin-top: 34px; color: #fff; }
.cgd-tools__btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; margin: 0; background: none; border: 0; color: inherit; cursor: pointer; opacity: .9; transition: opacity .2s; }
.cgd-tools__btn:first-child { padding-left: 0; }
.cgd-tools__btn:hover, .cgd-tools__btn:focus-visible { opacity: 1; }
.cgd-tools__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cgd-tools__btn svg { display: block; }
.cgd-tools__sep { width: 1px; height: 30px; background: rgba(255,255,255,.7); }

/* ===== Окно поиска ===== */
.cgd-search { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,17,17,.94); }
.cgd-search[hidden] { display: none; }
html.cgd-search-open, html.cgd-search-open body { overflow: hidden; }
.cgd-search__close { position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 46px; line-height: 1; cursor: pointer; }
.cgd-search__form { width: 100%; max-width: 760px; }
.cgd-search__label { display: block; margin-bottom: 18px; color: #fff; font: 600 30px/1.2 'TildaSans', Arial, sans-serif; }
.cgd-search__row { display: flex; border-bottom: 2px solid #fff; }
.cgd-search__input::-webkit-search-cancel-button { display: none; }
.cgd-search__input { flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; color: #fff; font: 22px/1.3 'TildaSans', Arial, sans-serif; outline: none; -webkit-appearance: none; }
.cgd-search__input::placeholder { color: rgba(255,255,255,.5); }
.cgd-search__submit { padding: 0 0 0 20px; background: none; border: 0; color: #fff; font: 600 20px 'TildaSans', Arial, sans-serif; cursor: pointer; }
@media (max-width: 640px) { .cgd-search__label { font-size: 24px; } .cgd-search__input { font-size: 18px; } }

/* ===== Страница результатов ===== */
.cgd-search-page__form { display: flex; gap: 10px; max-width: 700px; margin: 0 0 24px; }
.cgd-search-page__form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #bbb; border-radius: 4px; font: 18px 'TildaSans', Arial, sans-serif; }
.cgd-search-page__form button { padding: 0 24px; background: #111; color: #fff; border: 0; border-radius: 4px; font: 600 17px 'TildaSans', Arial, sans-serif; cursor: pointer; }
.cgd-search-page__count { color: #555; }
.cgd-search-page__group { margin: 36px 0 10px; font-size: 24px; }
.cgd-search-page__list p { margin: 6px 0 0; color: #444; }
.cgd-search-page__list mark { background: #ffe58a; color: inherit; padding: 0 2px; }
.cgd-search-page__tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; font-size: 12px; vertical-align: middle; }

/* ===== Панель версии для слабовидящих ===== */
.cgd-a11y-panel { display: none; }
html.cgd-a11y .cgd-a11y-panel { display: block; position: sticky; top: 0; z-index: 9000; border-bottom: 2px solid var(--a-fg); }
.cgd-a11y-panel__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.cgd-a11y-panel__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.cgd-a11y .cgd-a11y-panel * { font-size: 17px !important; letter-spacing: normal !important; line-height: 1.2 !important; }
html.cgd-a11y .cgd-a11y-panel .cgd-a11y-panel__label { margin-right: 4px; font-weight: 700; }
html.cgd-a11y .cgd-a11y-panel .cgd-a11y-panel__btn { min-width: 40px; height: 40px; padding: 0 10px; border: 2px solid var(--a-fg) !important; border-radius: 4px; cursor: pointer; font-weight: 700; }
html.cgd-a11y .cgd-a11y-panel .cgd-a11y-panel__btn.is-active { outline: 3px solid var(--a-fg); outline-offset: 2px; }
html.cgd-a11y .cgd-a11y-panel [data-g="size"][data-v="2"] { font-size: 21px !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="size"][data-v="3"] { font-size: 26px !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="scheme"][data-v="bw"]    { background: #fff !important; color: #000 !important; border-color: #000 !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="scheme"][data-v="wb"]    { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="scheme"][data-v="blue"]  { background: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="scheme"][data-v="beige"] { background: #f7f3d6 !important; color: #4d4b43 !important; border-color: #4d4b43 !important; }
html.cgd-a11y .cgd-a11y-panel [data-g="scheme"][data-v="green"] { background: #3b2716 !important; color: #a9e44d !important; border-color: #a9e44d !important; }
html.cgd-a11y .cgd-a11y-panel .cgd-a11y-panel__exit { text-decoration: underline; }

/* ===== Версия для слабовидящих: цвета ===== */
html.cgd-a11y-scheme-bw    { --a-bg: #fff;    --a-fg: #000; }
html.cgd-a11y-scheme-wb    { --a-bg: #000;    --a-fg: #fff; }
html.cgd-a11y-scheme-blue  { --a-bg: #9dd1ff; --a-fg: #063462; }
html.cgd-a11y-scheme-beige { --a-bg: #f7f3d6; --a-fg: #4d4b43; }
html.cgd-a11y-scheme-green { --a-bg: #3b2716; --a-fg: #a9e44d; }
html.cgd-a11y, html.cgd-a11y body, html.cgd-a11y body *:not(svg):not(svg *):not(img):not(video):not(iframe) {
	background-color: var(--a-bg) !important; color: var(--a-fg) !important; border-color: var(--a-fg) !important;
	text-shadow: none !important; box-shadow: none !important;
}
html.cgd-a11y svg, html.cgd-a11y svg * { color: var(--a-fg) !important; }
html.cgd-a11y .t450__close_icon span { background-color: var(--a-fg) !important; }
html.cgd-a11y .cgd-tools__sep { background-color: var(--a-fg) !important; }
html.cgd-a11y a { text-decoration: underline !important; }
html.cgd-a11y *:focus-visible { outline: 3px solid var(--a-fg) !important; outline-offset: 2px; }
html.cgd-a11y mark { background: var(--a-fg) !important; color: var(--a-bg) !important; }

/* ===== Размер шрифта, интервал, гарнитура ===== */
html.cgd-a11y body *:not(.cgd-a11y-panel *) { line-height: 1.5 !important; }
html.cgd-a11y-size-1 body *:not(.cgd-a11y-panel *):not(svg *) { font-size: 20px !important; }
html.cgd-a11y-size-2 body *:not(.cgd-a11y-panel *):not(svg *) { font-size: 26px !important; }
html.cgd-a11y-size-3 body *:not(.cgd-a11y-panel *):not(svg *) { font-size: 32px !important; }
html.cgd-a11y-size-1 :is(h1, .cgd-page__title) { font-size: 32px !important; }
html.cgd-a11y-size-2 :is(h1, .cgd-page__title) { font-size: 40px !important; }
html.cgd-a11y-size-3 :is(h1, .cgd-page__title) { font-size: 48px !important; }
html.cgd-a11y-size-1 :is(h2, h3, .t-name, .t-title, .t-section__title) { font-size: 25px !important; }
html.cgd-a11y-size-2 :is(h2, h3, .t-name, .t-title, .t-section__title) { font-size: 32px !important; }
html.cgd-a11y-size-3 :is(h2, h3, .t-name, .t-title, .t-section__title) { font-size: 38px !important; }
html.cgd-a11y-ls-1 body *:not(.cgd-a11y-panel *) { letter-spacing: normal !important; word-spacing: normal !important; }
html.cgd-a11y-ls-2 body *:not(.cgd-a11y-panel *) { letter-spacing: .08em !important; word-spacing: .16em !important; }
html.cgd-a11y-ls-3 body *:not(.cgd-a11y-panel *) { letter-spacing: .16em !important; word-spacing: .3em !important; }
html.cgd-a11y body *:not(svg *) { font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important; }
html.cgd-a11y-serif body *:not(svg *) { font-family: Georgia, 'Times New Roman', Times, serif !important; }
html.cgd-a11y * { animation: none !important; transition: none !important; }
html.cgd-a11y .t-animate, html.cgd-a11y [data-animate-style] { opacity: 1 !important; transform: none !important; }

/* ===== Изображения ===== */
html.cgd-a11y img { max-width: 100% !important; height: auto !important; }
html.cgd-a11y-noimg img, html.cgd-a11y-noimg video, html.cgd-a11y-noimg iframe, html.cgd-a11y-noimg picture,
html.cgd-a11y-noimg .t-bgimg, html.cgd-a11y-noimg .t-cover__carrier { display: none !important; }
html.cgd-a11y-noimg body *:not(svg):not(svg *) { background-image: none !important; }
/* В тёмных схемах логотипы и картинки остаются как есть, без инверсии. */

/* ===== Линейная раскладка zero-блоков Tilda ===== */
html.cgd-a11y .t396__artboard { display: flex !important; flex-direction: column; align-items: flex-start; gap: 14px; height: auto !important; min-height: 0 !important; max-width: 1200px; margin: 0 auto; padding: 40px 20px !important; overflow: visible !important; }
html.cgd-a11y .t396__carrier, html.cgd-a11y .t396__filter { display: none !important; }
html.cgd-a11y .t396__elem, html.cgd-a11y .t396__group { position: static !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; width: auto !important; max-width: 100% !important; height: auto !important; transform: none !important; zoom: 1 !important; opacity: 1 !important; }
html.cgd-a11y .t396__elem .tn-atom { position: static !important; width: auto !important; height: auto !important; transform: none !important; background-image: none; }
html.cgd-a11y .t396__elem[data-elem-type="shape"], html.cgd-a11y .t396__elem[data-elem-type="vector"] { display: none !important; }
html.cgd-a11y .t396__elem[data-elem-type="image"] img { width: auto !important; max-width: min(100%, 600px) !important; }
html.cgd-a11y .t396__elem[data-elem-type="button"] .tn-atom { display: inline-block !important; padding: 8px 18px !important; border: 2px solid var(--a-fg) !important; }
html.cgd-a11y .t396 .t396__artboard br { display: none; }

/* Слайдер команды — списком. */
html.cgd-a11y .t-slds__items-wrapper { transform: none !important; width: auto !important; display: flex !important; flex-direction: column; gap: 30px; }
html.cgd-a11y .t-slds__item { width: auto !important; max-width: 100% !important; position: static !important; opacity: 1 !important; }
html.cgd-a11y .t-slds__item_dummy, html.cgd-a11y .t-slds__arrow_container, html.cgd-a11y .t-slds__bullet_wrapper, html.cgd-a11y .t-slds__arrow_wrapper { display: none !important; }
html.cgd-a11y .t-slds__main, html.cgd-a11y .t-slds__container { overflow: visible !important; }

/* Внутренние страницы и шапка. */
html.cgd-a11y .cgd-header { position: static !important; }
html.cgd-a11y .cgd-header__logo img { filter: none; }
html.cgd-a11y .cgd-page { padding-top: 40px !important; }

/* Элементы, видимые только в версии для слабовидящих. */
.cgd-a11y-only { display: none; }
html.cgd-a11y .cgd-a11y-only { display: block; }
html.cgd-a11y .cgd-a11y-sitename { max-width: 1200px; margin: 0 auto; padding: 30px 20px 0; font-weight: 700; }
html.cgd-a11y-size-1 .cgd-a11y-sitename { font-size: 32px !important; }
html.cgd-a11y-size-2 .cgd-a11y-sitename { font-size: 40px !important; }
html.cgd-a11y-size-3 .cgd-a11y-sitename { font-size: 48px !important; }
html.cgd-a11y .cgd-a11y-caption { padding: 14px 0 0; text-align: left; }
html.cgd-a11y .cgd-a11y-caption strong { display: block; }
html.cgd-a11y .t-slds__caption__container { display: none !important; }
html.cgd-a11y .t-slds__wrapper { opacity: 1 !important; }
html.cgd-a11y .t604__imgwrapper { max-width: 360px; }
html.cgd-a11y .t-slds__item .t-width { max-width: 1160px !important; }
html.cgd-a11y [class*="tn-atom__"][class*="-wrapper"], html.cgd-a11y .tn-atom { transform: none !important; opacity: 1 !important; left: auto !important; top: auto !important; }
html.cgd-a11y .t-rec, html.cgd-a11y [id] { scroll-margin-top: 150px; }
html.cgd-a11y .t396 *, html.cgd-a11y .t-slds * { text-align: left !important; }
html.cgd-a11y .t396__elem, html.cgd-a11y .t396__elem .tn-atom, html.cgd-a11y [class*="tn-atom__"][class*="-wrapper"] { display: block !important; width: auto !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere; }
html.cgd-a11y .t396__artboard { width: 100% !important; box-sizing: border-box; }
html.cgd-a11y body { overflow-x: hidden; }
@media (max-width: 960px) {
	html.cgd-a11y .cgd-a11y-panel { position: static; }
	.cgd-a11y-panel__inner { gap: 8px 16px; padding: 10px 12px; }
	html.cgd-a11y .cgd-a11y-panel * { font-size: 15px !important; }
	html.cgd-a11y .cgd-a11y-panel .cgd-a11y-panel__btn { min-width: 36px; height: 36px; padding: 0 8px; }
	html.cgd-a11y .cgd-a11y-panel__label { width: 100%; }
	html.cgd-a11y .t-rec, html.cgd-a11y [id] { scroll-margin-top: 0; }
}
