/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #fdf6ee;
  --warm:       #f5ead8;
  --rust:       #c97b3a;
  --rust-light: #f0dcc4;
  --brown:      #3d2b1a;
  --muted:      #8a7060;
  --green:      #5a7a4a;
  --orange:     #f28c00;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 12px 40px;
  background: rgba(253,246,238,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(200,170,130,0.35);
}
.hdr-logo {
  font-family: "Playfair Display","Georgia",serif;
  font-size: 20px; color: var(--brown); text-decoration: none;
  white-space: nowrap;
}
.hdr-logo span { color: var(--rust); }

.hdr-nav {
  display: flex; align-items: center; gap: 22px;
  flex: 1;
  justify-content: center;
}
.hdr-nav > a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.hdr-nav > a:hover, .hdr-nav > a.active { color: var(--rust); }

/* "Ещё" dropdown / mega menu */
.hdr-group { position: relative; }
.hdr-group-btn {
  display: flex; align-items: center; gap: 4px;
  font: inherit; font-size: 12px; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}
.hdr-group-btn svg {
  width: 9px; height: 9px; transition: transform .2s;
}
.hdr-group:hover .hdr-group-btn,
.hdr-group:focus-within .hdr-group-btn { color: var(--rust); }
.hdr-group:hover .hdr-group-btn svg,
.hdr-group:focus-within .hdr-group-btn svg { transform: rotate(180deg); }

.hdr-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex; gap: 28px;
  background: #fff;
  border: 0.5px solid var(--rust-light);
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: 0 16px 40px rgba(120,70,20,0.14);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10;
}
.hdr-group:hover .hdr-dropdown,
.hdr-group:focus-within .hdr-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hdr-col { display: flex; flex-direction: column; gap: 6px; min-width: 168px; }
.hdr-col-title {
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rust); font-weight: 600; margin-bottom: 4px;
}
.hdr-col a {
  font-size: 12.5px; color: var(--brown); text-decoration: none;
  padding: 3px 0; transition: color .2s, padding-left .2s;
}
.hdr-col a:hover { color: var(--rust); padding-left: 3px; }
.hdr-col a.active { color: var(--rust); font-weight: 500; }

.hdr-tel {
  font-size: 12px; font-weight: 500; color: var(--rust);
  border: 1px solid var(--rust); padding: 6px 16px; border-radius: 20px;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.hdr-tel:hover { background: var(--rust); color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 580px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  will-change: transform;
  transition: transform 0.05s linear;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,8,0,0.10) 0%,
    rgba(20,8,0,0.55) 100%
  );
}

/* Title top-center */
.hero-copy {
  position: absolute; z-index: 2;
  top: 88px; left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff;
  white-space: nowrap;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,218,160,0.82); margin-bottom: 10px;
}
.hero-title {
  font-family: "Playfair Display","Georgia",serif;
  font-size: clamp(26px,3.5vw,48px); font-weight: 400;
  line-height: 1.22; margin-bottom: 6px;
}
.hero-sub { font-size: 13px; color: rgba(255,235,205,0.75); }

/* ===== HOTSPOTS ===== */
.hotspot {
  position: absolute; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.15); }
.hotspot.active .hs-dot { background: var(--rust); box-shadow: 0 0 0 4px rgba(201,123,58,0.35); }
.hotspot.active .hs-pulse { border-color: rgba(201,123,58,0.5); }

/* Pulse ring */
.hs-pulse {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,220,170,0.6);
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%,100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 0; }
}

/* Dot */
.hs-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s;
  z-index: 1;
}

/* Label */
.hs-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.4px;
  color: #fff;
  background: rgba(30,12,0,0.45);
  padding: 2px 9px; border-radius: 10px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  text-shadow: none;
}

/* ===== PANEL ===== */
.panel-wrap {
  background: var(--cream);
  max-height: 0; overflow: hidden;
  transition: max-height 0.48s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 0.5px solid var(--rust-light);
}
.panel-wrap.open { max-height: 380px; }

.panel {
  max-width: 920px; margin: 0 auto;
  padding: 32px 28px 40px;
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  position: relative;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s 0.22s, transform 0.3s 0.22s;
}
.panel-wrap.open .panel { opacity: 1; transform: translateY(0); }

/* Photo */
.panel-left {}
.panel-photo-wrap {
  width: 200px; height: 200px;
  border-radius: 16px; overflow: hidden;
  background: var(--warm);
}
.panel-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Right side */
.panel-head { margin-bottom: 20px; }
.panel-name {
  font-family: "Playfair Display","Georgia",serif;
  font-size: 24px; font-weight: 400; color: var(--brown); margin-bottom: 4px;
}
.panel-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Two columns of lists */
.two-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  position: relative;
}
.two-cols::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 1px; height: 100%;
  background: var(--rust-light); transform: translateX(-50%);
}
.col { padding: 0 24px; }
.col:first-child { padding-left: 0; }
.col:last-child  { padding-right: 0; }

.col-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--rust); font-weight: 500; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.col-label::after { content: ""; flex: 1; height: 1px; background: var(--rust-light); }

