/* --- шрифты (локально, OFL) --- */
/* Montserrat (SIL Open Font License 1.1, см. OFL-Montserrat.txt), вариативный шрифт 100–900, подмножество: латиница, кириллица, узбекские ʻ ʼ, знаки */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Montserrat-VF.woff2') format('woff2'); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/Montserrat-Italic-VF.woff2') format('woff2'); }

/* =========================================================================
   CTG — дочерний шаблон Cassiopeia (Joomla 5). Цель: вид как у старого сайта (Sparky).
   ========================================================================= */
:root {
  --ctg-green: #50c386;
  --ctg-green-2: #6dcd9a;
  --ctg-green-3: #89d8ae;
  --ctg-text: #333;
  --ctg-dark: #222;
  /* как раньше: латиница/цифры — Encode Sans Expanded, кириллица — системный Helvetica (Mac) / Arial (Windows) */
  --ctg-font: "Encode Sans Expanded", Helvetica, Arial, sans-serif;
  --cassiopeia-color-primary: #ffffff;
  --cassiopeia-color-link: var(--ctg-green);
  --cassiopeia-color-hover: var(--ctg-green-2);
  --cassiopeia-font-family-body: var(--ctg-font);
  --cassiopeia-font-family-headings: var(--ctg-font);
  --cassiopeia-font-weight-headings: 400;
  --body-color: var(--ctg-text);
  --link-color: var(--ctg-green);
  --link-hover-color: var(--ctg-green-2);
  --btn-primary-bg: var(--ctg-green);
}
body { color: var(--ctg-text); font-family: var(--ctg-font); font-size: 14px; line-height: 1.7; overflow-x: hidden; }
a { color: var(--ctg-green); text-decoration: none; font-weight: normal; }
a:not([class]) { text-decoration: none; }
a:hover, a:focus { color: var(--ctg-green-2); }

/* ---------- типографика и вертикальный ритм (sparky: h1 30px 0, h2–h4 15px 0, margin 0; p 0 0 15px) ---------- */
h1, h2, h3, h4 { font-family: var(--ctg-font); color: var(--ctg-text); text-transform: uppercase; line-height: 1.4; margin: 0; padding: 15px 0; }
h1 { font-size: 48px; font-weight: 300; letter-spacing: 5px; padding: 30px 0; }
h2 { font-size: 36px; font-weight: 400; letter-spacing: 4px; }
h3 { font-size: 24px; font-weight: 400; letter-spacing: 3px; }
h4 { font-size: 18px; font-weight: 400; letter-spacing: 3px; }
p { margin: 0 0 15px; }
hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; border-bottom: 1px solid #fff; opacity: 1; }
main ul:not([class]), main ol:not([class]) { margin: 15px 45px; padding: 0; }
main li { line-height: 1.7; }
.item-page li { margin: 0 0 10px; }
/* на узком телефоне старые 48/36 px вылезали за экран (документ 458 px при 390) — уменьшаем только здесь */
@media (max-width: 550px) {
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  h1 { font-size: 36px; letter-spacing: 4px; }
  h2 { font-size: 30px; letter-spacing: 3px; }
}

/* ---------- сетка: колонка текста 1080 px с x=180 (1440) и 360 px с x=15 (390), как .sparky_container 1110 + ячейки 15 px ---------- */
.site-grid { gap: 0; grid-template-columns: [full-start] minmax(15px, 1fr) [main-start] repeat(4, minmax(0, 270px)) [main-end] minmax(15px, 1fr) [full-end]; }
.container-component > main { margin-top: 0; }
body:not(:has(.hero_row)) .container-component { padding-top: 50px; padding-bottom: 50px; }

