:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #f7f7f8;
  --border: #e3e5ea;
  --border-strong: #d8dce4;
  --text: #1a1f2b;
  --muted: #6f7685;
  --primary: #c89b3c;
  --primary-dark: #a77e26;
  --gold-soft: #ecd7a1;
  --hover: #fbf7ed;
  --shadow: 0 18px 40px rgba(18, 24, 39, 0.06);
  --sidebar-w: 285px;
  --sidebar-w-collapsed: 96px;
  --header-h: 82px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { scrollbar-color: #aeb3bc #e5e7eb; scrollbar-width: thin; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #fafafa 0%, #f2f4f7 100%);
  color: var(--text);
}
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar { width: 6px; height: 6px; }
body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track { background: #e5e7eb; }
body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb { background: #aeb3bc; }
body::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover { background: #9ea4af; }

::selection { background: rgba(200, 155, 60, 0.18); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
body.menu-open { overflow: hidden; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.07), transparent 22%),
    linear-gradient(180deg, #fafafa 0%, #f2f4f7 100%);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f9 100%);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transition: width .25s ease, padding .25s ease, transform .28s ease;
}

.brand-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 6px 0 10px;
  background: transparent;
  border: 0;
  overflow: visible;
}

.brand-logo {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  min-height: 56px;
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: #252b36;
  border: 1px solid transparent;
  transition: .22s ease;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  background: var(--hover);
  border-color: #eee0b8;
}

.nav-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}

.main-wrap {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  transition: margin-left .25s ease;
}

.topbar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(227, 229, 234, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrap { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
  padding: 0;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle path {
  fill: none;
  stroke: #6e7690;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.menu-toggle:hover {
  transform: scale(1.04);
}

.search-trigger {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.search-svg { width: 58px; height: 58px; }
.search-ring { fill: #ffffff; stroke: #d9b15b; stroke-width: 2.5; }
.search-lens,
.search-handle {
  fill: none;
  stroke: #6e7690;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-trigger:hover .search-ring { stroke: var(--primary); }

.search-panel {
  width: min(420px, 36vw);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(-8px);
  transition: max-width .26s ease, opacity .2s ease, transform .2s ease;
}
.search-panel.open { opacity: 1; max-width: 420px; transform: translateX(0); }

.search-box {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid #d9b15b;
  background: rgba(255,255,255,0.98);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  box-shadow: 0 8px 22px rgba(18, 24, 39, 0.03);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: #8a93a3; }

.btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: .22s ease;
}
.btn-secondary {
  background: #fff;
  border: 2px solid #d9b15b;
  color: var(--text);
}
.btn-primary {
  background: linear-gradient(135deg, #d6a840, #b88927);
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 137, 39, 0.24);
}

.lang-switch { position: relative; }
.lang-btn {
  min-height: 48px;
  min-width: 108px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: #626b8b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}
.lang-chip { display: inline-flex; align-items: center; gap: 8px; }
.lang-chip img,
.lang-option img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; }
.lang-arrow { width: 16px; height: 16px; }
.lang-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  background: #5b6485;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 38px rgba(18, 24, 39, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: .2s ease;
}
.lang-switch.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 1.1rem;
}
.lang-option:hover,
.lang-option.active { background: rgba(255,255,255,0.08); }

.content { padding: 34px; }
.slider-card { margin-bottom: 28px; }
.slider-stage {
  position: relative;
  min-height: 580px;
  border-radius: 28px;
  overflow: hidden;
  background: #d8dadd;
  box-shadow: var(--shadow);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.02) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 34px 32px;
}
.slider-btn {
  min-width: 164px;
  min-height: 58px;
  border-radius: 16px;
  font-size: 1.08rem;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: 0;
  background: rgba(255,255,255,0.88);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-arrow i { font-size: 1.45rem; }
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}
.dot.active { background: #d4ab46; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.info-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(18, 24, 39, 0.04);
}
.info-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fbf6ea;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.info-icon i { font-size: 1.5rem; }
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.info-card p {
  color: var(--muted);
  line-height: 1.8;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: .24s ease;
  z-index: 1100;
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-w-collapsed);
  padding-left: 12px;
  padding-right: 12px;
}
body.sidebar-collapsed .main-wrap { margin-left: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand-box {
  min-height: 78px;
  padding: 6px 0;
}
body.sidebar-collapsed .brand-logo {
  max-width: 58px;
}
body.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 0;
  gap: 0;
}
body.sidebar-collapsed .nav-link span { display: none; }

@media (max-width: 1080px) {
  .slider-stage { min-height: 460px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(82vw, 320px);
  }
  .main-wrap { margin-left: 0; }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .topbar {
    padding: 14px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .topbar-left,
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-right { gap: 10px; }
  .search-panel { width: min(100%, 248px); }
  .search-panel.open { max-width: 248px; }
  .btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
  }
  .lang-btn {
    min-width: 88px;
    min-height: 44px;
    padding: 0 10px;
  }
  .content { padding: 18px; }
  .slider-stage { min-height: 250px; border-radius: 22px; }
  .slide-overlay { padding: 0 16px 18px; }
  .slider-btn {
    min-width: 124px;
    min-height: 48px;
    border-radius: 14px;
    font-size: .95rem;
  }
  .slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .dot { width: 11px; height: 11px; }
}
