/* TEH-MASTERS shared controls. The established photographs and page system stay intact. */
.tm-network { color: #142943; }
.tm-network *, .tm-network *::before, .tm-network *::after { box-sizing: border-box; }
.tm-network .container { width: min(1280px, calc(100% - 48px)); }
.tm-network .button--orange, .tm-network .tm-home .button--orange, .tm-network .mobile-sticky-cta__request { background: #f59638; color: #142943; box-shadow: none; border-color: transparent; }
.tm-network .button--orange:hover, .tm-network .tm-home .button--orange:hover, .tm-network .mobile-sticky-cta__request:hover { background: #ffac57; color: #142943; }
.tm-network .button { min-height: 48px; padding: 13px 22px; border-radius: 8px; text-transform: none; font-weight: 800; line-height: 1.4; }
.tm-network :focus-visible { outline: 3px solid #2367ae; outline-offset: 3px; }
.tm-network ::selection { background: #bfdcf9; color: #142943; }
.tm-network input, .tm-network textarea { caret-color: #2367ae; }
.tm-network h1, .tm-network h2 { text-wrap: balance; }
.tm-network section[id], .tm-network footer[id], .tm-network h2[id] { scroll-margin-top: 88px; }
.tm-topbar { position: relative; z-index: 31; }
.tm-network .tm-topbar .topbar__inner { min-height: 116px; display: grid; grid-template-columns: auto minmax(130px, .85fr) minmax(220px, 1.1fr) minmax(160px, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; }
.tm-network .network-logo { flex-shrink: 0; gap: 8px; min-width: 0; }
.tm-network .network-logo__mark { width: 48px; height: 48px; object-fit: contain; }
.tm-network .network-logo__name { display: inline; font-size: 21px; white-space: nowrap; }
.tm-header-city { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.tm-disclosure { position: relative; min-width: 0; }
.tm-city-toggle { min-height: 44px; border: 0; background: transparent; color: #142943; font: inherit; font-size: 14px; font-weight: 800; padding: 6px 0; display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; line-height: 1.4; }
.tm-city-toggle svg, .tm-nav-toggle svg { flex: 0 0 14px; transition: transform .15s; }
.tm-city-toggle[aria-expanded=true] svg, .tm-nav-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.tm-header-address { color: #53647b; font-size: 12px; line-height: 1.5; }
.tm-all-cities { color: #2367ae; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.tm-dropdown { position: absolute; left: 0; top: 100%; z-index: 50; width: 280px; max-width: calc(100vw - 32px); max-height: min(560px, 65dvh); overflow: auto; overscroll-behavior: contain; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px #14294326; color: #142943; scrollbar-color: #91b2d0 #eef5fc; scrollbar-width: thin; }
.tm-dropdown--services { width: 390px; }
.tm-dropdown[hidden] { display: none; }
.tm-network .tm-dropdown a, .tm-network .tm-dropdown button, .tm-network .tm-nav .tm-dropdown a { display: flex; align-items: center; width: 100%; min-height: 44px; height: auto; border: 0; border-radius: 6px; background: transparent; color: #142943; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left; white-space: normal; text-decoration: none; cursor: pointer; }
.tm-network .tm-dropdown a:hover, .tm-network .tm-dropdown button:hover, .tm-network .tm-dropdown a[aria-current] { background: #eef5fc; }
.tm-dropdown__intro { margin: 8px 12px 6px; color: #53647b; font-size: 13px; font-weight: 600; line-height: 1.5; }
.tm-header-contact { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-header-contact a { color: #142943; font-size: 22px; font-weight: 800; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.4; }
.tm-header-contact span { font-size: 12px; color: #53647b; line-height: 1.5; }
.tm-header-contact--request strong { font-size: 18px; }
.tm-header-benefits { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; font-size: 13px; line-height: 1.45; font-weight: 800; }
.tm-header-action { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.tm-header-action span { color: #53647b; font-size: 12px; line-height: 1.5; }
.tm-header-request { font-size: 14px; white-space: nowrap; }
.tm-menu-toggle { display: none; background: #fff; border: 1px solid #b8c9da; color: #142943; border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.tm-network .tm-nav .nav__inner { min-height: 60px; justify-content: flex-start; gap: 28px; padding: 0; }
.tm-network .tm-nav a, .tm-nav-toggle { min-height: 60px; height: auto; color: #fff; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; line-height: 1.4; }
.tm-nav-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 12px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.tm-network .tm-nav :focus-visible { outline-color: #ffc383; }
.tm-network .tm-dropdown :focus-visible { outline-color: #2367ae; outline-offset: -3px; }
.tm-nav-promise { color: #e1edff; font-size: 13px; line-height: 1.4; }
.tm-disclosure--last .tm-dropdown { right: 0; left: auto; }
.tm-menu-benefits { display: none; }
.tm-contacts__intro { max-width: 65ch; color: #53647b; margin-top: -10px; margin-bottom: 28px; }
.tm-contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tm-contact-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border: 1px solid #d5e1ec; border-radius: 14px; background: #fff; }
.tm-network .tm-contact-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
.tm-contact-card h3 a { color: #142943; text-decoration: none; }
.tm-contact-card h3 a:hover { text-decoration: underline; }
.tm-contact-card__phone { color: #2367ae; font-size: 20px; font-weight: 800; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.4; }
.tm-network .tm-contact-card__address { color: #53647b; font-size: 14px; margin: 10px 0 0; }
.tm-contact-card__categories { display: grid; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.tm-contact-card__categories a { color: #53647b; font-size: 14px; line-height: 1.5; text-underline-offset: 3px; }
.tm-contact-card__categories a:hover { color: #2367ae; }
.tm-contact-card .button { margin-top: auto; width: 100%; }
.tm-network .footer { padding: 36px 0 22px; background: #142943; color: #d5e2ef; }
.tm-network .footer > .container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.tm-network .footer__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 40px; }
.tm-network .footer__grid > * { min-width: 0; }
.tm-network .footer h3 { margin: 0; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.tm-network .footer__grid p { margin: 0; font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.tm-network .footer a { margin: 0; color: #d5e2ef; text-decoration: none; text-underline-offset: 4px; }
.tm-network .footer a:hover { color: #fff; text-decoration: underline; }
.tm-network .footer :focus-visible { outline-color: #f59638; }
.tm-network .tm-footer-brand__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.tm-network .tm-footer-brand__logo img { display: block; flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; }
.tm-network .tm-footer-brand p { max-width: 29ch; margin-top: 12px; }
.tm-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tm-network .tm-footer-nav a, .tm-network .tm-footer-messengers a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; }
.tm-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tm-footer-contact__details { display: grid; gap: 6px; }
.tm-network .tm-footer-contact__phone { display: inline-flex; align-items: center; min-height: 36px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.4; }
.tm-footer-messengers { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.tm-network .footer .button { width: fit-content; margin: 0; }
.tm-network .footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #d5e2ef33; color: #b5c7da; font-size: 12px; line-height: 1.6; }
.tm-network .footer__bottom p { margin: 0; font-size: inherit; line-height: inherit; }
.tm-footer-copyright { flex-shrink: 0; }
.tm-network .footer__disclaimer { max-width: 660px; text-align: right; text-wrap: pretty; }
.tm-network .footer__disclaimer small { font-size: inherit; }

.tm-network .modal { z-index: 100; padding: 24px; overflow-y: auto; align-items: safe center; }
.tm-network .modal[hidden] { display: none; }
.tm-network .modal__card { width: min(520px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; border-radius: 14px; background: #fff; }
.tm-network .modal__card h2 { font-size: 28px; padding-right: 28px; margin: 0 0 10px; }
.tm-network .modal__card > p { margin: 0 0 20px; color: #53647b; line-height: 1.5; }
.tm-network .modal__close { color: #142943; width: 44px; height: 44px; right: 10px; top: 10px; }
.tm-modal-form { display: flex; flex-direction: column; gap: 9px; }
.tm-modal-form label:not(.request-consent) { font-size: 14px; font-weight: 700; margin-top: 6px; }
.tm-modal-form input:not([type=hidden]):not([type=checkbox]):not(.ruki-hp), .tm-modal-form textarea, .tm-modal-form select { width: 100%; min-width: 0; border: 1px solid #b8c9da; border-radius: 8px; padding: 12px; font: inherit; font-size: 16px; background: #fff; color: #142943; min-height: 48px; margin: 0; }
.tm-modal-form textarea { resize: vertical; }
.tm-modal-form .request-consent { margin: 8px 0; font-size: 12px; line-height: 1.5; display: flex; align-items: flex-start; gap: 10px; }
.tm-modal-form .request-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #2367ae; }
.tm-modal-form small { color: #53647b; font-size: 12px; line-height: 1.5; }
.tm-network .tm-modal-feedback { color: #892b14; background: #fff3ec; padding: 12px; border-radius: 8px; }
.tm-modal-form [aria-invalid=true] { border-color: #a83224; }
.tm-modal-form [disabled] { opacity: .65; cursor: wait; }
.tm-dialog-open { overflow: hidden; }
.tm-network .mobile-sticky-cta { z-index: 40; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.tm-dialog-open .mobile-sticky-cta { visibility: hidden; }
.tm-service-cta { display: flex; flex-direction: column; gap: 22px; background: #eef5fc; border-radius: 14px; padding: 28px; align-self: start; }
.tm-network .tm-service-cta h2 { font-size: 27px; line-height: 1.25; margin: 0 0 12px; }
.tm-service-cta p { color: #53647b; line-height: 1.6; margin: 0; }
.tm-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tm-network .tm-call-button { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #2367ae; border: 1px solid #2367ae; box-shadow: none; text-decoration: none; font-size: 14px; }
.tm-network .tm-call-button:hover { background: #e0edf9; }
.tm-home .tm-cta .tm-service-cta { padding: 0; }
.tm-home .tm-cta-actions { flex-shrink: 0; }
.tm-fault-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; margin-bottom: 32px; }
.tm-fault-layout h2 { margin-top: 0; }
.tm-kazan .tm-hero__grid > img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.tm-fault-list { margin: 0; padding-left: 23px; display: grid; gap: 14px; color: #142943; font-size: 17px; line-height: 1.6; }
.tm-fault-list li { padding-left: 4px; }
.tm-fault-list li::marker { color: #2367ae; }
.tm-parts img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }
.tm-network .tm-parts h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; }
.tm-parts p { color: #53647b; font-size: 16px; line-height: 1.65; margin: 0; }
.tm-network .intent-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "intro visual"; gap: 32px; }
.tm-network .intent-hero__visual { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tm-network .intent-hero__grid > .tm-service-cta { display: none; }
.tm-network .intent-hero__illustration { width: 100%; max-width: 480px; }
.tm-network .intent-hero__illustration img { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.tm-network .intent-hero__illustration figcaption { font-size: 12px; line-height: 1.5; }
.tm-network .intent-contact-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
@media (min-width: 1150px) { .tm-home .tm-cta .tm-service-cta, #landing-diagnostics > .container > .tm-service-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (max-width: 1149px) and (min-width: 901px) {
  .tm-network .tm-topbar .topbar__inner { grid-template-columns: auto minmax(160px, 1fr) auto; gap: 10px 24px; }
  .tm-header-city { justify-self: center; }
  .tm-header-benefits { grid-column: 1 / 3; grid-row: 2; display: flex; gap: 24px; font-size: 14px; }
  .tm-header-action { grid-column: 3; grid-row: 2; }
  .tm-network .tm-nav .nav__inner { gap: 22px; }
  .tm-nav-promise { max-width: 165px; }
  .tm-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tm-network .tm-topbar .topbar__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; min-height: 0; padding: 10px 0 14px; }
  .tm-network .network-logo { gap: 7px; }
  .tm-network .network-logo__mark { width: 38px; height: 38px; }
  .tm-network .network-logo__name { font-size: 18px; }
  .tm-menu-toggle { display: flex; grid-column: 2; grid-row: 1; }
  .tm-header-city { grid-row: 2; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; }
  .tm-header-address { font-size: 12px; }
  .tm-city-toggle { font-size: 14px; }
  .tm-all-cities { margin-left: auto; display: flex; align-items: center; min-height: 44px; }
  .tm-header-contact { display: flex; grid-row: 3; grid-column: 1 / -1; }
  .tm-header-contact a { font-size: 20px; }
  .tm-header-contact span { font-size: 12px; }
  .tm-header-benefits, .tm-header-action { display: none; }
  .tm-network .tm-nav { position: relative; top: auto; z-index: 30; box-shadow: none; }
  .tm-network .tm-nav .nav__inner { display: none; min-height: 0; gap: 0; padding: 8px 0 16px; max-height: 75dvh; overflow-y: auto; }
  .tm-network .tm-nav .nav__inner.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .tm-network .tm-nav .nav__inner > a, .tm-nav-toggle { width: 100%; justify-content: space-between; min-height: 48px; padding: 12px 8px; font-size: 15px; border: 0; border-top: 1px solid #ffffff26; white-space: normal; }
  .tm-network .tm-dropdown { position: static; width: 100%; max-width: none; max-height: 45dvh; border-radius: 8px; box-shadow: none; margin-bottom: 8px; }
  .tm-network .tm-city-menu { position: absolute; width: 280px; max-width: calc(100vw - 32px); max-height: 55dvh; box-shadow: 0 8px 24px #14294326; }
  .tm-nav-promise { padding: 10px 8px; font-size: 14px; }
  .tm-menu-benefits { display: grid; gap: 10px; margin: 12px 8px 0; padding: 16px 0 0; list-style: none; border-top: 1px solid #ffffff26; color: #e1edff; font-size: 14px; line-height: 1.5; }
  .tm-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-network .intent-hero__grid, .tm-network .intent-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-network .intent-hero__grid { grid-template-areas: "intro" "visual"; }
  .tm-network .intent-hero__visual { max-width: 520px; }
  .tm-fault-layout { gap: 28px; }
}
@media (max-width: 760px) {
  .tm-network .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
  .tm-footer-brand, .tm-footer-nav { grid-column: 1; }
  .tm-footer-contact { grid-column: 2; grid-row: 1 / span 2; }
  .tm-network .footer__bottom { flex-direction: column; gap: 8px; }
  .tm-network .footer__disclaimer { text-align: left; }
  .tm-fault-layout { grid-template-columns: minmax(0, 1fr); }
  .tm-network .intent-hero h1 { font-size: 32px; line-height: 1.18; }
  .tm-network .tm-contacts__intro { margin-top: 0; }
  .tm-network .mobile-sticky-cta { display: flex; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .tm-network .mobile-sticky-cta > * { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; min-height: 48px; padding: 10px 8px; border-radius: 8px; font-size: 13px; line-height: 1.35; text-align: center; }
  .tm-network .mobile-sticky-cta__phone { background: #2367ae; color: #fff; }
  .tm-network .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .tm-network .container, .tm-network .footer > .container { width: calc(100% - 32px); }
  .tm-network section[id], .tm-network footer[id], .tm-network h2[id] { scroll-margin-top: 20px; }
  .tm-network .tm-topbar { position: relative; }
  .tm-header-contact a { font-size: 20px; }
  .tm-header-city { gap: 0 12px; }
  .tm-header-address { width: 100%; padding-bottom: 5px; }
  .tm-network .footer { padding-top: 28px; }
  .tm-network .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tm-footer-brand, .tm-footer-nav, .tm-footer-contact { grid-column: auto; grid-row: auto; }
  .tm-footer-nav { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .tm-footer-contact { margin-top: 4px; padding-top: 20px; border-top: 1px solid #d5e2ef33; }
  .tm-network .footer__bottom { margin-top: 24px; }
  .tm-network .modal { padding: 12px; }
  .tm-network .modal__card { padding: 22px 18px; max-height: calc(100dvh - 24px); }
  .tm-network .modal__card h2 { font-size: 25px; }
  .tm-network .intent-hero__visual { display: none; }
  .tm-network .intent-hero__grid { grid-template-areas: "intro"; gap: 0; }
  .tm-network .intent-hero h1 { font-size: 30px; }
  .tm-contact-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tm-contact-card { padding: 22px; }
  .tm-contact-card__phone { font-size: 20px; }
  .tm-network .tm-contact-card h3 { font-size: 22px; }
  .tm-network .tm-service-cta { padding: 22px; }
  .tm-network .tm-service-cta h2 { font-size: 25px; }
  .tm-cta-actions { width: 100%; }
  .tm-cta-actions .button { width: 100%; }
  .tm-fault-list { font-size: 16px; gap: 12px; }
  .tm-network .tm-home .tm-category { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tm-city-toggle svg, .tm-nav-toggle svg { transition: none; } }
