/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 4px 0;
  border-bottom: 1px solid var(--bg-decorative);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(11, 19, 21, 0.94);
  backdrop-filter: blur(12px);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: block;
  text-decoration: none;
  height: 60px;
  margin: 0 auto;
  padding-left: 36px;
}

.header__logo img {
  height: 100%;
  width: auto;
}

.header__burger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 36px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  gap: 4px;
}

.header__burger span {
  display: block;
  height: 1.5px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.header__burger span:nth-child(1) {
  width: 80%;
}

.header__burger span:nth-child(2) {
  width: 45%;
}

.header__burger span:nth-child(3) {
  width: 95%;
}

.header__burger span:nth-child(4) {
  width: 58%;
}

.header__burger.active span:nth-child(1) {
  width: 100%;
  transform: rotate(45deg) translate(4px, 8px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.header__burger.active span:nth-child(3) {
  width: 100%;
  transform: rotate(-45deg) translate(4px, -8px);
}

.header__burger.active span:nth-child(4) {
  opacity: 0;
  width: 0;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 200;
  transition: right 0.38s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--bg-decorative);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.7);
}

.sidebar.open {
  right: 0;
}

.sidebar__close {
  position: absolute;
  top: 26px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition), color var(--transition);
}

.sidebar__close:hover {
  opacity: 1;
  color: var(--accent-primary);
}

.sidebar__logo {
  padding: 4px 18px;
  border-bottom: 1px solid var(--bg-decorative);
}

.sidebar__logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
  display: block;
  margin: 0 auto;
}

.sidebar__content {
  flex: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-decorative);
  transition: color var(--transition);
}

.sidebar__link:last-child {
  border-bottom: none;
}

.sidebar__link:hover,
.sidebar__link--active {
  color: var(--accent-primary);
}

.sidebar__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar__contacts-title {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}

.sidebar__map {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--bg-decorative);
}

.sidebar__map img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sidebar__map:hover img {
  transform: scale(1.04);
}

/* ════════════════════════════════════════
   CATEGORIES
════════════════════════════════════════ */
.categories {
  padding-top: 72px;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.categories__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 110px;
  display: flex;
  align-items: center;
}

.categories__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
}

.category-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.category-card__label {
  margin-bottom: 20px;
  text-align: center;
}

.category-card__type {
  display: block;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.category-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg,
      var(--bg-decorative) 25%,
      #2c2d29 50%,
      var(--bg-decorative) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

.category-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.65s ease;
}

.category-card__bg.loaded {
  opacity: 1;
}

.category-card:hover .category-card__bg {
  transform: scale(1.04);
}

.category-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 21, 0.2);
  transition: background 0.3s ease;
}

.category-card:hover .category-card__photo::after {
  background: rgba(11, 19, 21, 0.05);
}

/* skeleton */

.category-card--skeleton .category-card__label {
  height: 2.2rem;
  width: 120px;
  margin: 0 auto 20px;
  background: var(--bg-decorative);
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about {
  padding: 110px 20px;
  text-align: center;
  border-top: 1px solid var(--bg-decorative);
}

.section-eyebrow {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 32px;
}

.about__text {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.95;
}

.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid rgba(200, 171, 128, 0.45);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
  background: none;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ════════════════════════════════════════
   CONTACTS
════════════════════════════════════════ */
.contacts {
  padding: 80px 20px 110px;
  text-align: center;
  border-top: 1px solid var(--bg-decorative);
}

.contacts__logo {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
}

.contacts__logo img {
  height: 40px;
  width: auto;
  opacity: 0.85;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color var(--transition);
}

a.contact-item:hover {
  color: var(--accent-primary);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent-secondary);
}

.contacts__map {
  margin-top: 12px;
  display: block;
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bg-decorative);
}

.contacts__map img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.contacts__map:hover img {
  transform: scale(1.03);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--bg-decorative);
}

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0.35;
}

/* ════════════════════════════════════════
   SCROLL TO TOP
════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: rgba(200, 171, 128, 0.1);
}

/* ════════════════════════════════════════
   CONTAINER UTILITY
════════════════════════════════════════ */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .header__container {
    padding: 0 20px;
  }

  .header__logo {
    height: 60px;
  }

  .categories {
    min-height: auto;
    padding-top: 50px;
  }

  .categories__inner {
    padding: 70px 20px 70px;
  }

  .contacts__logo {
    margin-bottom: 20px;
  }

  .categories__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }


  .sidebar {
    width: 100vw;
    border-left: none;
  }

  .about {
    padding: 72px 20px;
  }

  .contacts {
    padding: 56px 20px 80px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .categories__inner {
    padding: 50px 32px 110px;
  }

  .categories__grid {
    gap: 32px;
  }
}