:root{
  --brand-900:#2B2B2B;     
  --brand-950:#1A1A1A;     
  --brand-accent:#A58455;  

  --bg:#111111;
  --surface:#1A1A1A;
  --surface-2:#2B2B2B;

  --text:#FFFFFF;
  --text-2:#D8D8D8;
  --muted:#A8A8A8;

  --card:#1A1A1A;
  --border: rgba(255,255,255,.12);
  --border-strong: rgba(255,255,255,.18);

  --shadow: 0 10px 28px rgba(0,0,0,.35);
  --radius: 8px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: var(--bg);
}

.app{
  display:grid;
  grid-template-columns: 320px 1fr;
  min-height:100vh;
}

.sidebar{
  background: var(--brand-950);
  color:#fff;
  padding:18px 14px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  border-right:1px solid rgba(255,255,255,.08);

  display:flex;
  flex-direction:column;
}

.brand{ margin:6px 10px 14px; display:flex; gap:12px; align-items:center; }
.brand-logo{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:12px;
  background: var(--surface-2);
  border:1px solid rgba(255,255,255,.10);
}
.brand-logo svg{ width:28px; height:28px; }
.brand-text .brand-mark{ font-weight:900; letter-spacing:.3px; font-size:22px; line-height:1.1; }
.brand-text .brand-sub{ margin-top:4px; color:rgba(255,255,255,.72); font-size:13px; }

.brand-logo-only{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px 14px;
}

.brand-logo-only img{
  height:32px;          
  width:auto;
  display:block;
}

.search{
  display:flex;
  gap:10px;
  align-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  padding:15px 16px;
  border-radius:8px;
  margin:0 8px 12px;
}
.search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-size:14px;
}
.search input::placeholder{ color:rgba(255,255,255,.55); }
.kbd{
  font-size:12px;
  padding:3px 7px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.80);
}

.search input::-webkit-search-cancel-button{
  -webkit-appearance: none;
  appearance: none;
  width:14px;
  height:14px;
  cursor:pointer;

  background-color: #AB824D;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.lang-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 8px 14px;
}
.lang-label{ font-size:12px; color:rgba(255,255,255,.70); }

.lang-picker{
  margin-left:auto;
  position:relative;
}
.lang-btn{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.06);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  min-width: 140px;
}
.lang-btn:hover{ border-color: rgba(255,255,255,.22); }
.lang-btn .chev{ margin-left:auto; opacity:.85; }
.flag{
  width:18px;
  height:18px;
  border-radius:50%;
  overflow:hidden;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  flex: 0 0 auto;
}

.flag img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.lang-name{ font-weight:800; font-size:13px; color:#fff; }

.lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background: var(--surface-2);
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  min-width: 160px;
  overflow:hidden;
  box-shadow: var(--shadow);
  display:none;
  z-index: 20;
}
.lang-picker.open .lang-menu{ display:block; }

.lang-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background: transparent;
  border:none;
  color:#fff;
  cursor:pointer;
  text-align:left;
}
.lang-item:hover{ background: rgba(255,255,255,.06); }
.lang-item .lang-item-name{ font-weight:800; font-size:13px; }

.crumb-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:8px;
  text-decoration:none;
}

.crumb-home img{
  width:16px;
  height:16px;
  display:block;

  filter: brightness(0) invert(1);
}

.crumb-home:hover{
  background: rgba(255,255,255,.08);
}

.nav{
  margin-top: 14px;         
  flex: 1 1 auto;           
}
.nav-section{ margin:10px 0 16px; }
.nav-section-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.60);
  margin:10px 10px 8px;
}

