/* TECH352 bundled standalone Sozvezdie overrides in prior link order; CSS source bytes unchanged. */
/* 23.10.2026: Do not expose obsolete Bitrix/Bitrix24 lead forms.
   Actual form markup is disabled in PHP templates. Does not affect GetCourse embeds. */
[data-event="jqm"][data-param-id],
.subscribe-block-wrapper,
form[name^="SIMPLE_FORM_"],
form[name^="SIMPLE_FORM"],
form[name^="SIMPLE_FORM"],
form[action*="/bitrix/components/bitrix/form.result.new/"] {
  display: none !important;
}
#sz-cookie-yes:focus-visible,
#sz-cookie-no:focus-visible,
#sz-cookie-settings:focus-visible {
  outline: 3px solid #b41818;
  outline-offset: 3px;
}


/* Сoзвездие · Светлый вариант А · 2026-10-23
   Clean responsive cards. Keep original Bitrix hero, editor and all course data. */
:root{--sz-a-ink:#14213a;--sz-a-muted:#657080;--sz-a-red:#b41826;--sz-a-line:#eadfda;--sz-a-paper:#fffdfa}
.sz-a-events{box-sizing:border-box;max-width:1280px;margin:0 auto;padding:30px 20px 46px;color:var(--sz-a-ink)}
.sz-a-events *{box-sizing:border-box}
.sz-a-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 22px}
.sz-a-events .sz-a-section-head h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,3vw,38px);font-weight:700;letter-spacing:-.025em;line-height:1.17;color:var(--sz-a-ink);margin:0 0 8px;padding:0}
.sz-a-eyebrow{font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--sz-a-red);font-weight:700;margin:0 0 9px}
.sz-a-section-intro{font-size:16px;line-height:1.55;color:var(--sz-a-muted);margin:0;max-width:630px}
.sz-a-all-link{font-size:17px;line-height:1.3;font-weight:700;color:var(--sz-a-red)!important;display:inline-flex;align-items:center;gap:8px;min-height:46px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.sz-a-all-link:hover{text-decoration:none}
.sz-a-event-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sz-a-event-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--sz-a-line);border-radius:16px;box-shadow:0 4px 22px rgba(42,36,42,.055);transition:box-shadow .18s ease,transform .18s ease}
.sz-a-event-card:hover{box-shadow:0 10px 30px rgba(42,36,42,.11);transform:translateY(-2px)}
.sz-a-event-image{height:125px;width:100%;overflow:hidden;background:#f5ede8}
.sz-a-event-image img{width:100%;height:100%;object-fit:cover;display:block}
.sz-a-event-body{padding:18px 17px 19px;display:flex;flex:1;flex-direction:column}
.sz-a-event-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;margin-bottom:12px;color:var(--sz-a-ink)}
.sz-a-event-date{color:var(--sz-a-red);font-size:19px;line-height:1.2;font-weight:800}
.sz-a-event-time{color:#505c71;font-size:15px;font-weight:700}
.sz-a-msk{font-size:12px;color:var(--sz-a-muted)}
.sz-a-event-type{align-self:flex-start;border-radius:30px;background:#fcf0ef;color:#a31b27;padding:5px 11px;margin-bottom:10px;font-size:12px;font-weight:700;line-height:1.4}
.sz-a-events .sz-a-event-card h3{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:700;line-height:1.24;letter-spacing:-.02em;color:var(--sz-a-ink);margin:0 0 9px;padding:0;overflow-wrap:anywhere}
.sz-a-event-summary{font-size:16px;line-height:1.48;color:#4c5260;flex:1;margin:0 0 12px;overflow-wrap:anywhere}
.sz-a-event-details{font-size:14px;line-height:1.48;color:#58606b;margin:auto 0 14px;overflow-wrap:anywhere}
.sz-a-event-details strong{font-weight:700;color:var(--sz-a-ink)}
.sz-a-event-details div+div{margin-top:4px}
.sz-a-event-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto}
.sz-a-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border-radius:9px;font-size:16px;line-height:1.25;font-weight:700;text-align:center;text-decoration:none!important;transition:background .15s ease,color .15s ease}
.sz-a-btn-primary,.sz-a-btn-primary:focus{background:var(--sz-a-red);color:#fff!important;border:1px solid var(--sz-a-red)}
.sz-a-btn-primary:hover{background:#90121f;color:#fff!important}
.sz-a-btn-outline{background:#fff;border:1px solid var(--sz-a-red);color:var(--sz-a-red)!important}
.sz-a-btn-outline:hover{background:#fff1ef}
.sz-a-btn:focus-visible,.sz-a-all-link:focus-visible{outline:3px solid #bb6827;outline-offset:3px}
.sz-a-events-empty{padding:26px 24px;background:#fff6ef;border:1px solid var(--sz-a-line);border-radius:14px;font-size:17px;line-height:1.55}
.sz-a-events-all{padding-top:28px}
.sz-a-events-all .sz-a-event-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sz-a-events-all .sz-a-event-card .sz-a-event-image{height:155px}
.sz-a-events-all .sz-a-event-card h3{font-size:23px}
/* Keep the existing manually editable Bitrix slider, but soften its framing. */
body .banners-big .slides .item,body .front .banners-big .item{overflow:hidden}
@media(max-width:1100px){
  .sz-a-event-grid,.sz-a-events-all .sz-a-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sz-a-event-image{height:165px}
  .sz-a-events{padding-inline:16px}
}
@media(max-width:640px){
  .sz-a-events{padding:20px 14px 32px}
  .sz-a-section-head{gap:6px 10px;margin-bottom:18px}
  .sz-a-events .sz-a-section-head h2{font-size:30px}
  .sz-a-section-intro{font-size:16px;line-height:1.52}
  .sz-a-eyebrow{font-size:11px}
  .sz-a-event-grid,.sz-a-events-all .sz-a-event-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .sz-a-event-card{border-radius:14px;box-shadow:0 3px 14px rgba(42,36,42,.045)}
  .sz-a-event-card:hover{transform:none}
  .sz-a-event-image,.sz-a-events-all .sz-a-event-card .sz-a-event-image{height:150px}
  .sz-a-event-body{padding:17px}
  .sz-a-events .sz-a-event-card h3,.sz-a-events-all .sz-a-event-card h3{font-size:23px;line-height:1.3}
  .sz-a-event-summary{font-size:17px}
  .sz-a-event-date{font-size:19px}
  .sz-a-event-time{font-size:16px}
  .sz-a-event-details{font-size:16px}
  .sz-a-btn{font-size:17px;min-height:49px;flex:1 1 135px}
  .sz-a-all-link{font-size:16px;min-height:45px}
}
@media(prefers-reduced-motion:reduce){.sz-a-event-card,.sz-a-btn{transition:none}}

/* Keep original portraits intact in schedule images. */
.sz-a-event-image img{object-fit:contain;background:#f8f1ec}

/* 26.10.2026: compact, touch-native homepage events on narrow screens.
   All Bitrix cards and actions stay in the DOM; full /events/ remains unchanged. */
@media (max-width:640px){
  .sz-a-events-home .sz-a-event-grid{
    display:grid;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(225px,88%);
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:#b41826 #f3e9e5;
    padding-bottom:12px;
  }
  .sz-a-events-home .sz-a-event-grid > .sz-a-event-card{
    scroll-snap-align:start;
  }
  .sz-a-events-home .sz-a-event-grid:focus-visible{
    outline:3px solid #b41826;
    outline-offset:2px;
  }
}

/* 26.10.2026: one mobile-only shortcut to the ten existing courses.
   Events and their CMS edit actions are unchanged; no desktop duplication. */
.sz-a-course-shortcut{display:none}
@media(max-width:640px){
 .sz-a-events-home .sz-a-course-shortcut{
   display:inline-flex;align-items:center;justify-content:center;
   min-height:44px;padding:8px 12px;border:2px solid #b61228;
   border-radius:8px;background:#b61228;color:#fff!important;
   font-size:15px;line-height:1.25;font-weight:700;text-decoration:none
 }
 .sz-a-events-home .sz-a-course-shortcut:hover,
 .sz-a-events-home .sz-a-course-shortcut:focus-visible{
   background:#911328;border-color:#911328;color:#fff!important
 }
 .sz-a-events-home .sz-a-course-shortcut:focus-visible{
   outline:3px solid #ad7424;outline-offset:3px
 }
}


/* 26.10.2026: finger-sized GetCourse enrollment CTAs on course detail pages.
   Bitrix course infoblock text, links, prices and desktop styling untouched. */
@media (max-width: 991px) {
  body .detail.services .introtext.order.wides
  .tabletolist.rh .row_data.html a.btn.btn-default[href^="https://school.sozvezdiebt.online/"] {
    min-height: 48px;
    font-size: 14px;
    line-height: 20px;
    padding: 13px 16px;
  }
}

/* 26.10.2026: homepage schedule cards – full-bleed portraits and calmer titles.
   Keep original editable images, all text, action links and /events/ styling. */
.sz-a-events-home .sz-a-event-image{height:160px}
.sz-a-events-home .sz-a-event-image img{
  object-fit:cover;
  object-position:center 18%;
  background:#f5ede8
}
body .sz-a-events.sz-a-events-home .sz-a-event-card h3{
  font-size:19px;
  line-height:1.28;
  letter-spacing:-.015em;
  overflow-wrap:break-word
}
@media(max-width:640px){
  .sz-a-events-home .sz-a-event-image{height:155px}
  body .sz-a-events.sz-a-events-home .sz-a-event-card h3{font-size:18px;line-height:1.3}
}

/* Proposal 2026-10-28. Events: photos fill the frame without geometric stretching. */
@media (min-width: 1120px) {
  .sz-a-events.sz-a-events-all .sz-a-event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 850px) and (max-width: 1119px) {
  .sz-a-events.sz-a-events-all .sz-a-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 641px) and (max-width: 849px) {
  .sz-a-events.sz-a-events-all .sz-a-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sz-a-events.sz-a-events-all .sz-a-event-card .sz-a-event-image {
  height: 174px;
}
.sz-a-events.sz-a-events-all .sz-a-event-image img {
  object-fit: cover;
  object-position: center 25%;
}
.sz-a-events.sz-a-events-all .sz-a-event-card h3 {
  font-size: 19px;
  line-height: 1.28;
}
.sz-a-events.sz-a-events-all .sz-a-event-body {
  padding: 17px 15px 18px;
}
.sz-a-events.sz-a-events-all .sz-a-event-summary {
  font-size: 15px;
}
@media (max-width: 640px) {
  .sz-a-events.sz-a-events-all .sz-a-event-card .sz-a-event-image {
    height: 190px;
  }
  .sz-a-events.sz-a-events-all .sz-a-event-card h3 { font-size: 21px; }
  .sz-a-events.sz-a-events-all .sz-a-event-summary { font-size: 16px; }
}

/* Training: scope to the catalog pages marked by the existing landing anchor.
   Certificate gallery, news, services, and course detail URLs are unaffected. */
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin: 0 !important;
  align-items: stretch;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--sz-a-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(42,36,42,.055);
  transition: box-shadow .18s ease, transform .18s ease;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item:hover {
  box-shadow: 0 10px 30px rgba(42,36,42,.11);
  transform: translateY(-2px);
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  background: #fff;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .item-inner > a:first-child {
  display: block;
  flex: 0 0 auto;
  width: 100% !important;
  max-width: none !important;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5ede8;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .item-inner > a:first-child > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 0;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 17px 20px !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .title a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--sz-a-ink) !important;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .preview_text {
  font-family: Roboto, Arial, sans-serif;
  color: #4c5260 !important;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .preview_text * {
  color: inherit !important;
  font-family: inherit !important;
}
@media (max-width: 959px) {
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 640px) {
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper {
    padding: 18px 17px !important;
  }
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .title a {
    font-size: 21px !important;
  }
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item .text-wrapper .preview_text {
    font-size: 16px;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item { transition: none; }
  body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox > .col-md-4 > .item:hover { transform: none; }
}

/* 28.10.2026: Bootstrap .row clearfix pseudo-elements were occupying
   implicit CSS grid cells and shifting the first two course cards right.
   Disable only for this training catalogue; keep clearfix elsewhere. */
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox::before,
body:has(#sz-training-course-list) .services_left_block .sections.v2.item-views > .items.row.services.flexbox::after {
  display: none !important;
  content: none !important;
}


/* Sozvezdie / Light A, typographic refinement.
   Headings use system Georgia (Cyrillic); text uses existing Roboto.
   No third-party font downloads or changes to the editable Bitrix banner. */
:root {
  --sz-display-font: Georgia, "Times New Roman", serif;
  --sz-body-font: "Roboto", Arial, sans-serif;
}
/* Schedule and buttons – legible for adults 42+ and narrow phones. */
.sz-a-events {
  font-family: var(--sz-body-font);
  font-size: 17px;
  line-height: 1.58;
}
.sz-a-events .sz-a-section-intro,
.sz-a-events .sz-a-event-summary { font-size: 17px; line-height: 1.58; }
.sz-a-events .sz-a-event-details { font-size: 15px; line-height: 1.55; }
.sz-a-events .sz-a-section-head h2,
.sz-a-events .sz-a-event-card h3 {
  font-family: var(--sz-display-font);
  letter-spacing: -0.015em;
}
.sz-a-events .sz-a-btn { min-height: 48px; font-family: var(--sz-body-font); }
.sz-a-events .sz-a-event-card { border-color: #e8deda; }
/* Homepage course carousel – preserve Slick/Bitrix component and editor. */
body.index .front-services_new .title_block h3,
body.index .company_1 h1,
body.index .item-views.reviews .title_block h3 {
  font-family: var(--sz-display-font);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #182238;
}
body.index .front-services_new .title_block h3 { font-size: 35px !important; }
body.index .front-services_new .services_slick_slider .item.shadow-light-hover > .inner-wrap {
  border: 1px solid #eae1df;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31,35,46,0.055);
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .text {
  background: #fff;
  padding: 16px 16px 18px;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .title > a {
  font-family: var(--sz-display-font);
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.32 !important;
  letter-spacing: -0.015em;
  color: #182238 !important;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .title {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 11px;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .cont {
  height: auto !important;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .preview_text {
  font-family: var(--sz-body-font);
  font-size: 16px;
  line-height: 1.58;
  color: #434b56;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .preview_text * {
  color: inherit !important;
}
body.index .front-services_new .services_slick_slider .item.shadow-light-hover .foot_button {
  font-family: var(--sz-body-font);
  min-height: 46px;
  font-size: 16px !important;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.index .company_1 .company,
body.index .company_1 .company p,
body.index .company_1 .company li {
  font-family: var(--sz-body-font);
  font-size: 17px;
  line-height: 1.65;
  color: #363d4b;
}
body.index .company_1 .company h2 {
  font-family: var(--sz-display-font);
  font-size: 27px;
  line-height: 1.28;
  color: #182238;
}
.page-top-main h1 {
  font-family: var(--sz-display-font);
  font-size: 32px;
  line-height: 1.24;
  color: #182238;
}
body.index .front-services_new a:focus-visible,
.sz-a-events a:focus-visible {
  outline: 3px solid #bb6827;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  body.index .front-services_new .title_block h3 { font-size: 30px !important; }
  body.index .front-services_new .services_slick_slider .item.shadow-light-hover .title > a {
    font-size: 21px !important;
  }
  body.index .front-services_new .services_slick_slider .item.shadow-light-hover .preview_text {
    font-size: 17px;
  }
  body.index .company_1 .company,
  body.index .company_1 .company p,
  body.index .company_1 .company li { font-size: 17px; line-height: 1.62; }
  body.index .company_1 .company h2 { font-size: 25px; }
  .page-top-main h1 { font-size: 29px; }
  .sz-a-events .sz-a-event-summary { font-size: 17px; }
  .sz-a-events .sz-a-event-details { font-size: 16px; }
  .sz-a-events .sz-a-btn { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .sz-a-events .sz-a-event-card { transition: none; }
}



/* Variant A / 24.10.2026: finger-friendly controls without replacing the
   manually editable Bitrix banner or its slide links. */
@media (max-width: 767px) {
  body.index .banners-big .buttons a.btn.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px 20px 10px !important;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
  #mobileheader .inline-search-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    /* Keep the compact 63px mobile header on 320–360px phones. */
    margin-left: -9px;
    margin-right: -9px;
    border-radius: 8px;
  }
  #mobileheader a.personal-link.avt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.3 !important;
  }
}
body.index .banners-big .buttons a.btn:focus-visible,
#mobileheader .inline-search-show:focus-visible,
#mobileheader a.personal-link.avt:focus-visible,
#mobileheader .logo a:focus-visible {
  outline: 3px solid #bb6827;
  outline-offset: 3px;
}

/* Variant A: tablet devices still use the mobile header up to 991px.
   Match the phone's 44px targets without changing header height. */
@media (min-width: 768px) and (max-width: 991px) {
  #mobileheader .inline-search-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: -9px;
    margin-right: -9px;
    border-radius: 8px;
  }
  #mobileheader a.personal-link.avt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.3 !important;
  }
}

/* Make keyboard navigation discoverable in the legacy mobile menu. */
#mobilemenu a:focus-visible {
  outline: 3px solid #bb6827 !important;
  outline-offset: -4px;
  background-color: #fff2e9;
}

/* Reserve the editable Bitrix hero's final height before FlexSlider initializes.
   This avoids pushing the schedule down after the first image loads. */
@media (max-width: 767px) {
  body.index .banners-big {
    min-height: 240px;
  }
}
@media (min-width: 768px) {
  body.index .banners-big {
    min-height: 492px;
  }
}

/* Tablet-width correction for the legacy hero slider's 9px overflow.
   The Bitrix slider and editable slides remain unchanged. */
@media (min-width: 700px) and (max-width: 991px) {
  body.index .main.banner-auto {
    overflow-x: hidden;
    overflow-x: clip;
  }
}

/* Light Variant A: cookie choice remains optional and fully reversible.
   Only the panel's presentation is changed; tracking logic stays in footer.php. */
#sz-cookie-panel {
  box-sizing: border-box;
  border-color: var(--sz-a-line, #eadfda);
  border-radius: 16px;
  background: var(--sz-a-paper, #fffdfa);
  color: var(--sz-a-ink, #14213a);
  box-shadow: 0 12px 34px rgba(42, 36, 42, .13);
  font-family: var(--sz-body-font);
  font-size: 16px;
  line-height: 1.55;
}
#sz-cookie-heading {
  display: block;
  font: 700 24px/1.2 var(--sz-display-font);
  color: var(--sz-a-ink, #14213a);
}
#sz-cookie-panel a {
  color: #8c1521;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#sz-cookie-panel .sz-cookie-actions button {
  min-height: 48px;
  border-radius: 9px;
  padding: 11px 16px;
  font: 700 16px/1.35 var(--sz-body-font);
}
#sz-cookie-panel #sz-cookie-yes {
  border-color: var(--sz-a-red, #b41826);
  background: var(--sz-a-red, #b41826);
  color: #fff;
}
#sz-cookie-panel #sz-cookie-no {
  border-color: #b9a8a5;
  background: #fff;
  color: var(--sz-a-ink, #14213a);
}
#sz-cookie-settings {
  min-height: 44px;
  border-radius: 9px;
  font: 600 14px/1.3 var(--sz-body-font);
}
#sz-cookie-panel a:focus-visible,
#sz-cookie-panel button:focus-visible,
#sz-cookie-settings:focus-visible {
  outline: 3px solid #bb6827;
  outline-offset: 3px;
}
@media (max-width: 420px) {
  #sz-cookie-panel .sz-cookie-actions button {
    flex: 1 1 180px;
  }
}

/* Variant A: readable schedule metadata for an audience aged 42-62.
   Scope to event cards: no effect on the Bitrix editor, banners, or content. */
.sz-a-events .sz-a-eyebrow {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .08em;
}
.sz-a-events .sz-a-msk {
  font-size: 15px;
  line-height: 1.5;
  color: #45516a;
}
.sz-a-events .sz-a-event-type {
  font-size: 14px;
  line-height: 1.45;
  padding: 7px 12px;
}
.sz-a-events .sz-a-event-time {
  font-size: 16px;
  line-height: 1.5;
  color: #3d485b;
}
.sz-a-events .sz-a-event-date { font-variant-numeric: tabular-nums; }
.sz-a-events .sz-a-event-details {
  font-size: 16px;
  line-height: 1.6;
}

/* 25.10.2026: Longer articles and student reviews need more generous typography.
   Component-scoped: does not change the homepage review slider or editable hero. */
.right_block.narrow_Y > .content > p {
  font-family: var(--sz-body-font);
  font-size: 17px;
  line-height: 1.66;
  color: #354156;
  max-width: 76ch;
  overflow-wrap: break-word;
}
.right_block.narrow_Y .reviews_link_2 .item-views.reviews.slider.blocks .item .preview-text p {
  font-family: var(--sz-body-font);
  font-size: 16px;
  line-height: 1.65;
  color: #354156;
  overflow-wrap: break-word;
}

/* 25.10.2026: More readable editorial headings in the homepage's Bitrix
   'About school' block. Scope excludes the hero, course cards and events. */
body.index .company-front .company h2 {
  font-family: var(--sz-display-font);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.013em;
  color: #182238;
  text-wrap: pretty;
}
@media (max-width: 767px) {
  body.index .company-front .company h2 {
    font-size: 22px;
    line-height: 1.34;
    margin-top: 23px;
    margin-bottom: 12px;
    overflow-wrap: break-word;
  }
}

/* 28.10.2026 — unify editable homepage hero and schedule typography.
   Heading: Georgia, body/controls: Roboto. Keep Bitrix banner copy and inline sizes. */
body.index .banners-big .slides .item .title,
body.index .banners-big .slides .item .title b,
body.index .banners-big .slides .item .title strong,
body.index .banners-big .slides .item .title span {
  font-family: var(--sz-display-font) !important;
}
body.index .banners-big .slides .item .title {
  line-height: 1.15 !important;
  letter-spacing: -0.015em;
}
body.index .banners-big .slides .item .text-block,
body.index .banners-big .slides .item .text-block p,
body.index .banners-big .slides .item .text-block span {
  font-family: var(--sz-body-font);
}
body.index .banners-big .buttons a.btn {
  font-family: var(--sz-body-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}
/* The full schedule inherited an unusually loose 34px line height at 22px. */
.sz-a-events.sz-a-events-all .sz-a-event-card h3 { line-height: 1.3 !important; }
body .sz-a-events.sz-a-events-home .sz-a-event-card h3 { line-height: 1.3; }



/* S24 (2026-10-31): scoped accessibility corrections for existing Variant A.
   No changes to Bitrix forms, handlers, course data or the page layout. */

/* The existing header skin suppresses the native focus outline. */
body .inline-search-show:focus-visible,
body a.personal-link:focus-visible,
body a.hght-100:focus-visible {
  outline: 3px solid #17334c !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
body .sz-skip-content:focus-visible {
  outline: 3px solid #17334c !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* Readable ink against the already-established orange FAQ shortcut. */
body a[href="/company/faq/"][style*="background: #ff9900"] {
  color: #14213a !important;
}
body a[href="/company/faq/"][style*="background: #ff9900"]:focus-visible {
  outline: 3px solid #17334c !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* The search field must be identifiable even before it receives focus. */
body input.search-input {
  border: 1px solid #687586 !important;
}
body input.search-input:focus-visible {
  outline: 3px solid #17334c !important;
  outline-offset: 2px !important;
}

/* The historical beginner's article contains long, author-owned tables.
   Make each table scroll independently rather than clipping the article. */
@media (max-width: 640px) {
  body .blog-page ul:has(> li > table) {
    display: block !important; /* legacy display:table expands to 895px */
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body .blog-page li:has(> table) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body .blog-page li > table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
}


/* S25 · Hallmark follow-up, 2026-10-31.
   Scoped readability improvements only; preserve Variant A and the CMS. */

/* Review dates in the original Bitrix carousel. */
body .review-date.fs-13 {
  color: #4b5563 !important;
}

/* Original media publication date and related-article dates. */
body .blog-page .detail.media .period,
body .blog-page .comments-wrapper .period {
  color: #4b5563 !important;
}

/* Readable reply action in the original comments area. */
body .blog-page .blog-comment-meta .blog-comment-answer > a {
  color: #435265 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body .blog-page .blog-comment-meta .blog-comment-answer > a:focus-visible {
  outline: 3px solid #17334c !important;
  outline-offset: 3px;
}

/* Footer navigation only: no underline, including hover/keyboard focus.
   Keep light contrast and the visible focus outline; header links are untouched. */
body .bottom-menu .item-link .title > a,
body .bottom-menu .item-link .title > a:hover,
body .bottom-menu .item-link .title > a:focus {
  color: #e8edf4 !important;
  text-decoration: none !important;
}
body .bottom-menu .item-link .title > a:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px;
}

/* Tag cloud is on a light background, unlike the dark footer. */
body .blog-page .search-tags-cloud .tags > a {
  color: #4b5563 !important;
}

/* S46: apply only editor-authored discount markup, never infer or change prices. */
body .sz-a-event-summary .sz-a-event-old-price {
  color: #606a7a;
  text-decoration: line-through;
  text-decoration-color: #b41826;
  text-decoration-thickness: 1.4px;
  white-space: nowrap;
}
body .sz-a-event-summary .sz-a-event-sale-price {
  color: #a7192c;
  font-weight: 700;
  white-space: nowrap;
}

