@import url("motion.css");

.site-header {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-utility,
.header-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-utility {
  min-height: 63px;
  padding-block: 6px;
}

.header-primary {
  min-height: 55px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.utility-links small {
  display: block;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a::after {
  content: "▾";
  font-size: 9px;
  opacity: 0.6;
}

.nav-item.nav-leaf > a::after {
  content: none;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 0;
  z-index: 20;
}

.dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
}

.site-footer {
  background: var(--bg-footer);
  padding: 40px 0 32px;
  min-height: 670px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 24px;
}

.footer-contacts h2,
.footer-col h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-contacts a {
  display: block;
}

.footer-hours,
.footer-addr {
  font-size: 14px;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.scrolltop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-round);
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-card {
  background: #fff;
  width: min(440px, 100%);
  padding: 24px;
}

.modal-card label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.modal-card input,
.modal-card textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.search-screen {
  position: fixed;
  inset: 0;
  background: rgb(255 255 255 / 96%);
  z-index: 40;
  padding: 80px 24px;
}

.search-screen input {
  width: min(560px, 100%);
  font-size: 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

@media (max-width: 1023px) {
  .utility-links span small {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-utility {
    flex-wrap: wrap;
  }

  .utility-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .dropdown {
    position: static;
    border: 0;
    padding-left: 12px;
  }

  .header-primary {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    min-height: 0;
  }
}

.socials img { display: block; width: 28px; height: 28px; object-fit: contain; }
.socials a[aria-label="Telegram"] { background: #229ed9; }
.socials a[aria-label="VK"] { background: #0077ff; }
