/* =========================
CATEGORY PAGE
========================= */

.afisha-category-page{
  background:#fff;
}

/* =========================
CATEGORY HEADER
========================= */

.afisha-category-header{
  padding:28px 0 18px;
  background:#fff;
  border-bottom:none;
}

.afisha-category-header__inner{
  width:100%;
  max-width:1082px;
  margin:0 auto;
}

.afisha-category-header__eyebrow{
  display:inline-block;
  margin:0 0 10px;
  font-size:12px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--color-accent-red);
  font-weight:700;
}

.afisha-category-header__title{
  margin:0 0 14px;
  max-width:900px;
  font-family:"Tinos", Georgia, serif;
  font-size:clamp(32px, 2.6vw, 48px);
  line-height:1.02;
  font-weight:700;
  letter-spacing:-0.025em;
  color:#111;
}

.afisha-category-header__description{
  max-width:720px;
  margin-bottom:8px;
  font-size:18px;
  line-height:1.7;
  color:#555;
}

.afisha-category-header__description p{
  margin:0;
}

/* =========================
SUBCATEGORY NAV
========================= */

.afisha-category-subnav{
  padding:12px 0 28px;
  background:#fff;
}

.afisha-category-subnav__inner{
  width:100%;
  max-width:1082px;
  margin:0 auto;
}

.afisha-category-subnav__nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  row-gap:10px;
}

.afisha-category-subnav__link{
  position:relative;
  font-size:13px;
  line-height:1.4;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#6f6f6f;
  text-decoration:none;
  padding-bottom:4px;
}

.afisha-category-subnav__link:hover{
  color:var(--color-accent-red);
}

.afisha-category-subnav__link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:1px;
  background:var(--color-accent-red);
  transition:width .25s ease;
}

.afisha-category-subnav__link:hover::after{
  width:100%;
}

.afisha-category-subnav__link.is-active{
  color:var(--color-accent-red);
  font-weight:700;
}

.afisha-category-subnav__link.is-active::after{
  width:100%;
}

.afisha-category-subnav__sep{
  margin:0 12px;
  color:#b5b5b5;
  font-size:12px;
  line-height:1;
  opacity:.6;
}

/* =========================
ARTICLE GRID
========================= */

.afisha-category-grid{
  padding:0 0 22px;
  background:#fff;
}

.afisha-category-grid__inner{
  width:100%;
  max-width:1082px;
  margin:0 auto;
}

.afisha-category-grid__items{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px 22px;
}

.afisha-category-grid-card{
  min-width:0;
}

.afisha-category-grid-card__image{
  display:block;
  margin-bottom:12px;
  overflow:hidden;
  background:#f3f3f3;
}

.afisha-category-grid-card__image img{
  width:100%;
  height:185px;
  object-fit:cover;
  display:block;
}

.afisha-category-grid-card__category{
  margin:0 0 8px;
  font-size:11px;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--color-accent-red);
  font-weight:700;
}

.afisha-category-grid-card__category a{
  color:var(--color-accent-red);
  text-decoration:none;
}

.afisha-category-grid-card__category a:hover{
  color:var(--color-accent-red-dark);
}

.afisha-category-grid-card__title{
  margin:0 0 8px;
  font-family:"Tinos", Georgia, serif;
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-0.01em;
  color:#111;
}

.afisha-category-grid-card__title a{
  color:#111;
  text-decoration:none;
}

.afisha-category-grid-card__title a:hover{
  color:var(--color-accent-red);
}

.afisha-category-grid-card__excerpt{
  font-size:14px;
  line-height:1.68;
  color:#555;
}

/* =========================
PAGINATION
========================= */

.afisha-category-pagination{
  padding-top:28px;
  text-align:center;
}

.afisha-category-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  margin:0 4px 6px;
  padding:0 10px;
  border:1px solid #ddd;
  background:#fff;
  font-size:13px;
  line-height:1;
  color:#111;
  text-decoration:none;
}

.afisha-category-pagination .page-numbers:hover{
  color:var(--color-accent-red);
  border-color:var(--color-accent-red);
}

.afisha-category-pagination .page-numbers.current{
  background:#111;
  border-color:#111;
  color:#fff;
}

/* =========================
MOST VIEWED
========================= */

.afisha-category-most-viewed{
  padding:30px 0 20px;
  background:#fff;
}

.afisha-category-most-viewed__inner{
  width:100%;
  max-width:1082px;
  margin:0 auto;
}

.afisha-category-most-viewed__header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.afisha-category-most-viewed__title{
  margin:0;
  font-family:"Tinos", Georgia, serif;
  font-size:22px;
  line-height:1.15;
  font-weight:700;
  color:#111;
  white-space:nowrap;
}

.afisha-category-most-viewed__header::after{
  content:"";
  display:block;
  flex:1 1 auto;
  height:1px;
  background:#1a1a1a;
  opacity:.28;
}

.afisha-category-most-viewed__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px 26px;
}

.afisha-category-most-viewed-card{
  display:grid;
  grid-template-columns:145px 1fr;
  gap:14px;
  align-items:start;
}

