/* Shared header and messenger assets across the DB-backed public site. */
.site-header .utility-bar {
  height: auto !important;
  min-height: 40px;
  padding: 0 !important;
  background: #202c3e !important;
}

.site-header .utility-bar .utility-inner {
  min-height: 40px;
  height: auto;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-block: 0;
}

.site-header .utility-bar a.tc-header-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.tc-header-phone svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.site-slogan {
  padding: 18px 12px;
  background: #f3f4f6;
}

.site-slogan p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  color: #454950;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.site-slogan b {
  color: #b51f38;
  font-weight: 800;
}

a.tc-messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a.tc-messenger-link .tc-messenger-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.tc-messengers a.tc-messenger-link,
.site-footer .messenger-links a.tc-footer-messenger {
  background: #fff !important;
  animation: none !important;
  box-shadow: 0 4px 16px #0002 !important;
}

.tc-messengers a.tc-messenger-whatsapp,
.site-footer .messenger-links a.tc-messenger-whatsapp {
  background: #25d366 !important;
}

.tc-messengers a.tc-messenger-link .tc-messenger-icon {
  width: 36px;
  height: 36px;
}

.site-footer a.tc-footer-messenger .tc-messenger-icon {
  width: 32px;
  height: 32px;
}

.editorial-card h2,
.editorial-card h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 0;
}

.editorial-card h2::before,
.editorial-card h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #b51f38;
  transform: translateY(-2px);
}

/* Alternate full-width sections, using the graphite and red of the catalogue. */
.tc-home {
  --tc-graphite: #202c3e;
  --tc-accent: #b51f38;
  --tc-soft: #f3f4f6;
}

.tc-home main > .section,
.tc-home .professional {
  padding-block: 56px;
}

.tc-home .advantages,
.tc-home #proekt,
.tc-home #request {
  background: var(--tc-graphite);
  color: #fff;
}

.tc-home #calculator,
.tc-home .professional {
  background: var(--tc-soft);
  color: #272c34;
}

.tc-home .advantages .eyebrow,
.tc-home #proekt .eyebrow,
.tc-home #request .lead-copy > .eyebrow {
  color: #f17e8f;
}

.tc-home .advantages .section-intro,
.tc-home #request .lead-copy > p:not(.eyebrow),
.tc-home #request .lead-note,
.tc-home #request .contact-links > span {
  color: #cbd2dc;
}

.tc-home .approach-grid {
  gap: 20px;
  margin-top: 28px;
}

.tc-home .advantages .approach-grid > div {
  padding: 26px;
  border: 1px solid #445166;
  border-radius: 16px;
  box-shadow: none;
  background: #2a3749;
  color: #fff;
}

.tc-home .advantages .approach-grid h3,
.tc-home #proekt .editorial-card h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.4;
}

.tc-home .approach-grid h3::before,
.tc-home .editorial-card h3::before,
.tc-home .professional-links a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #e23b52;
  transform: translateY(-2px);
}

.tc-home .advantages .approach-grid p,
.tc-home #proekt .editorial-card p {
  color: #cbd2dc;
  font-size: 14px;
}

.tc-home #proekt .section-heading > .text-link {
  color: #fff;
}

.tc-home #proekt .editorial-card {
  padding: 28px;
  border: 1px solid #445166;
  border-radius: 16px;
  background: #2a3749;
}

.tc-home #proekt .editorial-card:hover,
.tc-home #proekt .editorial-card:focus-visible {
  border-color: #f17e8f;
}

.tc-home #proekt .editorial-card p {
  margin: 0 0 22px;
}

.tc-home #proekt .editorial-card .text-link {
  color: #f17e8f;
}

.tc-home .professional-content {
  gap: 56px;
}

.tc-home .professional .eyebrow {
  color: var(--tc-accent);
}

.tc-home .professional h2 {
  margin: 14px 0 20px;
}

.tc-home .professional p:not(.eyebrow) {
  max-width: 490px;
  margin: 0 0 24px;
  color: #59616e;
  font-size: 15px;
}

.tc-home .professional .button {
  margin-top: 0;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid var(--tc-accent);
  border-radius: 10px;
  background: var(--tc-accent);
  color: #fff;
  font-size: 14px;
}

.tc-home .professional .button:hover {
  background: #94192e;
}

.tc-home .professional-links {
  gap: 12px;
}

.tc-home .professional-links a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid #dce0e6;
  border-radius: 12px;
  background: #fff;
  color: #272c34;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s;
}

.tc-home .professional-links a:hover {
  border-color: var(--tc-accent);
}

.tc-home #request .contact-phone,
.tc-home #request .contact-links > a {
  color: #fff;
}

.tc-home #request .messenger-links a {
  color: #fff;
}

.tc-home #request .lead-form {
  border-radius: 16px;
  background: #fff;
  color: #272c34;
}

.tc-home .contact-strip {
  border: 0;
}

/* Catalogue selectors share the burgundy accent and quiet surfaces of the cards. */
#tc-shop .shop-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}

#tc-shop .catalog-select {
  position: relative;
  min-width: 0;
}

#tc-shop .catalog-select.is-open {
  /* Keep list options above the fixed messenger buttons (99999). */
  z-index: 100000;
}

#tc-shop .catalog-select-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid #dedbd9;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff, #fdfcfa);
  box-shadow: 0 3px 12px #29212a05, inset 0 1px 0 #fff;
  text-align: left;
  font-family: Manrope, Arial, sans-serif;
  transition: border-color .22s, box-shadow .22s, background .22s;
}

