/*!
 * TCTS template 1.2.0 — styles, layout and UI kit.
 * Colours are CSS variables; the template style settings override --tcts-brand, --tcts-dark,
 * --tcts-accent, --tcts-tint and --tcts-ground. Components and modules must use these variables
 * and the classes below instead of their own colours.
 */

/* ---------- 1. Tokens ---------- */
:root {
  --tcts-brand: #146C43;
  --tcts-dark: #0B3B27;
  --tcts-accent: #F0B04A;
  --tcts-tint: #EAF4EE;
  --tcts-ground: #F7F9F6;
  --tcts-white: #FFFFFF;
  --tcts-ink: #14211A;
  --tcts-ink-2: #24332B;
  --tcts-muted: #4D5E55;
  --tcts-line: #E3EAE5;
  --tcts-line-strong: #C9D6CE;
  --tcts-on-dark: #C3DCCD;
  --tcts-on-dark-accent: #9FD3B4;
  --tcts-on-accent: #1A1A1A;
  --tcts-ok: #146C43;
  --tcts-ok-bg: #E3F3E9;
  --tcts-warn: #7A4B00;
  --tcts-warn-bg: #FFF4DE;
  --tcts-info: #1D4F91;
  --tcts-info-bg: #E6EEF9;
  --tcts-err: #A3261A;
  --tcts-err-bg: #FFF1F0;
  --tcts-err-line: #F3C9C4;
  --tcts-font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --tcts-font: var(--tcts-font-system);
  /* Font-size scale (style guide v1). Components use only these. */
  --tcts-fs-xs: 12px;   /* labels, group captions, caps */
  --tcts-fs-s: 13px;    /* hints, item descriptions, meta */
  --tcts-fs-m: 15px;    /* menu, tables, forms */
  --tcts-fs-base: var(--tcts-font-size, 17px); /* body text (template setting) */
  --tcts-fs-l: 20px;    /* H3, card titles */
  --tcts-fs-xl: 24px;   /* lead, small H2 */
  --tcts-radius-s: 10px;
  --tcts-radius: 16px;
  --tcts-radius-l: 24px;
  --tcts-container: 1240px;
  --tcts-gutter: 24px;
  --tcts-section-y: clamp(56px, 8vw, 96px);
  --tcts-shadow: 0 10px 30px rgba(11, 59, 39, .10);
  --tcts-header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tcts-header-h) + 16px); }
