:root {
  --dark: #180803;
  --brown: #351306;
  --gold: #f7bd54;
  --gold-strong: #ffcf68;
  --cream: #fff4d9;
  --line: rgba(255, 215, 126, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 189, 84, 0.2), transparent 34%),
    linear-gradient(180deg, var(--brown), var(--dark));
  font-family: "Cormorant Garamond", Cambria, Georgia, serif;
}

.combined-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(340px, 1.15fr) minmax(210px, 0.55fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 12px clamp(14px, 2.5vw, 34px);
  background:
    linear-gradient(135deg, rgba(24, 8, 3, 0.98), rgba(54, 20, 7, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(255, 207, 104, 0.22), transparent 48%);
  border-bottom: 1px solid var(--line);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    0 0 38px rgba(247, 189, 84, 0.12);
}

.brand,
.contact-nav a,
.floating-contact a {
  color: var(--cream);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-weight: 950;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 210, 104, 0.46);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(247, 189, 84, 0.16);
}

.brand span {
  min-width: 0;
  color: #ffe6a4;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.05;
  text-shadow:
    0 1px 0 rgba(69, 25, 5, 0.9),
    0 0 14px rgba(247, 189, 84, 0.28);
}

.main-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.switch-btn {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 10px 14px;
  color: #fff5dc;
  font: inherit;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 950;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 224, 138, 0.11), rgba(122, 57, 20, 0.32)),
    rgba(255, 245, 223, 0.04);
  border: 1px solid rgba(255, 218, 122, 0.42);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.switch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.42) 44%, transparent 58%);
  transform: translateX(-92%);
  transition: transform 760ms ease;
  pointer-events: none;
}

.switch-btn:hover,
.switch-btn:focus-visible,
.switch-btn.active {
  color: #1b0801;
  background: linear-gradient(135deg, #fff4c8 0%, #ffd05f 38%, #f18a20 100%);
  border-color: rgba(255, 245, 205, 0.95);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    inset 0 -8px 18px rgba(91, 33, 5, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(247, 189, 84, 0.34);
  transform: translateY(-1px);
}

.switch-btn:hover::before,
.switch-btn:focus-visible::before,
.switch-btn.active::before {
  transform: translateX(92%);
}

.contact-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.contact-nav a {
  padding: 10px 12px;
  color: #ffd88c;
  font-size: 17px;
  font-weight: 900;
  border: 1px solid rgba(255, 218, 122, 0.34);
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.05);
}

.combined-shell {
  height: 100vh;
  padding-top: 86px;
}

.site-panel {
  display: none;
  height: calc(100vh - 86px);
}

.site-panel.active {
  display: block;
}

.site-panel iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: #2f1106;
  border: 0;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: min(360px, calc(100vw - 36px));
  padding: 16px;
  color: #fff3cf;
  background:
    linear-gradient(145deg, rgba(255, 224, 138, 0.16), rgba(54, 20, 7, 0.95)),
    #2c1006;
  border: 1px solid rgba(255, 218, 122, 0.54);
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.floating-contact.open {
  display: grid;
  gap: 10px;
}

.floating-contact strong {
  color: #ffe08a;
  font-size: 22px;
}

.floating-contact a {
  color: #ffe3a1;
  font-size: 18px;
  font-weight: 900;
  text-decoration: underline;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .combined-topbar {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 104px;
    padding: 7px 10px 8px;
  }

  .brand {
    justify-content: center;
    gap: 8px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .brand span {
    font-size: 16px;
    line-height: 1;
  }

  .main-switch {
    gap: 7px;
  }

  .switch-btn {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 17px;
    border-radius: 8px;
  }

  .contact-nav {
    display: none;
  }

  .combined-shell {
    height: 100vh;
    padding-top: 104px;
  }

  .site-panel {
    height: calc(100vh - 104px);
  }
}

@media (max-width: 520px) {
  .combined-topbar {
    min-height: 96px;
    padding: 6px 8px 7px;
  }

  .brand span {
    font-size: 14px;
  }

  .combined-shell {
    padding-top: 96px;
  }

  .site-panel {
    height: calc(100vh - 96px);
  }

  .switch-btn {
    min-height: 39px;
    font-size: 15px;
  }
}
