:root{--ink:#17191c;--muted:#6d7379;--line:#e5e7e9;--red:#d71920;--bg:#f6f7f8;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;overflow-x:clip;background:var(--bg);color:var(--ink);font-family:"Noto Sans Georgian","Sylfaen",system-ui,sans-serif}
header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--line);padding:15px 20px}.wrap{max-width:var(--max);margin:auto}
.logo{
  display:block;
  width:140px;
  height:auto;
}header p{
  margin:0;
  color:var(--muted);
  font-weight: 600;
  font-size: smaller;
}

.layout{
  max-width:var(--max);
  margin:0 auto;
  padding:38px 0;
}

.toc{
  margin-bottom:48px;
}

.toc-title{
  margin:0 0 20px;
  font-size:17px;
  font-weight:700;
  letter-spacing:.04em;
  color:#000;
  text-transform:uppercase;
}

.toc-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:42px;
  row-gap:0;
}

.toc-grid a{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:var(--ink);
  font-size:14px;
  line-height:1.35;
  font-weight: 500;
  
}

.toc-grid a:hover{
  color:var(--red);
}

.toc-grid a span{
  flex:0 0 auto;
  color:#5f656b;
  font-size:13px;
}

.content-divider{
  border:0;
  border-top:1px solid #cfd3d6;
  width:100vw;
  margin:0 0 0 calc(50% - 50vw);
}

#content{
  position:relative;
  padding-bottom:70px;
}

#content::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:#fff;
}

.category{
  scroll-margin-top:80px;
}

.item{border-bottom:1px solid var(--line)}.item a{display:block;padding:17px 4px;text-decoration:none;color:inherit}.item h3{margin:0 0 6px;font-size:17px;line-height:1.35}.item p{margin:0;color:var(--muted);font-size:15px;line-height:1.55}
.item:hover h3{color:var(--red)}
@media(max-width:800px){
  .layout{padding-left:16px;padding-right:16px}
  .toc-grid{grid-template-columns:1fr}
  
}
@media(min-width:801px) and (max-width:1050px){
  .toc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:48px;
}

.item{
  min-width:0;
}

@media(max-width:700px){
  .items{
    grid-template-columns:1fr;
  }
}

.category-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  padding:40px 0;
  margin:0 0 4px;
  border:0;
}

.category-head h2{
  margin:0;
  color:#b2161b;
}

.category-head span{
  margin:0;
}

.category-head::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:100vw;
  height:1px;
  background:#000;
  transform:translateX(-50%);
}

.category-title{
  display:flex;
  align-items:baseline;
  gap:12px;
}

.article-count{
  color:#6d7379;
  font-size:13px;
  font-weight:400;
  white-space:nowrap;
}

.toc-link{
  color:#17191c;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}

.toc-link:hover{
  color:#b2161b;
}

#toc{
  scroll-margin-top:80px;
}


.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}


/* MOBILE CATEGORY HEADER */
@media(max-width:700px){

  .category-head{
    display:block;
    padding:24px 0;
  }

  .category-title{
    display:block;
  }

  .category-head h2{
    margin:0 0 6px;
    font-size:26px;
    line-height:1.25;
  }

  .article-count{
    display:block;
    margin:0 0 16px;
    font-size:16px;
    line-height:1.4;
  }

  .toc-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 15px;
    background:#e5e7e9;
    border-radius:6px;
    color:#17191c;
    font-size:15px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    margin-top: 10px;
  }

  .toc-link:hover{
    background:#d9dcdf;
    color:#17191c;
  }
}

@media(max-width:700px){

  .category-head{
    text-align:center;
  }

  .category-title{
    text-align:center;
  }

  .category-head h2{
    font-size:22px;
    line-height:1.3;
    margin:0 0 5px;
    text-align:center;
  }

  .article-count{
    text-align:center;
  }

  .toc-link{
    margin-left:auto;
    margin-right:auto;
  }
}

/* TABLET / SMALL LAPTOP SPACING */
@media(min-width:701px) and (max-width:1180px){

  .layout{
    padding-left:40px;
    padding-right:40px;
  }

  header{
    padding-left:40px;
    padding-right:40px;
  }
}


/* ACCESSIBILITY */
a:focus-visible{
  outline:3px solid var(--red);
  outline-offset:4px;
  border-radius:2px;
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }
}



.header-inner h1{
  margin:0;
  font-size:13px;
  line-height:1.4;
  font-weight:400;
  text-align:right;
  color:var(--muted);
}
