/* TEHSB: conversion and mobile usability fixes, 2026-08-23 */

/* Keep the cookie notice readable and above the chat without hiding the CTA. */
.t657:not(.t657_closed),
.t657:not(.t657_closed) .t657__wrapper,
.t657:not(.t657_closed) .t657__text,
.t657:not(.t657_closed) .t657__btn {
  opacity: 1 !important;
  visibility: visible !important;
}

body:has(.t-popup_show) .t657 {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Make the callback action in the burger menu legible. */
.t1362 .t1362__additional .t-btnflex_type_button {
  background-color: #ff6b35 !important;
  color: #ffffff !important;
}

/* Make the legal note in the lead form readable. */
#rec2223361181 .t702__form-bottom-text,
#rec2223361181 .t702__form-bottom-text * {
  color: #666666 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* The desktop popup image is lazy-loaded inconsistently and leaves a blank area. */
@media screen and (min-width: 768px) {
  #rec2223361181 .t702__img {
    display: none !important;
  }
}

/* Visible desktop contact actions between the logo and burger menu. */
.tehsb-header-actions {
  display: none;
}

@media screen and (min-width: 981px) {
  .t1362 .tehsb-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    margin-right: 22px;
    white-space: nowrap;
  }

  .t1362 .tehsb-header-phone {
    color: #1f3f78;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
  }

  .t1362 .tehsb-header-note {
    color: #3f4652;
    font-size: 12px;
    line-height: 1.2;
  }

  .t1362 .tehsb-header-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    background: #ff6b35;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }

  /* Bring the conversion action into the first viewport on intent pages. */
  #rec2162755371 .t-cover,
  #rec2162755371 .t-cover__wrapper,
  #rec2166055841 .t-cover,
  #rec2166055841 .t-cover__wrapper,
  #rec2188583961 .t-cover,
  #rec2188583961 .t-cover__wrapper,
  #rec2190336251 .t-cover,
  #rec2190336251 .t-cover__wrapper,
  #rec2236706941 .t-cover,
  #rec2236706941 .t-cover__wrapper {
    height: 700px !important;
    min-height: 700px !important;
  }

  #rec2162755371 .t189__title,
  #rec2166055841 .t189__title,
  #rec2188583961 .t189__title,
  #rec2190336251 .t189__title,
  #rec2236706941 .t189__title {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  #rec2162755371 .t189__descr,
  #rec2166055841 .t189__descr,
  #rec2188583961 .t189__descr,
  #rec2190336251 .t189__descr,
  #rec2236706941 .t189__descr {
    padding-bottom: 20px !important;
  }
}

