/* ========================================
   Desktop Navigation V2 — One-Line Premium
   Shows only at >=1024px
   ======================================== */

/* ===== HEADER ===== */
.h2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(44, 36, 23, 0.06);
  transition: box-shadow 0.3s ease;
  animation: h2FadeIn 0.5s ease both;
}
.h2.scrolled {
  box-shadow: 0 8px 40px rgba(44, 36, 23, 0.06);
}

.h2__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ===== LOGO ===== */
.h2__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.h2__logo:hover { opacity: 0.7; }
.h2__logo img { height: 42px; width: auto; }

/* ===== NAV ===== */
.h2__nav {
  display: flex;
  align-items: center;
  gap: 1px;
}

.h2__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(44, 36, 23, 0.6);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.1px;
}
.h2__item:hover {
  color: #2c2417;
  background: rgba(44, 36, 23, 0.03);
}

/* Accent — Акции */
.h2__item--accent {
  color: #b45309;
  font-weight: 600;
}
.h2__item--accent:hover {
  color: #92400e;
  background: rgba(180, 83, 9, 0.05);
}
.h2__item--accent .h2__pulse {
  width: 5px;
  height: 5px;
  background: #b45309;
  border-radius: 50%;
  flex-shrink: 0;
  animation: h2Pulse 2s ease-in-out infinite;
}

/* Chevron */
.h2__chev {
  width: 10px;
  height: 10px;
  color: rgba(44, 36, 23, 0.2);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

/* Nav dot */
.h2__dot {
  width: 3px;
  height: 3px;
  background: rgba(44, 36, 23, 0.1);
  border-radius: 50%;
  margin: 0 6px;
  flex-shrink: 0;
}

/* Spacer */
.h2__spacer { flex: 1; }

/* ===== RIGHT SIDE ===== */
.h2__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.h2__phone { text-align: right; }
.h2__phone-num {
  font-size: 16.5px;
  font-weight: 600;
  color: #2c2417;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease;
  display: block;
}
.h2__phone-num:hover { opacity: 0.6; }
.h2__phone-hours {
  font-size: 10px;
  color: rgba(44, 36, 23, 0.5);
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.h2__sep {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, rgba(44,36,23,0.08) 30%, rgba(44,36,23,0.08) 70%, transparent);
}

/* CTA */
.h2__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #2c2417;
  color: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(44, 36, 23, 0.12);
}
.h2__cta:hover {
  background: #3d3429;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(44, 36, 23, 0.18);
}
.h2__cta svg { width: 14px; height: 14px; opacity: 0.7; }

