:root {
  --tp-ink: #142124;
  --tp-ink-soft: #566468;
  --tp-dark: #10292b;
  --tp-accent: #1aa58f;
  --tp-accent-dark: #117968;
  --tp-line: #dce5e3;
  --tp-soft: #f2f6f5;
  --tp-shell: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html.tp-menu-open {
  overflow: hidden;
}

body.tp-site,
body.tp-component-only,
body.tp-error-page {
  margin: 0;
  color: var(--tp-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tp-skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--tp-dark);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.tp-skip-link:focus {
  transform: translateY(0);
}

.tp-top-modules {
  position: relative;
  z-index: 91;
}

.tp-header {
  z-index: 90;
  width: 100%;
  border-bottom: 1px solid var(--tp-line);
  background: rgba(255,255,255,.97);
  transition: box-shadow .2s ease, background .2s ease;
}

.tp-header--sticky {
  position: sticky;
  top: 0;
}

.tp-header.is-scrolled {
  box-shadow: 0 9px 30px rgba(18, 44, 46, .08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.tp-header__inner {
  width: min(calc(100% - 40px), 1360px);
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.tp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tp-ink);
  text-decoration: none;
}

.tp-logo:hover {
  color: var(--tp-ink);
  text-decoration: none;
}

.tp-logo__mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--tp-dark);
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  color: var(--tp-accent);
}

.tp-logo__mark i {
  display: block;
  height: 1.5px;
  background: currentColor;
}

.tp-logo__mark i:nth-child(2) {
  width: 72%;
}

.tp-logo__mark i:nth-child(3) {
  width: 88%;
}

.tp-logo__text {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  line-height: 1;
}

.tp-logo__text b,
.tp-logo__text em {
  font-size: 21px;
  font-style: normal;
  font-weight: 560;
  letter-spacing: -.045em;
}

.tp-logo__text b {
  color: var(--tp-dark);
}

.tp-logo__text em {
  color: var(--tp-accent-dark);
}

.tp-logo__text small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #7c888b;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tp-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.tp-main-nav a {
  position: relative;
  padding: 29px 0 26px;
  color: #455357;
  font-size: 13px;
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
}

.tp-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--tp-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.tp-main-nav a:hover,
.tp-main-nav a.is-active {
  color: var(--tp-ink);
}

.tp-main-nav a:hover::after,
.tp-main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.tp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-lang-switch {
  min-width: 43px;
  height: 38px;
  border: 1px solid var(--tp-line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--tp-ink-soft);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.tp-lang-switch:hover {
  color: var(--tp-accent-dark);
  border-color: var(--tp-accent);
}

.tp-header-phone {
  display: grid;
  gap: 1px;
  color: var(--tp-ink);
  text-decoration: none;
  text-align: right;
}

.tp-header-phone span {
  color: #899497;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tp-header-phone b {
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}

.tp-header-wa {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tp-accent);
}

.tp-header-wa:hover {
  color: #fff;
  background: var(--tp-accent-dark);
}

.tp-header-wa .tp-icon {
  width: 20px;
  height: 20px;
}

.tp-menu-toggle {
  width: 42px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--tp-line);
  border-radius: 5px;
  display: none;
  align-content: center;
  gap: 5px;
  background: #fff;
  cursor: pointer;
}

.tp-menu-toggle > span {
  height: 1.5px;
  display: block;
  background: var(--tp-ink);
  transition: transform .2s ease, opacity .2s ease;
}

.tp-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.tp-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.tp-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.tp-mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 430px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 37, 39, .16);
  transform: translateX(102%);
  transition: transform .28s ease;
}

.tp-mobile-menu[hidden] {
  display: none;
}

.tp-mobile-menu.is-open {
  transform: translateX(0);
}