#tc-shop .catalog-select-trigger:hover {
  border-color: #bd8b91;
  box-shadow: 0 5px 18px #7423310c;
}

#tc-shop .catalog-select.is-open .catalog-select-trigger {
  border-color: #a64957;
  background: #fff;
  box-shadow: 0 0 0 3px #8d222c0a, 0 6px 20px #7423310a;
}

#tc-shop .catalog-select-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #eee2e1;
  border-radius: 12px;
  background: #faf4f3;
  color: #963243;
}

#tc-shop .catalog-select svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#tc-shop .catalog-select-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

#tc-shop .catalog-select-label {
  color: #7e7476;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

#tc-shop .catalog-select-value {
  color: #30282c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#tc-shop .catalog-select-chevron {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid #eee6e5;
  border-radius: 50%;
  background: #fff;
  color: #8d222c;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background .2s;
}

#tc-shop .catalog-select.is-open .catalog-select-chevron {
  transform: rotate(180deg);
  background: #faf0f1;
}

#tc-shop .catalog-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(360px, 50dvh);
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e7dbdc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px #38212c24, 0 3px 10px #38212c08;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(.98);
  transform-origin: top center;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s .26s;
  scrollbar-width: thin;
  scrollbar-color: #d5b7bb transparent;
}

#tc-shop .catalog-select.opens-up .catalog-select-menu {
  top: auto;
  bottom: calc(100% + 10px);
  transform-origin: bottom center;
}

#tc-shop .catalog-select.is-open .catalog-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

#tc-shop .catalog-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4d4448;
  text-align: left;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  transition: background .16s, color .16s;
}

#tc-shop .catalog-select-option > span:first-child {
  flex: 1;
}

#tc-shop .catalog-select-option:hover,
#tc-shop .catalog-select-option:focus-visible {
  outline: none;
  background: #f7f4f2;
  color: #812433;
}

#tc-shop .catalog-select-option[aria-selected="true"] {
  background: #faf0f1;
  color: #8d222c;
  font-weight: 700;
}

#tc-shop .catalog-select-count {
  color: #948489;
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

#tc-shop .catalog-select-option svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0;
}

#tc-shop .catalog-select-option[aria-selected="true"] svg {
  opacity: 1;
}

#tc-shop .catalog-card-meta {
  margin: 0 0 14px;
}

#tc-shop .catalog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid #e9dadd;
  border-radius: 999px;
  background: linear-gradient(150deg, #fff, #faf3f3);
  box-shadow: 0 2px 7px #5e26320b, inset 0 1px 0 #fff;
  color: #86404c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

#tc-shop .catalog-category-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #b24558;
}

#tc-shop .catalog-card-heights {
  margin: 8px 0 0;
  color: #7e7476;
  font-size: 12px;
}

#tc-shop .card .card-price {
  margin: 0 0 18px;
  color: #a12036;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

#tc-shop .card-price small {
  margin-top: 5px;
  color: #7e7476;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  #tc-shop .shop-filter-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  #tc-shop .catalog-select-trigger {
    gap: 8px;
    min-height: 86px;
    height: 100%;
    padding: 12px;
    border-radius: 13px;
  }

  #tc-shop .catalog-select-icon {
    display: none;
  }

  #tc-shop .catalog-select-label {
    font-size: 9px;
    letter-spacing: .07em;
  }

  #tc-shop .catalog-select-value {
    font-size: 13px;
  }

  #tc-shop .catalog-select-chevron {
    width: 22px;
    height: 22px;
  }

  #tc-shop .catalog-select-menu {
    width: min(360px, calc(100vw - 28px));
    right: auto;
  }

  #tc-shop [data-catalog-select="brand"] .catalog-select-menu {
    left: auto;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tc-shop .catalog-select-trigger,
  #tc-shop .catalog-select-chevron,
  #tc-shop .catalog-select-menu,
  #tc-shop .catalog-select-option {
    transition: none;
  }
}

@media (max-width: 767px) {
  #tc-shop .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #tc-shop .cover {
    height: clamp(260px, 75vw, 420px);
  }

  .site-header .utility-bar .utility-inner {
    justify-content: center !important;
    min-height: 42px;
  }

  .site-header .main-header {
    height: 76px;
  }

  .site-slogan {
    padding: 12px;
  }

  .site-slogan p {
    gap: .5em;
    font-size: clamp(11px, 3.05vw, 15px);
    white-space: nowrap;
  }

  .tc-home main > .section,
  .tc-home .professional {
    padding-block: 32px;
  }

  .tc-home .tc-showcase {
    padding: 8px 0 28px;
  }

  .tc-home .tc-showcase-bottom {
    padding-top: 20px;
  }

  .tc-home .section-heading {
    gap: 16px;
    margin-bottom: 24px;
  }

  .tc-home .approach-grid {
    gap: 12px;
    margin-top: 24px;
  }

  .tc-home .advantages .approach-grid > div,
  .tc-home #proekt .editorial-card {
    padding: 20px;
  }

  .tc-home #proekt .editorial-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tc-home #proekt .editorial-card h3 {
    font-size: 22px;
  }

  .tc-home .professional-content,
  .tc-home .lead-layout {
    gap: 28px;
  }

  .tc-home .professional-links {
    gap: 8px;
  }

  .tc-home .professional-links a {
    padding: 16px 18px;
    font-size: 15px;
  }

  .tc-home .contact-strip {
    padding-block: 24px;
  }
}