/* ---------- шапка: одна строка 80 px — логотип 80×80 слева, меню и языки справа ---------- */
.container-header { background: #fff; background-image: none; border-bottom: 1px solid var(--ctg-green); box-shadow: 0 1px 5px rgba(0,0,0,.15); }
.container-header > .grid-child { width: auto; max-width: none; margin: 0; padding: 0; }
.container-header .navbar-brand { padding: 0; margin: 0; line-height: 0; }
.container-header .navbar-brand img { display: block; width: 80px; height: 80px; max-height: none; }
.container-header .brand-logo, .container-header .brand-logo span { color: var(--ctg-text); font-size: 24px; letter-spacing: 2px; }
.container-header .site-description { color: #777; }
.container-header .container-nav { flex-wrap: nowrap; align-items: center; padding: 0; }
.container-header nav, .container-header .container-search { margin: 0; }
.container-header .mod-menu > li > a, .container-header .mod-menu > li > span,
.container-header .mod-menu > li > button.mod-menu__heading {
  color: var(--ctg-green); text-transform: uppercase; font-size: 14px; font-weight: 400; letter-spacing: normal; text-decoration: none;
}
.container-header .metismenu.mod-menu .metismenu-item > a, .container-header .metismenu.mod-menu .metismenu-item > button { text-decoration: none; }
.container-header .metismenu.mod-menu .mm-toggler::after { border-top: 5px solid #ccc; border-left: 5px solid transparent; border-right: 5px solid transparent; margin-inline-start: 8px; }
/* переключатель языков (новый элемент): мелко, без серой плашки */
.container-header div.mod-languages ul.lang-inline { display: flex; margin: 0; padding: 0; }
.container-header div.mod-languages ul li, .container-header div.mod-languages ul li.lang-active { margin: 0; background: none; }
.container-header div.mod-languages a { padding: 0 5px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #999; }
.container-header div.mod-languages ul li.lang-active a { color: var(--ctg-green); }
@media (min-width: 992px) {
  .container-header { display: flex; flex-wrap: nowrap; align-items: center; padding: 0 max(0px, calc((100% - 1110px) / 2)); }
  .container-header > .grid-child { padding: 0 15px; }
  .container-header > .grid-child:not(.container-nav) { flex: 0 0 auto; }
  .container-header > .container-nav { flex: 1 1 auto; justify-content: flex-end; }
  .container-header .navbar { padding: 0; }
  .container-header .mod-menu { flex: 0 1 auto; }
  .container-header .metismenu.mod-menu > .metismenu-item.level-1 { padding: 0; font-size: 14px; line-height: 80px; }
  .container-header .mod-menu > li + li { margin-left: 0; }
  .container-header .mod-menu > li > a, .container-header .mod-menu > li > span,
  .container-header .mod-menu > li > button.mod-menu__heading { display: flex; align-items: center; height: 80px; padding: 0 20px; }
  .container-header .metismenu > li > a::after, .container-header .metismenu > li > button::before { display: none; }
  .container-header .container-search { margin-left: 10px; }
  /* выпадающие подменю — как .mnu_mainmenu ul у Sparky: чёрная панель 200 px, пункты 12 px */
  .container-header .metismenu.mod-menu .metismenu-item > ul.mm-collapse { background: #030303; border: 0; box-shadow: none; min-width: 200px; padding: 12px; }
  .container-header .metismenu.mod-menu .mm-collapse > li { padding: 0 10px; font-size: 12px; line-height: 25px; }
  .container-header .metismenu.mod-menu .mm-collapse a { color: var(--ctg-green); font-size: 12px; text-transform: none; letter-spacing: 0; white-space: nowrap; background: none; }
}
@media (max-width: 991.98px) {
  .container-header { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; min-height: 80px; padding: 0 15px; }
  .container-header .navbar-brand { padding: 6px 0; }
  .container-header .navbar-brand img { width: 68px; height: 68px; }
  .container-header > .container-nav { flex: 0 0 auto; gap: 12px; }
  .container-header .container-search { order: -1; }
  .container-header .navbar { position: static; padding: 0; }
  .container-header .navbar-toggler { display: flex; align-items: center; justify-content: center; width: 40px; height: 30px; padding: 0; border: 0; border-radius: 0; background: #222; color: #fff; box-shadow: none; }
  .container-header .navbar-toggler .icon-menu { font-size: 18px; color: #fff; }
  /* раскрытое меню — тёмная панель на 90 % ширины, как у Sparky */
  .container-header .navbar-collapse { position: absolute; top: 100%; left: 5%; right: 5%; z-index: 1000; background: #444; padding: 0; border: 0; }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item { padding: 0; font-size: 14px; }
  .container-header .navbar-collapse .mod-menu a, .container-header .navbar-collapse .mod-menu button.mod-menu__heading { color: #fff; line-height: 40px; padding: 0 15px; }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item > ul { position: relative; top: 0; flex-basis: 100%; min-width: 0; margin: 0; padding: 0 0 0 15px; background: #444; box-shadow: none; }
}
/* главная: прозрачная шапка поверх фото hero на всех ширинах (раньше это делал jQuery) */
body:has(.hero_row) .container-header { position: absolute !important; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom: 0; box-shadow: none; }
body:has(.hero_row) .container-header .mod-menu > li > a, body:has(.hero_row) .container-header .mod-menu > li > button.mod-menu__heading,
body:has(.hero_row) .container-header .brand-logo span { color: #fff; }
body:has(.hero_row) .container-header .mod-menu > li > a:hover, body:has(.hero_row) .container-header .mod-menu > li > button.mod-menu__heading:hover { color: var(--ctg-green); }
body:has(.hero_row) .container-header div.mod-languages a { color: rgba(255,255,255,.7); }
body:has(.hero_row) .container-header div.mod-languages ul li.lang-active a { color: #fff; }

/* ---------- кнопки: 14px, разрядка 3px, поля 10/30 (высота 48), зелёный контур ---------- */
.btn, a.btn, button.btn, .btn-primary, .btn-secondary, input.button, p.readmore a {
  background: transparent; color: var(--ctg-green); border: 2px solid var(--ctg-green); border-radius: 0;
  text-transform: uppercase; font-size: 14px; font-weight: 400; line-height: 1.7; letter-spacing: 3px; padding: 10px 30px; transition: all .3s;
}
.btn:hover, a.btn:hover, button.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn:focus, .btn-primary:focus, p.readmore a:hover {
  background: var(--ctg-green); color: #fff; border-color: var(--ctg-green);
}
p.readmore a [class^="icon-"] { display: none; }
input:focus, textarea:focus, select:focus { border-color: var(--ctg-green) !important; box-shadow: none !important; }

/* ---------- bottom-a: ряд «Полное соответствие законодательству РУз» — фото CTG во всю ширину ---------- */
.site-grid > .container-bottom-a { grid-column: full-start / full-end; padding: 0; background: none; }
.container-bottom-a > .card { margin: 0; border: 0; border-radius: 0; background: transparent; }
.container-bottom-a > .card > .card-body { padding: 0; }
.container-bottom-a > .card:has(.ctg-carousel) > .card-header {
  position: absolute; z-index: 3; top: 30px; left: 0; right: 0; margin: 0; padding: 15px;
  background: none; border: 0; color: #fff; font-size: 36px; font-weight: 400; letter-spacing: 4px; line-height: 1.4; text-align: center;
}
.ctg-carousel .carousel { background: #1d2a30 url('../images/hero_bg1-20261008-cc0b7a1d.jpg') center / cover no-repeat; }
.ctg-carousel .carousel::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); } /* фото CTG ночное — затемняем слабо */
.ctg-carousel .carousel-inner { z-index: 1; }
.ctg-carousel .carousel-item { min-height: 563px; padding: 223px 15px 80px; text-align: center; color: #fff; }
.ctg-carousel .carousel-item > * { max-width: 691px; margin-left: auto; margin-right: auto; }
.ctg-carousel .carousel-item h3 { color: #fff; font-size: 24px; letter-spacing: 4px; padding: 15px 0; text-align: center; } /* по просьбе Андрея — по центру (на старом было слева) */
.ctg-carousel .carousel-item p, .ctg-carousel .carousel-item b { color: #fff; }
.ctg-carousel .ctg-icon, .ctg-carousel .carousel-control-prev, .ctg-carousel .carousel-control-next { display: none; }
.ctg-carousel .carousel-indicators { z-index: 2; bottom: 30px; margin: 0 15%; align-items: center; }
.ctg-carousel .carousel-indicators [data-bs-target] { width: 12px; height: 12px; margin: 0 8px; border: 0; border-radius: 50%; background-color: #fff; opacity: .25; }
.ctg-carousel .carousel-indicators .active { width: 15px; height: 15px; opacity: 1; }
@media (max-width: 767.98px) {
  /* как у Sparky ≤767: заголовок тёмный над фото, точки тёмные под фото */
  .container-bottom-a > .card:has(.ctg-carousel) > .card-header { position: static; margin-top: 30px; color: var(--ctg-text); }
  .ctg-carousel .carousel { margin-bottom: 45px; }
  .ctg-carousel .carousel-item { min-height: 340px; padding: 20px 15px 30px; }
  .ctg-carousel .carousel-indicators { bottom: -40px; }
  .ctg-carousel .carousel-indicators [data-bs-target] { background-color: var(--ctg-text); }
}
@media (max-width: 550px) {
  .container-bottom-a > .card:has(.ctg-carousel) > .card-header { font-size: 26px; letter-spacing: 3px; }
  .ctg-carousel .carousel-item p { font-size: 12px; line-height: 1.7; }
}
.ctg-map iframe { display: block; width: 100%; height: 400px; min-height: 0; border: 0; }

/* ---------- bottom-b: адрес слева 340 px, справа 710 px (как bottomrow Sparky), без рамок ---------- */
.site-grid > .container-bottom-b { padding: 70px 0 90px; column-gap: 30px; }
.container-bottom-b > .card { margin: 0; border: 0; border-radius: 0; background: transparent; }
.container-bottom-b > .card > .card-body { padding: 0; }
@media (min-width: 992px) {
  .container-bottom-b > .card:first-child:not(:only-child) { flex: 0 0 340px; }
  .container-bottom-b > .card + .card { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 991.98px) { .container-bottom-b > .card + .card { margin-top: 30px; } }

/* ---------- футер ---------- */
.container-footer { background: #333; color: #fff; margin-top: 0; }
.container-footer .grid-child { max-width: 1110px; padding: 30px 45px; justify-content: center; text-align: center; }
.container-footer .grid-child .mod-footer { width: 100%; margin: 0; }
.container-footer a { color: #fff; }
.back-to-top-link { background: transparent; color: var(--ctg-green); border: 0; font-size: 32px; padding: 0; inset-inline-end: 25px; bottom: 25px; }
.back-to-top-link:hover, .back-to-top-link:focus { background: transparent; color: var(--ctg-green-2); border: 0; }
.back-to-top-link .icon-arrow-up::before { content: "\f077"; }

/* ---------- FAQ: вид аккордеона Bootstrap 2 старого сайта ---------- */
.accordion.faq { margin-bottom: 20px; }
details.ctg-faq { border: 1px solid #e5e5e5; border-radius: 4px; margin: 0 0 2px; background: transparent; }
details.ctg-faq > summary { display: block; padding: 8px 15px; font-weight: 400; color: var(--ctg-green); cursor: pointer; list-style: none; }
details.ctg-faq > summary:hover, details.ctg-faq > summary:focus-visible { color: var(--ctg-green-2); }
details.ctg-faq > summary::-webkit-details-marker { display: none; }
details.ctg-faq > .ctg-faq-body { padding: 9px 15px; border-top: 1px solid #e5e5e5; }

/* ---------- заголовки материалов, дата, изображение (порядок Sparky: заголовок → дата → фото → текст) ---------- */
.page-header { margin: 0; padding: 0; border: 0; }
.com-content-article > .page-header h1 { font-size: 36px; font-weight: 400; letter-spacing: 4px; padding: 15px 0; }
.com-content-article > .page-header:has(+ .page-header) h1 { font-size: 48px; font-weight: 300; letter-spacing: 5px; padding: 30px 0; }
.blog-item .page-header h2 a { color: var(--ctg-text); }
dl.article-info { margin: 0; padding: 0 0 15px; font-size: 12px; color: #999; }
dl.article-info dt { display: none; }
dl.article-info dd { margin: 0; }
figure.item-image { margin: 0 0 15px; }
.com-content-article figure.item-image img { display: block; max-width: 100%; height: auto; }
.blog-item figure.item-image img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) { .com-content-category-blog .blog-items.columns-2 { gap: 30px 22px; margin-top: 15px; } }
@media (max-width: 550px) {
  .com-content-article > .page-header h1 { font-size: 30px; letter-spacing: 3px; }
  .com-content-article > .page-header:has(+ .page-header) h1 { font-size: 36px; letter-spacing: 4px; }
}

/* ---------- лайтбокс для сертификатов (нативный <dialog>) ---------- */
dialog.ctg-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
dialog.ctg-lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.ctg-lightbox img { max-width: 92vw; max-height: 86vh; display: block; margin: auto; }
dialog.ctg-lightbox button { position: fixed; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
a.ctg-zoom { cursor: zoom-in; }

/* ---------- страница «Контакты» (override com_contact/contact/default.php): заголовок → карта во всю ширину → адрес | форма ---------- */
.ctg-contact__map { width: 100vw; margin: 50px 0 0 calc(50% - 50vw); }
.ctg-contact__grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 30px; margin: 70px 0 40px; }
@media (max-width: 991.98px) { .ctg-contact__grid { grid-template-columns: minmax(0, 1fr); row-gap: 30px; } }

/* ---------- форма обратной связи: как RSForm старого сайта (подсказки в полях, линия снизу, textarea в рамке) ---------- */
.contact-form .control-group { margin-bottom: 0; }
.contact-form input.form-control { height: auto; border: 0; border-bottom: 1px solid #333; border-radius: 0; padding: 20px 10px; margin-bottom: 30px; background: transparent; box-shadow: none; }
.contact-form textarea.form-control { height: 120px; min-height: 120px; border: 1px solid #333; border-radius: 0; padding: 10px; margin-bottom: 30px; box-shadow: none; }
.contact-form .form-control::placeholder { color: #999; }
.contact-form .form-check { margin-bottom: 10px; }
.contact-form .form-check-label { font-size: 14px; line-height: 1.7; }

/* ---------- нижний ряд: форма «Обратная связь» на каждой странице (как RSForm старого сайта), модуль mod_custom, макет feedback ---------- */
.ctg-feedback h2 { padding-top: 0; }
.ctg-feedback .contact-form .btn { margin-top: 10px; }

/* ---------- «плавающая» шапка Sparky: после 300 px при прокрутке вверх фиксируется сверху, 60 px (только ≥992) ---------- */
@keyframes ctgTopShow { from { transform: translateY(-60px); } to { transform: none; } }
@media (min-width: 992px) {
  .container-header.ctg-fixed { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--ctg-green); box-shadow: 0 1px 3px rgba(0,0,0,.15); animation: ctgTopShow .5s both; }
  /* на главной прозрачная шапка задана правилом body:has(.hero_row) …, у него выше специфичность — повторяем с ним */
  body:has(.hero_row) .container-header.ctg-fixed { position: fixed !important; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--ctg-green); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
  .container-header.ctg-fixed .navbar-brand img { width: 60px; height: 60px; }
  .container-header.ctg-fixed .mod-menu > li > a, .container-header.ctg-fixed .mod-menu > li > button.mod-menu__heading,
  body:has(.hero_row) .container-header.ctg-fixed .mod-menu > li > a, body:has(.hero_row) .container-header.ctg-fixed .mod-menu > li > button.mod-menu__heading { height: 60px; color: var(--ctg-text); }
  body:has(.hero_row) .container-header.ctg-fixed div.mod-languages a { color: #999; }
  body:has(.hero_row) .container-header.ctg-fixed div.mod-languages ul li.lang-active a { color: var(--ctg-green); }
  body.ctg-has-fixed:not(:has(.hero_row)) .site-grid { margin-top: 81px; }
}

/* =========================================================================
   1.2.1 — правки по итогам независимой финальной сверки со старым сайтом
   ========================================================================= */
/* маркеры списков: Cassiopeia обрезает их правилом .com-content-article ul { overflow: hidden }; у Sparky списки были видимыми */
main .com-content-article ul, main .com-content-article ol { overflow: visible; }
main li > ul:not([class]), main li > ol:not([class]) { margin-bottom: 0; }
/* фото материала: отступ снизу паддингом (не схлопывается со следующим блоком), как div.item-image у Sparky */
figure.item-image { margin: 0; padding-bottom: 15px; }
.blog-item figure.item-image { margin-right: 15px; }
.blog-item figure.item-image + .page_row { margin-top: 0; }
/* форма: поля 41 px с шагом 81, согласия с шагом ~50, чекбоксы заметные — как RSForm старого сайта */
.contact-form input.form-control { padding: 8px 10px; margin-bottom: 40px; font-size: 14px; line-height: 24px; }
.contact-form textarea.form-control { font-size: 14px; }
.contact-form .control-group { margin-top: 10px; }
.contact-form fieldset.checkboxes { margin-bottom: 0; padding-top: 0; }
.contact-form .form-check { margin-bottom: 0; }
.contact-form .form-check-label { font-size: 14px; line-height: 20px; }
.contact-form .form-check-input { border-color: #767676; }
.contact-form .form-check-input:checked { background-color: var(--ctg-green); border-color: var(--ctg-green); }
@media (max-width: 767.98px) { .contact-form .form-control { font-size: 16px; } } /* iOS не увеличивает страницу при фокусе */
/* карусель: высота по самому высокому слайду — блок и всё ниже не «прыгают» при смене слайда */
.ctg-carousel .carousel-inner { display: grid; }
.ctg-carousel .carousel-item { display: block; grid-area: 1 / 1; float: none; margin-right: 0; visibility: hidden; }
.ctg-carousel .carousel-item.active, .ctg-carousel .carousel-item-next, .ctg-carousel .carousel-item-prev { visibility: visible; }
/* шапка на телефоне: бургер и языки по центру строки */
@media (max-width: 991.98px) { .container-header .container-nav nav, .container-header .container-nav .container-search { margin-top: 0; } }
/* телефон: точки сразу под фото, до «АДРЕС» ~70 px, как раньше */
@media (max-width: 767.98px) { .ctg-carousel .carousel { margin-bottom: 0; } .ctg-carousel .carousel-indicators { bottom: -30px; } }
/* =========================================================================
   Классы из HTML статей — значения как в sparky-id14 / style2.css старого сайта.
   ========================================================================= */
/* ряды и колонки: ряд 50 px сверху/снизу, контейнер −15 px, ячейка 15 px */
.page_row { margin-top: 50px; margin-bottom: 50px; }
.page_container { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.page_container:not(:has(> .sparky_cell)) { display: block; }
.sparky_cell { padding: 0 15px; box-sizing: border-box; min-width: 0; }
.sparkle12 { flex: 0 0 100%; max-width: 100%; }
.sparkle8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.sparkle6 { flex: 0 0 50%; max-width: 50%; }
.sparkle4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.sparkle3 { flex: 0 0 25%; max-width: 25%; }
.page_container[style*="flex"] > .sparky_cell { max-width: none; }
.row_full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.row_full > .page_container { margin: 0; }
.flexcontainer { display: flex; flex-wrap: wrap; }
.clr, .clear { clear: both; }
@media (max-width: 767.98px) {
  .sparkle3, .sparkle4, .sparkle6, .sparkle8 { flex-basis: 100%; max-width: 100%; }
  .page_container:not(:has(> .sparky_cell)) { margin: 0; }
}

/* отступы и выравнивание */
.aligncenter { text-align: center; }
.alignleft { text-align: left; }
.alignright { text-align: right; }
.nopadding { padding: 0 !important; }
.notoppadding { padding-top: 0 !important; }
.nobottompadding { padding-bottom: 0 !important; }
.notopbottompadding { padding-top: 0 !important; padding-bottom: 0 !important; }
.notopmargin { margin-top: 0 !important; }
.nobottommargin { margin-bottom: 0 !important; }
.notopbottommargin { margin-top: 0 !important; margin-bottom: 0 !important; }
.bigpadding { padding: 50px; }

/* первый экран главной: 600 px, фото, заголовок в зелёной рамке без подложки */
.hero_row {
  background: #2b3a40 url('../images/hero_bg2-20261008-f619d68a.jpg') center / cover no-repeat;
  min-height: 600px; display: flex; align-items: center; justify-content: center; padding: 0; margin-top: 0; text-align: center;
}
.hero_row > .page_container { flex: 1 1 100%; min-width: 0; }
.hero_row h1 { color: #fff; display: inline-block; text-align: center !important; margin: 0; border: 3px solid var(--ctg-green); padding: 10px 20px; background: none; }
@media (max-width: 550px) { .hero_row .sparky_cell { padding: 0 7px; } .hero_row h1 { font-size: 36px; letter-spacing: 5px; padding: 10px; } }

/* цветные плитки */
.color1 { background: var(--ctg-green-3); }
.color2 { background: var(--ctg-green-2); }
.color3 { background: var(--ctg-green); }
.color1, .color2, .color3 { color: var(--ctg-text); }

/* тёмная полоса */
.black_row { background: var(--ctg-dark); color: #fff; text-align: center; padding: 30px 0; }
.black_row h1, .black_row h2, .black_row h3, .black_row h4 { color: #fff; font-weight: 300; }
.black_row p { color: #fff; }
.black_row .btn { color: var(--ctg-green); }
.black_row .btn:hover { color: #fff; }

/* плитки с фото и подписью при наведении (style2.css + sparky .view) */
.view { position: relative; overflow: hidden; text-align: center; width: 300px; height: 450px; max-width: 100%; margin: 0 auto; }
.view.view_full { width: 100%; height: auto; }
.view img { display: block; width: 100%; height: auto; transition: transform .2s linear; }
.view .mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: rgba(80,195,134,.8); opacity: 0; transition: all .4s ease-in-out;
}
.view .mask h3 { color: #fff; font-size: 24px; letter-spacing: 3px; padding: 10px; margin: 0; opacity: 0; transform: translateY(-100px); transition: all .2s ease-in-out; }
.view .mask p { color: #fff; padding: 0 30px; margin: 0 0 15px; opacity: 0; transform: translateY(100px); transition: all .2s linear; }
.view:hover .mask, .view:focus-within .mask { opacity: 1; }
.view:hover .mask h3, .view:hover .mask p, .view:focus-within .mask h3, .view:focus-within .mask p { opacity: 1; transform: none; }
.view:hover .mask p { transition-delay: .1s; }
.view:hover img, .view:focus-within img { transform: scale(1.1); }
@media (max-width: 991.98px) { .view { width: 100%; height: auto; } }
@media (max-width: 767.98px) { .view { margin-bottom: 30px; } .view.view_full { margin-bottom: 0; } } /* портфолио на телефоне вплотную — по просьбе Андрея */

/* типографика блоков */
p.big_text { font-size: 24px; font-weight: 400; line-height: 1.4; padding: 0 0 30px; color: var(--ctg-green); }
p.headline { font-family: "Raleway", var(--ctg-font); font-style: italic; font-size: 18px; letter-spacing: normal; padding-bottom: 30px; margin-top: -15px; }
p.thin { max-width: 560px; margin: 15px auto; }
span.p_number { float: left; position: relative; font-size: 400%; font-weight: 700; line-height: 40px; margin: 0 10px 10px 0; }
.testimonial_name { font-family: "Raleway", var(--ctg-font); font-style: italic; font-weight: 400; }
.testimonial_name b { font-weight: 400; }
blockquote { border-left: 3px solid #ccc; font-family: Georgia, serif; font-style: italic; margin: 15px; padding: 15px; }
.smalltext { font-size: 12px; }
.cursor-pointer { cursor: pointer; }
.img-with-animation { opacity: 1; }
/* согласие: <span class="fab"> из старой разметки — не иконочный шрифт Font Awesome (старый сайт показывал serif) */
.com-content-article__body span.fab { font-family: "Times New Roman", Times, serif; font-weight: inherit; display: inline-block; line-height: 1; }

/* иконки Font Awesome вместо демо-картинок */
.ctg-icon { color: var(--ctg-text); display: inline-block; line-height: 1; }
.ctg-icon-lg { font-size: 50px; margin: 0; }
.ctg-icon-sm { font-size: 20px; margin-right: 10px; vertical-align: -2px; }
p.notopbottommargin > .ctg-icon-sm { font-size: 30px; margin: 0; vertical-align: top; }

/* ===== d2-01-tokens.css ===== */
/* d2 «Dark Premium»: почти чёрный тёмно-синий, светящийся зелёный CTG, стекло поверх фото, тонкие линии, крупный гротеск.
   Контраст (WCAG): text 16.6:1, text-2 10.6:1, muted 6.6:1, green 8.9:1 на --bg; тёмный текст на зелёной кнопке 8.8:1. */
:root {
  --bg: #070b14;             /* фон страницы */
  --bg-2: #0a1120;           /* чередующиеся секции */
  --surface: #0f1829;        /* карточки */
  --surface-2: #142036;      /* карточки при наведении, поля ввода */
  --read: #0c1424;           /* «лист» длинных документов */
  --glass: rgba(16, 26, 46, .58);
  --glass-strong: rgba(9, 14, 26, .82);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #e8edf5;
  --text-2: #b4bfd0;
  --muted: #8b97aa;
  --green: #50c386;          /* CTG */
  --green-hi: #7be3ad;       /* свечение, наведение */
  --green-deep: #1d6b47;
  --green-ink: #04120a;      /* текст на зелёном */
  --green-glow: rgba(80, 195, 134, .35);
  --green-soft: rgba(80, 195, 134, .12);
  --navy: #0d1b33;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;

  --ctg-green: var(--green);
  --ctg-green-2: var(--green-hi);
  --ctg-green-3: var(--green-soft);
  --ctg-text: var(--text);
  --ctg-dark: var(--bg-2);
  --ctg-font: var(--sans);
  --cassiopeia-color-primary: var(--bg);
  --cassiopeia-color-link: var(--green);
  --cassiopeia-color-hover: var(--green-hi);
  --cassiopeia-font-family-body: var(--sans);
  --cassiopeia-font-family-headings: var(--sans);
  --cassiopeia-font-weight-headings: 700;
  --body-color: var(--text);
  --body-bg: var(--bg);
  --link-color: var(--green);
  --link-hover-color: var(--green-hi);
  --btn-primary-bg: var(--green);
  --heading-color: var(--text);
  --border-color: var(--line);
  --card-bg: transparent;
  --card-color: var(--text);
  color-scheme: dark;
}

/* ===== d2-02-base.css ===== */
/* ---------- основа: тёмный фон, светлый текст, крупный гротеск ---------- */
html, body { background: var(--bg); }
body {
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* мягкое свечение сверху страницы (кроме главной, где первый экран — фото) */
body:not(:has(.hero_row)) .site-grid {
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(80,195,134,.16), transparent 70%),
    radial-gradient(700px 380px at 0% 0%, rgba(40,80,160,.18), transparent 70%);
}
a { color: var(--green); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
a:hover, a:focus { color: var(--green-hi); }
a:not([class]) { text-decoration: none; }
main a:not([class]), .com-content-article__body a:not(.btn), .container-bottom-b a:not(.btn), .form-check-label a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(80,195,134,.45);
}
main a:not([class]):hover, .com-content-article__body a:not(.btn):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(80,195,134,.35); color: #fff; }

/* заголовки: Montserrat 700, плотная разрядка, без капса базового шаблона */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--sans); color: var(--text); text-transform: none; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  overflow-wrap: break-word; hyphens: manual;
}
h1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.03em; padding: 20px 0 18px; }
h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 750; padding: 18px 0 14px; }
h3 { font-size: clamp(20px, 1.9vw, 26px); padding: 14px 0 8px; letter-spacing: -.01em; }
h4 { font-size: 18px; padding: 12px 0 6px; letter-spacing: 0; font-weight: 700; }
p { margin: 0 0 18px; }
strong, b { font-weight: 650; color: #fff; }
em { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); border-bottom: 0; margin: 36px 0; opacity: 1; }
@media (max-width: 550px) {
  body { font-size: 15.5px; }
  h1 { font-size: 34px; letter-spacing: -.02em; }
  h2 { font-size: 27px; letter-spacing: -.01em; }
  h3 { font-size: 20px; }
}

/* текст статей */
.com-content-article__body, .item-page { font-size: 16.5px; color: var(--text-2); }
.com-content-article__body > p, .com-content-article__body li, .com-content-article__body td { color: var(--text-2); }
.com-content-article__body h2, .com-content-article__body h3, .com-content-article__body h4 { color: var(--text); }
main ul:not([class]) { list-style: none; margin: 14px 0 22px; padding: 0; }
main ul:not([class]) > li { position: relative; padding-left: 28px; margin-bottom: 10px; }
main ul:not([class]) > li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(80,195,134,.14), 0 0 12px rgba(80,195,134,.6);
}
main ol:not([class]) { margin: 14px 0 22px 26px; padding: 0; }
main ol:not([class]) > li { padding-left: 6px; margin-bottom: 10px; }
main ol:not([class]) > li::marker { color: var(--green); font-weight: 700; }
blockquote {
  border: 0; border-left: 2px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--sans); font-style: normal; font-size: 18px; color: var(--text); margin: 24px 0; padding: 18px 24px;
}
abbr[title] { text-decoration-color: var(--muted); }
dl.article-info { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
dl.article-info dd { display: inline-flex; align-items: center; gap: 8px; }

/* заголовок материала: крупно, тонкая светящаяся линия снизу */
.page-header h1, .com-content-article > .page-header h1, .com-content-article > .page-header:has(+ .page-header) h1,
.com-content-category-blog > .page-header h1, .com-content-category-blog h1 {
  font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; padding: 6px 0 26px; text-transform: none;
  margin-bottom: 34px; position: relative; color: #fff;
}
.page-header h1::after, .com-content-category-blog h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), rgba(80,195,134,0)); box-shadow: 0 0 18px var(--green-glow);
}
@media (max-width: 550px) {
  .page-header h1, .com-content-article > .page-header h1, .com-content-article > .page-header:has(+ .page-header) h1 { font-size: 31px; letter-spacing: -.02em; }
}
body:not(:has(.hero_row)) .container-component { padding-top: 64px; padding-bottom: 80px; }
.card { background: transparent; color: var(--text); }
.container-component, .container-component > main { color: var(--text-2); }
/* сообщения Joomla (после отправки формы) */
#system-message-container joomla-alert, .alert { border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }

/* ===== d2-03-header.css ===== */
/* ---------- шапка: тёмное матовое стекло, закреплена сверху; на главной — прозрачная поверх фото до прокрутки ---------- */
.container-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(7,11,20,.78); background-image: none;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line); box-shadow: none; transition: background-color .3s, border-color .3s, box-shadow .3s;
}
html.d2-scrolled .container-header { background: rgba(7,11,20,.9); box-shadow: 0 12px 40px -18px rgba(0,0,0,.9); }
body:has(.hero_row) .container-header {
  position: fixed !important; background: linear-gradient(rgba(5,9,18,.7), rgba(5,9,18,0)); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.d2-scrolled body:has(.hero_row) .container-header {
  background: rgba(7,11,20,.86); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
/* базовая «плавающая» шапка не нужна */
body.ctg-has-fixed:not(:has(.hero_row)) .site-grid { margin-top: 0; }

/* логотип: оригинальный знак CTG на светлой плашке (тёмно-синяя «G» не теряется на тёмном) + словесный знак */
.container-header .navbar-brand { line-height: 1; }
.container-header .navbar-brand a.brand-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.container-header .navbar-brand img {
  width: 46px; height: 46px; padding: 5px; background: #fff; border-radius: 13px; box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 10px 28px -10px var(--green-glow);
  transition: transform .3s, box-shadow .3s;
}
.container-header .navbar-brand a.brand-logo:hover img { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 12px 32px -8px rgba(80,195,134,.6); }
.container-header .navbar-brand a.brand-logo::after {
  content: "CREDIT\A TECHNOLOGY\A GROUP"; white-space: pre; font-family: var(--sans); font-size: 10px; line-height: 1.25; font-weight: 700;
  letter-spacing: .24em; color: var(--text);
}

/* меню: обычный регистр, 14.5 px, активный пункт — «пилюля» из стекла с зелёной точкой */
.container-header .mod-menu > li > a, .container-header .mod-menu > li > span,
.container-header .mod-menu > li > button.mod-menu__heading {
  color: var(--text-2); font-family: var(--sans); font-size: 14.5px; font-weight: 550; letter-spacing: .01em; text-transform: none; text-decoration: none;
  background: transparent; border: 0;
}
body:has(.hero_row) .container-header .mod-menu > li > a, body:has(.hero_row) .container-header .mod-menu > li > button.mod-menu__heading { color: rgba(255,255,255,.88); }
.container-header .mod-menu > li > a:hover, .container-header .mod-menu > li > button.mod-menu__heading:hover,
.container-header .mod-menu > li > a:focus-visible, .container-header .mod-menu > li > button.mod-menu__heading:focus-visible,
body:has(.hero_row) .container-header .mod-menu > li > a:hover, body:has(.hero_row) .container-header .mod-menu > li > button.mod-menu__heading:hover { color: #fff; }
.container-header .mod-menu > li.active > a, .container-header .mod-menu > li.current > a,
.container-header .mod-menu > li.active > button.mod-menu__heading { color: #fff; }
.container-header .metismenu.mod-menu .mm-toggler::after {
  border: 0; width: 7px; height: 7px; border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green);
  transform: rotate(45deg) translateY(-3px); margin-inline-start: 10px; transition: transform .2s;
}
.container-header .metismenu.mod-menu .mm-toggler[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }

/* языки RU / EN / UZ: сегментированный переключатель */
.container-header div.mod-languages ul.lang-inline {
  display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.04);
}
.container-header div.mod-languages ul li { margin: 0; }
.container-header div.mod-languages a, body:has(.hero_row) .container-header div.mod-languages a {
  display: block; min-width: 38px; padding: 5px 9px; border-radius: 999px; text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text-2);
}
.container-header div.mod-languages a:hover, .container-header div.mod-languages a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.container-header div.mod-languages ul li.lang-active a, body:has(.hero_row) .container-header div.mod-languages ul li.lang-active a {
  color: var(--green-ink); background: var(--green); box-shadow: 0 0 18px -2px var(--green-glow);
}

@media (min-width: 992px) {
  .container-header { min-height: 80px; padding: 0 max(12px, calc((100% - var(--wrap)) / 2)); }
  .container-header .metismenu.mod-menu > .metismenu-item.level-1 { line-height: 1.2; padding: 0 2px; }
  .container-header .mod-menu > li > a, .container-header .mod-menu > li > span,
  .container-header .mod-menu > li > button.mod-menu__heading { height: 40px; padding: 0 14px; border-radius: 999px; position: relative; }
  .container-header .mod-menu > li > a:hover, .container-header .mod-menu > li > button.mod-menu__heading:hover { background: rgba(255,255,255,.06); }
  .container-header .mod-menu > li.active > a, .container-header .mod-menu > li.current > a,
  .container-header .mod-menu > li.active > button.mod-menu__heading { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-2); }
  .container-header .metismenu.mod-menu > li.level-1 { position: relative; }
  .container-header .metismenu.mod-menu > li.level-1.active::after {
    content: ""; display: block; position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 10px var(--green); pointer-events: none;
  }
  .container-header .container-search { margin-left: 18px; }
  /* подменю: стеклянная панель */
  .container-header .metismenu.mod-menu .metismenu-item > ul.mm-collapse {
    background: rgba(12,19,34,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(80,195,134,.06);
    min-width: 280px; padding: 8px; margin-top: 10px;
  }
  .container-header .metismenu.mod-menu .mm-collapse > li { padding: 0; line-height: 1.35; font-size: 14px; }
  .container-header .metismenu.mod-menu .mm-collapse a {
    display: block; flex: 1 1 auto; width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: normal; text-decoration: none;
  }
  .container-header .metismenu.mod-menu .mm-collapse a:hover, .container-header .metismenu.mod-menu .mm-collapse a:focus-visible,
  .container-header .metismenu.mod-menu .mm-collapse li.active > a { color: #fff; background: var(--green-soft); }
  .container-header .metismenu.mod-menu .mm-collapse li.active > a { box-shadow: inset 2px 0 0 var(--green); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-header .navbar-brand a.brand-logo::after { display: none; }
  .container-header { padding: 0 16px; }
  .container-header > .grid-child { padding: 0 6px; }
  .container-header .mod-menu > li > a, .container-header .mod-menu > li > button.mod-menu__heading { padding: 0 9px; font-size: 13.5px; }
  .container-header .container-search { margin-left: 8px; }
  .container-header div.mod-languages a { min-width: 34px; padding: 5px 7px; }
}

/* 1.0.2: шапка закреплена и на телефоне/планшете (Cassiopeia ставит relative !important на ≤991), якоря не уходят под шапку */
html { scroll-padding-top: 90px; }
@media (max-width: 991.98px) { body:not(:has(.hero_row)) .container-header { position: sticky !important; top: 0; } }
/* фокус в меню: своя зелёная рамка вместо серой пунктирной Cassiopeia; при щелчке мышью рамки нет */
.container-header .metismenu.mod-menu .metismenu-item > a:focus-visible,
.container-header .metismenu.mod-menu .metismenu-item > button:focus-visible,
.container-header div.mod-languages a:focus-visible, .container-header .navbar-brand a:focus-visible {
  outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 999px;
}
.container-header .metismenu.mod-menu .mm-collapse .metismenu-item > a:focus-visible { border-radius: 10px; outline-offset: 1px; }
.container-header .metismenu.mod-menu .metismenu-item > a:focus:not(:focus-visible),
.container-header .metismenu.mod-menu .metismenu-item > button:focus:not(:focus-visible) { outline: 0; }

/* ===== d2-04-home.css ===== */
/* ---------- первый экран: фото переговорной под тёмно-синей вуалью, сетка-«чертёж», зелёное свечение, крупный заголовок слева ---------- */
@keyframes d2Rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes d2Glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero_row {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 92vh, 880px); justify-content: flex-start; align-items: center; text-align: left;
  padding: 150px max(20px, calc((100vw - var(--wrap)) / 2 + 12px)) 210px;
  background:
    linear-gradient(90deg, rgba(5,9,18,.96) 0%, rgba(5,9,18,.82) 42%, rgba(5,9,18,.45) 75%, rgba(5,9,18,.6) 100%),
    linear-gradient(180deg, rgba(7,11,20,0) 38%, rgba(7,11,20,.5) 62%, rgba(7,11,20,.88) 84%, var(--bg) 97%),
    #0b1424 url('../images/hero_bg2-20261008-f619d68a.jpg') center / cover no-repeat;
}
.hero_row::before { /* сетка-«чертёж», гаснет к краям */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
}
.hero_row::after { /* зелёное свечение */
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; left: -220px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,195,134,.42), rgba(80,195,134,0) 65%); animation: d2Glow 7s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 260px, transparent 480px); mask-image: linear-gradient(180deg, #000 0, #000 260px, transparent 480px);
}
.hero_row > .page_container { flex: 1 1 100%; margin: 0; }
.hero_row .sparky_cell { padding: 0; }
.hero_row h1 {
  display: block; margin: 0; padding: 0; border: 0; text-align: left !important; max-width: 940px;
  font-size: clamp(40px, 6.3vw, 92px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-transform: none;
  color: #fff; background: linear-gradient(180deg, #ffffff 35%, #c4f2d9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; animation: d2Rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero_row h1::before { /* «рубрика»-пилюля из стекла */
  content: "CREDIT TECHNOLOGY GROUP  ·  TASHKENT"; content: "CREDIT TECHNOLOGY GROUP  ·  TASHKENT" / ""; white-space: pre; display: table; margin-bottom: 30px; padding: 9px 16px 9px 34px;
  font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .22em; -webkit-text-fill-color: var(--text); color: var(--text);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: radial-gradient(circle at 17px 50%, var(--green) 0 4px, rgba(80,195,134,.35) 5px 7px, transparent 8px), rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[lang^="ru"] .hero_row h1::before { content: "CREDIT TECHNOLOGY GROUP  ·  ТАШКЕНТ"; content: "CREDIT TECHNOLOGY GROUP  ·  ТАШКЕНТ" / ""; }
html[lang^="uz"] .hero_row h1::before { content: "CREDIT TECHNOLOGY GROUP  ·  TOSHKENT"; content: "CREDIT TECHNOLOGY GROUP  ·  TOSHKENT" / ""; }
.hero_row h1::after { /* светящаяся линия под заголовком */
  content: ""; display: block; width: 140px; height: 3px; margin-top: 34px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), rgba(80,195,134,0)); box-shadow: 0 0 22px var(--green);
}
.hero_row p { color: var(--text-2); text-align: left !important; }

/* ---------- три плитки услуг: стеклянные карточки, «наплывают» на первый экран ---------- */
.row_full:has(> .page_container > .color1) { position: relative; z-index: 3; margin-top: -150px !important; padding: 0 0 30px; }
.row_full > .page_container:has(> .color1) {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px; gap: 22px; flex-wrap: nowrap; align-items: stretch;
}
.color1, .color2, .color3 {
  flex: 1 1 0 !important; max-width: none !important; position: relative; overflow: hidden;
  color: var(--text-2); border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22,34,58,.82), rgba(10,16,30,.94));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.color1::before, .color2::before, .color3::before { /* светящаяся грань сверху */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80,195,134,.9), transparent);
}
.color3 {
  border-color: rgba(80,195,134,.55);
  background: radial-gradient(120% 70% at 100% 0%, rgba(80,195,134,.22), transparent 60%), linear-gradient(180deg, rgba(18,44,40,.9), rgba(8,20,22,.96));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(80,195,134,.15), 0 0 60px -20px var(--green-glow);
}
.color1:hover, .color2:hover, .color3:hover { transform: translateY(-6px); border-color: rgba(80,195,134,.6); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 50px -18px var(--green-glow); }
.bigpadding { padding: 40px 34px 34px; }
.color1 > p:first-child, .color2 > p:first-child, .color3 > p:first-child { text-align: left !important; margin-bottom: 22px; }
.color1 .ctg-icon-lg, .color2 .ctg-icon-lg, .color3 .ctg-icon-lg {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; font-size: 25px;
  color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.35), 0 0 30px -6px var(--green-glow);
}
.color3 .ctg-icon-lg { color: var(--green-ink); background: var(--green); box-shadow: 0 0 34px -4px var(--green); }
.com-content-article__body .color1 h4, .com-content-article__body .color2 h4, .com-content-article__body .color3 h4 {
  text-align: left !important; color: #fff; font-size: 17px; font-weight: 750; letter-spacing: .04em; line-height: 1.3; padding: 0 0 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.color1 li, .color2 li, .color3 li, .color1 div, .color2 div, .color3 div { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.color3 > div { color: var(--green); font-weight: 650; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.color1 ul, .color2 ul, .color3 ul { margin: 10px 0 0 !important; }
p.note { font-size: 13.5px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 18px 0 0; }

/* ---------- подзаголовки-лиды и разделы ---------- */
.com-content-article__body h2::before {
  content: ""; display: block; width: 44px; height: 3px; margin: 0 0 20px; border-radius: 3px; background: var(--green); box-shadow: 0 0 16px var(--green-glow);
}
.com-content-article__body h2[style*="center"]::before { margin-left: auto; margin-right: auto; }
p.headline {
  font-family: var(--sans); font-style: normal; font-size: clamp(19px, 1.75vw, 23px); font-weight: 500; line-height: 1.5; letter-spacing: -.005em;
  color: var(--text); margin-top: 0; padding-bottom: 22px; max-width: 920px;
}
p.headline[style*="center"] { margin-left: auto; margin-right: auto; }
.com-content-article__body p.headline + p, .com-content-article__body p.headline ~ p { max-width: 920px; }

/* ---------- полоса-призыв (black_row): светящаяся стеклянная панель ---------- */
.black_row { background: transparent; color: var(--text); padding: 40px 20px; text-align: center; }
.black_row > .page_container {
  position: relative; overflow: hidden; isolation: isolate; max-width: var(--wrap); margin: 0 auto; padding: 72px 40px 64px;
  border-radius: 30px; border: 1px solid rgba(80,195,134,.35);
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(80,195,134,.35), transparent 70%),
    radial-gradient(40% 80% at 100% 0%, rgba(60,110,220,.22), transparent 70%),
    linear-gradient(180deg, #0e1a30, #08111f);
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
.black_row > .page_container::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%);
}
.black_row h1, .black_row h2, .black_row h3, .black_row h4 { color: #fff; font-weight: 800; text-transform: none; }
.com-content-article__body .black_row h3 { font-size: clamp(26px, 3.3vw, 44px); letter-spacing: -.025em; line-height: 1.12; max-width: 860px; margin: 0 auto; padding: 0 0 30px; }
.black_row p, .black_row p.thin { color: var(--text-2); }
.black_row p.thin { margin-top: 30px !important; font-size: 15px; }
.black_row .btn, .black_row a.btn { color: var(--green-ink); }

/* ---------- 4 ценности: карточки с иконкой в светящемся круге ---------- */
.page_container:has(> .sparkle3) { gap: 18px; margin: 0; flex-wrap: nowrap; align-items: stretch; }
.sparkle3 {
  flex: 1 1 0 !important; max-width: none !important; padding: 30px 26px 24px !important; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sparkle3:hover { transform: translateY(-4px); border-color: rgba(80,195,134,.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 40px -20px var(--green-glow); }
.sparkle3 > p.notopbottommargin { text-align: left !important; }
p.notopbottommargin > .ctg-icon-sm, .sparkle3 .ctg-icon-sm {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; margin: 0;
  color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.4), 0 0 26px -6px var(--green-glow);
}
.com-content-article__body .sparkle3 h3 {
  text-align: left !important; font-size: 16px; font-weight: 750; letter-spacing: .08em; color: #fff; padding: 20px 0 10px; overflow-wrap: normal; word-break: normal;
}
.sparkle3 p { text-align: left !important; font-size: 15px; line-height: 1.65; color: var(--text-2); margin-bottom: 0; }
.ctg-icon { color: var(--green); }

/* ---------- плитки с фото (view_full): фото и подпись в одной ячейке сетки — заголовок и описание видны всегда,
   высокая подпись растягивает плитку (фото — object-fit: cover), ничего не обрезается; наведение — свечение и «наезд» камеры ---------- */
.row_full:has(.view_full) { background: #04070d; }
.view { background: #04070d; border-radius: 0; }
.flexcontainer > .sparky_cell:has(> .view_full) { display: flex; }
.view.view_full { display: grid; flex: 1 1 auto; width: 100%; height: auto; overflow: hidden; margin: 0; }
.view.view_full > img, .view.view_full > .mask { grid-area: 1 / 1; }
.view.view_full > img { width: 100%; height: 100%; object-fit: cover; }
.view img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85) brightness(.8); }
.view.view_full .mask {
  position: relative; inset: auto; z-index: 1; opacity: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
  text-align: left; padding: 88px 30px 26px;
  background: linear-gradient(180deg, rgba(5,9,18,0) 0%, rgba(5,9,18,.3) 30%, rgba(5,9,18,.86) 70%, rgba(5,9,18,.96) 100%);
  border: 1px solid transparent; transition: background .5s, border-color .4s, box-shadow .4s;
}
.view .mask h3 {
  opacity: 1; transform: none; margin: 0; padding: 16px 0 4px; text-align: left !important; text-transform: none;
  color: #fff; font-size: clamp(19px, 1.6vw, 24px); font-weight: 750; letter-spacing: -.01em; line-height: 1.2;
  background: linear-gradient(var(--green), var(--green)) 0 0 / 28px 2px no-repeat; transition: background-size .4s;
}
.view .mask h3::first-letter { text-transform: uppercase; }
.view.view_full .mask p {
  opacity: 1; transform: none; max-height: none; overflow: visible; padding: 0; margin: 8px 0 0; text-align: left !important;
  color: #c9d2de; font-size: 14.5px; line-height: 1.55;
}
.view.view_full:hover .mask { background: linear-gradient(180deg, rgba(5,9,18,.1) 0%, rgba(5,9,18,.45) 30%, rgba(5,9,18,.9) 68%, rgba(5,9,18,.97) 100%); border-color: rgba(80,195,134,.45); box-shadow: inset 0 -3px 0 var(--green); }
.view:hover .mask h3, .view:focus-within .mask h3 { background-size: 56px 2px; }
.view:hover img, .view:focus-within img { transform: scale(1.06); filter: saturate(1) brightness(.88); }
/* планшет 768–991: по две плитки в ряд, третья — во всю ширину (фото не выше 360 px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .flexcontainer > .sparkle4:has(> .view_full) { flex: 0 0 50%; max-width: 50%; }
  .flexcontainer > .sparkle4:has(> .view_full):last-child:nth-child(odd) { flex-basis: 100%; max-width: 100%; }
  .flexcontainer > .sparkle4:has(> .view_full):last-child:nth-child(odd) .view_full > img { max-height: 360px; }
  .view.view_full .mask { padding: 80px 24px 22px; }
}

/* ---------- «О компании»: заголовок и лид слева, текст справа (≥992 px) ---------- */
@media (min-width: 992px) {
  .sparky_cell:has(> h2 + p.headline) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-content: start; }
  .sparky_cell:has(> h2 + p.headline) > h2 { grid-column: 1; grid-row: 1; }
  .sparky_cell:has(> h2 + p.headline) > p.headline { grid-column: 1; grid-row: 2 / span 8; align-self: start; max-width: none; font-size: clamp(20px, 1.9vw, 25px); }
  .sparky_cell:has(> h2 + p.headline) > p:not(.headline) { grid-column: 2; max-width: none; padding-left: 28px; border-left: 1px solid var(--line); margin: 0; padding-bottom: 18px; }
  .sparky_cell:has(> h2 + p.headline) > p.headline + p { padding-top: 26px; }
}

/* 1.0.3: описания плиток занимают не меньше трёх строк — заголовки во втором ряду стоят на одной линии */
@media (min-width: 768px) { .view.view_full .mask p { min-height: calc(3 * 1.55em); } }

/* ===== d2-05-content.css ===== */
/* ---------- инлайн-стили старых статей, рассчитанные на светлый фон: перекрашиваем для тёмного ---------- */
.com-content-article__body [style*="color: #1b1b1b"], .com-content-article__body [style*="color:#1b1b1b"] { color: var(--text-2) !important; }
.com-content-article__body [style*="color: #0d3b66"], .com-content-article__body [style*="color:#0d3b66"] { color: #fff !important; }
.com-content-article__body [style*="font-family"] { font-family: var(--sans) !important; }
.com-content-article__body span.fab { font-family: var(--sans); font-weight: 700; color: #fff; display: inline; line-height: 1.4; }
.white { color: inherit; }
/* инфографика «Инвесторам» (прозрачный PNG с тёмным текстом) — на светлой плашке */
.com-content-article__body img[src*="ctg_npl_process"] {
  display: block; max-width: 100%; height: auto; background: #f4f7fb; padding: 18px; border-radius: 22px; box-sizing: border-box;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px var(--green-glow);
}

/* ---------- длинные тексты: удобная длина строки, высокий контраст ---------- */
body:not(:has(.hero_row)) .com-content-article__body .sparkle12,
body:not(:has(.hero_row)) .com-content-article__body .page_container:not(:has(> .sparky_cell)) { max-width: 860px; }
body:not(:has(.hero_row)) .com-content-article__body .sparkle12:has(.accordion.faq),
body:not(:has(.hero_row)) .com-content-article__body .sparkle12:has(h1[style*="center"]) { max-width: none; }
.com-content-article__body p, .com-content-article__body li { line-height: 1.75; }
/* политика ПДн: заголовки разделов «1. Общие положения» — с зелёной меткой; разделители — тонкие линии */
.com-content-article__body h3 { position: relative; color: #fff; font-size: clamp(20px, 2vw, 25px); padding-top: 18px; }
.page_container > h3 { padding-left: 20px; }
.page_container > h3::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.page_container > h2:first-child { font-size: clamp(30px, 3.6vw, 46px); }
.com-content-article__body h4 { font-size: 14px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--green); padding-top: 22px; }
.com-content-article__body hr { border-top: 1px solid var(--line); margin: 30px 0 14px; }
.com-content-article__body li > p { margin: 0; }
.decorated-link, a.decorated-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cursor-pointer { cursor: pointer; }
.underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(80,195,134,.6); }
.smalltext { font-size: 13px; color: var(--muted); }
table { color: var(--text-2); }
.com-content-article__body td, .com-content-article__body th { border-bottom: 1px solid var(--line); padding: 10px 12px; }

/* лиды */
.intro_headline, p.intro_headline {
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.55; color: var(--text); margin: 6px 0 30px; padding: 22px 26px;
  border-radius: 0 18px 18px 0; border-left: 3px solid var(--green); background: linear-gradient(90deg, var(--green-soft), rgba(80,195,134,0));
}
p.big_text {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 26px; padding: 2px 0 2px 24px;
  color: #fff; border-left: 3px solid var(--green); box-shadow: -14px 0 30px -18px var(--green-glow);
}
p.big_text strong { color: inherit; font-weight: inherit; }
p.thin { color: var(--text-2); max-width: 680px; }
p.thin[style*="max-width: 900px"] { max-width: 900px !important; }
/* «Наша цель»: крупные цифры — светящиеся зелёные, контурный круг */
span.p_number {
  float: left; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 20px 12px 0; border-radius: 18px;
  font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--green);
  background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.45), 0 0 34px -10px var(--green-glow);
}
/* номер в отдельном абзаце (левая колонка) — плавает слева, текст следующего абзаца — рядом; номер и текст в одном абзаце (правая) — flex */
.com-content-article__body p:has(> span.p_number:only-child) { float: left; clear: both; margin: 0 20px 24px 0; }
.com-content-article__body p:has(> span.p_number:only-child) > span.p_number { float: none; margin: 0; }
.com-content-article__body p:has(> span.p_number:only-child) + p { display: flex; align-items: center; min-height: 64px; margin: 0 0 24px; }
.com-content-article__body p:has(> span.p_number):not(:has(> span.p_number:only-child)) { display: flex; align-items: center; gap: 20px; min-height: 64px; margin: 0 0 24px; }
.com-content-article__body p:has(> span.p_number):not(:has(> span.p_number:only-child)) > span.p_number { float: none; margin: 0; flex: 0 0 auto; }
.com-content-article__body p:has(> span.p_number) strong, .com-content-article__body p:has(> span.p_number:only-child) + p strong { color: #fff; font-weight: 600; }
.com-content-article__body .sparkle6:has(span.p_number) { display: flow-root; }
/* «Практика»: показатели — светящиеся «бейджи» */
.kpi {
  display: inline-block; padding: 1px 10px; border-radius: 999px; white-space: nowrap; font-weight: 700; color: #fff;
  background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.45);
}
.testimonial_name { font-family: var(--sans); font-style: normal; }
p.note { color: var(--muted); }

/* ---------- FAQ: стеклянные карточки, «+» в круге, открытая — с зелёной гранью ---------- */
.accordion.faq { display: grid; gap: 12px; max-width: 900px; margin: 10px auto 40px; }
details.ctg-faq {
  border: 1px solid var(--line); border-radius: 18px; margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .25s, box-shadow .25s;
}
details.ctg-faq:hover { border-color: var(--line-2); }
details.ctg-faq[open] { border-color: rgba(80,195,134,.5); box-shadow: 0 0 0 1px rgba(80,195,134,.12), 0 30px 60px -36px rgba(0,0,0,.9), inset 3px 0 0 var(--green); }
details.ctg-faq > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 22px 28px; border-radius: 18px;
  color: #fff; font-size: 17.5px; font-weight: 650; line-height: 1.4; cursor: pointer; list-style: none;
}
details.ctg-faq > summary::after {
  content: "+"; content: "+" / ""; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; font-weight: 400; line-height: 1; color: var(--green); box-shadow: inset 0 0 0 1px rgba(80,195,134,.5); transition: transform .3s, background .3s, color .3s;
}
details.ctg-faq[open] > summary::after { transform: rotate(45deg); background: var(--green); color: var(--green-ink); }
details.ctg-faq > summary:hover, details.ctg-faq > summary:focus-visible { color: var(--green-hi); }
details.ctg-faq > .ctg-faq-body { border-top: 1px solid var(--line); margin: 0 24px 0 28px; padding: 18px 0 8px; color: var(--text-2); font-size: 16px; }
.ctg-faq-body strong { color: #fff; }
.com-content-article__body h1[style*="center"] { max-width: 900px; margin: 0 auto; }

/* ---------- сертификаты («Лицензии»): документы на стеклянной подложке, лайтбокс ---------- */
.flexcontainer:has(a.ctg-zoom) { gap: 0; row-gap: 24px; }
.view:has(a.ctg-zoom) {
  width: 100%; max-width: 340px; height: auto; border-radius: 22px; padding: 14px 14px 0; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.flexcontainer:has(a.ctg-zoom) > .sparky_cell { display: flex; }
.view:has(a.ctg-zoom) a.ctg-zoom { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #fff; border-radius: 12px; overflow: hidden; }
.view:has(a.ctg-zoom) img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; filter: none; }
.view:has(a.ctg-zoom) br { display: none; }
.view:has(a.ctg-zoom) .mask { position: static; opacity: 1; background: none; border: 0; padding: 16px 6px 18px; align-items: stretch; justify-content: flex-start; text-align: left; }
.view:has(a.ctg-zoom) .mask p { opacity: 1; transform: none; max-height: none; margin-top: 6px; color: var(--text-2); }
.view:has(a.ctg-zoom):hover, .view:has(a.ctg-zoom):focus-within { border-color: rgba(80,195,134,.55); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 50px -20px var(--green-glow); }
.view:has(a.ctg-zoom):hover img, .view:has(a.ctg-zoom):focus-within img { transform: scale(1.02); }
.view:has(a.ctg-zoom) .mask { box-shadow: none !important; }
dialog.ctg-lightbox::backdrop { background: rgba(3,6,12,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.ctg-lightbox img { background: #fff; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px var(--line-2); }
dialog.ctg-lightbox button {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
dialog.ctg-lightbox button:hover, dialog.ctg-lightbox button:focus-visible { background: var(--green); color: var(--green-ink); }

/* ---------- блог «Услуги»: карточки из стекла ---------- */
.com-content-category-blog .blog-item {
  overflow: hidden; border-radius: 24px; border: 1px solid var(--line); padding: 0 28px 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.com-content-category-blog .blog-item:hover { transform: translateY(-4px); border-color: rgba(80,195,134,.45); box-shadow: 0 40px 80px -40px rgba(0,0,0,.95), 0 0 50px -24px var(--green-glow); }
.blog-item .page-header h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; padding: 26px 0 8px; }
.blog-item .page-header h2::before { display: none; }
.blog-item .page-header h2 a { color: #fff; text-decoration: none; font-weight: inherit; }
.blog-item .page-header h2 a:hover { color: var(--green-hi); }
.blog-item figure.item-image { margin: 6px -28px 18px; padding: 0; }
.blog-item figure.item-image img { filter: saturate(.9); }
.blog-item p { color: var(--text-2); }
.com-content-article figure.item-image img { border-radius: 22px; border: 1px solid var(--line); }
.com-content-article > figure.item-image { padding-bottom: 30px; }

/* ---------- длинные документы (политика, согласие): «лист» для чтения — чуть светлее фона, крупнее и ярче текст ---------- */
.com-content-article__body .page_container:has(> h3 ~ h3),
.com-content-article__body .sparkle12:has(span.fab) {
  max-width: 900px; margin-left: auto !important; margin-right: auto !important; padding: 52px 60px 40px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f1a2d, var(--read)); box-shadow: 0 50px 100px -60px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
}
.com-content-article__body .page_container:has(> h3 ~ h3) p, .com-content-article__body .page_container:has(> h3 ~ h3) li,
.com-content-article__body .sparkle12:has(span.fab) p, .com-content-article__body .sparkle12:has(span.fab) li { color: #cfd7e3; font-size: 16.5px; }
.com-content-article__body .sparkle12:has(span.fab) ol { padding-left: 22px !important; }
.com-content-article__body .sparkle12:has(span.fab) ol > li::marker { color: var(--green); font-weight: 700; }
.com-content-article__body .sparkle12:has(span.fab) > p:first-child { font-size: 22px; line-height: 1.35; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
@media (max-width: 767.98px) {
  .com-content-article__body .page_container:has(> h3 ~ h3), .com-content-article__body .sparkle12:has(span.fab) { padding: 30px 20px 22px; border-radius: 20px; margin: 0 -4px; }
  .com-content-article__body .page_container:has(> h3 ~ h3) p, .com-content-article__body .page_container:has(> h3 ~ h3) li,
  .com-content-article__body .sparkle12:has(span.fab) p, .com-content-article__body .sparkle12:has(span.fab) li { font-size: 16px; }
}
/* блог: внутри карточек — компактная типографика (лиды и h2 статьи не «кричат») */
.com-content-category-blog .blog-item h2 { font-size: 23px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.com-content-category-blog .blog-item h2::before { display: none; }
.com-content-category-blog .blog-item .page-header h2 { font-size: clamp(21px, 1.9vw, 25px); }
.com-content-category-blog .blog-item .intro_headline { font-size: 16px; line-height: 1.6; padding: 14px 18px; margin: 4px 0 20px; }
.com-content-category-blog .blog-item h4 { font-size: 13px; }
/* материалы без сетки Sparky (блог «Услуги»): удобная длина строки; дата — читаемая */
body:not(:has(.hero_row)) .com-content-article__body > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 860px; }
dl.article-info.text-muted, dl.article-info.text-muted dd, dl.article-info time { color: var(--muted) !important; }
dl.article-info { margin: -4px 0 24px; padding: 0; }
.com-content-article > .page-header + .page-header h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.025em; color: #fff; padding: 0 0 12px; }
/* заголовки h1 внутри статей (FAQ, «Лицензии») — с той же светящейся меткой, что и разделы */
.com-content-article__body h1:not(.page_row)::before {
  content: ""; display: block; width: 44px; height: 3px; margin: 0 0 22px; border-radius: 3px; background: var(--green); box-shadow: 0 0 16px var(--green-glow);
}
.com-content-article__body h1:not(.page_row)[style*="center"]::before { margin-left: auto; margin-right: auto; }

/* ---------- 1.0.2 ---------- */
/* статьи без сетки колонок (Робот, Суд, Практика, материалы «Услуг»): заголовок, фото и текст — одной колонкой 860 px по центру */
body:not(:has(.hero_row)) .com-content-article:not(:has(.sparkle3, .sparkle4, .sparkle6, .sparkle8, .accordion, h1[style*="center"])) > :is(.page-header, dl.article-info, figure.item-image, .com-content-article__body) {
  max-width: 860px; margin-left: auto; margin-right: auto;
}
body:not(:has(.hero_row)) .com-content-article:not(:has(.sparkle3, .sparkle4, .sparkle6, .sparkle8, .accordion, h1[style*="center"])) .com-content-article__body .sparkle12 { max-width: none; }
/* «Инвесторам»: инфографика и текст — от верхнего края; инфографика «прилипает» при прокрутке */
@media (min-width: 768px) {
  .com-content-article__body .page_container:has(> .sparky_cell > img[src*="ctg_npl_process"]) { align-items: flex-start !important; }
  .com-content-article__body .sparky_cell:has(> img[src*="ctg_npl_process"]) { position: sticky; top: 104px; }
}
/* блог «Услуги»: карточки по высоте содержимого; длинный текст свёрнут с затуханием (класс ставит js/user.js), «Подробнее» видна */
.com-content-category-blog .blog-items { align-items: start; }
.blog-item .d2-intro.d2-clamped {
  max-height: 520px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.blog-item .d2-intro + p.readmore, .blog-item p.readmore { margin: 18px 0 0; }

/* 1.0.3: «Услуги» ≥768 — карточки одной высоты: заголовок резервирует две строки, текст свёрнут до 300 px, «Подробнее» — внизу */
@media (min-width: 768px) {
  .com-content-category-blog .blog-items { align-items: stretch; }
  .com-content-category-blog .blog-item { display: flex; flex-direction: column; }
  .com-content-category-blog .blog-item > .item-content { flex: 1 1 auto; display: flex; flex-direction: column; }
  .com-content-category-blog .blog-item .page-header h2 { min-height: calc(2 * 1.25em + 26px); padding-bottom: 0; margin-bottom: 8px; }
  .com-content-category-blog .blog-item .d2-intro.d2-clamped { max-height: 300px; }
  .com-content-category-blog .blog-item p.readmore { margin-top: auto; padding-top: 18px; }
}

/* ===== d2-06-forms.css ===== */
/* ---------- кнопки: зелёная «пилюля» со свечением; вторичная — стекло ---------- */
.btn, a.btn, button.btn, .btn-primary, .btn-secondary, input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; white-space: normal;
  background: linear-gradient(180deg, #62d497, #47b97b); color: var(--green-ink); border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 750; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; box-shadow: 0 0 0 1px rgba(123,227,173,.5), 0 14px 34px -12px rgba(80,195,134,.75), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s;
}
.btn:hover, a.btn:hover, button.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn:focus, .btn-primary:focus, .btn:active {
  background: linear-gradient(180deg, #7be3ad, #50c386); color: var(--green-ink); border: 0; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(123,227,173,.8), 0 20px 44px -12px rgba(80,195,134,.9), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn:focus-visible, a.btn:focus-visible, button.btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
a.btn:not(.btn-close)::after { content: "→"; content: "→" / ""; font-size: 1.15em; letter-spacing: 0; transition: transform .25s; }
a.btn:hover::after { transform: translateX(4px); }
p.readmore a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: all .25s;
}
p.readmore a::after { content: "→"; content: "→" / ""; color: var(--green); transition: transform .25s; }
p.readmore a:hover, p.readmore a:focus { background: var(--green-soft); color: #fff; border-color: rgba(80,195,134,.6); }
p.readmore a:hover::after { transform: translateX(4px); }

/* ---------- форма: тёмные поля со скруглением, зелёное кольцо фокуса ---------- */
.contact-form input.form-control, .contact-form textarea.form-control {
  background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.38); border-radius: 12px; box-shadow: none;
  font-family: var(--sans); font-size: 16px; line-height: 24px; padding: 14px 16px; margin-bottom: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form textarea.form-control { min-height: 150px; height: 150px; resize: vertical; }
.contact-form .form-control::placeholder { color: var(--muted); opacity: 1; }
.contact-form .form-control:hover { border-color: rgba(255,255,255,.55); }
.contact-form .form-control:focus { background: rgba(255,255,255,.07); border-color: var(--green) !important; box-shadow: 0 0 0 4px rgba(80,195,134,.2) !important; outline: 0; }
.contact-form .control-group { margin-top: 0; }
.contact-form .form-check { display: flex; gap: 12px; align-items: flex-start; padding-left: 0; margin: 0 0 14px; }
.contact-form .form-check-input {
  flex: 0 0 auto; float: none; margin: 1px 0 0; width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  background-color: rgba(255,255,255,.04); border: 1.5px solid var(--text-2);
}
.contact-form .form-check-input:checked {
  background-color: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2304120a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.contact-form .form-check-input:focus { box-shadow: 0 0 0 4px rgba(80,195,134,.25); border-color: var(--green); }
.contact-form .form-check-label { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.contact-form .form-check-label a { color: var(--green); }
.contact-form .invalid, .contact-form .form-control.invalid { border-color: #ff8a8a !important; }
.contact-form label.invalid, .contact-form .form-control-feedback { color: #ff9c9c; }
.contact-form altcha-widget, altcha-widget {
  --altcha-border-radius: 12px; --altcha-border-width: 1px; --altcha-color-base: #0f1829; --altcha-color-border: rgba(255,255,255,.38);
  --altcha-color-text: #e8edf5; --altcha-color-border-focus: #50c386; --altcha-color-footer-bg: #0a1120; --altcha-max-width: 100%; --altcha-color-error-text: #ff9c9c;
  display: block; margin: 8px 0 18px; color-scheme: dark;
}
.contact-form .btn, .contact-form button[type="submit"] { margin-top: 6px; min-width: 200px; }

/* ---------- «Обратная связь» внизу каждой страницы: стеклянная панель ---------- */
.ctg-feedback {
  position: relative; border-radius: 26px; padding: 38px 40px 36px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 100% 0%, rgba(80,195,134,.12), transparent 70%), linear-gradient(180deg, rgba(20,32,54,.9), rgba(11,18,33,.95));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.ctg-feedback h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: #fff; padding: 0 0 22px; letter-spacing: -.025em; }
.ctg-feedback h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--green); box-shadow: 0 0 14px var(--green-glow); }
@media (min-width: 768px) { .ctg-feedback form > fieldset:first-of-type { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; } .ctg-feedback form > fieldset:first-of-type > .control-group:nth-of-type(3) { grid-column: 1 / -1; } }

/* ---------- страница «Контакты»: карта в рамке, адрес и форма — стеклянные панели ---------- */
.ctg-contact__title { color: #fff; position: relative; font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; padding: 6px 0 26px; }
.ctg-contact__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), rgba(80,195,134,0)); box-shadow: 0 0 18px var(--green-glow);
}
.ctg-contact__form > h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: #fff; padding: 0 0 22px; letter-spacing: -.025em; }
.ctg-contact__form > h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--green); box-shadow: 0 0 14px var(--green-glow); }
.ctg-contact__map {
  width: auto; max-width: var(--wrap); margin: 30px auto 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.ctg-contact__map { background: #0f1829; }
.ctg-contact__map iframe { display: block; height: 420px; filter: none; }
.ctg-contact__grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 26px; margin: 34px 0 30px; }
.ctg-contact__info, .ctg-contact__form {
  border-radius: 24px; border: 1px solid var(--line-2); padding: 32px 32px 26px;
  background: linear-gradient(180deg, rgba(20,32,54,.85), rgba(11,18,33,.94));
}
.ctg-contact__form { background: radial-gradient(70% 60% at 100% 0%, rgba(80,195,134,.12), transparent 70%), linear-gradient(180deg, rgba(20,32,54,.9), rgba(11,18,33,.95)); }
@media (max-width: 991.98px) { .ctg-contact__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; } }

/* окно Joomla с политикой (ссылка в подписи согласия) */
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-header .modal-title { color: #fff; font-size: 20px; padding: 0; }
.modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); box-shadow: none; background-color: transparent; }
.modal-backdrop.show { opacity: .8; }

/* 1.0.3: видимый фокус с клавиатуры у чекбоксов согласий */
.contact-form .form-check-input:focus-visible { box-shadow: 0 0 0 4px rgba(80,195,134,.35) !important; outline: 2px solid var(--green-hi); outline-offset: 2px; border-color: var(--green); }

/* ===== d2-07-footer.css ===== */
/* ---------- bottom-a «Полное соответствие законодательству РУз»: ночной город CTG под вуалью, слайды в стеклянной панели ---------- */
.site-grid > .container-bottom-a {
  position: relative; padding: 110px 20px 120px;
  background:
    radial-gradient(45% 35% at 50% 72%, rgba(80,195,134,.2), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(7,11,20,.62) 20%, rgba(7,11,20,.5) 50%, rgba(7,11,20,.7) 76%, rgba(7,11,20,.92) 90%, var(--bg) 100%),
    #08101e url('../images/hero_bg1-20261008-cc0b7a1d.jpg') center / cover no-repeat;
}
.container-bottom-a > .card:has(.ctg-carousel) > .card-header {
  position: static; margin: 0 auto; padding: 0 16px 44px; max-width: 900px; background: none; border: 0;
  color: #fff; font-family: var(--sans); font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-transform: none; text-align: center;
}
.container-bottom-a > .card:has(.ctg-carousel) > .card-header::before {
  content: ""; display: block; width: 44px; height: 3px; margin: 0 auto 22px; border-radius: 3px; background: var(--green); box-shadow: 0 0 16px var(--green);
}
.ctg-carousel .carousel {
  max-width: 920px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2);
  background: rgba(12,20,36,.62); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08);
}
.ctg-carousel .carousel::before { background: radial-gradient(60% 50% at 50% 0%, rgba(80,195,134,.16), transparent 70%); }
.ctg-carousel .carousel-item { min-height: 0; padding: 54px 84px 84px; color: var(--text-2); }
.ctg-carousel .carousel-item > * { max-width: 680px; }
.ctg-carousel .ctg-icon {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; font-size: 26px;
  color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.45), 0 0 40px -6px var(--green-glow);
}
.ctg-carousel .carousel-item h3 { color: #fff; font-size: clamp(19px, 1.9vw, 24px); font-weight: 750; letter-spacing: .05em; padding: 16px 0 12px; }
.ctg-carousel .carousel-item p { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.ctg-carousel .carousel-item b { color: #fff; }
.ctg-carousel .testimonial_name {
  display: inline-block; margin-top: 4px; padding: 8px 18px; border-radius: 999px; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--green-soft); border: 1px solid rgba(80,195,134,.4);
}
.ctg-carousel .testimonial_name b { color: var(--green-hi); font-weight: 700; }
.ctg-carousel .carousel-indicators { bottom: 28px; margin: 0 15%; gap: 8px; }
.ctg-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; margin: 0; border-radius: 999px; border: 0; background-color: rgba(255,255,255,.5); opacity: 1; transition: width .35s, background-color .35s;
}
.ctg-carousel .carousel-indicators [data-bs-target]:hover { background-color: rgba(255,255,255,.75); }
.ctg-carousel .carousel-indicators .active { width: 34px; height: 10px; background-color: var(--green); box-shadow: 0 0 14px var(--green); }
.ctg-carousel .carousel-control-prev, .ctg-carousel .carousel-control-next {
  display: flex; top: 50%; bottom: auto; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; opacity: 1; z-index: 2;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); transition: background .25s, border-color .25s;
}
.ctg-carousel .carousel-control-prev { left: 18px; }
.ctg-carousel .carousel-control-next { right: 18px; }
.ctg-carousel .carousel-control-prev:hover, .ctg-carousel .carousel-control-next:hover,
.ctg-carousel .carousel-control-prev:focus-visible, .ctg-carousel .carousel-control-next:focus-visible { background: var(--green-soft); border-color: var(--green); }
.ctg-carousel .carousel-control-prev-icon, .ctg-carousel .carousel-control-next-icon { width: 16px; height: 16px; }

/* ---------- bottom-b: адрес (стеклянная карточка) и форма ---------- */
.site-grid > .container-bottom-b { padding: 96px 0 110px; column-gap: 26px; align-items: flex-start; }
@media (min-width: 992px) { .container-bottom-b > .card:first-child:not(:only-child) { flex: 0 0 380px; } }
.container-bottom-b > .card:first-child:not(:only-child) > .card-body {
  padding: 30px 30px 18px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.container-bottom-b h4, .ctg-contact__info h4 {
  display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 10px; color: #fff;
  font-size: 13px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
}
.container-bottom-b h4 .ctg-icon-sm, .ctg-contact__info h4 .ctg-icon-sm {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; margin: 0; border-radius: 50%; font-size: 14px;
  color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.4);
}
.container-bottom-b p, .ctg-contact__info p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }
.container-bottom-b h4:not(:has(.ctg-icon)), .ctg-contact__info h4:not(:has(.ctg-icon)) { letter-spacing: .06em; padding-top: 22px; border-top: 1px solid var(--line); }
.container-bottom-b h4:not(:has(.ctg-icon)) + p, .ctg-contact__info h4:not(:has(.ctg-icon)) + p { font-size: 13.5px; color: var(--muted); }

/* ---------- футер ---------- */
.container-footer { position: relative; background: #04070d; color: var(--muted); border-top: 1px solid var(--line); margin-top: 0; }
.container-footer::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(640px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 18px var(--green);
}
.container-footer .grid-child { max-width: var(--wrap); padding: 40px 20px 44px; font-size: 13.5px; letter-spacing: .02em; color: var(--muted); }
.container-footer .mod-footer, .container-footer .mod-footer div { color: var(--muted); }
.container-footer a { color: var(--green); }
.back-to-top-link {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 16px;
  color: var(--green); background: rgba(12,20,36,.8); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.9);
}
.back-to-top-link:hover, .back-to-top-link:focus { color: var(--green-ink); background: var(--green); border-color: var(--green); box-shadow: 0 0 26px -4px var(--green); }

/* ---------- 404 ---------- */
body.error_site { background: var(--bg); color: var(--text-2); }
.error_site .container-component { background: transparent; color: var(--text-2); }
.error_site .container-component h1, .error_site h1.page-header { color: #fff; }
.error_site .card, .error_site blockquote { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; color: var(--text-2); }

/* 1.0.3: карусель — смена слайдов «растворением» без наложения текста: старый гаснет 0,3 с, затем проявляется новый (без сдвига) */
.ctg-carousel .carousel-item { transform: none !important; opacity: 0; transition: opacity .3s ease; }
.ctg-carousel .carousel-item.active { opacity: 1; transition: opacity .32s ease .3s; }
.ctg-carousel .carousel-item-next.carousel-item-start, .ctg-carousel .carousel-item-prev.carousel-item-end { opacity: 1; transition: opacity .32s ease .3s; }
.ctg-carousel .active.carousel-item-start, .ctg-carousel .active.carousel-item-end { opacity: 0; transition: opacity .3s ease; }

/* ===== d2-08-mobile.css ===== */
/* ---------- планшет и телефон: бургер из стекла, выпадающая панель меню ---------- */
@media (max-width: 991.98px) {
  .container-header { min-height: 70px; padding: 0 16px; gap: 10px; }
  .container-header .navbar-brand a.brand-logo { gap: 10px; }
  .container-header .navbar-brand img { width: 42px; height: 42px; border-radius: 12px; padding: 4px; }
  .container-header > .container-nav { gap: 10px; }
  .container-header .navbar-toggler {
    width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: #fff;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .container-header .navbar-toggler .icon-menu { color: #fff; font-size: 17px; }
  .container-header .navbar-toggler[aria-expanded="true"] { background: var(--green); border-color: var(--green); }
  .container-header .navbar-toggler[aria-expanded="true"] .icon-menu { color: var(--green-ink); }
  .container-header .navbar-toggler:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; box-shadow: none; }
  .container-header .navbar-collapse {
    left: 12px; right: 12px; top: calc(100% + 8px); padding: 8px; border-radius: 20px; border: 1px solid var(--line-2);
    background: rgba(10,16,30,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.95); max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item { border-bottom: 1px solid var(--line); }
  .container-header .navbar-collapse .metismenu.mod-menu > .metismenu-item:last-child { border-bottom: 0; }
  .container-header .navbar-collapse .mod-menu a, .container-header .navbar-collapse .mod-menu button.mod-menu__heading,
  body:has(.hero_row) .container-header .navbar-collapse .mod-menu a,
  body:has(.hero_row) .container-header .navbar-collapse .mod-menu button.mod-menu__heading {
    display: flex; align-items: center; width: 100%; color: var(--text); line-height: 1.35; min-height: 50px; padding: 12px 14px; border-radius: 12px;
    font-size: 16px; font-weight: 600; text-decoration: none;
  }
  .container-header .navbar-collapse .mod-menu button.mod-menu__heading { justify-content: space-between; }
  .container-header .navbar-collapse .mod-menu > li.active > a, .container-header .navbar-collapse .mod-menu > li.current > a { color: var(--green); }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item > ul { background: transparent; padding: 0 0 8px 12px; }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item > ul .metismenu-item { border-bottom: 0; }
  .container-header .navbar-collapse .metismenu.mod-menu .metismenu-item > ul a {
    font-size: 15px; font-weight: 500; color: var(--text-2); min-height: 44px; padding: 10px 14px; border-left: 1px solid var(--line-2); border-radius: 0 10px 10px 0;
  }
  .container-header .navbar-collapse .mod-menu a:hover, .container-header .navbar-collapse .mod-menu a:focus-visible,
  .container-header .navbar-collapse .mod-menu button.mod-menu__heading:hover { color: #fff; background: var(--green-soft); }

  /* сетки главной: плитки и ценности в две/одну колонку */
  .row_full > .page_container:has(> .color1) { flex-wrap: wrap; }
  .color1, .color2, .color3 { flex: 1 1 100% !important; }
  .page_container:has(> .sparkle3) { flex-wrap: wrap; }
  .sparkle3 { flex: 1 1 calc(50% - 9px) !important; }
}
@media (max-width: 767.98px) {
  .hero_row { min-height: 600px; padding: 128px 20px 180px; }
  .hero_row h1::before { font-size: 10px; letter-spacing: .18em; padding: 8px 12px 8px 30px; margin-bottom: 22px; white-space: normal; background-position: 0 0; }
  .row_full:has(> .page_container > .color1) { margin-top: -120px !important; }
  .row_full > .page_container:has(> .color1) { padding: 0 16px; gap: 14px; }
  .bigpadding { padding: 30px 22px 26px; }
  .black_row { padding: 24px 16px; }
  .black_row > .page_container { padding: 48px 22px 42px; border-radius: 24px; }
  .sparkle3 { flex-basis: 100% !important; }
  .page_container:has(> .sparkle3) { gap: 14px; }
  .site-grid > .container-bottom-a { padding: 72px 16px 80px; }
  .container-bottom-a > .card:has(.ctg-carousel) > .card-header { margin: 0 auto; color: #fff; padding: 0 4px 30px; }
  .ctg-carousel .carousel { margin-bottom: 0; border-radius: 22px; }
  .ctg-carousel .carousel-item { min-height: 0; padding: 34px 22px 70px; }
  .ctg-carousel .carousel-item p { font-size: 15px; }
  .ctg-carousel .carousel-control-prev, .ctg-carousel .carousel-control-next { top: auto; bottom: 14px; margin-top: 0; width: 40px; height: 40px; }
  .ctg-carousel .carousel-control-prev { left: 14px; }
  .ctg-carousel .carousel-control-next { right: 14px; }
  .ctg-carousel .carousel-indicators { bottom: 28px; margin: 0 70px; }
  .ctg-carousel .carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,.5); }
  .ctg-carousel .carousel-indicators .active { background-color: var(--green); }
  .site-grid > .container-bottom-b { padding: 64px 0 72px; }
  .ctg-feedback { padding: 28px 20px 26px; border-radius: 22px; }
  .ctg-contact__info, .ctg-contact__form { padding: 24px 20px 20px; border-radius: 20px; }
  .ctg-contact__map { border-radius: 18px; }
  .ctg-contact__map iframe { height: 340px; }
  .com-content-article__body .sparkle6 { padding-left: 15px !important; padding-right: 15px !important; }
  /* колонки с инлайн-flex из статей («Наша цель», «Инвесторам») на телефоне — одна под другой */
  .com-content-article__body .page_container > .sparky_cell[style*="flex"] { flex: 1 1 100% !important; max-width: 100% !important; padding-left: 15px !important; padding-right: 15px !important; }
  .com-content-article__body .page_container[style*="gap"] { gap: 24px !important; }
  .com-content-article__body img[src*="ctg_npl_process"] { max-width: min(100%, 360px); margin: 0 auto; }
  .view.view_full .mask { padding: 72px 20px 22px; }
  details.ctg-faq > summary { padding: 18px 16px 18px 20px; font-size: 16.5px; gap: 12px; }
  details.ctg-faq > .ctg-faq-body { margin: 0 16px 0 20px; font-size: 15.5px; }
  .com-content-category-blog .blog-item { padding: 0 20px 22px; }
  .blog-item figure.item-image { margin: 4px -20px 16px; }
  .intro_headline, p.intro_headline { padding: 18px 18px; }
  body:not(:has(.hero_row)) .container-component { padding-top: 40px; padding-bottom: 56px; }
}
@media (max-width: 550px) {
  .hero_row h1 { font-size: 40px !important; letter-spacing: -.03em; }
  .container-header .navbar-brand a.brand-logo::after { display: none; }
  span.p_number { width: 52px; height: 52px; font-size: 23px; border-radius: 15px; margin-right: 16px; }
  .com-content-article__body p:has(> span.p_number) { min-height: 52px; }
  .btn, a.btn, button.btn { padding: 15px 22px; font-size: 12.5px; letter-spacing: .06em; }
}
@media (max-width: 360px) {
  .hero_row h1 { font-size: 34px !important; }
  .container-header { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 1.0.2 ---------- */
@media (max-width: 550px) {
  /* призыв NPL: кнопка во всю ширину, без «капли» из 3–5 строк */
  .black_row .btn, .black_row a.btn { width: 100%; border-radius: 16px; padding: 14px 16px; font-size: 12px; letter-spacing: .05em; }
}
@media (max-width: 767.98px) {
  /* «Наша цель»: на телефоне пункты 1…10 по порядку (две колонки статьи раскладываются в одну сетку) */
  .com-content-article__body .page_container:has(> .sparkle6 span.p_number) { display: grid !important; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; margin: 0; }
  .com-content-article__body .page_container > .sparkle6:has(span.p_number) { display: contents; }
  .com-content-article__body .page_container > .sparkle6:first-child > p:has(> span.p_number:only-child) { grid-column: 1; margin: 0 0 20px; align-self: center; }
  .com-content-article__body .page_container > .sparkle6:first-child > p:has(> span.p_number:only-child) + p { grid-column: 2; margin: 0 0 20px; min-height: 52px; }
  .com-content-article__body .page_container > .sparkle6:last-child > p { grid-column: 1 / -1; gap: 16px; margin: 0 0 20px; min-height: 52px; }
  .page_container > .sparkle6:first-child > p:nth-child(-n+2) { order: 1; }
  .page_container > .sparkle6:first-child > p:nth-child(n+3):nth-child(-n+4) { order: 3; }
  .page_container > .sparkle6:first-child > p:nth-child(n+5):nth-child(-n+6) { order: 5; }
  .page_container > .sparkle6:first-child > p:nth-child(n+7):nth-child(-n+8) { order: 7; }
  .page_container > .sparkle6:first-child > p:nth-child(n+9):nth-child(-n+10) { order: 9; }
  .page_container > .sparkle6:last-child > p:nth-child(1) { order: 2; }
  .page_container > .sparkle6:last-child > p:nth-child(2) { order: 4; }
  .page_container > .sparkle6:last-child > p:nth-child(3) { order: 6; }
  .page_container > .sparkle6:last-child > p:nth-child(4) { order: 8; }
  .page_container > .sparkle6:last-child > p:nth-child(5) { order: 10; }
  .blog-item .d2-intro.d2-clamped { max-height: 440px; }
}

/* ---------- 1.0.3 ---------- */
/* языки на телефоне/планшете: зона нажатия не меньше 40×40 px */
@media (max-width: 991.98px) {
  .container-header div.mod-languages a, body:has(.hero_row) .container-header div.mod-languages a {
    display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px; font-size: 12.5px;
  }
}
/* 320–359: «рубрика» первого экрана в одну строку (TOSHKENT не переносится) */
@media (max-width: 359.98px) {
  .hero_row h1::before {
    font-size: 9.5px; letter-spacing: .08em; padding: 7px 10px 7px 24px; margin-bottom: 18px;
    background: radial-gradient(circle at 13px 50%, var(--green) 0 3.5px, rgba(80,195,134,.35) 4.5px 6px, transparent 7px), rgba(255,255,255,.06);
  }
}

/* ===== d2-09-v2-header.css ===== */
/* =========================================================================
   d2 2.0.0 — из d5 в тёмном стиле d2: ссылка «к содержанию», верхняя полоса (телефон, e-mail, RU/EN/UZ),
   кнопка «Связаться» в шапке. Разметка — php/d2_header.php. Шапка теперь sticky на всех страницах
   (на главной — прозрачная поверх фото: первый экран заезжает под неё отрицательным отступом).
   ========================================================================= */

/* ---------- «к содержанию»: видна только с клавиатуры ---------- */
.d2-skip {
  position: absolute; left: 12px; top: -80px; z-index: 2000; padding: 12px 18px; border-radius: 12px;
  background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: top .2s;
}
.d2-skip:focus, .d2-skip:focus-visible { top: 10px; color: var(--green-ink); outline: 2px solid #fff; outline-offset: 2px; }
#d2-main:focus { outline: 0; }

/* ---------- верхняя полоса: почти чёрная, тонкая линия, зелёные значки ---------- */
.d2-topbar {
  position: relative; z-index: 1001; background: #04070d; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.3; color: var(--text-2);
}
.d2-topbar__in {
  display: flex; align-items: center; gap: 6px 26px; min-height: 44px;
  padding: 4px max(20px, calc((100% - var(--wrap)) / 2 + 15px));
}
.d2-topbar a.d2-topbar__link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text-2); font-weight: 600; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
}
.d2-topbar a.d2-topbar__link:hover, .d2-topbar a.d2-topbar__link:focus-visible { color: #fff; }
.d2-topbar a.d2-topbar__link:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; border-radius: 999px; }
.d2-topbar__link .fa-solid {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11.5px;
  color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.4);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.d2-topbar a.d2-topbar__link:hover .fa-solid { color: var(--green-ink); background: var(--green); box-shadow: 0 0 14px -2px var(--green-glow); }
.d2-topbar__phone .d2-topbar__txt { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* RU / EN / UZ — сегментированный переключатель (как был в шапке 1.0.x), справа в полосе */
.d2-topbar .container-search { margin: 0 0 0 auto; }
.d2-topbar div.mod-languages ul.lang-inline {
  display: flex; gap: 2px; margin: 0; padding: 3px; list-style: none; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.04);
}
.d2-topbar div.mod-languages ul li, .d2-topbar div.mod-languages ul li.lang-active { margin: 0; padding: 0; background: none; }
.d2-topbar div.mod-languages a {
  display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--text-2);
}
.d2-topbar div.mod-languages a:hover, .d2-topbar div.mod-languages a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.d2-topbar div.mod-languages a:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.d2-topbar div.mod-languages ul li.lang-active a { color: var(--green-ink); background: var(--green); box-shadow: 0 0 18px -2px var(--green-glow); }

/* ---------- шапка: sticky на всех страницах; на главной — прозрачная над фото ---------- */
.container-header, body:has(.hero_row) .container-header,
body:not(:has(.hero_row)) .container-header { position: sticky !important; top: 0; }
@media (min-width: 992px) { .container-header { height: 80px; min-height: 80px; } }
@media (max-width: 991.98px) { .container-header { height: 70px; min-height: 70px; } }
/* первый экран главной заезжает под прозрачную шапку (высота шапки фиксирована выше) */
.hero_row { margin-top: -80px; }
@media (max-width: 991.98px) { .hero_row { margin-top: -70px; } }

/* ---------- «Связаться» в шапке: зелёная «пилюля» со свечением → к карточке формы на странице ---------- */
.container-header a.d2-cta {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; height: 44px; padding: 0 20px; margin-left: 16px; border-radius: 999px;
  background: var(--green); color: var(--green-ink); font-size: 14.5px; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap;
  text-decoration: none; box-shadow: 0 0 0 1px rgba(123,227,173,.45), 0 12px 30px -12px var(--green-glow);
  transition: background-color .2s, box-shadow .25s, transform .25s;
}
.container-header a.d2-cta:hover, .container-header a.d2-cta:focus, .container-header a.d2-cta:active {
  color: var(--green-ink); background: var(--green-hi); box-shadow: 0 0 0 1px rgba(123,227,173,.6), 0 0 28px -4px var(--green-glow); transform: translateY(-1px);
}
.container-header a.d2-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.container-header a.d2-cta .fa-solid { font-size: 14px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-header a.d2-cta { margin-left: 8px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
  .container-header a.d2-cta .fa-solid { display: none; }
}
@media (max-width: 991.98px) {
  .container-header a.d2-cta { order: -1; margin-left: 0; height: 46px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
  .container-header > .container-nav { display: flex; align-items: center; gap: 10px; }
  /* меню-бургер: под полосой и шапкой помещается в экран */
  .container-header .navbar-collapse { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  .d2-topbar__in { padding: 3px 16px; gap: 4px 14px; }
}
/* телефон: e-mail — значок 36×36 (подпись — для экранных дикторов), телефон и языки остаются */
@media (max-width: 767.98px) {
  .d2-topbar__mail .d2-topbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .d2-topbar__mail .fa-solid { width: 32px; height: 32px; font-size: 13px; }
  .d2-topbar div.mod-languages a { min-width: 38px; min-height: 32px; padding: 0 8px; font-size: 12.5px; }
}
@media (max-width: 379.98px) {
  .d2-topbar__mail { display: none !important; }
}
@media (max-width: 419.98px) {
  .d2-topbar__in { padding: 3px 12px; }
  .d2-topbar a.d2-topbar__link { gap: 7px; font-size: 13px; }
  .d2-topbar__link .fa-solid { width: 24px; height: 24px; font-size: 10.5px; }
  .d2-topbar div.mod-languages a { min-width: 36px; padding: 0 6px; }
  .container-header a.d2-cta { padding: 0 13px; font-size: 13.5px; gap: 7px; }
}
@media (max-width: 359.98px) {
  .d2-topbar__phone .fa-solid { display: none; }
  .container-header a.d2-cta .fa-solid { display: none; }
}

/* ===== d2-10-v2-content.css ===== */
/* =========================================================================
   d2 2.0.0 — шаги медиации, текст крупнее, нижняя панель «Позвонить / Написать», якорь формы.
   ========================================================================= */

/* ---------- текст чуть крупнее: 17 px на компьютере, 16.5 px на телефоне, межстрочный ~1.65 ---------- */
body { font-size: 17px; line-height: 1.65; }
.com-content-article__body, .item-page { font-size: 17px; }
.com-content-article__body p, .com-content-article__body li { line-height: 1.68; }
.color1 li, .color2 li, .color3 li, .color1 div, .color2 div, .color3 div { font-size: 16px; }
.color3 > div { font-size: 13.5px; }
p.note { font-size: 14.5px; }
.sparkle3 p { font-size: 16px; }
.view.view_full .mask p { font-size: 15.5px; }
.ctg-carousel .carousel-item p { font-size: 17px; }
.container-bottom-b p, .ctg-contact__info p { font-size: 16px; }
.container-bottom-b h4:not(:has(.ctg-icon)) + p, .ctg-contact__info h4:not(:has(.ctg-icon)) + p { font-size: 14.5px; }
.contact-form .form-check-label { font-size: 15px; }
details.ctg-faq > .ctg-faq-body { font-size: 17px; }
.com-content-article__body .page_container:has(> h3 ~ h3) p, .com-content-article__body .page_container:has(> h3 ~ h3) li,
.com-content-article__body .sparkle12:has(span.fab) p, .com-content-article__body .sparkle12:has(span.fab) li { font-size: 17px; }
.com-content-category-blog .blog-item .intro_headline { font-size: 16.5px; }
.black_row p.thin { font-size: 16px; }
.container-footer .grid-child { font-size: 14.5px; }
.smalltext { font-size: 14px; }
@media (max-width: 767.98px) {
  details.ctg-faq > .ctg-faq-body { font-size: 16.5px; }
  .com-content-article__body .page_container:has(> h3 ~ h3) p, .com-content-article__body .page_container:has(> h3 ~ h3) li,
  .com-content-article__body .sparkle12:has(span.fab) p, .com-content-article__body .sparkle12:has(span.fab) li { font-size: 16.5px; }
  .ctg-carousel .carousel-item p { font-size: 16px; }
}
@media (max-width: 550px) {
  body, .com-content-article__body, .item-page { font-size: 16.5px; }
}

/* ---------- «Досудебная медиация»: нумерованные шаги 1–6 с соединительной линией (CSS-счётчики) ---------- */
.com-content-article__body .color1 ul { counter-reset: d2step; list-style: none; padding: 0; margin: 8px 0 0 !important; }
.com-content-article__body .color1 ul > li {
  counter-increment: d2step; position: relative; min-height: 36px; margin: 0 0 18px; padding: 6px 0 0 52px; line-height: 1.55; color: var(--text-2);
}
.com-content-article__body .color1 ul > li:last-child { margin-bottom: 0; }
.com-content-article__body .color1 ul > li::before {
  content: counter(d2step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-size: 15px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--green-hi);
  background: radial-gradient(circle at 50% 30%, rgba(80,195,134,.22), rgba(9,16,30,.95) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(80,195,134,.75), 0 0 18px -4px var(--green-glow);
}
.com-content-article__body .color1 ul > li:last-child::before { color: var(--green-ink); background: var(--green); box-shadow: 0 0 0 4px rgba(80,195,134,.16), 0 0 22px -2px var(--green); }
.com-content-article__body .color1 ul > li:not(:last-child)::after { /* соединительная линия к следующему шагу */
  content: ""; position: absolute; left: 17px; top: 40px; bottom: -14px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(80,195,134,.75), rgba(80,195,134,.2));
}
.com-content-article__body .color1:hover ul > li::before { box-shadow: inset 0 0 0 1.5px var(--green-hi), 0 0 22px -4px var(--green-glow); }
.com-content-article__body .color1:hover ul > li:last-child::before { box-shadow: 0 0 0 4px rgba(80,195,134,.2), 0 0 26px -2px var(--green); }
/* остальные плитки — пункты с зелёной галочкой в круге (вместо точки) */
.com-content-article__body :is(.color2, .color3) ul > li { padding-left: 34px; }
.com-content-article__body :is(.color2, .color3) ul > li::before {
  content: "\f00c"; content: "\f00c" / ""; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; line-height: 20px; text-align: center;
  left: 0; top: .2em; width: 20px; height: 20px; color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.45);
}
.com-content-article__body .color3 ul > li::before { color: var(--green-ink); background: var(--green); box-shadow: 0 0 12px -2px var(--green-glow); }
.com-content-article__body :is(.color2, .color3) li .O1 { display: inline; }

/* ---------- полоса-призыв black_row: оформление не зависит от текста (AI-робот, NPL и др.) ---------- */
.black_row .sparky_cell > :is(h2, h3, h4) + p:not(.thin):not(:has(> .btn)) { max-width: 820px; margin: 0 auto 22px; color: var(--text-2); }
.black_row ul { display: inline-block; text-align: left; max-width: 820px; margin: 0 auto 26px; }
.black_row .btn, .black_row a.btn { white-space: normal; max-width: 100%; }
.black_row :focus-visible { outline-color: #fff; }

/* ---------- якорь «Написать»: карточка формы целиком под шапкой ---------- */
.ctg-feedback { position: relative; }
.d2-anchor { position: absolute; top: -14px; left: 0; width: 1px; height: 1px; }
.d2-anchor:focus { outline: 0; }

/* ---------- нижняя панель «Позвонить / Написать» (телефон < 768 px) ---------- */
.d2-actionbar { display: none; }
@media (max-width: 767.98px) {
  html { scroll-padding-bottom: 96px; }
  .d2-actionbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 1001; gap: 8px; padding: 7px;
    border-radius: 22px; border: 1px solid var(--line-2); background: rgba(9,14,26,.9);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 24px 50px -12px rgba(0,0,0,.95), 0 0 0 1px rgba(80,195,134,.08), 0 -10px 40px -20px var(--green-glow);
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  /* появляется после первого экрана; прячется, пока на экране форма; на «Контактах» и при открытом меню её нет */
  html.d2-js:not(.d2-far) .d2-actionbar, html.d2-form-in-view .d2-actionbar { transform: translateY(140%); opacity: 0; visibility: hidden; }
  body.com_contact .d2-actionbar, body:has(.navbar-toggler[aria-expanded="true"]) .d2-actionbar { display: none; }
  .d2-actionbar a {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 6px 10px;
    border-radius: 16px; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  }
  .d2-actionbar a.d2-actionbar__call, .d2-actionbar a.d2-actionbar__call:hover, .d2-actionbar a.d2-actionbar__call:focus, .d2-actionbar a.d2-actionbar__call:active {
    color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .d2-actionbar a.d2-actionbar__call .fa-solid { color: var(--green); }
  .d2-actionbar a.d2-actionbar__write, .d2-actionbar a.d2-actionbar__write:hover, .d2-actionbar a.d2-actionbar__write:focus, .d2-actionbar a.d2-actionbar__write:active {
    color: var(--green-ink); background: var(--green); box-shadow: 0 0 24px -6px var(--green-glow);
  }
  .d2-actionbar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* подвал и «наверх» не прячутся под панелью */
  body:not(.com_contact) .container-footer .grid-child { padding-bottom: 100px; }
  html.d2-far:not(.d2-form-in-view) body:not(.com_contact) .back-to-top-link { bottom: 90px; }
}
@media (max-width: 359.98px) { .d2-actionbar a { font-size: 15px; gap: 6px; padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .d2-actionbar { transition: none; } }

/* ---------- 404: вторая кнопка «Связаться» ---------- */
.d2-err-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.d2-err-contact { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
/* телефон: «наверх» не перекрывает форму (ALTCHA, «Отправить»), пока она на экране */
@media (max-width: 767.98px) { html.d2-form-in-view .back-to-top-link { opacity: 0; visibility: hidden !important; pointer-events: none; } }
#d2-contact-form:focus { outline: 0; }

/* ===== d2-11-v201-fix.css ===== */
/* =========================================================================
   d2 2.0.1 — исправления по ревью 2.0.0: фото под прозрачной шапкой, непрозрачные меню, компактнее на телефоне,
   языки после прокрутки, порядок фокуса, мелкая полировка. Слой подключается последним.
   ========================================================================= */

/* ---------- 1. первый экран снова заходит под прозрачную шапку (.notopbottommargin в статье давал margin-top:0 !important) ---------- */
.hero_row, .hero_row.notopbottommargin { margin-top: -80px !important; }
@media (max-width: 991.98px) { .hero_row, .hero_row.notopbottommargin { margin-top: -70px !important; } }
@media (max-width: 767.98px) { .hero_row, .hero_row.notopbottommargin { margin-top: -60px !important; padding-top: 118px; } }

/* ---------- 2. стекло шапки — на псевдоэлементе: вложенный backdrop-filter больше не делает подменю и бургер прозрачными ---------- */
.container-header, body:has(.hero_row) .container-header, html.d2-scrolled .container-header, html.d2-scrolled body:has(.hero_row) .container-header {
  background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; isolation: isolate;
  transition: border-color .3s, box-shadow .3s, transform .3s ease;
}
.container-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(7,11,20,.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); transition: background-color .3s;
}
html.d2-scrolled .container-header::before { background: rgba(7,11,20,.9); }
body:has(.hero_row) .container-header::before { background: linear-gradient(rgba(5,9,18,.7), rgba(5,9,18,0)); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.d2-scrolled body:has(.hero_row) .container-header::before {
  background: rgba(7,11,20,.86); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}

/* ---------- 3. порядок фокуса: «Связаться» в DOM перед меню; на ≥992 стоит справа, на <992 — левее бургера ---------- */
.container-header a.d2-cta { order: 2; }
@media (max-width: 991.98px) { .container-header a.d2-cta { order: 0; } }

/* ---------- 4. якоря: зазор под шапкой ---------- */
html { scroll-padding-top: 108px; }
@media (max-width: 991.98px) { html { scroll-padding-top: 92px; } }
@media (max-width: 767.98px) { html { scroll-padding-top: 80px; } }

/* ---------- 5. языки после прокрутки: копия переключателя (js/user.js) — в шапке ≥992 и в панели бургера <992 ---------- */
.container-header .d2-langs--menu { display: none; }
html body .container-header div.mod-languages.d2-langs--menu ul.lang-inline { display: flex; align-items: center; gap: 2px; margin: 0; padding: 3px; }
html body .container-header div.mod-languages.d2-langs--menu ul li { display: flex; margin: 0; padding: 0; background: none; }
html body .container-header div.mod-languages.d2-langs--menu a {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 30px; min-width: 36px; padding: 0 8px; line-height: 1; font-size: 11.5px;
}
@media (min-width: 992px) {
  html.d2-topbar-gone .container-header .d2-langs--menu { display: flex; align-items: center; margin-left: 10px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html.d2-topbar-gone .container-header .d2-langs--menu { margin-left: 4px; }
  html body .container-header div.mod-languages.d2-langs--menu a { min-width: 32px; padding: 0 6px; }
}
@media (max-width: 991.98px) {
  .container-header .navbar-collapse .d2-langs--menu { display: flex; justify-content: center; width: 100%; box-sizing: border-box; padding: 12px 8px 6px; margin-top: 4px; border-top: 1px solid var(--line); }
  html body .container-header div.mod-languages.d2-langs--menu ul.lang-inline { gap: 4px; padding: 4px; }
  html body .container-header div.mod-languages.d2-langs--menu a { height: 44px; min-width: 56px; font-size: 13.5px; }
}

/* ---------- 6. телефон < 768: компактнее закреплённые элементы ---------- */
@media (max-width: 767.98px) {
  .d2-topbar__in { min-height: 40px; padding-block: 2px; }
  .container-header { height: 60px; min-height: 60px; }
  .container-header a.d2-cta { height: 44px; }
  .container-header .navbar-toggler { width: 44px; height: 44px; }
  .container-header .navbar-collapse { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
  .d2-actionbar { padding: 5px; gap: 6px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 20px; }
  .d2-actionbar a { min-height: 46px; border-radius: 15px; }
  /* при прокрутке вниз шапка уезжает, при прокрутке вверх возвращается (класс из js/user.js) */
  html.d2-hdr-hidden .container-header { transform: translateY(-100%); box-shadow: none; }
  /* «наверх» не лежит на тексте: пока видна панель — скрыта (наверх ведёт шапка) */
  html.d2-far:not(.d2-form-in-view) body:not(.com_contact) .back-to-top-link { opacity: 0; visibility: hidden; pointer-events: none; }
  /* подвал: под панель отступ только там, где панель видна у низа страницы (нет формы внизу) */
  body:has(.ctg-feedback) .container-footer .grid-child { padding-bottom: 32px; }
  /* внутренние страницы: меньше пустоты над заголовком */
  body:not(:has(.hero_row)) .container-component { padding-top: 28px; }
  .com-content-article__body > .page_row:first-child { margin-top: 16px; }
  .com-content-article__body > .page_row.d2-empty-row { display: none; }
  .com-content-article__body > .page_row.d2-empty-row + .page_row { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .container-header { transition: none; } }

/* ---------- 7. шаги медиации — тот же межстрочный, что у соседних плиток ---------- */
.com-content-article__body .color1 ul > li { line-height: 1.68; padding-top: 4px; }

/* ---------- 8. фокус: телефон в полосе и стрелки карусели ---------- */
.d2-topbar a.d2-topbar__link { padding: 0 12px 0 0; border-radius: 999px; }
@media (max-width: 767.98px) { .d2-topbar a.d2-topbar__mail { padding: 0; } }
.ctg-carousel .carousel-control-prev:focus-visible, .ctg-carousel .carousel-control-next:focus-visible {
  outline: 2px solid var(--green-hi); outline-offset: 2px; opacity: 1; border-radius: 999px;
}

/* ---------- 9. блок «AI-робот 5-го поколения» (black_row): в общей сетке, галочки, на телефоне текст слева ---------- */
.black_row > .page_container { max-width: calc(var(--wrap) - 40px); } /* как плитки: 150–1290 на 1440 */
.com-content-article__body .black_row ul > li { padding-left: 34px; }
.com-content-article__body .black_row ul > li::before {
  content: "\f00c"; content: "\f00c" / ""; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; line-height: 20px; text-align: center;
  left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(80,195,134,.45);
}
@media (max-width: 767.98px) { .black_row .sparky_cell > p:not(:has(> .btn)) { text-align: left !important; } }

/* ---------- 10. 404: пункт «Главная» не подсвечен активным ---------- */
body.error_site .container-header .mod-menu > li.active > a { background: none; box-shadow: none; color: var(--text-2); }
body.error_site .container-header .metismenu.mod-menu > li.level-1.active::after { display: none; }

/* ---------- 11. телефоны в блоках контактов — ссылки tel: (js/user.js), вид как у mailto ---------- */
a.d2-tel { color: var(--green); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.d2-tel:hover, a.d2-tel:focus-visible { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ===== d2-12-v204-photos.css ===== */
/* ===== d2 2.0.4 (08.10.2026): новые фото CTG =====
   1) первый экран — светлое дневное фото переговорной: вуаль плотнее под текстом (слева/на телефоне), справа виден дневной город;
      белый текст и меню шапки — WCAG AA (замер: work/img-integrate/contrast.py);
   2) блок «AI-робот-оператор 5-го поколения» (.ctg-robot5) — три фото сотрудников CTG: заголовок и лид по центру, ниже
      две колонки — список + кнопка | мозаика (большое 16:9 + два 4:3), подписи-«пилюли» на стекле; на телефоне — одна колонка.
   Разметка блока (content/robot_block 1.1.0): .ctg-r5-body > .ctg-r5-text + .page_container.ctg-r5-media > figure.sparkle4.ctg-r5-photo.
   В других дизайнах та же разметка = обычная сетка Sparky (три колонки sparkle4), поэтому здесь сетка переопределяется. */

/* ---------- 1. первый экран ---------- */
.hero_row {
  background:
    linear-gradient(90deg, rgba(5,9,18,.95) 0%, rgba(5,9,18,.9) 30%, rgba(5,9,18,.8) 52%, rgba(5,9,18,.56) 72%, rgba(5,9,18,.36) 100%),
    linear-gradient(180deg, rgba(5,9,18,.66) 0%, rgba(5,9,18,.18) 22%, rgba(7,11,20,0) 40%, rgba(7,11,20,.5) 62%, rgba(7,11,20,.88) 84%, var(--bg) 97%),
    #0b1424 url('../images/hero_bg2-20261008-f619d68a.jpg') 50% 40% / cover no-repeat;
}
@media (max-width: 991.98px) {   /* заголовок шире относительно экрана — вуаль ровнее */
  .hero_row {
    background:
      linear-gradient(90deg, rgba(5,9,18,.94) 0%, rgba(5,9,18,.86) 45%, rgba(5,9,18,.7) 80%, rgba(5,9,18,.6) 100%),
      linear-gradient(180deg, rgba(5,9,18,.6) 0%, rgba(5,9,18,.2) 24%, rgba(7,11,20,.1) 42%, rgba(7,11,20,.55) 64%, rgba(7,11,20,.9) 84%, var(--bg) 97%),
      #0b1424 url('../images/hero_bg2-20261008-f619d68a.jpg') 50% 40% / cover no-repeat;
  }
}
@media (max-width: 767.98px) {   /* на телефоне текст во всю ширину: ровная плотная вуаль, фото — как фактура */
  .hero_row {
    background:
      linear-gradient(180deg, rgba(5,9,18,.8) 0%, rgba(5,9,18,.74) 40%, rgba(7,11,20,.84) 66%, rgba(7,11,20,.94) 84%, var(--bg) 97%),
      #0b1424 url('../images/hero_bg2-20261008-f619d68a.jpg') 42% 40% / cover no-repeat;
  }
}

/* ---------- 2. блок «AI-робот» с фото ---------- */
.ctg-robot5 .ctg-r5-body { margin: 6px 0 34px; }
.ctg-robot5 .ctg-r5-media {   /* мозаика: большое фото сверху, два ниже */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; flex-wrap: nowrap;
}
.ctg-robot5 .ctg-r5-photo {
  position: relative; isolation: isolate; overflow: hidden; flex: none !important; max-width: none !important; width: auto;
  margin: 0; padding: 0 !important; border-radius: 18px; border: 1px solid var(--line-2); background: #0b1424;
  box-shadow: 0 30px 60px -32px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08);
}
.ctg-robot5 .ctg-r5-photo--main { grid-column: 1 / -1; border-radius: 22px; }
.ctg-robot5 .ctg-r5-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border: 0; border-radius: 0;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.ctg-robot5 .ctg-r5-photo--main img { aspect-ratio: 16 / 9; }
.ctg-robot5 .ctg-r5-photo::after {   /* мягкое затемнение снизу — под подпись */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,9,18,0), rgba(5,9,18,.72));
}
.ctg-robot5 .ctg-r5-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
  margin: 0; padding: 7px 13px 7px 11px; border-radius: 999px; text-align: left;
  font-size: 12.5px; font-weight: 650; line-height: 1.3; letter-spacing: .01em; color: #fff;
  background: rgba(7,12,22,.74); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
}
.ctg-robot5 .ctg-r5-photo figcaption::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green);
}
@media (hover: hover) { .ctg-robot5 .ctg-r5-photo:hover img { transform: scale(1.04); } }
@media (min-width: 992px) {   /* две колонки: список + кнопка | мозаика */
  .ctg-robot5 .ctg-r5-body {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 0 48px; align-items: center; text-align: left;
  }
  .ctg-robot5 .ctg-r5-photo:not(.ctg-r5-photo--main) figcaption { font-size: 11.5px; letter-spacing: 0; gap: 7px; padding: 6px 10px 6px 9px; }
  .com-content-article__body .ctg-robot5 .ctg-r5-text ul { display: block; max-width: none; margin: 0 0 30px !important; }
  .ctg-robot5 .ctg-r5-text > p { margin: 0; text-align: left; }
}
@media (max-width: 991.98px) {   /* одна колонка: список, кнопка, затем фото */
  .ctg-robot5 .ctg-r5-media { max-width: 720px; margin: 30px auto 0; }
}
@media (max-width: 559.98px) {
  .ctg-robot5 .ctg-r5-media { gap: 10px; margin-top: 26px; }
  .ctg-robot5 .ctg-r5-photo { border-radius: 14px; }
  .ctg-robot5 .ctg-r5-photo--main { border-radius: 16px; }
  /* маленькие фото на телефоне: подпись под фото на тёмной карточке, само фото не перекрыто */
  .ctg-robot5 .ctg-r5-photo:not(.ctg-r5-photo--main)::after { display: none; }
  .ctg-robot5 .ctg-r5-photo:not(.ctg-r5-photo--main) figcaption {
    position: static; display: flex; align-items: flex-start; max-width: none; padding: 8px 9px 10px; gap: 6px; border: 0; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 11.5px; font-weight: 600; line-height: 1.35; color: var(--text);
  }
  .ctg-robot5 .ctg-r5-photo:not(.ctg-r5-photo--main) figcaption::before { width: 6px; height: 6px; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .ctg-robot5 .ctg-r5-photo img { transition: none; } }