.tp-mobile-menu__head {
  min-height: 54px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-mobile-menu__head span {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tp-mobile-menu__head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  color: var(--tp-ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tp-mobile-menu nav {
  margin-top: 20px;
  display: grid;
}

.tp-mobile-menu nav a {
  min-height: 56px;
  border-bottom: 1px solid var(--tp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tp-ink);
  font-size: 18px;
  text-decoration: none;
}

.tp-mobile-menu nav a span {
  color: var(--tp-accent-dark);
  font-size: 14px;
}

.tp-mobile-menu__contact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--tp-line);
  display: grid;
  gap: 10px;
}

.tp-mobile-menu__contact > a:not(.tp-btn) {
  color: var(--tp-ink);
  text-decoration: none;
}

.tp-menu-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  background: rgba(9, 24, 25, .52);
  opacity: 0;
  transition: opacity .25s ease;
}

.tp-menu-backdrop[hidden] {
  display: none;
}

.tp-menu-backdrop.is-open {
  opacity: 1;
}

.tp-main {
  min-height: 60vh;
}

/* Joomla messages */
joomla-alert,
.alert {
  width: min(calc(100% - 40px), var(--tp-shell));
  margin: 18px auto;
  padding: 14px 18px;
  border: 1px solid var(--tp-line);
  border-left: 3px solid var(--tp-accent);
  border-radius: 6px;
  color: var(--tp-ink);
  background: var(--tp-soft);
}

.alert-danger,
joomla-alert[type="danger"] {
  border-left-color: #b14a4a;
  background: #fff3f3;
}

/* Footer */
.tp-footer {
  margin-top: 40px;
  color: rgba(255,255,255,.72);
  background: #0c2325;
}

.tp-footer__main {
  width: min(calc(100% - 40px), var(--tp-shell));
  margin-inline: auto;
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: 1.3fr .72fr .72fr .9fr;
  gap: 60px;
}

.tp-logo--footer {
  color: #fff;
}

.tp-logo--footer .tp-logo__mark {
  border-color: rgba(255,255,255,.26);
}

.tp-logo--footer .tp-logo__text b {
  color: #fff;
}

.tp-footer__brand p {
  max-width: 330px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.54);
  line-height: 1.7;
}

.tp-footer__column,
.tp-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.tp-footer__column > b,
.tp-footer__contact > b {
  margin-bottom: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tp-footer__column a,
.tp-footer__contact a {
  color: rgba(255,255,255,.64);
  text-decoration: none;
}

.tp-footer__column a:hover,
.tp-footer__contact a:hover {
  color: #fff;
}

.tp-footer__contact .tp-footer__phone {
  color: #fff;
  font-size: 20px;
  font-weight: 560;
}

.tp-footer__contact span {
  color: rgba(255,255,255,.44);
}

.tp-footer__notice {
  width: min(calc(100% - 40px), var(--tp-shell));
  margin-inline: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.47);
  font-size: 12px;
  line-height: 1.65;
}

.tp-footer__bottom {
  width: min(calc(100% - 40px), var(--tp-shell));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
}

.tp-footer__bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tp-footer__bottom a {
  color: rgba(255,255,255,.48);
  text-decoration: none;
}

.tp-footer__bottom a:hover {
  color: #fff;
}

/* Basic buttons are duplicated for error/offline pages */
.tp-btn {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
}

.tp-btn--primary {
  color: #fff;
  background: var(--tp-accent);
  border-color: var(--tp-accent);
}

.tp-btn--ghost {
  color: var(--tp-ink);
  background: transparent;
  border-color: var(--tp-line);
}

/* Error/offline */
.tp-error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(var(--tp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tp-line) 1px, transparent 1px),
    #f7f9f9;
  background-size: 54px 54px;
}

.tp-error-page main {
  width: min(100%, 620px);
  padding: 54px;
  border: 1px solid var(--tp-line);
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 44, 46, .10);
}

.tp-error-page main > span {
  display: block;
  color: var(--tp-accent-dark);
  font-size: 76px;
  line-height: 1;
  font-weight: 560;
  letter-spacing: -.06em;
}

.tp-error-page h1 {
  margin: 20px 0 12px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 570;
}

.tp-error-page p {
  margin: 0 0 26px;
  color: var(--tp-ink-soft);
}