body { margin: 0; background: var(--tcts-ground); color: var(--tcts-ink); font-family: var(--tcts-font); font-size: var(--tcts-font-size, 17px); font-weight: var(--tcts-font-weight, 400); line-height: 1.6; text-rendering: optimizeLegibility; }
:lang(zh) body, :lang(ko) body, body:lang(zh), body:lang(ko) { line-height: 1.75; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--tcts-brand); text-underline-offset: 3px; }
a:hover { color: var(--tcts-dark); }
:focus-visible { outline: 3px solid var(--tcts-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: var(--tcts-heading-weight, 800); color: inherit; letter-spacing: -.01em; }
h1 { font-size: calc(clamp(32px, 4.2vw, 54px) * var(--tcts-heading-scale, 1)); letter-spacing: -.02em; }
h2 { font-size: calc(clamp(26px, 3vw, 40px) * var(--tcts-heading-scale, 1)); }
h3 { font-size: calc(clamp(20px, 2vw, 26px) * var(--tcts-heading-scale, 1)); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--tcts-line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }
.container { width: 100%; max-width: var(--tcts-container); margin-inline: auto; padding-inline: var(--tcts-gutter); }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tcts-dark); color: #fff; padding: 10px 16px; border-radius: var(--tcts-radius-s); }
.skip-link:focus { top: 12px; color: #fff; }
.float-start { float: left; } .float-end { float: right; } .clearfix::after { content: ""; display: table; clear: both; }

/* ---------- 3. Buttons and links ---------- */
.btn, .button, button.btn, input[type="submit"].btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 700; font-size: var(--tcts-fs-m, 15px); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary, .btn-primary { background: var(--tcts-brand); color: #fff; }
.btn--primary:hover, .btn-primary:hover { background: var(--tcts-dark); color: #fff; }
.btn--accent { background: var(--tcts-accent); color: var(--tcts-on-accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--tcts-accent) 85%, #000); color: var(--tcts-on-accent); }
.btn--dark { background: var(--tcts-dark); color: #fff; }
.btn--dark:hover { background: var(--tcts-ink); color: #fff; }
.btn--ghost, .btn-secondary, .btn-outline-secondary { background: #fff; color: var(--tcts-ink); border-color: var(--tcts-line-strong); }
.btn--ghost:hover, .btn-secondary:hover { border-color: var(--tcts-brand); color: var(--tcts-brand); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-danger { background: var(--tcts-err); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 4. Top bar ---------- */
.topbar { background: var(--tcts-dark); color: var(--tcts-on-dark); font-size: var(--tcts-fs-m, 15px); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar__contacts, .topbar__side, .topbar__messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.topbar__messengers { list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--tcts-on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__phone { color: #fff !important; font-weight: 700; }
.topbar__hours { color: var(--tcts-on-dark-accent); }
.lang-switch ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { color: var(--tcts-on-dark-accent); }
.lang-switch__current { color: #fff; font-weight: 800; }
.topbar .lang-switch { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
  .topbar__extra, .topbar__messengers { display: none !important; }
  .topbar .lang-switch { padding-left: 0; border-left: 0; }
  .topbar__inner { flex-wrap: nowrap; }
}

/* ---------- 5. Header and brand ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--tcts-line); z-index: 50; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 59, 39, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--tcts-header-h); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__word { height: 24px; width: auto; fill: var(--tcts-dark); }
/* Header emblem: globe that turns on hover (one turn in 4 s); on touch screens one turn after load */
.brand__globe { display: block; width: 44px; height: 44px; flex: none; border-radius: 50%; }
.tcts-globe { display: block; width: 100%; height: 100%; }
.tcts-globe__surface { animation: tcts-globe-turn 4s linear infinite; animation-play-state: paused; }
.brand:hover .tcts-globe__surface, .brand:focus-visible .tcts-globe__surface { animation-play-state: running; }
@keyframes tcts-globe-turn { to { transform: translateX(1420px); } }
@media (hover: none) { .tcts-globe__surface { animation-iteration-count: 1; animation-play-state: running; animation-delay: .4s; } }
@media (prefers-reduced-motion: reduce) { .tcts-globe__surface { animation: none; } }
.brand__extra { display: block; width: auto; max-width: 220px; object-fit: contain; }
.brand__text { max-width: 10em; line-height: 1.1; letter-spacing: .01em; text-wrap: balance; }
@media (max-width: 1280px) and (min-width: 1081px) {
  .brand__text { max-width: 8em; font-size: min(1em, 19px) !important; }
  .site-header__inner { gap: 16px; }
  .nav-item--l1 > .nav-link { padding-inline: 8px; font-size: var(--tcts-fs-m, 15px); }
}
@media (max-width: 560px) { .brand__text { max-width: 9em; font-size: min(1em, 16px) !important; } .brand__extra { max-width: 130px; max-height: 30px; } .brand--header { gap: 8px; min-width: 0; } }
.brand--plate { background: #fff; border-radius: 14px; padding: 10px 16px 10px 10px; }
.brand--plate .brand__mark { width: 40px; height: 40px; }
.brand--plate .brand__word { height: 22px; }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.site-header__cta { white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--tcts-line-strong); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--tcts-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header search (Smart Search) */
.site-header { position: relative; }
.header-search { position: relative; display: flex; align-items: center; flex: 0 1 230px; width: 230px; min-width: 150px; }
.header-search .header-search__input { width: 100%; min-height: 44px; padding: 10px 46px 10px 16px; border: 1px solid var(--tcts-line-strong); border-radius: 12px; background: var(--tcts-ground); font-size: var(--tcts-fs-m, 15px); transition: border-color .15s, background .15s, width .2s; }
.header-search .header-search__input:focus { background: #fff; }
.header-search__input::-webkit-search-cancel-button { display: none; }
.header-search__btn, .search-toggle { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--tcts-dark); cursor: pointer; }
.header-search__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; }
.header-search__btn:hover { background: var(--tcts-tint); }
.header-search svg, .search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--tcts-line-strong); border-radius: 12px; background: #fff; }
@media (max-width: 1280px) and (min-width: 1081px) { .header-search { width: 180px; } }
@media (max-width: 1080px) {
  .search-toggle { display: inline-flex; }
  .search-toggle[aria-expanded="true"] { background: var(--tcts-tint); border-color: var(--tcts-brand); }
  .header-search { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; padding: 12px var(--tcts-gutter); background: #fff; border-bottom: 1px solid var(--tcts-line); box-shadow: 0 10px 20px rgba(11, 59, 39, .08); z-index: 48; }
  .header-search.is-open { display: flex; }
  .header-search .header-search__input { min-height: 48px; font-size: var(--tcts-fs-m, 15px); }
  .header-search__btn { right: calc(var(--tcts-gutter) + 5px); }
}

/* Desktop header that does not fit (long logo text, many menu items): template.js adds .is-tight —
   the search field turns into the magnifier button and menu links get tighter. */
@media (min-width: 1081px) {
  .site-header.is-tight .site-header__inner { gap: 16px; }
  .site-header.is-tight .nav-item--l1 > .nav-link { padding-inline: 8px; }
  .site-header.is-tight .search-toggle { display: inline-flex; }
  .site-header.is-tight .search-toggle[aria-expanded="true"] { background: var(--tcts-tint); border-color: var(--tcts-brand); }
  .site-header.is-tight .header-search { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; min-width: 0; padding: 12px max(var(--tcts-gutter), calc((100% - var(--tcts-container)) / 2 + var(--tcts-gutter))); background: #fff; border-bottom: 1px solid var(--tcts-line); box-shadow: 0 10px 20px rgba(11, 59, 39, .08); z-index: 48; }
  .site-header.is-tight .header-search.is-open { display: flex; }
  .site-header.is-tight .header-search__btn { right: calc(max(var(--tcts-gutter), (100% - var(--tcts-container)) / 2 + var(--tcts-gutter)) + 5px); }
}

/* ---------- 6. Main menu and mega dropdowns ---------- */
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; list-style: none; }
.nav-item--l1 { display: flex; align-items: center; }
.nav-item--l1 > .nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--tcts-ink); font-weight: 650; font-size: var(--tcts-fs-m, 15px); text-decoration: none; white-space: nowrap; }
.nav-item--l1 > .nav-link:hover, .nav-item--l1.is-active > .nav-link { color: var(--tcts-brand); }
.nav-item--l1.is-current > .nav-link { box-shadow: inset 0 -2px 0 var(--tcts-brand); border-radius: 0; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; margin-left: -8px; border: 0; background: transparent; cursor: pointer; color: var(--tcts-muted); }
.nav-toggle svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-link__text { display: flex; flex-direction: column; gap: 2px; }
.nav-link__desc { font-size: var(--tcts-fs-s, 13px); font-weight: 400; color: var(--tcts-muted); line-height: 1.4; }
.nav-link__icon { width: 28px; height: 28px; flex: none; object-fit: contain; }

/* Menu item icons ("TCTS icon" tab): left column, next to the text, right edge, above, or a corner badge */
.nav-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--nav-icon-size, 20px); height: var(--nav-icon-size, 20px); color: inherit; line-height: 1; }
.nav-icon > .ui-icon { width: 100%; height: 100%; }
.nav-icon .ui-icon--fa > i, .nav-icon > [class*="icon-"] { font-size: calc(var(--nav-icon-size, 20px) * .88); }
.nav-icon--brand { color: var(--tcts-brand); }
.nav-icon--accent { color: var(--tcts-accent); }
.nav-icon--muted { color: var(--tcts-muted); }
.nav-link--icon { position: relative; gap: 8px; }
.nav-sub .nav-link--icon { gap: 12px; }
.nav-link__title .nav-icon { vertical-align: -.2em; margin-inline: 0 6px; }
.nav-link--icon-after .nav-link__title .nav-icon { margin-inline: 6px 0; }
.nav-link--icon-right { justify-content: space-between; }
.nav-link--icon-right > .nav-icon { margin-left: auto; }
.nav-link--icon-top { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.nav-sub .nav-link--icon-top { align-items: flex-start; text-align: left; }
.nav-link--icon[class*="nav-link--icon-corner"] > .nav-icon { position: absolute; z-index: 1; pointer-events: none; }
.nav-link--icon-corner-tl > .nav-icon { top: 0; left: 0; transform: translate(-30%, -30%); }
.nav-link--icon-corner-tr > .nav-icon { top: 0; right: 0; transform: translate(30%, -30%); }
.nav-link--icon-corner-bl > .nav-icon { bottom: 0; left: 0; transform: translate(-30%, 30%); }
.nav-link--icon-corner-br > .nav-icon { bottom: 0; right: 0; transform: translate(30%, 30%); }
.nav-link--icon-only { gap: 0; }
@media (max-width: 1080px) {
  .nav-link--icon-top { flex-direction: row; text-align: left; }
  .nav-link--icon[class*="nav-link--icon-corner"] > .nav-icon { transform: none; top: 6px; bottom: auto; }
  .nav-link--icon-corner-tl > .nav-icon, .nav-link--icon-corner-bl > .nav-icon { left: auto; right: 44px; }
  .nav-link--icon-corner-tr > .nav-icon, .nav-link--icon-corner-br > .nav-icon { right: 4px; }
}
.nav-dropdown { position: absolute; top: calc(100% + var(--dd-top, 10px)); left: 50%; transform: translateX(-50%); min-width: var(--dd-min, 400px); background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--dd-radius, 18px); box-shadow: var(--tcts-shadow); padding: var(--dd-pad, 16px); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 60; }
/* 1.8.23: the invisible bridge between the menu link and the panel is taller (the mega panel hangs from the header edge, the link is higher): the panel does not close on the way */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--dd-top, 10px) - 22px); height: calc(var(--dd-top, 10px) + 22px); }
@media (min-width: 1081px) {
  .dd-left .nav-item--l1:not(.mega) > .nav-dropdown { left: 0; transform: none; }
  .dd-right .nav-item--l1:not(.mega) > .nav-dropdown { left: auto; right: 0; transform: none; }
}
.nav-item--l1.mega { position: static; }
.mega > .nav-dropdown { left: 50%; width: min(var(--dd-mega-w, 1180px), calc(100vw - 48px)); }
.nav-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega > .nav-dropdown > .nav-sub { grid-template-columns: repeat(auto-fill, minmax(var(--dd-col, 260px), 1fr)); gap: var(--dd-gy, 8px) var(--dd-gx, 16px); }
.nav-sub .nav-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--tcts-ink); text-decoration: none; font-weight: 600; font-size: var(--dd-font, var(--tcts-fs-m, 15px)); }
.nav-sub .nav-link:hover, .nav-sub .is-current > .nav-link { background: var(--tcts-tint); color: var(--tcts-ink); }
.nav-sub .has-desc > .nav-link .nav-link__title { font-weight: 750; font-size: var(--tcts-fs-m, 15px); }
.nav-sub .nav-link--heading { padding: 6px 12px 2px; color: var(--tcts-muted); font-size: var(--tcts-fs-xs, 12px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-sub--l3 { padding-left: 0; }
.nav-sub--l3 .nav-link { padding-block: 6px; font-weight: 550; }
.nav-sub .feature-cta > .nav-link, .nav-sub .nav-cta > .nav-link { background: var(--tcts-dark); color: #fff; }
.nav-sub .feature-cta > .nav-link .nav-link__desc, .nav-sub .nav-cta > .nav-link .nav-link__desc { color: var(--tcts-on-dark); }

@media (min-width: 1081px) {
  .nav-item--l1:hover > .nav-dropdown, .nav-item--l1:focus-within > .nav-dropdown, .nav-item--l1.is-open > .nav-dropdown { opacity: 1; visibility: visible; }
}

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--tcts-nav-top, 72px) 0 0 0; background: #fff; display: block; overflow-y: auto; padding: 12px var(--tcts-gutter) 40px; transform: translateX(100%); transition: transform .25s ease; z-index: 49; border-top: 1px solid var(--tcts-line); }
  .site-nav.is-open { transform: none; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item--l1 { flex-wrap: wrap; border-bottom: 1px solid var(--tcts-line); }
  .nav-item--l1 > .nav-link { flex: 1 1 auto; min-height: 52px; font-size: var(--tcts-fs-base, 17px); padding-inline: 4px; }
  .nav-item--l1.is-current > .nav-link { box-shadow: none; color: var(--tcts-brand); }
  .nav-toggle { width: 52px; height: 52px; margin: 0; }
  .nav-dropdown, .mega > .nav-dropdown { position: static; transform: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px; display: none; }
  .nav-item--l1.is-open > .nav-dropdown { display: block; }
  .mega > .nav-dropdown > .nav-sub { grid-template-columns: 1fr; }
  .site-header__cta { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 1080px) and (min-width: 560px) { .site-header__cta { display: inline-flex; } }

/* ---------- 7. Sections and block headings ---------- */
.tcts-section { padding-block: var(--tcts-section-y) 0; }
.tcts-section:last-of-type { padding-bottom: var(--tcts-section-y); }
.tcts-section--white { background: #fff; padding-block: var(--tcts-section-y); margin-top: var(--tcts-section-y); }
.tcts-section--tint { background: var(--tcts-tint); padding-block: var(--tcts-section-y); margin-top: var(--tcts-section-y); }
.tcts-section--dark { background: var(--tcts-dark); color: #fff; padding-block: var(--tcts-section-y); margin-top: var(--tcts-section-y); }
.tcts-section--dark a:not(.btn) { color: #fff; }
.tcts-section--tight { padding-top: 32px; }
.section-title { margin-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--tcts-brand); font-size: var(--tcts-fs-m, 15px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tcts-section--dark .eyebrow { color: var(--tcts-on-dark-accent); }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.block-head__text { max-width: 760px; }
.block-head--center { justify-content: center; text-align: center; }
.block-head--center .block-head__text { margin-inline: auto; }
.block-title { margin: 0; }
.block-intro { margin: 12px 0 0; color: var(--tcts-muted); font-size: var(--tcts-fs-l, 20px); }
.tcts-section--dark .block-intro { color: var(--tcts-on-dark); }
.block-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.block-more::after { content: " →"; }

/* ---------- 8. Hero ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--tcts-line); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: clamp(40px, 7vw, 80px) clamp(40px, 6vw, 72px); }
.hero__content { flex: 1 1 520px; min-width: 0; }
.hero__media { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__media img { border-radius: var(--tcts-radius-l); }
.hero__title { margin-bottom: 20px; }
.hero__lead { max-width: 580px; margin-bottom: 30px; color: var(--tcts-muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 36px; }
.stat__value { display: block; color: var(--tcts-dark); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; }
.stat__label { display: block; color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.hero-track { max-width: 600px; margin-top: 28px; padding: 14px; background: color-mix(in srgb, var(--tcts-tint) 60%, #fff); border: 1px solid color-mix(in srgb, var(--tcts-brand) 15%, #fff); border-radius: 14px; }
.hero-track label { display: block; margin-bottom: 8px; font-weight: 700; font-size: var(--tcts-fs-m, 15px); }
.hero-track__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-track__row .ui-input { flex: 1 1 260px; min-width: 0; }
.hero-tool { margin-top: 24px; }

/* APAC map */
.tcts-map { width: 100%; max-width: 580px; height: auto; font-family: var(--tcts-font); }
.tcts-map__sea { fill: color-mix(in srgb, var(--tcts-brand) 11%, #fff); }
.tcts-map__grid path { stroke: color-mix(in srgb, var(--tcts-brand) 17%, #fff); stroke-width: 1; fill: none; }
.tcts-map__land path { fill: color-mix(in srgb, var(--tcts-brand) 21%, #fff); stroke: color-mix(in srgb, var(--tcts-brand) 45%, #fff); stroke-width: 1.2; stroke-linejoin: round; }
.tcts-map__countries text { fill: color-mix(in srgb, var(--tcts-brand) 55%, #fff); font-size: var(--tcts-fs-xs, 12px); font-weight: 800; letter-spacing: 3px; }
.tcts-map__seas text { fill: color-mix(in srgb, var(--tcts-brand) 60%, #fff); font-size: var(--tcts-fs-xs, 12px); font-style: italic; }
.tcts-map__routes path { fill: none; stroke: var(--tcts-brand); stroke-width: 1.8; stroke-dasharray: 5 6; stroke-linecap: round; opacity: .75; }
.tcts-map__box--in rect { fill: var(--tcts-brand); }
.tcts-map__box--in path { stroke: #fff; stroke-width: .8; }
.tcts-map__box--out rect { fill: var(--tcts-accent); stroke: var(--tcts-on-accent); stroke-width: .6; }
.tcts-map__ports circle { fill: #fff; stroke: var(--tcts-brand); stroke-width: 2.5; }
.tcts-map__hub { fill: var(--tcts-brand); stroke: #fff; stroke-width: 2.5; }
.tcts-map__pulse { fill: none; stroke: var(--tcts-brand); stroke-width: 2; }
.tcts-map__labels text { fill: var(--tcts-ink); font-size: var(--tcts-fs-s, 13px); font-weight: 750; paint-order: stroke; stroke: color-mix(in srgb, var(--tcts-brand) 11%, #fff); stroke-width: 3px; }
.tcts-map__hub-label { font-size: var(--tcts-fs-m, 15px) !important; }
.tcts-map__legend > rect:first-child { fill: #fff; opacity: .92; }
.tcts-map__legend text { fill: var(--tcts-dark); font-size: var(--tcts-fs-xs, 12px); }
.tcts-map__legend-in { fill: var(--tcts-brand); }
.tcts-map__legend-out { fill: var(--tcts-accent); }

/* ---------- 9. Tiles and cards ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiles--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tiles--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tiles, .tiles--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles, .tiles--cols-2, .tiles--cols-4 { grid-template-columns: minmax(0, 1fr); } }
.tiles--compact { gap: 12px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius); color: var(--tcts-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tiles--stack .tile { flex-direction: column; }
a.tile:hover { border-color: var(--tcts-brand); box-shadow: var(--tcts-shadow); transform: translateY(-2px); color: var(--tcts-ink); }
.tile.is-highlight { border: 1.5px solid var(--tcts-brand); }
.tile.is-dark { background: var(--tcts-brand); border-color: var(--tcts-brand); color: #fff; }
.tile.is-dark .tile__text { color: var(--tcts-on-dark); }
.tile .tile__icon { width: 32px; height: 32px; flex: none; color: var(--tcts-brand); }
.tile.is-dark .tile__icon { color: #fff; }
.tiles--stack .tile .tile__icon { width: 36px; height: 36px; }
.tile__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; background: var(--tcts-tint); color: var(--tcts-brand); font-weight: 800; flex: none; }
.tile.is-dark .tile__badge { background: #fff; }
.tile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile__title { font-weight: 750; font-size: var(--tcts-fs-l, 20px); line-height: 1.3; }
.tile__text { color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); line-height: 1.5; }
.tile__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.tile--more { justify-content: center; align-items: center; border-style: dashed; font-weight: 700; color: var(--tcts-brand); }
.ui-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Font Awesome icon in the same box as a built-in icon */
.ui-icon--fa { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.ui-icon--fa > i { font-size: calc(var(--tcts-fa-box, 32px) * .78); }
.tile .tile__icon.ui-icon--fa { --tcts-fa-box: 32px; }
.tiles--stack .tile .tile__icon.ui-icon--fa { --tcts-fa-box: 36px; }
.feature .feature__icon.ui-icon--fa { --tcts-fa-box: 32px; }
/* Icon size of a block (module setting "Icon size") */
.tcts-icons--s .tile .tile__icon, .tcts-icons--s .feature .feature__icon { width: 24px; height: 24px; --tcts-fa-box: 24px; }
.tcts-icons--m .tile .tile__icon, .tcts-icons--m .feature .feature__icon { width: 32px; height: 32px; --tcts-fa-box: 32px; }
.tcts-icons--l .tile .tile__icon, .tcts-icons--l .feature .feature__icon { width: 44px; height: 44px; --tcts-fa-box: 44px; }
.tcts-icons--xl .tile .tile__icon, .tcts-icons--xl .feature .feature__icon { width: 60px; height: 60px; --tcts-fa-box: 60px; }

/* Tools area: tiles + side widget */
.tools-area__grid { display: grid; gap: 20px; }
.tools-area__grid.has-side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 960px) { .tools-area__grid.has-side { grid-template-columns: 1fr; } }

/* ---------- 10. Alternating sections ---------- */
.alt-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.alt-item { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.alt-item:nth-child(even) { flex-direction: row-reverse; }
.alt-item__media { flex: 1 1 440px; min-width: 0; }
.alt-item__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; display: block; }
.alt-item__placeholder { aspect-ratio: 16 / 10; border-radius: 20px; background: var(--tcts-tint); }
.alt-item__body { flex: 1 1 400px; min-width: 0; }
.alt-item__num { color: var(--tcts-brand); font-weight: 800; margin-bottom: 8px; }
.alt-item__title { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; }
.alt-item__text { color: var(--tcts-muted); font-size: var(--tcts-fs-base, 17px); }
.alt-item__value { margin: 0 0 20px; color: var(--tcts-dark); font-weight: 750; }

/* ---------- 11. Steps, numbers, features ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { padding: 24px; background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius); }
.step__num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--tcts-brand); color: #fff; font-weight: 800; }
.step__title { display: block; margin-bottom: 4px; font-weight: 750; font-size: var(--tcts-fs-base, 17px); }
.step__text { display: block; color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.steps--line .step { background: transparent; border: 0; border-top: 3px solid var(--tcts-brand); border-radius: 0; padding: 16px 0 0; }
.steps--line .step__num { width: auto; height: auto; margin-bottom: 4px; background: none; color: var(--tcts-brand); border-radius: 0; justify-content: flex-start; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 24px; }
.number__value { display: block; color: var(--tcts-dark); font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1.1; }
.number__label { display: block; color: var(--tcts-muted); }
.tcts-section--dark .number__value { color: #fff; }
.tcts-section--dark .number__label { color: var(--tcts-on-dark); }
.features { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.features__intro { flex: 1 1 320px; min-width: 0; }
.features__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 40px; }
.feature .feature__icon { width: 32px; height: 32px; color: var(--tcts-brand); margin-bottom: 10px; }
.tcts-section--dark .feature .feature__icon { color: var(--tcts-on-dark-accent); }
.feature__title { margin: 0 0 6px; font-size: var(--tcts-fs-l, 20px); }
.feature__text { margin: 0; color: var(--tcts-muted); }
.tcts-section--dark .feature__text { color: var(--tcts-on-dark); }

/* ---------- 12. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--tcts-line); border-radius: 14px; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 750; font-size: var(--tcts-fs-base, 17px); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--tcts-brand); border-radius: 2px; transition: transform .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 24px 20px; color: var(--tcts-muted); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- 13. CTA band and prices ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius-l); }
.cta-band--dark { background: var(--tcts-dark); border-color: var(--tcts-dark); color: #fff; }
.cta-band__text { flex: 1 1 380px; min-width: 0; }
.cta-band__title { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 34px); }
.cta-band__intro { margin: 0; color: var(--tcts-muted); }
.cta-band--dark .cta-band__intro { color: var(--tcts-on-dark); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--tcts-line); border-radius: 18px; }
.price.is-highlight { background: var(--tcts-dark); border-color: var(--tcts-dark); color: #fff; }
.price__title { font-weight: 750; font-size: var(--tcts-fs-l, 20px); }
.price__value { color: var(--tcts-dark); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; }
.price.is-highlight .price__value { color: #fff; }
.price__text { color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.price.is-highlight .price__text { color: var(--tcts-on-dark); }
.price .link-arrow { margin-top: auto; }

/* ---------- 14. Page layout, sidebar, module cards ---------- */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px var(--tcts-section-y); }
.page-body.has-sidebar { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
@media (max-width: 960px) { .page-body.has-sidebar { grid-template-columns: minmax(0, 1fr); } }
.page-main { min-width: 0; outline: none; }
.page-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.module-card { background: #fff; border: 1px solid var(--tcts-line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.module-card:last-child { margin-bottom: 0; }
.module-card__title { margin: 0 0 12px; font-size: var(--tcts-fs-l, 20px); }
.module-card.is-dark, .module-card.module-card--dark { background: var(--tcts-dark); border-color: var(--tcts-dark); color: #fff; }
.module-card.is-dark a:not(.btn) { color: var(--tcts-accent); }
.page-heading { margin-bottom: 24px; }

/* Breadcrumbs (core module markup) */
.mod-breadcrumbs__wrapper { margin-bottom: 24px; }
.mod-breadcrumbs, .breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: var(--tcts-fs-m, 15px); color: var(--tcts-muted); }
.mod-breadcrumbs li + li::before, .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 4px; color: var(--tcts-line-strong); }
.mod-breadcrumbs__here { display: none; }
.mod-breadcrumbs a, .breadcrumb a { color: var(--tcts-muted); text-decoration: none; }
.mod-breadcrumbs a:hover { color: var(--tcts-brand); text-decoration: underline; }
.mod-breadcrumbs__divider { display: none; }

/* ---------- 15. Article, prose, table of contents ---------- */
.article-head { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--tcts-line); }
.article-head__title { max-width: var(--art-title-max, 1200px); margin-top: var(--art-title-mt, 12px); font-size: clamp(var(--art-title-min, 30px), var(--art-title-vw, 3.6vw), var(--art-title-size, 46px)); }
.badge-link { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tcts-tint); color: var(--tcts-dark); font-weight: 700; font-size: var(--tcts-fs-s, 13px); text-decoration: none; }
a.badge-link:hover { background: var(--tcts-brand); color: #fff; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.article-side { display: grid; gap: 16px; min-width: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--art-gap, 40px); }
.article-layout.has-toc.toc-ready { grid-template-columns: var(--toc-w, 280px) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .article-layout.has-toc.toc-ready { grid-template-columns: minmax(0, 1fr); } }
.article-toc details { background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius); padding: 18px 20px; }
/* The left column (contents and side blocks) stays in view while the article scrolls */
.article-layout:not(.toc-ready):not(.has-aside) .article-side { display: none; }
@media (min-width: 961px) {
  .article-layout.toc-ready .article-side, .article-layout.has-aside .article-side { position: sticky; top: calc(var(--tcts-header-h) + 20px); max-height: calc(100vh - var(--tcts-header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .side-static .article-layout.toc-ready .article-side, .side-static .article-layout.has-aside .article-side { position: static; max-height: none; overflow: visible; }
}
.article-toc summary { cursor: pointer; color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-toc ol { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--toc-font, var(--tcts-fs-m, 15px)); }
.article-toc a { color: var(--tcts-ink); text-decoration: none; }
.article-toc a:hover, .article-toc a.is-active { color: var(--tcts-brand); }
.article-body { min-width: 0; max-width: var(--art-body-max, none); }
.prose { font-size: var(--tcts-fs-l, 20px); line-height: 1.7; color: var(--tcts-ink-2); }
.prose h2 { margin: 1.8em 0 .6em; font-size: clamp(24px, 2.4vw, 30px); color: var(--tcts-ink); }
.prose h3 { margin: 1.5em 0 .5em; font-size: var(--tcts-fs-xl, 24px); color: var(--tcts-ink); }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 14px; }
.prose blockquote, .prose .note, .prose .callout { margin: 1.5em 0; padding: 18px 22px; background: var(--tcts-tint); border-radius: 14px; font-size: var(--tcts-fs-m, 15px); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose .table-wrap { margin: 1.5em 0; }
.prose table { margin: 0; font-size: var(--tcts-fs-m, 15px); background: #fff; }
.prose > table { display: block; overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--tcts-line); border-radius: 14px; }
.prose th, .prose td { padding: 12px 16px; border-top: 1px solid var(--tcts-line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--tcts-tint); border-top: 0; }
.prose code { padding: 2px 6px; background: var(--tcts-tint); border-radius: 6px; font-size: .9em; }
.article-cta { margin: 32px 0; }
.article-bottom { margin: 32px 0 0; }
.article-tags { margin-top: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags a { display: inline-block; padding: 4px 12px; border: 1px solid var(--tcts-line-strong); border-radius: 999px; font-size: var(--tcts-fs-m, 15px); text-decoration: none; color: var(--tcts-ink); }
.com-content-article__links, .item-page .list-group { list-style: none; padding: 0; }

/* Joomla glossary tooltip hook (SEO Glossary terms) */
.glossarytooltip-link, .tcts-term, abbr[title] { color: inherit; text-decoration: underline dotted var(--tcts-brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }

/* ---------- 16. Blog and lists ---------- */
.blog-head { margin-bottom: 32px; }
.blog-head__desc { max-width: 780px; color: var(--tcts-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; background: #fff; border: 1px solid var(--tcts-line-strong); border-radius: 999px; color: var(--tcts-ink); font-weight: 600; font-size: var(--tcts-fs-m, 15px); text-decoration: none; }
.chip:hover, .chip.is-active { border-color: var(--tcts-brand); color: var(--tcts-brand); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card-grid--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid--c3, .card-grid--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid--c2, .card-grid--c3, .card-grid--c4 { grid-template-columns: minmax(0, 1fr); } }
.article-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius); color: var(--tcts-ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.article-card:hover { box-shadow: var(--tcts-shadow); transform: translateY(-2px); color: var(--tcts-ink); }
.article-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1 1 auto; }
.article-card__cat { color: var(--tcts-brand); font-size: var(--tcts-fs-s, 13px); font-weight: 750; }
.article-card__title { font-weight: 750; font-size: var(--tcts-fs-l, 20px); line-height: 1.35; }
.article-card__text { color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.article-card__date { margin-top: auto; padding-top: 8px; color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); }
.link-list { margin-top: 24px; }
.pagination-wrap { margin-top: 32px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--tcts-line-strong); border-radius: 10px; color: var(--tcts-ink); text-decoration: none; }
.page-item.active .page-link { background: var(--tcts-brand); border-color: var(--tcts-brand); color: #fff; }
.page-item.disabled .page-link { opacity: .5; }
.counter { color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }

/* Core module lists (latest articles, categories) */
.mod-articles, .mod-articleslatest, .latestnews, .mostread { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* ---------- 17. Forms (core components use Bootstrap class names) ---------- */
.ui-input, .form-control, .form-select, .inputbox, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], input[type="url"], select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--tcts-line-strong); border-radius: 12px; background: #fff; color: var(--tcts-ink); font: inherit; font-size: var(--tcts-fs-m, 15px); }
textarea { min-height: 120px; resize: vertical; }
.ui-input:focus, .form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--tcts-brand) 30%, transparent); outline-offset: 0; border-color: var(--tcts-brand); }
label, .form-label, .control-label { display: inline-block; margin-bottom: 6px; font-weight: 650; font-size: var(--tcts-fs-m, 15px); }
.control-group, .mb-3 { margin-bottom: 16px; }
.form-check { display: flex; gap: 8px; align-items: flex-start; }
.form-check-input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tcts-brand); }
.invalid, .form-control.invalid { border-color: var(--tcts-err) !important; }
.form-control-feedback, .invalid-feedback { color: var(--tcts-err); font-size: var(--tcts-fs-m, 15px); }
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend { font-weight: 800; font-size: var(--tcts-fs-l, 20px); margin-bottom: 12px; }
.star { color: var(--tcts-err); }

/* System messages */
#system-message-container { margin-bottom: 16px; }
joomla-alert, .alert { display: block; margin-bottom: 12px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--tcts-line); background: #fff; }
joomla-alert[type="success"], .alert-success { background: var(--tcts-ok-bg); border-color: color-mix(in srgb, var(--tcts-ok) 30%, #fff); }
joomla-alert[type="warning"], .alert-warning { background: var(--tcts-warn-bg); border-color: #F2D49A; }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { background: var(--tcts-err-bg); border-color: var(--tcts-err-line); }
joomla-alert[type="info"], .alert-info { background: var(--tcts-info-bg); border-color: #BED0EE; }

/* ---------- 18. UI kit for online services (TCTS Services component) ---------- */
.ui-tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ui-tool.has-side { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: start; }
@media (max-width: 960px) { .ui-tool.has-side { grid-template-columns: minmax(0, 1fr); } }
.ui-tool__head { margin-bottom: 24px; }
.ui-form { padding: 20px; background: color-mix(in srgb, var(--tcts-tint) 60%, #fff); border: 1px solid color-mix(in srgb, var(--tcts-brand) 15%, #fff); border-radius: 18px; max-width: 880px; }
.ui-query { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Fields with a label above (and maybe a hint below): line up labels at the top, inputs in one row,
   and put the button level with the inputs whatever the hints below them. */
.ui-query:has(> .ui-field) { align-items: flex-start; }
.ui-query .ui-field__label { line-height: 20px; margin: 0; }
.ui-query:has(> .ui-field) > .btn { margin-top: 26px; }
.ui-query .ui-field > select.ui-input { height: 48px; }
@media (max-width: 600px) { .ui-query:has(> .ui-field) > .btn { margin-top: 0; width: 100%; } }
.ui-query > .ui-input, .ui-query .ui-field > .ui-input, .hero-track__row > .ui-input { height: 48px; line-height: 22px; }
.ui-query > .btn, .hero-track__row > .btn { min-height: 48px; height: 48px; }
.ui-query > .ui-field { flex: 1 1 320px; min-width: 0; }
.ui-query > .ui-input { flex: 1 1 260px; min-width: 0; }
.ui-field { display: flex; flex-direction: column; gap: 6px; }
.ui-field__label { font-weight: 650; font-size: var(--tcts-fs-m, 15px); line-height: 20px; }
.ui-field__hint { color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); }
.ui-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding: 4px; background: #fff; border: 1px solid color-mix(in srgb, var(--tcts-brand) 15%, #fff); border-radius: 12px; }
.ui-tab { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--tcts-ink); font-weight: 700; font-size: var(--tcts-fs-m, 15px); cursor: pointer; }
.ui-tab[aria-selected="true"], .ui-tab.is-active { background: var(--tcts-brand); color: #fff; }
.ui-result { padding: 24px; background: #fff; border: 1px solid var(--tcts-line); border-radius: 18px; }
.ui-result__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.ui-result__label { color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); }
.ui-result__value { font-size: var(--tcts-fs-xl, 24px); font-weight: 800; letter-spacing: .03em; }
.ui-result__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tcts-line); color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: var(--tcts-fs-s, 13px); background: var(--tcts-tint); color: var(--tcts-dark); }
.status-badge--ok { background: var(--tcts-ok-bg); color: var(--tcts-ok); }
.status-badge--warn { background: var(--tcts-warn-bg); color: var(--tcts-warn); }
.status-badge--info { background: var(--tcts-info-bg); color: var(--tcts-info); }
.status-badge--err { background: var(--tcts-err-bg); color: var(--tcts-err); }
.ui-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 20px; background: var(--tcts-tint); border-radius: 12px; }
.ui-progress__bar { position: relative; flex: 1 1 80px; min-width: 60px; height: 4px; background: color-mix(in srgb, var(--tcts-brand) 20%, #fff); border-radius: 4px; }
.ui-progress__bar > span { position: absolute; inset: 0 auto 0 0; background: var(--tcts-brand); border-radius: 4px; }
.ui-timeline { list-style: none; margin: 0; padding: 0; }
.ui-timeline > li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.ui-timeline > li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; flex: none; border-radius: 50%; border: 2px solid var(--tcts-line-strong); background: #fff; }
.ui-timeline > li.is-done::before { background: var(--tcts-brand); border-color: var(--tcts-brand); }
.ui-timeline > li.is-next::before { border: 3px solid var(--tcts-accent); }
.ui-timeline__title { display: block; font-weight: 700; }
.ui-timeline__meta { display: block; color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.ui-skeleton, .skel { background: var(--tcts-line); border-radius: 8px; animation: tcts-pulse 1.4s ease-in-out infinite; }
@keyframes tcts-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.ui-empty, .ui-alert { display: flex; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--tcts-line); border-radius: 16px; }
.ui-alert--error { background: var(--tcts-err-bg); border-color: var(--tcts-err-line); color: #5E3A35; }
.ui-alert--info { background: var(--tcts-info-bg); border-color: #BED0EE; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--tcts-line); border-radius: 16px; }
.ui-table { width: 100%; min-width: 560px; font-size: var(--tcts-fs-m, 15px); }
.ui-table th, .ui-table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--tcts-line); }
.ui-table thead th { background: var(--tcts-tint); border-top: 0; font-weight: 750; }
.ui-table tbody tr:hover { background: color-mix(in srgb, var(--tcts-tint) 50%, #fff); }
.ui-list-rows { display: flex; flex-direction: column; }
.ui-list-rows > * { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tcts-line); }

/* ---------- 19. Footer ---------- */
.site-footer { margin-top: auto; background: var(--tcts-dark); color: var(--tcts-on-dark); }
.site-footer a { color: var(--tcts-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; padding-block: 56px 32px; }
.site-footer__grid.is-compact { grid-template-columns: 1fr; }
.site-footer__text { margin: 16px 0; font-size: var(--tcts-fs-m, 15px); }
.site-footer__contacts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--tcts-fs-m, 15px); }
.site-footer__phone { color: #fff !important; font-weight: 800; font-size: var(--tcts-fs-l, 20px); }
.site-footer__messengers { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer__requisites { margin-top: 16px; font-size: var(--tcts-fs-s, 13px); opacity: .85; }
.footer-module__title { margin-bottom: 10px; color: #fff; font-weight: 800; }
.site-footer ul:not(.site-footer__contacts) { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .nav-menu, .site-footer .mod-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__bottom { border-top: 1px solid color-mix(in srgb, #fff 15%, transparent); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; font-size: var(--tcts-fs-m, 15px); }

/* ---------- 20. Floating quick contacts (phones) ---------- */
.float-actions { display: none; }
@media (max-width: 768px) {
  .float-actions { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--tcts-line); border-radius: 16px; box-shadow: var(--tcts-shadow); }
  .float-actions__btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; background: var(--tcts-tint); color: var(--tcts-dark); font-weight: 750; font-size: var(--tcts-fs-m, 15px); text-decoration: none; }
  .float-actions__btn--call { background: var(--tcts-brand); color: #fff; }
  .float-actions__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body:has(.float-actions) .site-footer { padding-bottom: 84px; }
}

/* ---------- 21. Error and offline pages ---------- */
.error-page, .offline-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-box, .offline-box { flex: 1 1 auto; max-width: 720px; padding-block: 64px; text-align: center; }
.error-box__code { color: var(--tcts-brand); font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; }
.error-box__text { color: var(--tcts-muted); font-size: var(--tcts-fs-l, 20px); }
.error-box .ui-query { justify-content: center; margin: 28px auto; max-width: 560px; }
.error-box .ui-query .ui-input { flex: 1 1 260px; }
.error-box__detail { color: var(--tcts-muted); font-size: var(--tcts-fs-m, 15px); }
.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a { color: inherit; opacity: .85; }
.auth-legal { margin-top: 10px; }
.auth-legal a { color: var(--tcts-muted); }
.error-box__debug { text-align: left; overflow-x: auto; font-size: var(--tcts-fs-s, 13px); }
.offline-form { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 32px auto 0; text-align: left; }
.offline-form .btn { margin-top: 8px; }

/* ---------- 22. Reduced motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tcts-map__boxes, .tcts-map__pulse { display: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .float-actions, .header-search, .article-toc, .hero-track, .burger, .page-side { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: none; padding: 0; }
}

/* Click-to-load frames (maps) */
.lazy-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--tcts-radius); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 45; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--tcts-line); border-radius: 50%; background: #fff; color: #5A9508; box-shadow: 0 6px 18px rgba(11, 59, 39, .16); cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.to-top[hidden] { display: none; }
.to-top:hover { background: #F3F9EC; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11, 59, 39, .2); }
.to-top:focus-visible { outline: 3px solid var(--tcts-accent); outline-offset: 3px; }
.to-top svg { width: 26px; height: 24px; margin-top: -2px; fill: currentColor; }
@media (max-width: 768px) {
  .to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; }
  .to-top svg { width: 23px; height: 21px; }
  body:has(.float-actions) .to-top { bottom: 96px; }
}
@media print { .to-top { display: none !important; } }

/* ---------- Frontend editing (visible to logged-in editors only) ---------- */
.jmoddiv { position: relative; }
.jmodedit { position: absolute; top: 6px; right: 6px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--tcts-dark); color: #fff; text-decoration: none; opacity: 0; transition: opacity .15s; }
.jmoddiv:hover > .jmodedit, .jmodedit:focus { opacity: 1; }
.jmodedit [class^="icon-"]::before { content: "✎"; font-style: normal; }
[role="tooltip"]:not(.show) { display: none; }
.jmodedit:hover + [role="tooltip"], .jmodedit:focus + [role="tooltip"] { display: block; position: absolute; top: 44px; right: 6px; z-index: 61; padding: 6px 10px; border-radius: 6px; background: #000; color: #fff; font-size: var(--tcts-fs-s, 13px); line-height: 1.4; white-space: nowrap; }

/* 1.8.1: links without underline everywhere (normal, hover, focus). Terms with a dotted hint stay marked. */
a, a:hover, a:focus, a:focus-visible, a:active, .link-arrow:hover, .topbar a:hover, .site-footer a:hover, .mod-breadcrumbs a:hover, .auth-link, .btn-link { text-decoration: none; }
.glossarytooltip-link, .tcts-term, abbr[title] { text-decoration: underline dotted var(--tcts-brand); }
@media print { a { text-decoration: none; } }

/* 1.8.3: dropdown with fly-out submenus. Link CSS class "flyout" on a top-level item: the second level is a list ("contents"),
   the third and deeper levels open to the right on hover or focus ("fly-left" opens to the left). On narrow screens they stay nested. */
@media (min-width: 1081px) {
  .nav-item--l1.flyout > .nav-dropdown { min-width: var(--dd-fly-min, 300px); }
  .flyout .nav-sub .nav-item { position: relative; }
  .flyout .nav-sub .has-children > .nav-link::after { content: "›"; margin-left: auto; padding-left: 12px; font-size: 1.2em; line-height: 1; color: var(--tcts-muted); }
  .flyout .nav-sub .nav-sub { position: absolute; top: calc(-1 * var(--dd-pad, 16px) + 0px); left: calc(100% + 6px); min-width: var(--dd-fly-min3, 280px); width: max-content; max-width: 90vw; background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--dd-radius, 18px); box-shadow: var(--tcts-shadow); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 62; }
  .flyout .nav-sub .nav-sub::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
  .flyout .nav-sub .nav-item:hover > .nav-sub, .flyout .nav-sub .nav-item:focus-within > .nav-sub { opacity: 1; visibility: visible; }
  .flyout.fly-left .nav-sub .nav-sub { left: auto; right: calc(100% + 6px); }
  .flyout.fly-left .nav-sub .nav-sub::before { left: auto; right: -10px; }
  .flyout.fly-left .nav-sub .has-children > .nav-link::after { content: "‹"; margin-left: 0; margin-right: auto; order: -1; padding: 0 12px 0 0; }
  .flyout .nav-sub .nav-link, .flyout .nav-sub .has-children > .nav-link--heading { font-size: var(--dd-fly-font, var(--dd-font, var(--tcts-fs-m, 15px))); }
  .flyout .nav-sub--l3 .nav-link, .flyout .nav-sub--l4 .nav-link { padding-block: 8px; font-weight: 600; }
}

/* 1.8.4: in a fly-out menu a "Menu Heading" item that has children (a section without its own address) looks like a normal item */
@media (min-width: 1081px) {
  .flyout .nav-sub .has-children > .nav-link--heading { padding: 10px 12px; color: var(--tcts-ink); font-size: var(--dd-font, var(--tcts-fs-m, 15px)); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: default; }
  .flyout .nav-sub .has-children:hover > .nav-link--heading, .flyout .nav-sub .has-children:focus-within > .nav-link--heading { background: var(--tcts-tint); border-radius: 12px; }
}

/* 1.8.6: on phones the sections of a fly-out menu are an accordion: a tap on a section opens its items under it */
@media (max-width: 1080px) {
  .flyout .nav-sub .has-children > .nav-link { position: relative; padding-right: 40px; cursor: pointer; color: var(--tcts-ink); font-size: var(--dd-font, var(--tcts-fs-m, 15px)); font-weight: 650; letter-spacing: 0; text-transform: none; }
  .flyout .nav-sub .has-children > .nav-link::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--tcts-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
  .flyout .nav-sub .has-children.is-open > .nav-link::after { transform: rotate(-135deg); margin-top: -2px; }
  .flyout .nav-sub .nav-sub { display: none; margin: 0 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--tcts-line); }
  .flyout .nav-sub .has-children.is-open > .nav-sub { display: grid; }
}

/* 1.8.7: previous / next article of the category */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 8px; }
.article-nav__link { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--tcts-line); border-radius: 14px; background: #fff; color: var(--tcts-ink); text-decoration: none; min-width: 0; transition: border-color .15s, background .15s; }
.article-nav__link:hover, .article-nav__link:focus-visible { border-color: var(--tcts-brand); background: var(--tcts-tint); }
.article-nav__link small { color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); }
.article-nav__link span { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav__link--next { grid-column: 2; text-align: right; }
.article-nav__link--prev:only-child { grid-column: 1; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav__link--next { grid-column: 1; text-align: left; } }

/* 1.8.7: user profile / personal data page (com_users): compact cards in two columns instead of one long stretched form */
.com-users-profile__edit-form, .com-users-profile { max-width: 920px; }
.com-users-profile__edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; padding: 0; border: 0; background: none; }
.com-users-profile__edit-form > fieldset { margin: 0; padding: 18px 20px; border: 1px solid var(--tcts-line); border-radius: 16px; background: #fff; min-width: 0; display: grid; gap: 12px; }
.com-users-profile__edit-form > fieldset legend { float: none; display: block; position: static; width: 100%; margin: 0 0 4px; padding: 0; font-size: var(--tcts-fs-base, 17px); font-weight: 800; }
.com-users-profile__edit-form .com-users-methods-list-method-header :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,div) { font-size: var(--tcts-fs-m, 15px); font-weight: 700; margin: 0; }
.com-users-profile__edit-form .control-group { margin: 0; display: grid; gap: 4px; }
.com-users-profile__edit-form .control-label label { font-size: var(--tcts-fs-s, 13px); font-weight: 600; color: var(--tcts-muted); }
.com-users-profile__edit-form .form-control, .com-users-profile__edit-form .form-select { padding-block: 8px; }
.com-users-profile__edit-form .password-group .input-group { display: flex; flex-wrap: nowrap; gap: 6px; }
.com-users-profile__edit-form .password-group .input-group > .form-control { flex: 1 1 auto; min-width: 0; }
.com-users-profile__edit-form .password-group .input-group > button { flex: 0 0 auto; padding: 0 10px; min-width: 40px; }
.com-users-profile__edit-form .password-group meter { width: 100%; height: 6px; }
.com-users-profile__edit-form #password-0, .com-users-profile__edit-form #password-1 { font-size: var(--tcts-fs-s, 13px); }
.com-users-profile__edit-form .com-users-profile__multifactor { grid-column: 1 / -1; }
.com-users-profile__edit-form #com-users-methods-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.com-users-profile__edit-form .com-users-methods-list-method { margin: 0 !important; border: 1px solid var(--tcts-line); border-radius: 12px; overflow: hidden; }
.com-users-profile__edit-form .com-users-methods-list-method-header { padding: 10px 12px; background: var(--tcts-tint); gap: 10px !important; }
.com-users-profile__edit-form .com-users-methods-list-method-header img { max-height: 28px; width: auto; }
.com-users-profile__edit-form .com-users-methods-list-method-header .com-users-methods-list-method-title { font-size: var(--tcts-fs-m, 15px); font-weight: 700; }
.com-users-profile__edit-form .com-users-methods-list-method-records-container { padding: 10px 12px; font-size: var(--tcts-fs-s, 13px); }
.com-users-profile__edit-submit { grid-column: 1 / -1; }
.com-users-profile__edit-submit .controls { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .com-users-profile__edit-form { grid-template-columns: 1fr; } }

/* 1.8.7: contact page (com_contact): compact card form, name and e-mail side by side */
.com-contact__form { margin-top: 24px; max-width: 760px; }
.com-contact__form #contact-form { padding: 20px 22px; border: 1px solid var(--tcts-line); border-radius: 16px; background: #fff; }
.com-contact__form #contact-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.com-contact__form #contact-form legend { grid-column: 1 / -1; float: none; width: 100%; margin: 0 0 2px; padding: 0; font-size: var(--tcts-fs-base, 17px); font-weight: 800; }
.com-contact__form #contact-form .control-group { margin: 0; display: grid; gap: 4px; min-width: 0; }
.com-contact__form #contact-form .field-spacer { grid-column: 1 / -1; font-size: var(--tcts-fs-s, 13px); color: var(--tcts-muted); }
.com-contact__form #contact-form .control-group:has(#jform_contact_message, #jform_contact_emailmsg, #jform_contact_email_copy, .captcha-container, [name=captcha]), .com-contact__form #contact-form .control-group:has(#jform_contact_emailmsg) { grid-column: 1 / -1; }
.com-contact__form #contact-form .control-group:has(#jform_contact_message) { grid-column: 1 / -1; }
.com-contact__form #contact-form .control-label label { font-size: var(--tcts-fs-s, 13px); font-weight: 600; color: var(--tcts-muted); }
.com-contact__form #contact-form .form-control, .com-contact__form #contact-form input[type=text], .com-contact__form #contact-form input[type=email] { width: 100%; padding-block: 9px; }
.com-contact__form #contact-form textarea { width: 100%; height: 130px; min-height: 90px; resize: vertical; padding: 10px 12px; }
.com-contact__form #contact-form .control-group:has(.btn) { grid-column: 1 / -1; }
.com-contact__form #contact-form .btn { padding: 11px 26px; }
.com-contact__form #contact-form + * , .com-contact__info { max-width: 760px; }
@media (max-width: 640px) { .com-contact__form #contact-form fieldset { grid-template-columns: 1fr; } }
.com-contact h2 { font-size: var(--tcts-fs-l, 20px); margin: 22px 0 10px; }
.com-contact__form #contact-form .control-group { gap: 2px; }
.com-contact__form #contact-form .control-group:has(.btn) { margin-top: 4px; }
.com-contact__miscinfo, .com-contact__info { margin-bottom: 8px; }
.com-contact dl, .com-contact .contact-address { margin: 0 0 8px; padding: 0; }
.com-contact dd { margin: 0 0 2px; }

/* 1.8.12: contact page: the form stands to the right of the contact data (wide screens), the form is more compact */
@media (min-width: 1000px) {
  .com-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); column-gap: 36px; align-items: start; }
  .com-contact > * { grid-column: 1; }
  .com-contact > :is(h2, h3):has(+ .com-contact__form) { grid-column: 2; grid-row: 1; margin-top: 0; }
  .com-contact > .com-contact__form { grid-column: 2; grid-row: 2 / span 30; margin-top: 0; max-width: none; }
}
.com-contact__form #contact-form { padding: 14px 16px; border-radius: 12px; }
.com-contact__form #contact-form fieldset { gap: 8px 12px; }
.com-contact__form #contact-form legend { font-size: var(--tcts-fs-base, 17px); }
.com-contact__form #contact-form .field-spacer { display: none; }
.com-contact__form #contact-form .control-label label { font-size: var(--tcts-fs-s, 13px); }
.com-contact__form #contact-form .form-control, .com-contact__form #contact-form input[type=text], .com-contact__form #contact-form input[type=email] { padding-block: 6px; font-size: var(--tcts-fs-m, 15px); }
.com-contact__form #contact-form textarea { height: 90px; min-height: 70px; padding: 8px 10px; }
.com-contact__form #contact-form .btn { padding: 8px 20px; }
.hero__media-link { flex: 1 1 100%; min-width: 0; display: flex; justify-content: center; color: inherit; text-decoration: none; }
.hero__media-link img { max-width: 100%; height: auto; }

/* ---------- ui-state: empty / limit / unavailable / start (style guide v1, 1.8.15) ----------
   <div class="ui-state ui-state--empty"><i class="ui-state__icon fa-light fa-magnifying-glass"></i>
     <div class="ui-state__title">Ничего не найдено</div><div class="ui-state__text">Подсказка</div>
     <a class="btn btn--primary ui-state__action" href="#">Действие</a></div>
   Modifiers: --empty (neutral), --start (tint), --limit (warn), --down (err), --info. */
.ui-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 24px; margin: 16px 0; border: 1px dashed var(--tcts-line-strong, #C9D6CE); border-radius: var(--tcts-radius, 16px); background: var(--tcts-white, #fff); color: var(--tcts-ink, #14211A); }
.ui-state__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--tcts-tint, #EAF4EE); color: var(--tcts-brand, #146C43); margin-bottom: 4px; }
.ui-state__title { font-size: var(--tcts-fs-l, 20px); font-weight: 700; }
.ui-state__text { font-size: var(--tcts-fs-m, 15px); color: var(--tcts-muted, #4D5E55); max-width: 520px; }
.ui-state__action { margin-top: 8px; }
.ui-state--start { border-style: solid; border-color: var(--tcts-line, #E3EAE5); background: var(--tcts-tint, #EAF4EE); }
.ui-state--start .ui-state__icon { background: var(--tcts-white, #fff); }
.ui-state--limit { border-style: solid; border-color: #F2DDB0; background: var(--tcts-warn-bg, #FFF4DE); }
.ui-state--limit .ui-state__icon { background: #fff; color: var(--tcts-warn, #7A4B00); }
.ui-state--down { border-style: solid; border-color: var(--tcts-err-line, #F3C9C4); background: var(--tcts-err-bg, #FFF1F0); }
.ui-state--down .ui-state__icon { background: #fff; color: var(--tcts-err, #A3261A); }
.ui-state--info { border-style: solid; border-color: #C3D4EE; background: var(--tcts-info-bg, #E6EEF9); }
.ui-state--info .ui-state__icon { background: #fff; color: var(--tcts-info, #1D4F91); }
.ui-state--compact { flex-direction: row; text-align: left; padding: 14px 18px; gap: 14px; }
.ui-state--compact .ui-state__icon { width: 40px; height: 40px; font-size: 18px; margin: 0; flex: none; }

/* ---------- 1.8.16: site search (com_finder) — field and button in one row, same height ---------- */
.mod-breadcrumbs .mod-breadcrumbs__here + li::before, .mod-breadcrumbs .mod-breadcrumbs__divider + li::before, .mod-breadcrumbs .mod-breadcrumbs__here + .breadcrumb-item::before, .mod-breadcrumbs .mod-breadcrumbs__divider + .breadcrumb-item::before, .mod-breadcrumbs > li:first-child::before { content: none; }
.com-finder #finder-search, .com-finder .js-finder-searchform { max-width: 820px; margin-bottom: 20px; }
.com-finder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.com-finder .form-inline { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.com-finder .form-inline > label, .com-finder label[for="q"] { font-weight: 600; font-size: var(--tcts-fs-m, 15px); margin: 0; }
.com-finder .input-group { display: flex; flex-wrap: nowrap; align-items: stretch; width: 100%; gap: 0; }
.com-finder .input-group > .form-control, .com-finder .input-group > input[type="text"], .com-finder #q { flex: 1 1 auto; min-width: 0; width: 100%; height: 52px; box-sizing: border-box; margin: 0; padding: 0 16px; font-size: var(--tcts-fs-base, 17px); border: 1.5px solid var(--tcts-line-strong, #C9D6CE); border-right: 0; border-radius: var(--tcts-radius-s, 10px) 0 0 var(--tcts-radius-s, 10px); background: var(--tcts-white, #fff); }
.com-finder .input-group > .btn, .com-finder .input-group > button { flex: 0 0 auto; height: 52px; box-sizing: border-box; margin: 0; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--tcts-fs-m, 15px); font-weight: 600; line-height: 1; border: 1.5px solid var(--tcts-brand, #146C43); border-radius: 0 var(--tcts-radius-s, 10px) var(--tcts-radius-s, 10px) 0; background: var(--tcts-brand, #146C43); color: #fff; vertical-align: top; transform: none; }
.com-finder .input-group > .btn:hover, .com-finder .input-group > button:hover { background: var(--tcts-dark, #0B3B27); border-color: var(--tcts-dark, #0B3B27); }
.com-finder .input-group > .btn + .btn { border-radius: 0 var(--tcts-radius-s, 10px) var(--tcts-radius-s, 10px) 0; margin-left: 6px; }
.com-finder .input-group:has(> .btn + .btn) > .btn:not(:last-child) { border-radius: 0; }
.com-finder .input-group > .form-control:focus, .com-finder #q:focus { border-color: var(--tcts-brand, #146C43); outline: 3px solid color-mix(in srgb, var(--tcts-brand, #146C43) 25%, transparent); outline-offset: 0; z-index: 1; }
.com-finder .awesomplete { flex: 1 1 auto; min-width: 0; display: block; }
.com-finder .awesomplete > input { width: 100%; }
.com-finder__explained, .com-finder #search-query-explained { font-size: var(--tcts-fs-m, 15px); color: var(--tcts-muted, #4D5E55); margin: 12px 0 20px; }
@media (max-width: 560px) { .com-finder .input-group > .btn, .com-finder .input-group > button { padding: 0 16px; } }

/* 1.8.17: service illustrations (SVG, 4:3) are shown whole, not cropped to 16:10 */
.alt-item__media img[src$=".svg"] { aspect-ratio: 4 / 3; height: auto; object-fit: contain; }
/* SSAI: suggestions under the header search field (1.8.20) */
.header-search.ssai--header { position: relative; }
.ssai--header .ssai__suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1050; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--tcts-border, #dee2e6); border-radius: var(--tcts-radius, 6px); box-shadow: 0 6px 18px rgba(0,0,0,.08); font-size: var(--tcts-fs-s, 13px); max-height: 320px; overflow: auto; }
.ssai--header .ssai__suggest[hidden] { display: none; }
.ssai--header .ssai__suggest li, .ssai--header .ssai__suggest a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; }
.ssai--header .ssai__suggest li:hover, .ssai--header .ssai__suggest [aria-selected="true"] { background: color-mix(in srgb, var(--tcts-brand) 8%, #fff); }

/* 1.8.21: on small screens the green top bar stays on top while scrolling and holds the sign-in door (above the burger) */
.topbar__door { display: none; }
@media (max-width: 1080px) {
  .topbar { position: sticky; top: 0; z-index: 70; }
  .has-sticky-header .site-header { top: var(--tcts-topbar-h, 0px); }
  .topbar__door { display: inline-flex; margin-left: auto; }
  .topbar__inner { padding-block: 2px; }
  .topbar .auth-door--bar { --door: #fff; --door-dark: #cfe8d8; width: 40px; height: 40px; }
  .topbar .auth-door--bar.auth-door--out { --door: #d3dad6; --door-dark: #aab5af; }
  .topbar .auth-door--bar .auth-door__gap { fill: rgba(255, 255, 255, .18); }
  .topbar .auth-door--bar .auth-door__knob { fill: var(--tcts-dark); }
  .topbar .auth-door--bar:hover, .topbar .auth-door--bar:focus-visible { background: rgba(255, 255, 255, .12); }
  .site-header--bar-door .site-header__actions .auth-door--header { display: none; }
}

/* 1.8.21: footer emblem "green": no white plate, white letters on the footer background, thin white ring around the globe */
.brand--ring { gap: 16px; padding: 4px 0 4px 4px; }
.brand--ring .brand__mark { box-sizing: content-box; width: 40px; height: 40px; padding: 2px; border: 1.5px solid #fff; border-radius: 50%; background: var(--tcts-dark); object-fit: contain; clip-path: circle(50%); }
.brand--ring .brand__word { height: 22px; fill: #fff; }

/* 1.8.23: the drop-down panel closes with a short delay (0.25 s), so a slightly off path of the mouse does not close it; it opens at once */
@media (min-width: 1081px) {
  .nav-item--l1 > .nav-dropdown { transition: opacity .15s .25s, visibility 0s .4s; }
  .nav-item--l1:hover > .nav-dropdown, .nav-item--l1:focus-within > .nav-dropdown, .nav-item--l1.is-open > .nav-dropdown { transition: opacity .15s, visibility 0s; }
}

/* 1.8.23: author block of AI Article Generator (classes of the generator 2.21.34+: aiag-author-text, -line, -note; the old random class stays as a fallback): on phones smaller type, every line in one row (too long a line is cut with an ellipsis) */
@media (max-width: 560px) {
  .aiag-author-text, .aiag-div-9f0e4d { font-size: clamp(11px, calc(11px + 2 * (100vw - 360px) / 200), 13px); line-height: 1.5; min-width: 0; }
  .aiag-author-text > *, .aiag-author-line, .aiag-author-note { display: block; margin-block: 2px; font-size: inherit; line-height: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .aiag-div-9f0e4d :is(p, div, span, strong, b, a, time) { font-size: inherit; line-height: inherit; }
  .aiag-div-9f0e4d :is(p, div) { min-width: 0; margin-block: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 1.8.26: bottom strip on phones: icons without captions (phone, messengers, chat bot), lower and thinner; the chat bot icon is added by template.js */
@media (max-width: 768px) {
  .float-actions { left: 10px; right: 10px; bottom: 8px; gap: 6px; padding: 5px; border-radius: 14px; }
  .float-actions__btn { min-height: 42px; border-radius: 10px; }
  .float-actions__btn svg { width: 22px; height: 22px; }
  .float-actions__btn--chat { padding: 0; border: 0; cursor: pointer; background: var(--tcts-dark); color: #fff; font: inherit; }
  body:has(.float-actions) .site-footer { padding-bottom: 66px; }
  body:has(.float-actions) .to-top { bottom: 72px; }
}

.float-actions__btn svg.is-brand { fill: currentColor; stroke: none; }
