.tmenu-mobile__imglogo[src$="/masshtab-logo-450.webp"],
.t967__imglogomobile[src$="/masshtab-logo-450.webp"] {
  aspect-ratio: 450 / 79;
}

#rec1347932651 img[src$="/special.png"] {
  width: 51px;
  height: 31px;
}

/* Header typography and interaction states. */
#allrecords *:is(#rec5896477701,#rec2095797351) [data-elem-id="175680581021636180"] { width:100px!important; }
#allrecords *:is(#rec5896477701,#rec2095797351) [data-elem-id="175680581021636180"] > .tn-atom {
  font-size:12px!important;
  line-height:15px!important;
  overflow-wrap:normal;
  text-wrap:balance;
}
#allrecords *:is(#rec5896477701,#rec2095797351) [data-elem-id="1759230027944"] > .tn-atom { translate:-1.5px 0; }
#allrecords *:is(#rec5896477701,#rec2095797351,#rec5896477501,#rec1295584321) a[href^="tel:"] {
  border-radius:3px;
  text-decoration:underline!important;
  text-decoration-color:transparent!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:4px;
  transition:color 180ms ease,text-decoration-color 180ms ease!important;
}
#allrecords *:is(#rec5896477701,#rec2095797351,#rec5896477501,#rec1295584321) a[href^="tel:"]:is(:hover,:focus-visible) {
  color:#a44106!important;
  text-decoration-color:currentColor!important;
  opacity:1!important;
  filter:none!important;
}
#allrecords :is(#rec5896477701,#rec2095797351,#rec5896477501,#rec1295584321) a[href^="tel:"]:focus-visible {
  outline:2px solid #a44106!important;
  outline-offset:3px;
  opacity:1!important;
}

@media (min-width:981px) and (max-width:1199px) {
  #allrecords *:is(#rec5896477701,#rec2095797351) [data-elem-id="175680581021636180"] > .tn-atom { translate:-10px 0; }
  #allrecords *:is(#rec5896477701,#rec2095797351) [data-elem-id="1759230027944"] > .tn-atom { translate:.5px 0; }
}

/* Header social rings share one transition and stay circular throughout it. */
html #allrecords :is(#rec5896477701,#rec2095797351) .tn-elem[data-elem-type="shape"] > :is(a[href*="://t.me/" i], a[href*="://max.ru/" i], a[href*="://dzen.ru/" i], a[href*="://vk.com/" i]),
html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a {
  opacity:1!important;
  filter:none!important;
  outline:none!important;
}
html #allrecords :is(#rec5896477701,#rec2095797351) .tn-elem > :is(a[href*="://t.me/" i], a[href*="://max.ru/" i]:not(.t-bgimg), a[href*="://dzen.ru/" i]:not(.t-bgimg), a[href*="://vk.com/" i]:not(.t-bgimg)),
html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a {
  position:relative;
  border-radius:50%!important;
}
html #allrecords :is(#rec5896477701,#rec2095797351) .tn-elem > :is(a[href*="://t.me/" i], a[href*="://max.ru/" i]:not(.t-bgimg), a[href*="://dzen.ru/" i]:not(.t-bgimg), a[href*="://vk.com/" i]:not(.t-bgimg))::after,
html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 2px #e46313;
  background:rgb(255 255 255 / 13%);
  opacity:0;
  transition:opacity 180ms ease;
  pointer-events:none;
}
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://t.me/" i]:focus-visible) .tn-elem > a[href*="://t.me/" i],
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://max.ru/" i]:focus-visible) .tn-elem > a[href*="://max.ru/" i]:not(.t-bgimg),
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://dzen.ru/" i]:focus-visible) .tn-elem > a[href*="://dzen.ru/" i]:not(.t-bgimg),
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://vk.com/" i]:focus-visible) .tn-elem > a[href*="://vk.com/" i]:not(.t-bgimg),
html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a:focus-visible {
  outline:2px solid #a44106!important;
  outline-offset:2px;
}
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://t.me/" i]:is(:active,.ms-press-held)) .tn-elem > a[href*="://t.me/" i]::after,
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://max.ru/" i]:is(:active,.ms-press-held)) .tn-elem > a[href*="://max.ru/" i]:not(.t-bgimg)::after,
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://dzen.ru/" i]:is(:active,.ms-press-held)) .tn-elem > a[href*="://dzen.ru/" i]:not(.t-bgimg)::after,
html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://vk.com/" i]:is(:active,.ms-press-held)) .tn-elem > a[href*="://vk.com/" i]:not(.t-bgimg)::after,
html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a:is(:active,.ms-press-held)::after {
  opacity:1;
}
@media (hover:hover) and (pointer:fine) {
  html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://t.me/" i]:hover) .tn-elem > a[href*="://t.me/" i]::after,
  html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://max.ru/" i]:hover) .tn-elem > a[href*="://max.ru/" i]:not(.t-bgimg)::after,
  html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://dzen.ru/" i]:hover) .tn-elem > a[href*="://dzen.ru/" i]:not(.t-bgimg)::after,
  html #allrecords :is(#rec5896477701,#rec2095797351):has(a[href*="://vk.com/" i]:hover) .tn-elem > a[href*="://vk.com/" i]:not(.t-bgimg)::after,
  html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a:hover::after {
    opacity:1;
  }
}
@media (prefers-reduced-motion:reduce) {
  #allrecords :is(#rec5896477701,#rec2095797351,#rec5896477501,#rec1295584321) a[href^="tel:"],
  html #allrecords :is(#rec5896477701,#rec2095797351) .tn-elem > :is(a[href*="://t.me/" i], a[href*="://max.ru/" i]:not(.t-bgimg), a[href*="://dzen.ru/" i]:not(.t-bgimg), a[href*="://vk.com/" i]:not(.t-bgimg))::after,
  html #allrecords :is(#rec5896477501,#rec1295584321) .t-sociallinks__item a::after {
    transition:none!important;
  }
}

/* Course enrollment buttons */
html:not(.special) #allrecords .course-main-details a.course-detail__link.t-btnflex {
  color:#fff !important;
  opacity:1 !important;
  filter:none !important;
  background-color:#c45009;
  background-image:linear-gradient(to top,rgba(0,0,0,.13),transparent);
}
@media (hover:hover) {
  html:not(.special) #allrecords .course-main-details a.course-detail__link.t-btnflex:hover {background-color:#b34708;}
}
html:not(.special) #allrecords .course-main-details a.course-detail__link.t-btnflex:active {background-color:#a03c06;}
html:not(.special) #allrecords .course-main-details a.course-detail__link.t-btnflex:focus-visible {outline:2px solid #25211e;outline-offset:3px;}