.mix-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 0.5px solid rgba(200,170,130,0.22);
  animation: rowIn 0.28s ease both;
}
.mix-row:last-child { border-bottom: none; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-5px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mix-name  { font-size: 13px; color: var(--brown); }
.mix-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  font-weight: 500; white-space: nowrap;
}
.bb { background: #fdf0e0; color: var(--rust);  }
.bf { background: #eef5e8; color: var(--green); }

/* Close btn */
.panel-close {
  position: absolute; top: 16px; right: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: none; border: 0.5px solid var(--rust-light);
  color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.panel-close:hover { background: var(--warm); }

/* ===== PRODUCT GRID ===== */
.products {
  max-width: 1060px; margin: 0 auto;
  padding: 52px 28px 64px;
}
.products-hd { margin-bottom: 28px; }
.products-title {
  font-family: "Playfair Display","Georgia",serif;
  font-size: 26px; font-weight: 400; color: var(--brown); margin-bottom: 4px;
}
.products-sub { font-size: 13px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
}

.pcard {
  background: #fff; border-radius: 16px;
  border: 0.5px solid var(--rust-light);
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(150,80,20,0.12);
}
.pcard.brand-b { border-top: 3px solid var(--rust);   }
.pcard.brand-f { border-top: 3px solid var(--orange); }

.pcard-img {
  height: 168px; overflow: hidden;
  background: var(--warm);
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.pcard:hover .pcard-img img { transform: scale(1.05); }

.pcard-body {
  padding: 14px 16px 16px;
  flex: 1; display: flex; flex-direction: column;
}
.pcard-brand {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 6px;
}
.pcard.brand-b .pcard-brand { color: var(--rust);   }
.pcard.brand-f .pcard-brand { color: var(--orange); }

.pcard-name {
  font-size: 14px; font-weight: 500; color: var(--brown);
  margin-bottom: 6px; line-height: 1.3;
}
.pcard-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }
.pcard-btn {
  margin-top: 12px; align-self: flex-start;
  font-size: 11px; color: var(--rust);
  background: none; border: 0.5px solid var(--rust-light);
  padding: 5px 14px; border-radius: 12px;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.pcard.brand-f .pcard-btn { color: var(--orange); }
.pcard-btn:hover             { background: var(--rust);   color: #fff; border-color: var(--rust);   }
.pcard.brand-f .pcard-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ===== MODAL ===== */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(40,20,5,0.55);
  align-items: center; justify-content: center;
}
.modal-bg.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 20px;
  max-width: 540px; width: 90%; max-height: 85vh;
  overflow-y: auto; padding: 28px; position: relative;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 22px;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--brown); }
.modal-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px;
}
.modal-brand {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 6px;
}
.modal-brand.brand-b { color: var(--rust);   }
.modal-brand.brand-f { color: var(--orange); }
.modal-title {
  font-family: "Playfair Display","Georgia",serif;
  font-size: 22px; font-weight: 400; color: var(--brown); margin-bottom: 8px;
}
.modal-descr { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.modal-list  { padding-left: 18px; margin-bottom: 14px; }
.modal-list li { font-size: 13px; color: var(--brown); line-height: 1.7; margin-bottom: 2px; }
.modal-info { padding: 12px 14px; background: var(--warm); border-radius: 10px; }
.modal-info p { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ===== BRANDS ===== */
.brands {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  padding: 22px 28px;
  border-top: 0.5px solid var(--rust-light);
  background: var(--cream);
}
.brands-lbl {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.brand-tag {
  font-size: 11px; font-weight: 500;
  padding: 5px 14px; border-radius: 14px;
  border: 0.5px solid var(--rust-light); color: var(--muted); background: #fff;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown); color: rgba(255,235,210,0.6);
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; line-height: 1.7;
}
.footer-logo {
  font-family: "Playfair Display","Georgia",serif;
  font-size: 17px; color: #fff; margin-bottom: 3px;
}
.footer-logo span { color: var(--rust); }
.footer a { color: rgba(255,215,160,0.8); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hdr-nav > a:not(.hdr-group) { display: none; }
}
@media (max-width: 768px) {
  .hdr { padding: 10px 16px; }
  .hdr-nav { justify-content: flex-end; }
  .hdr-dropdown {
    position: fixed; top: 58px; left: 12px; right: 12px;
    transform: translateY(6px);
    flex-direction: column; gap: 18px;
    max-height: 70vh; overflow-y: auto;
  }
  .hdr-group:hover .hdr-dropdown,
  .hdr-group:focus-within .hdr-dropdown { transform: translateY(0); }
  .hero-copy { white-space: normal; padding: 0 20px; }
  .panel { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 32px; }
  .panel-photo-wrap { width: 100%; height: 180px; }
  .two-cols { grid-template-columns: 1fr; }
  .two-cols::before { display: none; }
  .col { padding: 0; margin-bottom: 14px; }
  .products { padding: 32px 16px 40px; }
  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px 16px; }
  .panel-wrap.open { max-height: 700px; }
}