@media screen and (max-width: 980px) {
  #tsbChatBtn {
    bottom: 76px !important;
  }

  body:has(.t657:not(.t657_closed)) .mobile-cta-fixed,
  body:has(.t657:not(.t657_closed)) #tsbChatBtn,
  body:has(.t-popup_show) .mobile-cta-fixed,
  body:has(.t-popup_show) #tsbChatBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #rec2162755371 .t-cover__wrapper,
  #rec2166055841 .t-cover__wrapper,
  #rec2188583961 .t-cover__wrapper,
  #rec2190336251 .t-cover__wrapper,
  #rec2236706941 .t-cover__wrapper {
    box-sizing: border-box !important;
    padding-top: 0 !important;
    vertical-align: top !important;
  }

  #rec2162755371 .t189__title,
  #rec2166055841 .t189__title,
  #rec2188583961 .t189__title,
  #rec2190336251 .t189__title,
  #rec2236706941 .t189__title {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #rec2162755371 .t189__descr,
  #rec2166055841 .t189__descr,
  #rec2188583961 .t189__descr,
  #rec2190336251 .t189__descr,
  #rec2236706941 .t189__descr {
    padding-bottom: 10px !important;
  }

  #rec2162755371 .t189__title,
  #rec2166055841 .t189__title,
  #rec2188583961 .t189__title,
  #rec2190336251 .t189__title,
  #rec2236706941 .t189__title {
    font-size: 29px !important;
    line-height: 1.03 !important;
  }

  #rec2162755371 .t189__descr,
  #rec2166055841 .t189__descr,
  #rec2188583961 .t189__descr,
  #rec2190336251 .t189__descr,
  #rec2236706941 .t189__descr {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #rec2162755371 .t189__buttons-wrapper,
  #rec2166055841 .t189__buttons-wrapper,
  #rec2188583961 .t189__buttons-wrapper,
  #rec2190336251 .t189__buttons-wrapper,
  #rec2236706941 .t189__buttons-wrapper {
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 600px) {
  .t657_rectangle {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 14px !important;
  }

  .t657__wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 38px 9px 12px !important;
  }

  .t657__text {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .t657__btn {
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .t657__close-button {
    top: 8px !important;
    right: 8px !important;
  }
}



/* TEHSB: unified internal-page header and first-screen fixes, 2026-08-23 */
@media screen and (max-width: 980px) {
  .t1362 .t-menu-popover__maincontainer { height: 78px !important; min-height: 78px !important; padding: 0 16px !important; }
  .t1362 .t-menu-base__logowrapper { padding: 8px 0 !important; }
  .t1362 .t-menu-base__imglogo { width: auto !important; height: auto !important; max-width: 260px !important; max-height: 58px !important; }
  #rec2195319401 .t-cover__wrapper, #rec2196814661 .t-cover__wrapper, #rec2196899101 .t-cover__wrapper { box-sizing: border-box !important; padding-top: 0 !important; vertical-align: top !important; }
  #rec2195319401 .t189__title, #rec2196814661 .t189__title, #rec2196899101 .t189__title { padding-top: 10px !important; padding-bottom: 8px !important; font-size: 29px !important; line-height: 1.05 !important; }
  #rec2195319401 .t189__descr, #rec2196814661 .t189__descr, #rec2196899101 .t189__descr { padding-bottom: 8px !important; font-size: 14px !important; line-height: 1.35 !important; }
  #rec2195319401 .t189__buttons-wrapper, #rec2196814661 .t189__buttons-wrapper, #rec2196899101 .t189__buttons-wrapper { margin-top: 0 !important; }
}
@media screen and (max-width: 640px) {
  .t1362 .t-menu-popover__maincontainer { height: 66px !important; min-height: 66px !important; padding: 0 12px !important; }
  .t1362 .t-menu-base__imglogo { max-width: 210px !important; max-height: 48px !important; }
}


/* TEHSB: service hero height normalization, 2026-08-23 */
@media screen and (min-width: 981px) {
  #rec2195319401 .t-cover, #rec2195319401 .t-cover__wrapper,
  #rec2196814661 .t-cover, #rec2196814661 .t-cover__wrapper,
  #rec2196899101 .t-cover, #rec2196899101 .t-cover__wrapper { height: 700px !important; min-height: 700px !important; }
}
@media screen and (min-width: 641px) and (max-width: 980px) {
  #rec2195319401 .t-cover, #rec2195319401 .t-cover__wrapper,
  #rec2196814661 .t-cover, #rec2196814661 .t-cover__wrapper { height: 520px !important; min-height: 520px !important; }
  #rec2196899101 .t-cover, #rec2196899101 .t-cover__wrapper { height: 600px !important; min-height: 600px !important; }
  #rec2195319401 .t001__wrapper, #rec2196814661 .t001__wrapper { padding-top: 24px !important; padding-bottom: 18px !important; }
  #rec2195319401 .t001__title, #rec2196814661 .t001__title { font-size: 38px !important; line-height: 1.08 !important; padding-top: 0 !important; padding-bottom: 16px !important; }
  #rec2195319401 .t001__descr, #rec2196814661 .t001__descr { font-size: 18px !important; line-height: 1.38 !important; padding-bottom: 0 !important; }
}

@media screen and (min-width: 641px) and (max-width: 980px) { #rec2196899101 .t-cover, #rec2196899101 .t-cover__wrapper { height: 540px !important; min-height: 540px !important; } }

@media screen and (min-width: 641px) and (max-width: 980px) { #rec2196899101 .t182__content-wrapper { transform: translateY(-42px) !important; } }

@media screen and (min-width: 641px) and (max-width: 980px) { #rec2196899101 .t182__content-wrapper { transform: translateY(-68px) !important; } }


/* TEHSB: compact and symmetric mobile cookie panel, 2026-08-24 */
@media screen and (max-width: 600px) {
  #tehsbCookie {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  #tehsbCookie p {
    margin: 0 0 10px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }
  #tehsbCookie p b {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }
  #tehsbCookieBtns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  #tehsbCookie button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}
@media screen and (max-width: 359px) {
  #tehsbCookieBtns { grid-template-columns: 1fr !important; }
  #tehsbCookie button { min-height: 38px !important; }
}