.tp-error-page main > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-error-page form {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.tp-error-page input {
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .tp-header__inner {
    gap: 24px;
  }
  .tp-main-nav {
    gap: 17px;
  }
  .tp-main-nav a {
    font-size: 12px;
  }
  .tp-header-phone {
    display: none;
  }
}

@media (max-width: 900px) {
  .tp-header__inner {
    width: min(calc(100% - 28px), 1360px);
    grid-template-columns: auto 1fr;
    min-height: 68px;
  }
  .tp-main-nav,
  .tp-header-wa {
    display: none;
  }
  .tp-header__actions {
    justify-self: end;
  }
  .tp-menu-toggle {
    display: grid;
  }
  .tp-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .tp-footer__contact {
    grid-column: 1 / -1;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 680px) {
  .tp-header__inner {
    width: min(calc(100% - 22px), 1360px);
  }
  .tp-logo__mark {
    width: 34px;
    height: 34px;
  }
  .tp-logo__text b,
  .tp-logo__text em {
    font-size: 19px;
  }
  .tp-logo__text small {
    display: none;
  }
  .tp-lang-switch {
    min-width: 40px;
  }
  .tp-mobile-menu {
    width: 100%;
  }
  .tp-footer {
    margin-top: 0;
  }
  .tp-footer__main {
    width: min(calc(100% - 28px), var(--tp-shell));
    padding: 54px 0 38px;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .tp-footer__brand,
  .tp-footer__contact {
    grid-column: 1 / -1;
  }
  .tp-footer__notice,
  .tp-footer__bottom {
    width: min(calc(100% - 28px), var(--tp-shell));
  }
  .tp-footer__bottom {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .tp-footer__bottom > div {
    gap: 10px 16px;
  }
  .tp-error-page main {
    padding: 34px 20px;
  }
  .tp-error-page main > span {
    font-size: 58px;
  }
  .tp-error-page h1 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* v1.0.9 visual refinement: thinner typography + blue/graphite palette */
:root {
  --tp-ink: #182233;
  --tp-ink-soft: #69758a;
  --tp-dark: #111827;
  --tp-dark-2: #1a2438;
  --tp-accent: #3a5ed8;
  --tp-accent-dark: #2846a8;
  --tp-accent-soft: #e8eeff;
  --tp-line: #dde4f0;
  --tp-soft: #f6f8fc;
  --tp-warm: #f3f5f9;
}

.tp-page h1,
.tp-page h2,
.tp-page h3,
.tp-page h4,
.tp-error-page h1,
.tp-section-head h2,
.tp-logo__text b,
.tp-logo__text em,
.tp-footer__contact .tp-footer__phone {
  font-weight: 480 !important;
  letter-spacing: -0.03em;
}

.tp-main-nav a,
.tp-lang-switch,
.tp-kicker,
.tp-eyebrow,
.tp-btn,
.tp-text-link,
.tp-mobile-menu__head span,
.tp-footer__column > b,
.tp-footer__contact > b,
.tp-header-phone b {
  font-weight: 500 !important;
}

.tp-main-nav a {
  color: #516074;
}

.tp-logo__mark {
  border-color: #cfd7e6;
  color: var(--tp-accent);
}

.tp-btn {
  border-radius: 6px;
}

.tp-btn--primary {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
}

.tp-btn--primary:hover {
  background: var(--tp-accent-dark);
  border-color: var(--tp-accent-dark);
}

.tp-btn--ghost:hover,
.tp-text-link,
.tp-kicker,
.tp-eyebrow,
.tp-mobile-menu nav a span,
.tp-lang-switch:hover {
  color: var(--tp-accent-dark);
}

.tp-header-wa {
  background: var(--tp-dark);
}

.tp-header-wa:hover {
  background: var(--tp-accent);
}

.tp-footer {
  background: #0f1727;
}

.tp-error-page {
  background:
    linear-gradient(var(--tp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tp-line) 1px, transparent 1px),
    #f7f9fd;
}

/* v1.0.9: reference-style floating header and three-level mega menu */
@media (min-width: 901px) {
  .tp-header {
    padding: 10px 0 8px;
    border: 0;
    background: rgba(237, 241, 247, .96);
  }

  .tp-header--sticky {
    top: 0;
  }

  .tp-header.is-scrolled {
    background: rgba(237, 241, 247, .92);
    box-shadow: none;
    backdrop-filter: blur(16px);
  }

  .tp-header__inner {
    width: min(calc(100% - 32px), 1380px);
    min-height: 58px;
    padding: 0 12px 0 18px;
    border: 1px solid rgba(205, 214, 226, .95);
    border-radius: 31px;
    grid-template-columns: auto auto auto 1fr auto;
    gap: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 32px rgba(32, 44, 67, .08);
  }

  .tp-logo {
    padding-right: 18px;
  }

  .tp-logo__mark {
    width: 32px;
    height: 32px;
  }

  .tp-logo__text b,
  .tp-logo__text em {
    font-size: 18px;
  }

  .tp-logo__text small {
    display: none;
  }

  .tp-city-selector,
  .tp-catalog-trigger {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid var(--tp-line);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2e3748;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
  }

  .tp-city-selector i,
  .tp-catalog-trigger > b {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
  }

  .tp-catalog-trigger {
    border-right: 1px solid var(--tp-line);
  }

  .tp-catalog-trigger:hover,
  .tp-catalog-trigger.is-active,
  .tp-catalog-trigger.is-open {
    color: var(--tp-accent);
  }

  .tp-catalog-trigger.is-open > b {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .tp-catalog-trigger__icon {
    width: 15px;
    height: 15px;
    display: grid;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    gap: 3px;
  }

  .tp-catalog-trigger__icon i {
    border: 1.5px solid currentColor;
    border-radius: 2px;
  }

  .tp-main-nav {
    justify-content: flex-start;
    gap: clamp(15px, 1.6vw, 27px);
    padding-left: 24px;
  }

  .tp-main-nav a {
    padding: 20px 0 18px;
    font-size: 12px;
  }

  .tp-header__actions {
    padding-left: 12px;
  }

  .tp-header-phone span {
    display: none;
  }

  .tp-header-phone b {
    font-size: 13px;
  }

  .tp-header-wa {
    width: auto;
    height: 40px;
    padding: 0 15px;
    gap: 7px;
    border-radius: 21px;
    background: var(--tp-accent);
    text-decoration: none;
  }

  .tp-header-wa span {
    font-size: 12px;
    font-weight: 500;
  }

  .tp-header-wa .tp-icon {
    width: 18px;
    height: 18px;
  }
}

.tp-mega-menu {
  position: fixed;
  z-index: 121;
  top: 78px;
  left: 50%;
  width: min(calc(100% - 42px), 1200px);
  max-height: calc(100vh - 98px);
  border: 1px solid #dfe5ef;
  border-radius: 22px;
  color: #1c2638;
  background: #fff;
  box-shadow: 0 28px 80px rgba(26, 36, 55, .20);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -10px) scale(.992);
  transform-origin: top center;
  transition: opacity .18s ease, transform .22s ease;
}

.tp-mega-menu[hidden],
.tp-mega-backdrop[hidden] {
  display: none;
}

.tp-mega-menu.is-open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.tp-mega-backdrop {
  position: fixed;
  z-index: 119;
  inset: 0;
  background: rgba(24, 32, 45, .30);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .18s ease;
}

.tp-mega-backdrop.is-open {
  opacity: 1;
}

.tp-mega-menu__tabs {
  min-height: 52px;
  padding: 0 14px 0 28px;
  border-bottom: 1px solid #e3e8f0;
  display: flex;
  align-items: stretch;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tp-mega-menu__tabs::-webkit-scrollbar {
  display: none;
}

.tp-mega-menu__tabs > button:not(.tp-mega-menu__close) {
  position: relative;
  min-width: max-content;
  padding: 0 18px;
  border: 0;
  color: #30394a;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.tp-mega-menu__tabs > button:not(.tp-mega-menu__close)::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: var(--tp-accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.tp-mega-menu__tabs > button.is-active {
  color: var(--tp-accent);
}

.tp-mega-menu__tabs > button.is-active::after {
  transform: scaleX(1);
}

.tp-mega-menu__tabs > button span {
  margin-left: 6px;
  color: #9ca8b8;
}

.tp-mega-menu__close {
  position: sticky;
  right: 0;
  width: 42px;
  margin-left: auto;
  border: 0;
  color: #90a0b3;
  background: #fff;
  font-size: 26px;
  font-weight: 300;
  cursor: pointer;
}

.tp-mega-menu__body {
  min-height: 530px;
  max-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: 300px 360px minmax(300px, 1fr);
}

.tp-mega-menu__categories,
.tp-mega-menu__services,
.tp-mega-menu__preview {
  min-width: 0;
  overflow-y: auto;
}

.tp-mega-menu__categories,
.tp-mega-menu__services {
  border-right: 1px solid #e3e8f0;
}

.tp-mega-menu__categories {
  padding: 12px 0;
}

.tp-mega-menu__categories > button {
  width: 100%;
  min-height: 47px;
  padding: 7px 18px 7px 26px;
  border: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  color: #30394a;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 450;
  cursor: pointer;
}

.tp-mega-menu__categories > button:hover,
.tp-mega-menu__categories > button.is-active {
  color: var(--tp-accent);
  background: #f3f6fc;
}

.tp-mega-menu__category-icon {
  display: grid;
  place-items: center;
  color: #91a1b4;
}

.tp-mega-menu__categories > button.is-active .tp-mega-menu__category-icon {
  color: var(--tp-accent);
}

.tp-mega-menu__category-icon .tp-icon {
  width: 19px;
  height: 19px;
}

.tp-mega-menu__categories > button b {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 10px;
  color: #8e9bad;
  background: #edf1f7;
  font-size: 9px;
  font-weight: 500;
  text-align: center;
}

.tp-mega-menu__categories > button i {
  color: #b5bfcc;
  font-size: 18px;
  font-style: normal;
}

.tp-mega-menu__services {
  padding: 18px 0;
}

.tp-mega-menu__panel[hidden],
.tp-mega-menu__preview-panel[hidden] {
  display: none;
}

.tp-mega-menu__panel-head {
  padding: 0 22px 14px;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.tp-mega-menu__panel-head span,
.tp-mega-menu__preview-kicker {
  color: #8c98aa;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tp-mega-menu__panel-head h3,
.tp-mega-menu__preview h3 {
  margin: 4px 0 0;
  color: #1e2a3d;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.tp-mega-menu__panel-head > a {
  color: var(--tp-accent);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.tp-mega-menu__service-list {
  padding: 7px 0 18px;
}

.tp-mega-menu__service-list a {
  min-height: 42px;
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #30394a;
  font-size: 12px;
  text-decoration: none;
}

.tp-mega-menu__service-list a:hover {
  color: var(--tp-accent);
  background: #f5f7fb;
}

.tp-mega-menu__service-list a i {
  color: #c2cad5;
  font-size: 18px;
  font-style: normal;
}

.tp-mega-menu__preview {
  padding: 30px 32px;
  background: linear-gradient(145deg, #fff 0%, #f8faff 100%);
}

.tp-mega-menu__preview h3 {
  margin-top: 8px;
  color: var(--tp-accent);
  font-size: 20px;
  text-transform: uppercase;
}

.tp-mega-menu__preview p {
  max-width: 520px;
  margin: 14px 0 28px;
  color: #69758a;
  font-size: 12px;
  line-height: 1.7;
}

.tp-mega-menu__popular {
  padding-top: 20px;
  border-top: 1px solid #e2e7ef;
  display: grid;
  gap: 12px;
}

.tp-mega-menu__popular > b {
  margin-bottom: 3px;
  color: #273247;
  font-size: 12px;
  font-weight: 500;
}

.tp-mega-menu__popular a {
  color: #556176;
  font-size: 12px;
  text-decoration: none;
}

.tp-mega-menu__popular a:hover {
  color: var(--tp-accent);
}

.tp-mega-menu__category-link {
  margin-top: 30px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d8e0ee;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #29364a;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

.tp-mega-menu__category-link:hover {
  color: var(--tp-accent);
  border-color: #aebce0;
}

.tp-mobile-categories {
  margin: 24px 0;
  display: grid;
}

.tp-mobile-categories > b {
  padding-bottom: 12px;
  color: #7d899a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tp-mobile-categories a {
  min-height: 48px;
  border-bottom: 1px solid var(--tp-line);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--tp-ink);
  font-size: 13px;
  text-decoration: none;
}

.tp-mobile-categories .tp-icon {
  width: 18px;
  height: 18px;
  color: var(--tp-accent);
}

.tp-mobile-categories i {
  color: #a6b0bf;
  font-size: 18px;
  font-style: normal;
}

@media (max-width: 1220px) and (min-width: 901px) {
  .tp-city-selector {
    display: none;
  }
  .tp-header__inner {
    grid-template-columns: auto auto 1fr auto;
  }
  .tp-main-nav {
    padding-left: 18px;
    gap: 16px;
  }
  .tp-main-nav a {
    font-size: 11px;
  }
  .tp-mega-menu {
    width: calc(100% - 30px);
  }
}

@media (max-width: 1060px) and (min-width: 901px) {
  .tp-main-nav {
    display: none;
  }
  .tp-header__inner {
    grid-template-columns: auto auto 1fr;
  }
  .tp-header__actions {
    justify-self: end;
  }
  .tp-mega-menu__body {
    grid-template-columns: 280px 330px 1fr;
  }
}

@media (max-width: 900px) {
  .tp-city-selector,
  .tp-catalog-trigger,
  .tp-mega-menu,
  .tp-mega-backdrop {
    display: none !important;
  }
}

/* v1.0.9: header action alignment and WhatsApp button fix */
@media (min-width: 901px) {
  .tp-header__actions {
    min-width: max-content;
    flex-wrap: nowrap;
    align-items: center;
    gap: 11px;
  }

  .tp-lang-switch {
    width: 44px;
    min-width: 44px;
    height: 40px;
    flex: 0 0 44px;
    line-height: 1;
  }

  .tp-header-phone {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
  }

  .tp-header-phone b {
    display: block;
    line-height: 1;
  }

  .tp-header-wa {
    width: auto !important;
    min-width: 108px;
    height: 40px;
    padding: 0 15px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 7px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
  }

  .tp-header-wa .tp-icon {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 17px;
  }

  .tp-header-wa span {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .tp-header__actions {
    gap: 8px;
  }

  .tp-header-wa {
    min-width: 102px;
    padding-inline: 13px;
  }
}

/* 1.1.7 — header actions for the directory model */
.tp-header-wa--directory {
  width: auto;
  min-width: 126px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.tp-header-wa--directory .tp-icon {
  width: 17px;
  height: 17px;
}

.tp-header-wa--directory span {
  font-size: 12px;
  font-weight: 500;
}

.tp-header-phone--directory b {
  color: var(--tp-accent-dark);
}

@media (max-width: 1180px) {
  .tp-header-phone--directory {
    display: none;
  }
}

@media (max-width: 900px) {
  .tp-header-wa--directory {
    display: none;
  }
}

/* === ТехПодряд 1.1.7: cold white design system === */
:root {
  --tp-ink: #172033;
  --tp-ink-soft: #647087;
  --tp-dark: #111827;
  --tp-dark-2: #1b2435;
  --tp-accent: #315ee8;
  --tp-accent-dark: #2449bb;
  --tp-accent-soft: #eaf0ff;
  --tp-line: #e2e7f0;
  --tp-soft: #f6f8fc;
  --tp-warm: #f6f8fc;
  --tp-surface: #ffffff;
}

html,
body.tp-site,
body.tp-component-only {
  background: #ffffff !important;
}

body.tp-site {
  color: var(--tp-ink);
}

.tp-header {
  border-bottom-color: #e5e9f1;
  background: rgba(255, 255, 255, .98);
}

.tp-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 34px rgba(23, 32, 51, .065);
}

.tp-main {
  background: #ffffff;
}

.tp-main-nav a,
.tp-header-phone,
.tp-lang-switch {
  font-weight: 480 !important;
}

.tp-logo__text b,
.tp-logo__text em {
  font-weight: 500 !important;
}

.tp-mobile-menu {
  background: #ffffff;
  box-shadow: -20px 0 64px rgba(20, 31, 54, .15);
}

.tp-footer {
  background: #111827;
}

.tp-btn {
  border-radius: 7px;
  font-weight: 500 !important;
}

.tp-btn--primary {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
}

.tp-btn--primary:hover {
  background: var(--tp-accent-dark);
  border-color: var(--tp-accent-dark);
}