.nav-group{
  margin:0 6px 8px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.nav-group-btn{
  width:100%;
  text-align:left;
  background:transparent;
  border:none;
  color:#fff;
  padding:11px 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.nav-group-btn:hover{ background:rgba(255,255,255,.06); }
.nav-group-btn .chev{
  margin-left:auto;
  opacity:.85;
  transform:rotate(0deg);
  transition:transform .15s ease;
}
.nav-group.open .nav-group-btn .chev{ transform:rotate(90deg); }

.nav-icon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.9;
}


.nav-icon img{
  width:16px;
  height:16px;
  display:block;
}

.nav-icon img{
  filter: brightness(0) invert(1);
}

.nav-sub{ display:none; padding:6px 6px 10px; }
.nav-group.open .nav-sub{ display:block; }

.nav-item{
  display:block;
  padding:10px 12px;
  margin:4px 6px;
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  opacity:.86;
  border:1px solid transparent;
}
.nav-item:hover{ background:rgba(255,255,255,.06); opacity:1; }
.nav-item.active{
  background: #AB824D;   
  border-color: #AB824D;
  color:#fff;
}

.sidebar-footer{
  margin-top:auto;
  padding:14px 10px 6px;
  color:rgba(255,255,255,.60);
}

.main{ display:flex; flex-direction:column; min-width:0; }
.topbar{
  background: var(--surface);
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.breadcrumbs{
  display:flex;
  align-items:center;
  color: var(--muted);
  font-size:15px;
}

.crumb{
  display:inline-flex;
  align-items:center;
  line-height:1;
}

.crumb-home{
  width:28px;
  height:28px;
  border-radius:8px;
  justify-content:center;
  text-decoration:none;
}

.crumb-home img{
  width:16px;
  height:16px;
  display:block;
  filter: brightness(0) invert(1);
}

.crumb-home:hover{
  background: rgba(255,255,255,.08);
}

.crumb.sep{
  margin: 0 10px;   
  opacity:.5;
}

.crumb.current{
  color:#fff;
  font-weight:700;
}

.content{
  padding:26px 28px 40px;
  width: 100%;
  max-width: none;      
}
.page{
  background: var(--card);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding:24px;
  box-shadow: var(--shadow);
}
.page h1{ margin:0 0 10px; font-size:30px; color:var(--text); }
.page p{ color:rgba(255,255,255,.78); line-height:1.65; }

.toc{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding:14px;
  margin: 14px 0 18px;
}

.toc-title{
  font-weight:900;
  color: rgba(255,255,255,.92);
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.01em;
  text-transform: uppercase;
}

.toc-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.toc-link{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
}

.toc .toc-link:hover{
  border-color: var(--brand-accent) !important;
}

.toc-link.primary{
  background: #AB824D;
  border-color: #AB824D;
  color:#111; 
}

.toc .toc-item:hover,
.toc .toc-link:hover{
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 1px rgba(165,132,85,.35);
}

.hint{
  margin-top:14px;
  padding:12px 14px;
  border-left:4px solid var(--brand-accent);
  background: rgba(165,132,85,.10);
  border-radius:8px;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(165,132,85,.20);
}

.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  margin-top:16px;
}
.card{
  display:block;                 
  text-decoration: none;         
  color: inherit;                

  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  padding:16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  background: var(--surface-2);

  transition: 
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}
.card:hover{
  border-color: var(--brand-accent);     
  transform: translateY(-2px);           
  box-shadow: 0 14px 30px rgba(0,0,0,.40);
}
.card:focus,
.card:focus-visible{
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(165,132,85,.25), 0 14px 30px rgba(0,0,0,.40);
}

.card h3,
.card p{
  color: inherit;
}
.card h3{ color: var(--text); }
.card p{ color: rgba(255,255,255,.72); }

.steps{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  overflow:hidden;
  background: var(--surface-2);
}
.step{ padding:14px 16px; border-top:1px solid rgba(255,255,255,.10); }
.step:first-child{ border-top:none; }
.step-title{ font-weight:900; margin:0 0 6px; color: rgba(255,255,255,.92); }
.step-body{ margin:0; color:rgba(255,255,255,.70); }

.media{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  overflow:hidden;
  background: var(--surface-2);
}
.media img{ width:100%; display:block; }

.pager{ display:flex; justify-content:space-between; margin-top:14px; }

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding:15px 16px;
  border-radius:8px;
  cursor:pointer;
  font-weight:900;
}
.btn:hover{ border-color: rgba(255,255,255,.22); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

.btn.primary{
  background: #AB824D;
  border-color: var(--brand-accent);
  color:#fff; 
}
.btn.primary:hover{ filter: brightness(1.02); }

.btn.ghost{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.90);
}

