.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #faf8f8;
  border-bottom: 1px solid #e8e0e8;
  box-shadow: 0 2px 18px rgba(100, 80, 100, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 28px rgba(100, 80, 100, 0.12);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 100px;
  border-bottom: 1px solid #ede6ed;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.logo:hover .logo-icon { transform: rotate(22.5deg); }

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #4a3d4a;
  letter-spacing: 0.04em;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a3d4a;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.header-phone:hover { color: #8B7B8B; }

.btn-primary {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #4a3d4a;
  padding: 9px 22px;
  border: 1.5px solid #8B7B8B;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #8B7B8B;
  color: #fff;
  border-color: #8B7B8B;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #4a3d4a;
  text-decoration: none;
  padding: 14px 0;
  display: block;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8B7B8B;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cabinet {
  display: flex;
  align-items: center;
  padding: 12px 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-cabinet:hover { opacity: 1; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.burger:hover { opacity: 0.7; }

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #4a3d4a;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #faf8f8;
  border-top: 1px solid #ede6ed;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
  padding: 12px 0 20px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu ul li a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #4a3d4a;
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid #ede6ed;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu ul li:last-child a { border-bottom: none; }

.mobile-menu ul li a:hover {
  color: #8B7B8B;
  padding-left: 6px;
}

.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  gap: 12px;
}

.mobile-menu-footer .header-phone {
  font-size: 0.9rem;
  display: block !important;
}

@media (max-width: 900px) {
  .header-top {
    padding: 12px 40px;
  }

  .header-nav {
    padding: 0 40px;
  }

  .nav-list { gap: 24px; }

  .header-phone { display: none; }
}

@media (max-width: 640px) {
  .header-top {
    padding: 10px 16px;
    border-bottom: none;
  }

  .header-nav { display: none; }

  .burger { display: flex; }

  .mobile-menu { display: flex; }

  .header-top .btn-primary { display: none; }

  .btn-primary {
    font-size: 0.75rem;
    padding: 8px 14px;
    letter-spacing: 0.04em;
  }

  .logo-text { font-size: 1.3rem; }

  .logo-icon svg { width: 30px; height: 30px; }

  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 36px;
    padding-bottom: 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.site-footer {
  background: #2e2630;
  color: #c8bcc8;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 100px 40px;
  border-bottom: 1px solid rgba(200, 188, 200, 0.15);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #c8bcc8;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #b89db8;
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: #e8dce8;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-contacts {
  font-size: 0.87rem;
  line-height: 1.6;
}

.footer-contacts a {
  color: #c8bcc8;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.footer-contacts a:hover {
  color: #e8dce8;
}

.footer-contacts-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B7B8B;
  margin: 0 0 3px;
}

.footer-address {
  font-size: 0.87rem;
  line-height: 1.7;
}

.footer-address address {
  font-style: normal;
  color: #c8bcc8;
}

.footer-hours p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #c8bcc8;
}

.footer-copy {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #7a6d7a;
  padding: 18px 20px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 40px 30px 30px;
    gap: 32px;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 28px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px 20px;
    gap: 24px;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .footer-contacts,
  .footer-address {
    font-size: 0.9rem;
  }

  .footer-copy {
    font-size: 0.78rem;
    padding: 14px 16px;
  }
}