/* assets/css/components/header.css */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header {
  padding: 12px 0;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
}

/* logo */
.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  display: block;
  height: 44px;
  width: auto;
}

/* contacts */
.header__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  font-weight: 500;
}

.header__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.header__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* cta */
.header__cta {
  white-space: nowrap;
}

/* burger */
.header__burger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header__burger svg {
  display: block;
}

/* responsive: contacts in 2 rows */
@media (max-width: 860px) {
  .header__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .header__contacts {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }

  .header__contact {
    font-size: 14px;
  }

  .header__logo-img {
    height: 40px;
  }
}

@media (max-width: 520px) {
  .header__cta {
    display: none; /* если захочешь прятать на очень узких — обсудим */
  }
}

.header__contact {
  position: relative;
}

.header__contact.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  white-space: nowrap;
  z-index: 5;
}
