[data-common-header] {
  display: block;
  min-height: 86px;
}

.ct-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 92vw);
  overflow: visible;
  z-index: 57;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(186, 110, 26, 0.1);
}

.ct-header-spacer {
  width: 46px;
  height: 46px;
}

.ct-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ct-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(172, 91, 10, 0.28);
}

.ct-brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #7b4302;
  font-size: 1.02rem;
}

.ct-menu {
  position: relative;
  justify-self: end;
}

.ct-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.32);
  background: #fff6ea;
  color: #b85f00;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ct-header-telegram {
  position: absolute;
  top: 50%;
  right: -74px;
  transform: translateY(-50%);
  width: 63px;
  height: 63px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: #229ed9;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(34, 158, 217, 0.35);
  z-index: 56;
}

.ct-header-telegram:hover {
  filter: brightness(1.06);
}

.ct-header-telegram svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.ct-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 230px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(171, 97, 23, 0.14);
  display: none;
  z-index: 40;
  overflow: visible;
}

.ct-menu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #7b4608;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.ct-menu-list a:hover {
  background: #fff2e1;
}

.ct-menu-group {
  position: relative;
}

.ct-menu-root {
  font-weight: 800 !important;
  color: #5f3304 !important;
  background: #ffedd7;
}

.ct-submenu-list {
  position: absolute;
  left: calc(100% + 8px);
  top: -8px;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 230px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(171, 97, 23, 0.14);
  display: none;
  max-height: min(62vh, 360px);
  overflow-y: auto;
}

.ct-menu-group:hover .ct-submenu-list,
.ct-menu-group:focus-within .ct-submenu-list {
  display: block;
}

.ct-menu:hover .ct-menu-list,
.ct-menu:focus-within .ct-menu-list {
  display: block;
}

.ct-contact {
  margin-top: 22px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 20px;
  align-items: center;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.97), rgba(255, 237, 216, 0.97));
}

.ct-contact-media img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  box-shadow: 0 10px 22px rgba(171, 97, 23, 0.15);
}

.ct-contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ct-contact-content h4 {
  margin: 0 0 12px;
  font-size: 1.14rem;
  color: #2f1a0d;
}

.ct-contact-text {
  margin: 0;
  color: #6d5138;
  line-height: 1.72;
  font-size: 0.98rem;
}

.ct-contact-id {
  margin-top: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #6e450d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
}

.ct-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #ff7a00, #ff9a2f);
  box-shadow: 0 10px 24px rgba(205, 102, 6, 0.35);
  white-space: nowrap;
  margin-top: 12px;
}

.ct-fixed-telegram {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: #229ed9;
  box-shadow: 0 -6px 18px rgba(34, 158, 217, 0.28);
}

.ct-fixed-telegram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.backlink {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

@media (max-width: 980px) {
  .ct-header-telegram {
    right: -62px;
    width: 54px;
    height: 54px;
  }

  .ct-header-telegram svg {
    width: 30px;
    height: 30px;
  }

  .ct-menu-list {
    right: auto;
    left: 0;
  }

  .ct-submenu-list {
    position: absolute;
    left: calc(100% + 8px);
    top: -8px;
    margin: 0;
    padding: 8px;
    min-width: 210px;
    border: 1px solid rgba(255, 122, 0, 0.22);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(171, 97, 23, 0.14);
    max-height: min(55vh, 300px);
    display: none;
    background: #ffffff;
  }

  .ct-contact {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .ct-contact-media img {
    height: 210px;
  }
}