@media (max-width: 1100px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{
    position:fixed;
    left:0; top:0;
    width:320px;
    transform:translateX(-105%);
    transition:transform .2s ease;
    z-index:10;
  }
  .sidebar.open{ transform:translateX(0); }
  .content{ padding:18px; }
}
@media (max-width: 520px){
  .cards{ grid-template-columns: 1fr; }
}

.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
  border-radius: 999px;
}

.toc{
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.toc-title{
  font-weight: 900;
  margin-bottom: 10px;
  color: rgba(255,255,255,.90);
  font-size: 13px;
}
.toc-items{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toc-item{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:#fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor:pointer;
  font-weight: 800;
  font-size: 13px;
}
.toc-item:hover{
  border-color: rgba(255,255,255,.22);
}
.toc-item.active{
  background: #AB824D;         
  border-color: #AB824D;
  color: #fff;
}

.nav-item.active{
  background: #AB824D;
  border-color: #AB824D;
  opacity: 1;
  color: #fff;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
}

.lightbox.open{
  display: flex;
}

.lightbox-img{
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  cursor: default;
}

.lightbox-close{
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 34px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: .85;
}
.lightbox-close:hover{ opacity: 1; }

img[data-lightbox]{
  cursor: zoom-in;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

img[data-lightbox]:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  filter: brightness(1.05);
}

.highlight{
  font-weight: 800;
  color: var(--brand-accent); 
}

.doc-note{
  margin: 18px 0 28px;
  padding: 14px 16px;
  background: rgba(165,132,85,0.12);   
  border-left: 4px solid var(--brand-accent);
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  line-height: 1.6;
}

.doc-note b{
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--brand-accent); 
  letter-spacing: .02em;
}


.doc h2[id]{
  scroll-margin-top: 72px; 
}

.doc h1{
  scroll-margin-top: 72px;
}


.doc-steps{
  list-style: decimal;
  margin: 8px 0 16px 22px;
  padding: 0;
  line-height: 1.7;
}

.doc-step{
  margin: 10px 0 22px;
}

.doc-step-text{
  margin: 0 0 12px;
  color: rgba(255,255,255,.82);
}

.doc-step-media{
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
}

.doc-step-media img{
  width: 100%;
  max-width: 880px;     
  height: auto;
  border-radius: 14px;
  display: block;
}

.doc-step-caption{
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.60);
  font-style: italic;
}

@media (max-width: 700px){
  .doc-step-media img{ max-width: 100%; }
}

.doc-media{
  margin: 14px 0 22px;
  display:flex;
  justify-content:center;
}

.doc-media > *{
  width: min(980px, 100%);
}

.doc-media img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display:block;
}

.doc-video{
  width: 100%;
  height: auto;
  display:block;
  margin: 0 auto;
  border-radius: 14px;
  background:#000;
  filter: brightness(0.9) contrast(1.05);
  box-shadow:
    0 10px 28px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.doc li .doc-media{
  width: calc(100% + 22px);
  margin-left: -22px;
}

.doc ol{
  margin: 8px 0 14px 22px;
  padding-left: 0;
  line-height: 1.7;
  list-style-position: outside;
}

.doc li{
  color:#fff;
}

.doc-step-text{
  display: inline;
  color:#fff;
}

.doc li::marker{
  color: #fff;
}

.hamb{
  display: none;
}

.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index:9;
}

@media (max-width: 980px){
  .hamb{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  body.menu-open{
    overflow:hidden;
  }
}

@media (min-width: 981px){
  .hamb{ display:none !important; }
  .overlay{ display:none !important; }
}

.hamb-icon{
  width:22px;
  height:22px;
  display:block;
  color:#fff;
}

.hamb{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hamb:focus,
.hamb:focus-visible,
.hamb:active{
  outline: none !important;
  box-shadow: none !important;
}