.afisha-category-most-viewed-card__image{
  display:block;
  background:#f3f3f3;
  overflow:hidden;
}

.afisha-category-most-viewed-card__image img{
  width:100%;
  height:92px;
  object-fit:cover;
  display:block;
}

.afisha-category-most-viewed-card__body{
  min-width:0;
}

.afisha-category-most-viewed-card__category{
  margin-bottom:6px;
  font-size:10px;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#8f8f8f;
}

.afisha-category-most-viewed-card__category a{
  color:#8f8f8f;
  text-decoration:none;
}

.afisha-category-most-viewed-card__category a:hover{
  color:var(--color-accent-red);
}

.afisha-category-most-viewed-card__title{
  margin:0 0 6px;
  font-family:"Tinos", Georgia, serif;
  font-size:15px;
  line-height:1.24;
  font-weight:700;
  color:#111;
}

.afisha-category-most-viewed-card__title a{
  color:#111;
  text-decoration:none;
}

.afisha-category-most-viewed-card__title a:hover{
  color:var(--color-accent-red);
}

.afisha-category-most-viewed-card__excerpt{
  font-size:12px;
  line-height:1.45;
  color:#555;
}

/* =========================
BOTTOM SEO TEXT
========================= */

.afisha-category-bottom-seo{
  padding:42px 0 34px;
  background:#fff;
}

.afisha-category-bottom-seo__inner{
  width:100%;
  max-width:1082px;
  margin:0 auto;
}

.afisha-category-bottom-seo__text{
  max-width:820px;
  margin:0 auto;
  padding-top:26px;
  border-top:1px solid rgba(17,17,17,.10);
  font-size:17px;
  line-height:1.82;
  color:#3f3f3f;
}

.afisha-category-bottom-seo__text p{
  margin:0 0 18px;
}

.afisha-category-bottom-seo__text p:last-child{
  margin-bottom:0;
}

.afisha-category-bottom-seo__text a{
  color:#111;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:rgba(17,17,17,.28);
}

.afisha-category-bottom-seo__text a:hover{
  color:var(--color-accent-red);
  text-decoration-color:var(--color-accent-red);
}

/* =========================
ACCESSIBILITY / LINKS
========================= */

.afisha-category-page a:focus-visible{
  outline:2px solid var(--color-accent-red);
  outline-offset:2px;
}

.afisha-category-hub__grid.is-single-column {
	display: block;
}

.afisha-category-hub__grid.is-single-column .afisha-category-hub__aside {
	max-width: 100%;
	width: 100%;
}

.afisha-category-faq__items {
	border-top: 1px solid #d9d9d9;
}

.afisha-category-faq__item {
	border-bottom: 1px solid #d9d9d9;
	padding: 18px 0;
}

.afisha-category-faq__question {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.afisha-category-faq__question::-webkit-details-marker {
	display: none;
}

.afisha-category-faq__answer {
	padding-top: 14px;
}
/* =========================
RESPONSIVE
========================= */

@media (max-width: 1280px){
  .afisha-category-grid__items{
    gap:22px 18px;
  }

  .afisha-category-grid-card__image img{
    height:170px;
  }
}

@media (max-width: 991px){
  .afisha-category-header__inner,
  .afisha-category-subnav__inner,
  .afisha-category-grid__inner,
  .afisha-category-most-viewed__inner,
  .afisha-category-bottom-seo__inner{
    width:min(100% - 24px, 100%);
    max-width:none;
  }

  .afisha-category-header{
    padding:22px 0 14px;
  }

  .afisha-category-header__title{
    font-size:32px;
    line-height:1.08;
    max-width:100%;
  }

  .afisha-category-header__description{
    max-width:100%;
    font-size:16px;
    line-height:1.65;
  }

  .afisha-category-bottom-seo__text{
    max-width:100%;
    font-size:16px;
    line-height:1.74;
  }

  .afisha-category-grid__items{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .afisha-category-most-viewed__grid{
    grid-template-columns:1fr;
    gap:18px;
  }
}

@media (max-width: 767px){
  .afisha-category-header__eyebrow{
    font-size:11px;
  }

  .afisha-category-header__title{
    font-size:26px;
  }

  .afisha-category-header__description,
  .afisha-category-bottom-seo__text{
    font-size:15px;
    line-height:1.72;
  }

  .afisha-category-subnav__nav{
    row-gap:10px;
  }

  .afisha-category-subnav__link{
    font-size:11px;
  }

  .afisha-category-subnav__sep{
    margin:0 8px;
  }

  .afisha-category-grid__items{
    grid-template-columns:1fr;
    gap:22px;
  }

  .afisha-category-grid-card__image img{
    height:auto;
  }

  .afisha-category-grid-card__title{
    font-size:17px;
  }

  .afisha-category-most-viewed-card{
    grid-template-columns:110px 1fr;
    gap:12px;
  }

  .afisha-category-most-viewed-card__image img{
    height:82px;
  }

  .afisha-category-most-viewed__title{
    font-size:20px;
  }

  .afisha-category-bottom-seo{
    padding:34px 0 26px;
  }

  .afisha-category-bottom-seo__text{
    padding-top:20px;
    font-size:14px;
  }
}