/* Messengers */
.h2__msgs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.h2__msg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(44, 36, 23, 0.025);
  border: 1px solid rgba(44, 36, 23, 0.06);
  transition: all 0.3s ease;
}
.h2__msg:hover { transform: translateY(-1px); }
.h2__msg--wa:hover { background: rgba(37,211,102,0.07); border-color: rgba(37,211,102,0.15); }
.h2__msg--max { background: linear-gradient(135deg, #00c8ff 0%, #5533ee 60%, #9933dd 100%); border: none; }
.h2__msg--max svg { color: #fff; }
.h2__msg--max svg path { fill: #fff; }
.h2__msg--max:hover { opacity: 0.85; }
.h2__msg--tg:hover { background: rgba(38,165,230,0.07); border-color: rgba(38,165,230,0.15); }
.h2__msg svg { width: 28px; height: 28px; }

/* ===== DROPDOWN SYSTEM ===== */
.h2__dd {
  position: relative;
}

.h2__dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500;
}

/* Right-aligned for "Ещё" */
.h2__dd--right .h2__dd-panel {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(6px);
}
.h2__dd--right:hover .h2__dd-panel {
  transform: translateX(0) translateY(0);
}

/* Hover bridge */
.h2__dd::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 18px;
  pointer-events: none;
}
.h2__dd:hover::after { pointer-events: auto; }

.h2__dd:hover .h2__dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.h2__dd--right:hover .h2__dd-panel {
  transform: translateX(0) translateY(0);
}

.h2__dd:hover .h2__chev {
  transform: rotate(180deg);
  color: rgba(44, 36, 23, 0.45);
}

/* Glass panel */
.dd-glass {
  background: #f5f3ee;
  border: 1px solid rgba(44, 36, 23, 0.06);
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 24px 64px rgba(44, 36, 23, 0.10),
    0 4px 12px rgba(44, 36, 23, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  min-width: 220px;
}
.dd-glass--wide { min-width: 480px; }
.dd-glass--mega { min-width: 720px; }
.dd-glass--simple .dd-link { padding: 8px 14px; }

/* Grid columns — 2-column (legacy) */
.dd-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Mega-menu — 3 columns */
.dd-mega {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 4px;
}
.dd-mega__col {
  display: flex;
  flex-direction: column;
}
.dd-mega__col + .dd-mega__col {
  border-left: 1px solid rgba(44, 36, 23, 0.06);
  padding-left: 4px;
}

.dd-stitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #a0845c;
  padding: 10px 12px 6px;
  grid-column: 1 / -1;
  text-align: center;
}
/* Inside mega-menu columns, stitle spans only its own column */
.dd-mega__col .dd-stitle {
  grid-column: auto;
  text-align: left;
}

.dd-divider {
  height: 1px;
  background: rgba(44, 36, 23, 0.06);
  margin: 6px 8px;
  grid-column: 1 / -1;
}

/* Link item */
.dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dd-link:hover { background: rgba(44, 36, 23, 0.03); }

.dd-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 23, 0.03);
  border: 1px solid rgba(44, 36, 23, 0.06);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.dd-glass--mega .dd-ico {
  display: none;
}
.dd-link:hover .dd-ico {
  background: rgba(160, 132, 92, 0.08);
  border-color: rgba(160, 132, 92, 0.12);
}
.dd-ico svg {
  width: 18px;
  height: 18px;
  color: rgba(44, 36, 23, 0.3);
  transition: color 0.2s ease;
}
.dd-link:hover .dd-ico svg { color: #a0845c; }

.dd-txt {
  font-size: 13px;
  font-weight: 400;
  color: rgba(44, 36, 23, 0.6);
  transition: color 0.2s ease;
}
.dd-link:hover .dd-txt { color: #2c2417; }
.dd-txt--medium { font-weight: 500; }

/* ===== "ЕЩЁ" DROPDOWN ===== */
.more-dd {
  min-width: 260px;
  padding: 10px;
}

.more-dd__section {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(44, 36, 23, 0.5);
  padding: 8px 10px 4px;
}

.more-dd__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.more-dd__link:hover { background: rgba(44, 36, 23, 0.03); }

.more-dd__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 23, 0.03);
  border: 1px solid rgba(44, 36, 23, 0.06);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.more-dd__link:hover .more-dd__icon {
  background: rgba(160, 132, 92, 0.08);
  border-color: rgba(160, 132, 92, 0.12);
}
.more-dd__icon svg {
  width: 16px;
  height: 16px;
  color: rgba(44, 36, 23, 0.35);
  transition: color 0.2s ease;
}
.more-dd__link:hover .more-dd__icon svg { color: #a0845c; }

.more-dd__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.more-dd__title {
  font-size: 13.5px;
  font-weight: 500;
  color: #2c2417;
  transition: color 0.2s ease;
}
.more-dd__link:hover .more-dd__title { color: #a0845c; }
.more-dd__desc {
  font-size: 11px;
  color: rgba(44, 36, 23, 0.5);
}

.more-dd__divider {
  height: 1px;
  background: rgba(44, 36, 23, 0.06);
  margin: 6px 8px;
}

/* Nested sub-dropdown (Blog inside "Ещё") */
.more-dd__sub {
  position: relative;
}
.more-dd__sub .more-dd__link {
  width: 100%;
}
.more-dd__arrow {
  width: 12px;
  height: 12px;
  color: rgba(44, 36, 23, 0.2);
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.more-dd__sub:hover .more-dd__arrow {
  color: #a0845c;
  transform: translateX(2px);
}

.more-dd__sub-panel {
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 510;
}
.more-dd__sub::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 16px;
  pointer-events: none;
}
.more-dd__sub:hover::after {
  pointer-events: auto;
}
.more-dd__sub:hover .more-dd__sub-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* ===== BLOG DROPDOWN ===== */
.blog-dd {
  min-width: 340px;
  padding: 12px;
}

.blog-dd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(44, 36, 23, 0.06);
  margin-bottom: 6px;
}
.blog-dd__htitle {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  color: #2c2417;
  font-style: italic;
}
.blog-dd__badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a0845c;
  background: rgba(160, 132, 92, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-dd__article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.blog-dd__article:hover { background: rgba(44, 36, 23, 0.025); }

.blog-dd__num {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 13px; font-weight: 500;
  flex-shrink: 0; margin-top: 1px;
  color: rgba(44, 36, 23, 0.5);
  background: rgba(44, 36, 23, 0.03);
  border: 1px solid rgba(44, 36, 23, 0.06);
  transition: all 0.2s ease;
}
.blog-dd__article:hover .blog-dd__num {
  background: rgba(160, 132, 92, 0.08);
  border-color: rgba(160, 132, 92, 0.12);
  color: #a0845c;
}
.blog-dd__num.n1 {
  background: rgba(160, 132, 92, 0.08);
  border-color: rgba(160, 132, 92, 0.12);
  color: #a0845c;
}

.blog-dd__info { flex: 1; min-width: 0; }
.blog-dd__atitle {
  font-size: 13px; font-weight: 500;
  color: #2c2417; line-height: 1.4;
  transition: color 0.2s ease;
}
.blog-dd__article:hover .blog-dd__atitle { color: #a0845c; }

.blog-dd__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 3px;
}
.blog-dd__views {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(44, 36, 23, 0.5);
}
.blog-dd__views svg { width: 12px; height: 12px; }
.blog-dd__tag {
  font-size: 10px; font-weight: 500;
  color: #a0845c;
  background: rgba(160, 132, 92, 0.08);
  padding: 1px 7px; border-radius: 4px;
}

.blog-dd__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 4px; margin-top: 4px;
  border-top: 1px solid rgba(44, 36, 23, 0.06);
}
.blog-dd__all {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(44, 36, 23, 0.5); transition: all 0.2s ease;
  text-decoration: none;
}
.blog-dd__all:hover { color: #2c2417; }
.blog-dd__all svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.blog-dd__all:hover svg { transform: translateX(3px); }
.blog-dd__count {
  font-size: 10px; font-weight: 500; color: rgba(44, 36, 23, 0.5);
  background: rgba(44, 36, 23, 0.04); padding: 2px 8px; border-radius: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes h2FadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes h2Pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .h2__inner { padding: 0 28px; gap: 24px; }
  .h2__item { padding: 7px 11px; font-size: 13.5px; }
  .h2__right { gap: 12px; }
  .h2__cta { padding: 9px 18px; font-size: 12px; }
  .dd-glass--mega { min-width: 640px; }
}

@media (max-width: 1140px) {
  .h2__inner { padding: 0 20px; gap: 16px; }
  .h2__item { padding: 7px 9px; font-size: 13px; }
  .h2__phone { display: none; }
  .h2__sep { display: none; }
  .h2__dot { margin: 0 3px; }
}

/* Hidden on mobile */
@media (max-width: 1023px) {
  .h2 { display: none !important; }
}
