:root{
  --bg:#040404;
  --panel:#0b0b0d;
  --panel-2:#111114;
  --panel-3:#16161a;
  --line:rgba(255,255,255,.06);
  --line-strong:rgba(214,139,69,.28);
  --text:#f5f1eb;
  --muted:#c2b3a1;
  --muted-2:rgba(242,234,223,.66);
  --accent:#d68b45;
  --accent-2:#f0b06d;
  --shadow:0 20px 48px rgba(0,0,0,.4);
  --radius:22px;
}

*{box-sizing:border-box;}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, rgba(214,139,69,.06), transparent 24%),
    linear-gradient(180deg, #050505 0%, #060606 48%, #030303 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.08;
  background-image:radial-gradient(rgba(255,255,255,.9) .7px, transparent .7px);
  background-size:4px 4px;
  mix-blend-mode:soft-light;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(1240px, calc(100% - 40px));
  margin-inline:auto;
}

main{
  flex:1;
  position:relative;
  z-index:1;
}

.header{
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid rgba(255,255,255,.05);
  background:rgba(4,4,4,.84);
  backdrop-filter:blur(10px);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:82px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand img{
  width:54px;
  height:54px;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#0d0d0f;
  object-fit:cover;
}

.brand__name{
  font-family:"Oswald",sans-serif;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:1.75rem;
  line-height:1;
}

.brand__sub{
  color:var(--muted);
  font-size:.92rem;
  margin-top:4px;
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav a{
  padding:11px 14px;
  border-radius:12px;
  color:#f2eadf;
  border:1px solid transparent;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.nav a:hover,
.nav a.active{
  background:rgba(214,139,69,.12);
  border-color:rgba(214,139,69,.22);
  transform:translateY(-1px);
}

.nav a.cta{
  border-color:rgba(214,139,69,.35);
  background:rgba(214,139,69,.12);
}

.burger{
  display:none;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}

.burger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  margin:4px 0;
  border-radius:999px;
}

.hero{
  padding:44px 0 24px;
}

.hero__content{
  padding:34px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:26px;
  background:
    linear-gradient(180deg, rgba(15,15,17,.95), rgba(8,8,10,.98));
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.hero__content::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top right, rgba(214,139,69,.12), transparent 24%);
}

.eyebrow{
  margin:0 0 10px;
  color:var(--accent-2);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.82rem;
  font-weight:700;
}

h1,
h2,
.toc a,
.tool-btn{
  font-family:"Oswald",sans-serif;
}

h1{
  margin:0;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:clamp(1.3rem, 2vw, 3.5rem);
  line-height:1;
}

.lead{
  max-width:900px;
  margin:18px 0 0;
  color:var(--muted);
  line-height:1.85;
  font-size:1.02rem;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.meta__item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  color:var(--muted-2);
}

.meta__label{
  color:var(--text);
  font-weight:700;
}

.layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:22px;
  align-items:start;
  padding:0 0 80px;
}

.toc-card,
.document-card{
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(13,13,15,.92), rgba(8,8,10,.96));
  box-shadow:var(--shadow);
  text-align: justify;
}

.toc-card{
  position:sticky;
  top:102px;
  border-radius:22px;
  overflow:hidden;
}

.toc-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:18px 18px 16px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.toc-card__head h2{
  margin:0;
  font-size:1.35rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.toc-toggle{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:8px 12px;
  cursor:pointer;
  transition:all .18s ease;
}

.toc-toggle:hover{
  background:rgba(255,255,255,.07);
}

.toc{
  display:flex;
  flex-direction:column;
  padding:14px;
  gap:6px;
}

.toc.hidden{
  display:none;
}

.toc a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:.95rem;
  line-height:1.35;
  transition:all .18s ease;
}

.toc a:hover,
.toc a.active{
  color:var(--text);
  background:rgba(214,139,69,.11);
  border-color:rgba(214,139,69,.18);
  transform:translateX(3px);
}

.document-card{
  border-radius:24px;
  overflow:hidden;
}

.document-tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:18px 20px;
  border-bottom:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.02);
}

.tool-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.04em;
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}

.tool-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
  border-color:rgba(214,139,69,.18);
}

.document{
  padding:12px 28px 36px;
}

.doc-section{
  scroll-margin-top:110px;
  padding:22px 0 8px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.doc-section:last-child{
  border-bottom:none;
}

.doc-section h2{
  margin:0 0 14px;
  font-size:1.8rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.doc-section p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.92;
  font-size:1rem;
}

.doc-section ul{
  margin:0 0 14px;
  padding-left:22px;
  color:var(--muted);
  line-height:1.92;
}

.doc-section li+li{
  margin-top:6px;
}

.notice{
  margin-top:20px;
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(214,139,69,.24);
  background:rgba(214,139,69,.08);
  color:#f1dcc3;
  line-height:1.8;
}

.footer{
  border-top:1px solid rgba(255,255,255,.05);
  background:#040404;
}

.footerInner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
}

.footerLinks{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.footerLinks a{
  transition:color .18s ease;
}

.footerLinks a:hover{
  color:var(--text);
}

@media (max-width:980px){
  .layout{
    grid-template-columns:1fr;
  }

  .toc-card{
    position:relative;
    top:auto;
  }
}

@media (max-width:760px){
  .container{
    width:min(100% - 28px, 1240px);
  }

  .burger{
    display:block;
  }

  .nav{
    position:absolute;
    right:14px;
    top:66px;
    width:min(340px, calc(100vw - 28px));
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px;
    border-radius:16px;
    background:rgba(8,8,10,.98);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:var(--shadow);
  }

  .nav.open{
    display:flex;
  }

  .brand img{
    width:46px;
    height:46px;
  }

  .brand__name{
    font-size:1.2rem;
  }

  .brand__sub{
    font-size:.76rem;
  }

  .hero{
    padding:24px 0 16px;
  }

  .hero__content{
    padding:24px 20px;
    border-radius:22px;
  }

  .document{
    padding:8px 18px 26px;
  }

  .doc-section h2{
    font-size:1.45rem;
  }

  .footerInner{
    min-height:auto;
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
  }
}