/*
 * ТИ КОЛЛЕКШН — шапка сайта.
 * v1.2.0: центрированная Gutenberg-шапка без WhatsApp и без накопившихся override-слоёв.
 */
body {
  --tc-header-bg:rgba(255,253,247,.94);
  --tc-header-ink:#263f24;
  --tc-header-line:rgba(38,63,36,.12);
  --tc-header-hover:rgba(38,63,36,.07);
}
.tc-site-header {
  position:sticky !important;
  top:var(--wp-admin--admin-bar--height,0px) !important;
  z-index:900;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-bottom:1px solid var(--tc-header-line) !important;
  border-radius:0 !important;
  background:var(--tc-header-bg) !important;
  box-shadow:0 8px 28px rgba(38,63,36,.07) !important;
  backdrop-filter:blur(16px);
}
.tc-site-header-row {
  width:min(1380px,calc(100% - 36px)) !important;
  max-width:1380px !important;
  min-height:68px;
  margin:0 auto !important;
  padding:8px 0 !important;
  display:grid !important;
  grid-template-columns:minmax(210px,auto) minmax(300px,1fr) auto;
  align-items:center;
  gap:clamp(16px,2vw,28px) !important;
}
.tc-header-brand {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0;
}
.tc-header-brand .wp-block-site-logo { margin:0 !important; flex:0 0 44px; }
.tc-header-brand .wp-block-site-logo img {
  display:block; width:44px !important; height:44px !important; object-fit:contain;
}
.tc-header-brand .wp-block-site-title {
  margin:0 !important;
  white-space:nowrap;
}
.tc-header-brand .wp-block-site-title a {
  color:var(--tc-header-ink) !important;
  font-size:clamp(18px,1.45vw,24px) !important;
  line-height:1;
  font-weight:900;
  letter-spacing:.035em;
  text-decoration:none;
}
.tc-header-nav {
  margin:0 !important;
  justify-self:center;
  width:auto !important;
}
.tc-header-nav .wp-block-navigation__container {
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:center !important;
  gap:4px !important;
}
.tc-header-nav .wp-block-navigation-item__content {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 10px !important;
  border-radius:999px;
  color:var(--tc-header-ink) !important;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}
.tc-header-nav .wp-block-navigation-item__content:hover { background:var(--tc-header-hover); }
.tc-header-nav .wp-block-navigation__submenu-container {
  border:1px solid var(--tc-header-line) !important;
  border-radius:16px !important;
  background:#fffdf8 !important;
  box-shadow:0 18px 38px rgba(38,63,36,.12) !important;
  overflow:hidden !important;
}
.tc-header-tools {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:0;
}
.tc-header-social {
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  margin:0 !important;
}
.tc-header-social .wp-block-button { margin:0 !important; }
.tc-header-social .wp-block-button__link {
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px !important;
  border-radius:12px !important;
  font-size:13px;
  line-height:1;
  font-weight:850;
  text-decoration:none;
  border:1px solid var(--tc-header-line) !important;
  box-shadow:none !important;
}
.tc-social-max .wp-block-button__link {
  background:#263f24 !important;
  color:#fffdf8 !important;
}
.tc-social-telegram .wp-block-button__link {
  background:#edf4ff !important;
  color:#22558f !important;
  border-color:rgba(34,85,143,.16) !important;
}
.tc-header-search {
  width:clamp(170px,15vw,240px) !important;
  margin:0 !important;
}
.tc-header-search .wp-block-search__inside-wrapper {
  min-height:40px;
  border:1px solid var(--tc-header-line) !important;
  border-radius:999px !important;
  background:#fff !important;
  padding:3px 4px 3px 13px !important;
}
.tc-header-search input {
  min-width:0;
  font-size:13px;
  background:transparent !important;
}
.tc-header-search button {
  width:34px !important; height:34px !important;
  min-width:34px !important; padding:0 !important;
  border:0 !important; border-radius:50% !important;
  background:var(--tc-header-ink) !important; color:#fff !important;
}
.tc-site-header .wc-block-mini-cart { margin:0 !important; }
.tc-site-header .wc-block-mini-cart__button {
  min-width:42px; min-height:42px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  color:var(--tc-header-ink) !important;
}
.tc-site-header .wc-block-mini-cart__button:hover { background:var(--tc-header-hover); }

@media (max-width:1180px) {
  .tc-site-header-row { grid-template-columns:auto 1fr auto; width:min(100% - 24px,1380px) !important; }
  .tc-header-brand .wp-block-site-title { display:none; }
  .tc-header-search { width:170px !important; }
}
@media (max-width:880px) {
  .tc-site-header-row {
    min-height:62px;
    grid-template-columns:auto 1fr auto;
    gap:10px !important;
  }
  .tc-header-nav { justify-self:start; }
  .tc-header-search { display:none !important; }
  .tc-header-social .wp-block-button__link { padding:0 10px !important; }
}
@media (max-width:620px) {
  .tc-site-header-row { width:calc(100% - 16px) !important; }
  .tc-header-brand .wp-block-site-logo img { width:40px !important; height:40px !important; }
  .tc-header-social .tc-social-telegram { display:none; }
  .tc-header-social .wp-block-button__link { min-height:38px; font-size:12px; }
}
