/* Navigation and layout share the approved typography, colors and dimensions. */
:root { --site-button-height:52px; }
/* The website fills the browser; reading columns retain their own measure. */
:is(.wf.wf,.games-page.games-page,.training-page.training-page,.forum-page.forum-page,.journal-page.journal-page) {
  width:100%!important; max-width:100%!important;
}
.site-header, .site-footer, .site-header *, .site-footer * { box-sizing:border-box; }
.site-header.site-header { position:relative; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:14px 36px 14px 30px; color:#211817; font:400 15px/1.4 "SF UI Display",Inter,system-ui,sans-serif; container:site-header / inline-size; }
.site-header a { color:inherit; text-decoration:none; font-weight:400; }
.site-header .btn { font-weight:700; }
.site-header [data-site-logo] { display:block; flex:none; }
.site-brand { display:block; width:188px; height:64px; object-fit:contain; }
.site-desktop-nav { display:flex; align-items:center; gap:30px; margin-left:auto; }
.site-desktop-nav>a { display:flex; align-items:center; min-height:44px; }
.site-header-actions { display:flex; align-items:center; flex:none; gap:12px; }
.site-header .site-contact-link { color:#fff; white-space:nowrap; }
.site-header :is(a[aria-current="page"],summary[data-site-section-current]) { color:#934B14; font-weight:500; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1.5px; }
.site-service-menu { position:relative; }
.site-service-menu>summary { display:flex; align-items:center; gap:7px; min-height:44px; cursor:pointer; list-style:none; }
.site-header summary::-webkit-details-marker { display:none; }
.site-service-menu[open]>summary svg { transform:rotate(180deg); }
.site-service-list { position:absolute; top:calc(100% + 8px); right:-24px; width:310px; padding:6px 0; border:1px solid #E8DACE; border-radius:15px; background:#fff; box-shadow:0 20px 55px #21181729; }
.site-service-list a { display:block; padding:13px 20px; line-height:1.45; }
.site-service-list a+a { border-top:1px solid #21181714; }
/* The same copper underline identifies both hover and the current destination. */
.site-header :is(.site-desktop-nav>a,.site-service-menu>summary,.site-service-list a,.site-mobile-panel a) { font-weight:500; }
.site-header :is(.site-desktop-nav>a,.site-service-menu>summary,.site-service-list a,.site-mobile-panel a):is(:hover,[aria-current="page"],[data-site-section-current]) {
  background:transparent!important; box-shadow:none!important;
  color:#934B14!important; font-weight:500;
  text-decoration:underline solid!important; text-underline-offset:5px;
  text-decoration-thickness:1.5px!important;
}
.site-mobile-menu { display:none; }
.site-mobile-menu>summary { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid #BE9174; border-radius:50%; color:#6E3C12; cursor:pointer; list-style:none; }
.site-mobile-menu>summary svg { display:block; width:23px; height:23px; }
.site-burger-close,.site-mobile-menu[open] .site-burger-lines { display:none; }
.site-mobile-menu[open] .site-burger-close { display:block; }
.site-mobile-panel { position:absolute; top:calc(100% - 2px); left:16px; right:16px; max-height:72dvh; overflow-y:auto; background:#fff; border:1px solid #E8DACE; border-radius:16px; box-shadow:0 20px 55px #21181729; padding:10px 0; }
.site-mobile-panel a { display:block; padding:12px 20px; min-height:44px; line-height:1.45; }
.site-mobile-panel p { padding:16px 20px 6px; margin:0; color:#6E3C12; font-size:13px; font-weight:600; }
.site-mobile-panel p~a { padding-left:28px; }
@container site-header (max-width:740px) {
  .site-desktop-nav { display:none; }
  .site-mobile-menu { display:block; }
  .site-header-actions { margin-left:auto; }
}
@container site-header (max-width:400px) {
  .site-brand { width:130px; height:48px; }
  .site-header-actions { gap:8px; }
  .site-header-actions .site-contact-link { padding-inline:18px; font-size:13px; }
}
@container site-header (max-width:300px) {
  .site-brand { width:106px; height:42px; }
  .site-header-actions .site-contact-link { padding-inline:14px; font-size:12px; }
}
.site-footer.site-footer { font:300 16px/1.4 "SF UI Display",Inter,system-ui,sans-serif; margin-top:40px!important; }
.site-footer-grid { display:grid; grid-template-columns:1.1fr 1.35fr 1fr 1.45fr; gap:36px; align-items:start; }
.site-footer [data-site-logo] { display:block; width:176px; max-width:100%; }
.site-footer [data-site-logo] img { display:block; width:100%; height:72px; object-fit:contain; object-position:left top; }
.site-footer.site-footer h3 { margin:0 0 4px; font-size:13px; line-height:1.4; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:#BE9174; }
.site-footer-links,.site-footer-contacts { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; }
.site-footer a:not(.btn):not(.btn2):not([data-site-logo]) { color:#F2EAE5; font-size:15px; line-height:1.5; text-decoration:underline dashed #ffffff59; text-decoration-thickness:1px; text-underline-offset:5px; }
.site-footer a[aria-current="page"] { color:#E8B99A!important; font-weight:500; text-decoration-style:solid!important; }
.site-footer-main a { font-weight:500; }
.site-footer-sections { display:flex; flex-direction:column; gap:32px; min-width:0; }
.site-footer.site-footer .site-footer-address { margin:0; font-size:15px; line-height:1.5; color:#F2EAE5; }
.site-footer.site-footer .site-footer-registration { margin:0; font-size:14px; line-height:1.65; color:#E2D7D0; }
.site-footer-messengers { display:grid; grid-template-columns:150px; gap:12px; margin-top:16px; }
.site-footer-messengers :is(.btn,.btn2) { width:100%; padding-inline:22px; }
.site-footer .btn2 { color:#fff; border-color:#ffffff8c; }
.site-footer-legal { display:flex; flex-direction:column; gap:14px; padding-top:22px; border-top:1px solid #ffffff24; }
.site-footer-legal>div { display:flex; flex-wrap:wrap; gap:10px 28px; font-size:13px; line-height:1.5; color:#E2D7D0; }
.site-footer.site-footer .site-footer-legal p { margin:0; max-width:100%; font-size:12px; line-height:1.55; color:#C8B8AF; }
:is(.wf,.games-page,.training-page,.forum-page,.journal-page) :is(.btn,.btn2) { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:var(--site-button-height)!important; min-height:var(--site-button-height); max-width:100%; gap:10px; line-height:1.2; text-align:center; vertical-align:middle; flex-shrink:0; cursor:pointer; text-decoration:none!important; }
:is(.btn,.btn2)>img { flex:none; width:18px!important; height:18px!important; object-fit:contain; }
.btn2:has(img[src$="/max.svg"]) { color:#fff!important; }
div:has(>.btn):has(>.btn2) { flex-wrap:wrap; align-items:center; gap:12px!important; }
[data-site-contact], [data-shared-contact-shell] { scroll-margin-top:24px; }
:is(.wf,.games-page,.training-page,.forum-page,.journal-page) :is(h1,h2,h3) { text-wrap:balance; }
:is(.wf,.games-page,.training-page,.forum-page,.journal-page) p { text-wrap:pretty; }
.journal-card-title { overflow-wrap:anywhere; hyphens:auto; }
.wf { max-width:100%; overflow:clip!important; }
.games-page,.training-page,.forum-page { max-width:100%; }
.dv-opt:has(.wf),.dv-opt:has(.games-page),.dv-opt:has(.training-page),.dv-opt:has(.forum-page),.dv-opt:has(.journal-page) { width:min(1040px,100%); min-width:0; }
.dv-opts,.dv-card { min-width:0; }
[data-site-page] div { min-width:0; }
[data-site-page] :is(div,section,p,h1,h2,h3) { max-width:100%; }
[data-site-page] :is(h1,h2,h3,h4), [data-site-page] .hd { overflow-wrap:anywhere; }
[data-site-page], [data-site-page] * { box-sizing:border-box; }
.notes { width:100%!important; box-sizing:border-box; flex-wrap:wrap; }
.notes .note { min-width:200px; }
[data-site-page] img:not([style*="position:absolute"]):not([style*="position: absolute"]) { max-width:100%; }
::selection { background:#E8D0BC; color:#211817; }
@media(max-width:1000px) {
  .dv-turn.dv-turn { padding-inline:20px; }
  .site-footer.site-footer { padding:48px 32px 32px!important; }
  .site-footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
}
@media(max-width:800px) {
  .site-header.site-header { padding:14px 24px; gap:16px; }
  [data-site-page] [data-site-grid] { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:24px!important; }
  [data-site-page] [data-site-row] { flex-wrap:wrap; gap:24px!important; }
  [data-site-page] [data-site-fluid] { width:auto!important; max-width:100%!important; }
  [data-site-page] [data-site-inset]:not(.site-header):not(.site-footer) { padding-inline:32px!important; }
  [data-site-page] [style*="margin:-40px 48px"] { margin:24px 32px 0!important; }
  [data-site-page] [data-site-legacy-hero] { height:auto!important; min-height:0!important; }
  [data-site-page] [data-site-legacy-hero]>img { top:auto!important; bottom:0!important; right:0!important; height:340px!important; width:auto!important; max-width:100%; object-fit:contain!important; }
  [data-site-page] [data-site-hero-copy] { position:relative!important; left:auto!important; top:auto!important; width:auto!important; max-width:100%!important; padding:32px 32px 370px!important; }
  [data-site-page] [data-site-hero-copy]>nav { flex-wrap:wrap; row-gap:8px; }
  [data-site-page] [data-site-hero-copy] h1 { max-width:100%!important; font-size:40px!important; line-height:1.08!important; }
  [data-site-page] [data-site-hero-copy]>div:has(>.btn) { display:flex; flex-wrap:wrap; }
}
@media(max-width:560px) {
  .dv-turn.dv-turn { padding:24px 8px; }
  .dv-thd { gap:8px; }
  .site-header.site-header { padding:14px 16px; gap:10px; }
  .site-footer.site-footer { padding:36px 24px 28px!important; border-radius:24px 24px 0 0!important; }
  .site-footer-grid { grid-template-columns:1fr; gap:32px; }
  .site-footer-messengers { grid-template-columns:150px 150px; max-width:100%; }
  .site-footer-messengers :is(.btn,.btn2) { min-width:0; }
  [data-site-page] [data-site-grid] { grid-template-columns:1fr!important; gap:24px!important; }
  [data-site-page] [data-site-grid]>* { grid-column:auto!important; }
  [data-site-page] [data-site-inset]:not(.site-header):not(.site-footer) { padding-inline:24px!important; }
  [data-site-page] [style*="margin:-40px 48px"] { margin:24px 24px 0!important; }
  [data-site-page] h1.hd { font-size:40px!important; line-height:1.08!important; }
  [data-site-page] h2.hd { font-size:34px!important; line-height:1.12!important; }
  [data-site-page] h3.hd { font-size:28px!important; line-height:1.15!important; }
  [data-site-page] p.hd { font-size:28px!important; line-height:1.15!important; }
  [data-site-page] blockquote { font-size:22px!important; }
  [data-site-page] p { overflow-wrap:break-word; hyphens:auto; }
  [data-site-page] [data-site-hero-copy] { padding:28px 24px 350px!important; }
  [data-site-page] [data-site-hero-copy] h1 { font-size:clamp(24px,7vw,30px)!important; hyphens:auto; overflow-wrap:normal; }
  [data-site-page] [data-site-hero-copy] h2 { font-size:18px!important; }
  [data-site-page] [data-site-hero-copy] :is(.btn,.btn2) { padding-inline:22px!important; }
  [data-site-page] [data-site-legacy-hero]>img { height:320px!important; }
  [data-site-page] [data-site-hero-copy]>nav { font-size:12px!important; }
  [data-site-page] [data-site-hero-copy]>nav span:last-child { overflow-wrap:anywhere; }
  [data-site-page] [data-site-grid]>div:has(>img[src*="ks-"]) { max-height:560px; overflow:hidden; }
  [data-site-page] [data-site-grid]>div>img[src*="ks-"] { object-fit:contain; object-position:top; max-height:560px; }
  [data-site-page] div:has(>[data-site-carousel-arrow]) { flex-wrap:nowrap; }
  .site-contact .site-contact-actions { align-items:flex-start!important; width:100%; }
  .site-contact .site-contact-copy h2.hd { font-size:36px!important; line-height:1.05!important; }
  .site-contact-actions :is(.btn,.btn2) { width:100%; }
  [data-site-page] [data-site-hero-copy]>div:has(>.btn) { align-items:flex-start!important; }
  [data-site-page] [data-site-hero-copy]>div:has(>.btn)>:is(.btn,.btn2) { width:100%; }
}
@media(max-width:380px) { .site-footer-messengers { grid-template-columns:1fr; width:150px; } }
@media(max-width:360px) { [data-site-page] [data-site-hero-copy] h1 { font-size:21px!important; } }
@media(max-width:360px) {
  .training-page .training-hero h1 { font-size:27px!important; }
  .forum-page .forum-hero h1 { font-size:25px!important; }
}
@media(prefers-reduced-motion:reduce) { .site-header *, .site-footer * { transition:none!important; } }

/* Service heroes share dimensions; text stays together in its natural flow. */
[data-service-lines] {
  position:absolute; inset:0; pointer-events:none;
  background:url(/assets/pattern-lines.webp) left top/cover no-repeat;
  mask-image:linear-gradient(90deg,#000 0%,#000 35%,transparent 78%);
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 35%,transparent 78%);
}
:root { --service-hero-height:620px; --service-copy-width:620px; }
html :is(#t12,#t14,#t15,#t16) .site-header+div:empty { display:none; }
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) div:has(>[data-service-hero]) { padding:0 14px!important; }
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-hero] {
  height:var(--service-hero-height)!important;
  min-height:var(--service-hero-height)!important;
  position:relative; overflow:hidden;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-copy] {
  display:flex!important; flex-direction:column;
  gap:0!important; align-items:flex-start; justify-content:center;
  height:calc(var(--service-hero-height) - 40px)!important;
  position:relative!important; z-index:2;
  width:var(--service-copy-width)!important; max-width:65%!important;
  padding:0 0 0 48px!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot] {
  margin:0!important; min-width:0; max-width:100%!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="breadcrumbs"] {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  font-size:14px!important; line-height:20px!important; font-weight:400!important;
  position:absolute; top:36px; left:48px; right:0;
  margin:0!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="eyebrow"] {
  font-size:14px!important; line-height:21px!important; font-weight:600!important;
  letter-spacing:0!important; color:#E8D0BC; align-self:start;
  text-wrap:pretty; hyphens:none!important;
  margin-bottom:14px!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="title"][data-service-slot] {
  font-size:42px!important; line-height:1.12!important;
  width:100%;
  text-wrap:balance; overflow-wrap:normal!important; hyphens:none!important;
  margin-bottom:18px!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="subtitle"][data-service-slot] {
  font-size:19px!important; line-height:1.4!important; font-weight:500;
  color:#E8D0BC; text-wrap:pretty; hyphens:none!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] {
  display:flex!important; flex-wrap:nowrap!important; gap:12px!important;
  align-items:center!important; width:100%; margin-top:28px!important;
}
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] :is(.btn,.btn2) {
  padding-inline:24px!important; height:52px!important; min-width:0;
  white-space:nowrap; font-size:14px; line-height:1.2;
}
/* Keep whole Russian words intact; only long URLs may break arbitrarily. */
[data-site-page] :is(p,h1,h2,h3,h4,li,blockquote),.journal-page :is(p,h1,h2,h3,h4,li,blockquote) {
  hyphens:none!important; overflow-wrap:break-word;
}
.journal-page .journal-card-title,.journal-page .journal-article-header h1,
.home-article-card h3 { hyphens:none!important; overflow-wrap:normal!important; text-wrap:pretty; }
@media(max-width:800px) {
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="title"][data-service-slot] {
    font-size:36px!important; max-width:572px!important;
  }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="subtitle"][data-service-slot] { max-width:572px!important; }
  html :is(#t12,#t14,#t16) [data-service-hero]>img {
    top:auto!important; bottom:0!important; left:50%!important; right:auto!important;
    transform:translateX(-50%); height:470px!important; width:auto!important;
  }
}
@media(max-width:560px) {
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="breadcrumbs"] { font-size:12px!important; line-height:18px!important; gap:8px; top:28px; left:24px; right:24px; margin:0!important; }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="eyebrow"] { font-size:13px!important; line-height:20px!important; }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="title"][data-service-slot] { font-size:clamp(22px,6.2vw,32px)!important; line-height:1.18!important; }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="subtitle"][data-service-slot] { font-size:17px!important; line-height:1.4!important; }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] {
    flex-direction:column!important; align-items:stretch!important; margin-top:24px!important;
  }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] :is(.btn,.btn2) { width:100%; }
  html :is(#t12,#t14,#t16) [data-service-hero]>img { height:400px!important; }
}

/* The long LSK service name needs a smaller display size, not broken words. */
html #t12 [data-service-slot="title"][data-service-slot] { font-size:34px!important; text-wrap:pretty; }
html #t12 [data-service-slot="eyebrow"] { gap:0 8px!important; }
.journal-page .journal-article-header { max-width:none; }
.journal-page .journal-article-header h1 { font-size:48px; line-height:1.12; }
@media(max-width:800px) {
  .journal-page .journal-article-header h1 { font-size:42px; }
}
@media(max-width:560px) {
  html #t12 [data-service-slot="title"][data-service-slot] { font-size:22px!important; }
  .journal-page .journal-article-header h1 { font-size:clamp(24px,7vw,32px); }
}
@media(max-width:1000px) and (min-width:561px) { .journal-page .journal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:360px) {
  html :is(#t12,#t14) [data-service-slot="title"][data-service-slot] { font-size:21px!important; }
  html #forum-top .forum-hero-person { height:850px!important; }
  .journal-page .journal-card .journal-card-copy { padding:24px 20px; }
  .journal-page .journal-card .journal-card-title { font-size:21px; }
}

@media(min-width:801px) and (max-width:1000px) {
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-copy] { gap:0!important; }
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="title"][data-service-slot] { font-size:36px!important; }
  html #t12 [data-service-slot="title"][data-service-slot] { font-size:32px!important; }
}

/* Breadcrumbs remain at the top; the message is centered as one compact unit. */
html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-message] {
  display:flex; flex-direction:column; align-items:flex-start; width:100%; min-width:0; gap:0;
}
@media(min-width:561px) and (max-width:800px) {
  html :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="breadcrumbs"] { top:32px; left:32px; right:32px; }
}

/* Legal footer links retain the size of neighboring legal labels. */
/* Decorative coaching captions stay in flow when their text needs to wrap. */
@media(max-width:1000px) {
  html #t14 .coaching-pricing-heading { padding-top:0!important; gap:16px; width:100%; }
  html #t14 .sc.sc {
    position:static!important; left:auto!important; top:auto!important; transform:none!important;
    width:100%; max-width:100%; white-space:normal!important; text-align:center;
    font-size:clamp(26px,4.5vw,40px)!important; line-height:1.2!important;
  }
  html #t14 .coaching-requests-heading { flex-direction:column; padding-top:0!important; gap:16px; }
  html #t14 .coaching-price-card { min-width:0; padding-inline:24px!important; }
  html #t14 .coaching-price-card h3.hd { font-size:26px!important; overflow-wrap:normal!important; word-break:normal; }
  html #t14 .coaching-price-card>div>.hd { font-size:36px!important; overflow-wrap:normal!important; word-break:normal; }
  html #t14 .coaching-superpower-copy>div:has(>.sc) { padding-top:0!important; }
  html #t14 .coaching-superpower-copy .sc {
    position:static!important; top:auto!important; left:auto!important;
    max-width:100%; white-space:normal!important; line-height:1.2!important;
  }
}
@media(max-width:700px) {
  html #t14 .coaching-price-grid[data-site-grid] { grid-template-columns:minmax(0,1fr)!important; }
}
@media(min-width:701px) and (max-width:1000px) {
  html body .site-contact { padding:56px 32px!important; overflow:hidden; }
  html body .site-contact .site-contact-copy { max-width:58%!important; }
  html body .site-contact .site-contact-copy h2.hd { font-size:42px!important; line-height:1.1!important; }
  html body .site-contact .site-contact-person { height:380px!important; right:-55px!important; opacity:1; }
  html body .site-contact .site-contact-actions { flex-direction:column; align-items:flex-start; }
}
@media(min-width:561px) and (max-width:700px) {
  html body .site-contact { padding:48px 32px 310px!important; }
  html body .site-contact .site-contact-copy { max-width:100%!important; }
  html body .site-contact .site-contact-copy h2.hd { font-size:42px!important; line-height:1.1!important; }
  html body .site-contact .site-contact-person { height:300px!important; right:0!important; opacity:1; }
}
@media(max-width:560px) {
  html #t14 .coaching-price-card h3.hd { font-size:clamp(20px,5.9vw,26px)!important; }
  html #t14 .coaching-price-card>div>.hd { font-size:clamp(30px,8.2vw,36px)!important; }
}
@media(max-width:380px) {
  html #t14 .coaching-price-card { padding-inline:16px!important; }
}

.site-footer.site-footer .site-footer-legal>div>a {
  color:#E2D7D0; font-size:13px; line-height:1.5; font-weight:300;
}

/* Coaching: aligned captions, complete portraits and consistent contact actions. */
@media(max-width:1000px) {
  html #t14 .coaching-superpower-copy .sc.sc { text-align:left; }
  html body .site-contact-actions>a { width:240px!important; max-width:100%; height:52px!important; justify-content:center; }
}
@media(min-width:701px) and (max-width:1000px) {
  html body .site-contact .site-contact-person { height:clamp(340px,44.6vw,380px)!important; right:16px!important; }
}
@media(max-width:800px) {
  html [data-site-page] [data-layout-strip]:has(>.stat)[data-site-grid] { gap:0!important; }
  html [data-site-page] [data-layout-strip]:has(>.stat)>.stat { border:0!important; }
  html [data-site-page] [data-layout-strip]:has(>.stat)>.stat:nth-child(odd) { border-right:1px solid rgba(0,0,0,.1)!important; }
  html [data-site-page] [data-layout-strip]:has(>.stat)>.stat:nth-child(-n+2) { border-bottom:1px solid rgba(0,0,0,.1)!important; }
}
@media(max-width:560px) {
  html [data-site-page] [data-layout-strip]:has(>.stat)>.stat:nth-child(n) { border:0!important; }
  html [data-site-page] [data-layout-strip]:has(>.stat)>.stat:not(:last-child) { border-bottom:1px solid rgba(0,0,0,.1)!important; }
  html body [data-site-faq-heading][data-site-faq-heading] { font-size:clamp(23px,7.1vw,30px)!important; overflow-wrap:normal!important; word-break:normal; hyphens:none!important; }
  html body .site-contact .site-contact-person { left:50%!important; right:auto!important; transform:translateX(-50%); }
}

/* Shared contact actions retain identical geometry on every page. */
html body .site-contact-actions>a { width:240px!important; max-width:100%; height:52px!important; justify-content:center; }

/* Headings wrap between words; slider labels and controls share one center. */
html body :is(h1,h2,h3,h4,.hd) { overflow-wrap:normal!important; word-break:normal!important; hyphens:none!important; }
@media(max-width:1000px) {
  html body #t10 h1.hd { font-size:clamp(36px,7vw,60px)!important; white-space:nowrap; }
}
@media(max-width:1000px) {
  html body [data-site-carousel-heading] {
    display:flex!important; flex-direction:column; align-items:center; justify-content:center;
    gap:20px!important; width:100%; text-align:center;
  }
  html body [data-site-carousel-heading]>div:empty { display:none!important; }
  html body [data-site-carousel-heading]>:is(h2,p) { align-self:center; margin:0!important; text-align:center!important; }
  html body [data-site-carousel-heading]>div:not(:empty) {
    display:flex; width:auto!important; align-self:center; justify-content:center!important; align-items:center;
  }
}

@media(max-width:1000px) {
  html body #t7 .home-education-heading.hd { font-size:28px!important; }
  html body #t7 h4:has(>.home-service-link) { font-size:22px!important; }
  html body #t7 .home-article-card h3 { font-size:19px!important; }
}
@media(max-width:560px) {
  html body #t7 .home-education-heading.hd { font-size:26px!important; }
}

/* Keep tablet text and portraits in stable, separate areas. */
@media(min-width:741px) and (max-width:1000px) {
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-hero] {
    height:620px!important; min-height:620px!important;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-copy] {
    height:580px!important; min-height:0!important; width:52%!important; max-width:52%!important;
    padding:0 0 0 32px!important;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="title"][data-service-slot] { font-size:32px!important; }
  html body #t12 [data-service-slot="title"][data-service-slot] { font-size:28px!important; }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] {
    flex-direction:column!important; align-items:flex-start!important;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="actions"] a { width:240px; max-width:100%; }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-hero]>img {
    position:absolute!important; left:78%!important; right:auto!important; top:auto!important; bottom:0!important;
    transform:translateX(-50%)!important; width:auto!important; max-width:none!important;
  }
  html body #t12 [data-service-hero]>img { height:540px!important; }
  html body #t14 [data-service-hero]>img { height:880px!important; bottom:-300px!important; }
  html body #t15 [data-service-hero]>img { height:840px!important; bottom:-220px!important; }
  html body #t16 [data-service-hero]>img { height:540px!important; }
  html body #games-top [data-service-hero]>img { height:1000px!important; bottom:-380px!important; }
  html body #training-top [data-service-hero]>img { height:580px!important; }
  html body #forum-top [data-service-hero]>img { height:600px!important; bottom:-100px!important; }
}
@media(max-width:740px) {
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-hero] {
    display:flex; flex-direction:column; height:auto!important; min-height:0!important;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-accent] { display:none!important; }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-copy] {
    order:1; height:auto!important; min-height:0!important; width:100%!important; max-width:100%!important;
    padding:28px 32px 0!important; justify-content:flex-start;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-slot="breadcrumbs"] {
    position:static!important; margin:0 0 24px!important; width:100%;
  }
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-hero]>img {
    order:2; position:relative!important; flex:none; align-self:center;
    top:auto!important; bottom:auto!important; left:auto!important; right:auto!important; transform:none!important;
    height:var(--service-portrait-height,420px)!important; width:auto!important; max-width:none!important;
    margin:16px 0 calc(-1 * var(--service-portrait-crop,0px))!important;
  }
  html body #t12 { --service-portrait-height:400px; }
  html body #t14 { --service-portrait-height:400px; }
  html body #t15 { --service-portrait-height:650px; --service-portrait-crop:270px; }
  html body #t16 { --service-portrait-height:420px; }
  html body #games-top { --service-portrait-height:850px; --service-portrait-crop:450px; }
  html body #training-top { --service-portrait-height:420px; }
  html body #forum-top { --service-portrait-height:500px; --service-portrait-crop:110px; }
}
@media(max-width:560px) {
  html body :is(#t12,#t14,#t15,#t16,#games-top,#training-top,#forum-top) [data-service-copy] { padding-inline:24px!important; }
}


/* Four half-width tracks retain two equal cards, then center the third. */
@media(min-width:561px) and (max-width:800px) {
  html body [data-site-triplet][data-site-triplet] { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  html body [data-site-triplet][data-site-triplet]>:nth-child(n) { grid-column:auto / span 2!important; }
  html body [data-site-triplet][data-site-triplet]>:nth-child(3):last-child { grid-column:2 / span 2!important; }
}
/* Article grids already switch to two cards at 1000px. */
@media(min-width:801px) and (max-width:1000px) {
  html body .journal-grid[data-site-triplet] { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  html body .journal-grid[data-site-triplet]>:nth-child(n) { grid-column:auto / span 2!important; }
  html body .journal-grid[data-site-triplet]>:nth-child(3):last-child { grid-column:2 / span 2!important; }
}


/* Approved compact footer: aligned link columns and stacked messenger buttons. */
@media(min-width:561px) and (max-width:1000px) {
 html body .site-footer.site-footer { gap:28px; }
 html body .site-footer-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 32px; }
 html body .site-footer-grid>div:first-child { grid-column:1 / -1; grid-row:1; }
 html body .site-footer [data-site-logo] { width:150px; }
 html body .site-footer [data-site-logo] img { height:60px; }
 html body .site-footer-grid>nav { grid-column:1; grid-row:2; }
 html body .site-footer-sections { grid-column:2; grid-row:2; gap:24px; }
 html body .site-footer-contacts {
  grid-column:1 / -1; grid-row:3; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px 32px; align-items:start; padding-top:24px; border-top:1px solid #ffffff24;
 }
 html body .site-footer-contacts>h3 { grid-column:1 / -1; margin:0; }
 html body .site-footer-address { grid-column:1; grid-row:2; }
 html body .site-footer-registration { grid-column:1; grid-row:3; }
 html body .site-footer-messengers {
  grid-column:2; grid-row:2 / 4; align-self:center; width:150px; max-width:100%;
  grid-template-columns:minmax(0,1fr); gap:12px; margin:0;
 }
 html body .site-footer-messengers :is(.btn,.btn2) { padding-inline:12px; }
}
