/* =========================================================
   Services Page — /css/pages/services.css
   v6.1: HERO text + TOP-6 cards + pie block (unified style + padding fix)
========================================================= */

.aw-main { padding: 18px 0 28px; }

/* --- MAIN CARD WRAPPER --- */
.aw-services-page{
  background: var(--aw-surface, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow: hidden;
}
/* =========================================================
   UNIFIED SECTION HEADERS (one style everywhere)
========================================================= */

/* загальний заголовок секції (як h2) */
.aw-section-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(0,0,0,.90);
  font-size: 18px;
  line-height: 1.25;
}

/* стандартні внутрішні відступи для секцій */
.aw-section-pad{
  padding-left: 18px;
  padding-right: 18px;
}

/* =========================================================
   STRUCTURE BLOCK — use unified header + spacing
========================================================= */

.aw-services-chart-block{
  margin-top: 14px;
  margin-bottom: 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;

  /* ✅ щоб блок мав такий самий “ритм” як інші */
  padding-top: 0;
  padding-bottom: 0;
}

/* заміняємо специфічний title на уніфікований */
.aw-pie-chart-title{
  /* прибираємо локальну стилізацію */
  padding: 0;
}

/* layout */
.aw-pie-layout{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;

  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 740px){
  .aw-pie-layout{ grid-template-columns: 1fr; }
}

/* padding inside card */
.aw-services-page > *{
  padding-left: 18px;
  padding-right: 18px;
}

/* --- HERO --- */
.aw-services-hero{
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
}

/* один стовпчик (текст зверху) */
.aw-services-hero-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.aw-services-header__text{ min-width: 0; }

.aw-services-summary{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.78);
  font-size: 14px;
}
.aw-services-summary--empty{ opacity: .85; }

/* =========================================================
   STRUCTURE BLOCK — unified section style (no "card" look)
========================================================= */

.aw-services-chart-block{
  margin-top: 14px;
  margin-bottom: 6px;

  /* unified with other big blocks */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  /* ✅ ВАЖЛИВО: додаємо повітря як в інших секціях */
  padding: 0 0 0;

  /* layout: title row + content row */
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

/* ✅ bigger title + air */
.aw-pie-chart-title{
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(0,0,0,.90);

  font-size: 18px;
  line-height: 1.25;

  /* ✅ щоб не прилипало до краю */
  margin: 0;
  padding: 0 16px; /* <-- воздух зліва/справа */
}

/* ✅ inner layout (chart left / legend right) */
.aw-pie-layout{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;

  /* ✅ той самий відступ що й заголовок */
  padding: 10px 16px 0 16px;

  /* subtle separator like other sections */
  border-top: 1px solid rgba(0,0,0,.06);
}

/* left */
.aw-pie-left{ min-width: 0; }

.aw-pie-chart{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* right */
.aw-pie-right{ min-width: 0; }

.aw-pie-legend{
  display: grid;
  gap: 8px;
}

/* legend item */
.aw-pie-legend-item{
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  cursor: default;
}

.aw-pie-legend-item.is-active{
  outline: 2px solid rgba(0,0,0,.12);
}

/* clickable legend */
.aw-pie-legend-item--link{ cursor: pointer; }
.aw-pie-legend-item--link:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
}
.aw-pie-legend-item--link:focus{
  outline: 2px solid rgba(0,0,0,.14);
  outline-offset: 2px;
}

/* disabled (Other slice) */
.aw-pie-legend-item--disabled{
  opacity: .65;
  cursor: default;
}
.aw-pie-legend-item--disabled:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}

.aw-pie-legend-color{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.aw-pie-legend-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(0,0,0,.80);
  font-weight: 800;
  font-size: 13px;
}

.aw-pie-legend-value{
  color: rgba(0,0,0,.60);
  font-weight: 900;
  font-size: 12px;
}

.pie-sector{
  transition: transform .15s ease, opacity .15s ease;
  transform-origin: 90px 90px;
}
.pie-sector--active{
  transform: scale(1.02);
  opacity: .95;
}

@media (max-width: 740px){
  .aw-pie-layout{
    grid-template-columns: 1fr;
    padding: 10px 0 0 0; /* ✅ на мобілці відступи вже дає aw-services-page */
  }
  .aw-pie-chart-title{
    padding: 0; /* ✅ на мобілці також */
  }
  .aw-pie-chart{ justify-content: flex-start; }
}

/* =========================================================
   TOP SERVICES (6 cards with image)
========================================================= */
.aw-services-top{
  padding-top: 18px;
  padding-bottom: 18px;
}

.aw-services-top__header{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.aw-services-top__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(0,0,0,.90);
}

.aw-services-top__subtitle{
  margin: 0;
  color: rgba(0,0,0,.70);
  line-height: 1.6;
}

.aw-services-top__grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199px){
  .aw-services-top__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px){
  .aw-services-top__grid{ grid-template-columns: 1fr; gap: 12px; }
}

.aw-service-top-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
  display: grid;
  min-width: 0;
}

.aw-service-top-card__media{
  display: block;
  position: relative;
  background: rgba(0,0,0,.03);
}

.aw-service-top-card__media img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.aw-service-top-card__body{
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.aw-service-top-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .15px;
  line-height: 1.25;
}

.aw-service-top-card__title a{
  color: rgba(0,0,0,.90);
  text-decoration: none;
}

.aw-service-top-card__title a:hover{
  text-decoration: underline;
}

.aw-service-top-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aw-service-top-card__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.75);
  font-weight: 800;
  font-size: 13px;
}

.aw-service-top-card__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   SIDEBAR: "Other services" clean list
========================================================= */
.aw-services-page img,
.aw-services-page svg{
  max-width: 100%;
  height: auto;
}

.aw-services-other{
  padding: 6px 0;
}

.aw-services-other__title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(0,0,0,.85);
  margin-bottom: 10px;
}

.aw-services-other__list{
  display: grid;
  gap: 6px;
}

.aw-services-other__link{
  position: relative;
  padding: 6px 6px 6px 12px;

  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,.75);
  text-decoration: none;

  border-left: 2px solid transparent;
}

.aw-services-other__link:hover{
  color: rgba(0,0,0,.95);
  border-left-color: var(--aw-color-menu-active, #CDAF54);
  background: rgba(0,0,0,.03);
}

.aw-services-other__empty{
  font-size: 13px;
  color: rgba(0,0,0,.55);
  padding-left: 6px;
}
/* =========================================================
   RIGHT SIDEBAR — services
========================================================= */

.aw-sidebar--services{ min-width: 0; }

/* sticky */
.aw-sidebar__sticky{
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
}

/* card */
.aw-sb-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
  padding: 12px;
}

.aw-sb-card__head{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.aw-sb-card__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(0,0,0,.90);
  font-size: 14px;
}

.aw-sb-card__meta{
  color: rgba(0,0,0,.55);
  font-weight: 800;
  font-size: 12px;
}

/* simple link list (Other services) */
.aw-sb-links{
  display: grid;
  gap: 6px;
}

.aw-sb-links__item{
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  text-decoration: none;
}

.aw-sb-links__item:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
}

.aw-sb-links__name{
  color: rgba(0,0,0,.82);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  display: block;
}

/* search */
.aw-sb-search{ margin-bottom: 10px; }

.aw-sb-search__input{
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.aw-sb-search__input:focus{
  border-color: rgba(0,0,0,.20);
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

/* list (All services) */
.aw-sb-list{
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.aw-sb-list__item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);

  text-decoration: none;
}

.aw-sb-list__item:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
}

.aw-sb-list__name{
  color: rgba(0,0,0,.82);
  font-weight: 800;
  font-size: 13px;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-sb-list__badge{
  min-width: 36px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.70);
  font-weight: 900;
  font-size: 12px;
}

.aw-sb-empty{
  padding: 10px 2px 2px;
  color: rgba(0,0,0,.65);
  font-size: 13px;
}

/* CTA */
.aw-sb-cta{
  background: rgba(0,0,0,.02);
}

.aw-sb-cta__title{
  font-weight: 900;
  font-size: 14px;
  color: rgba(0,0,0,.90);
  margin-bottom: 6px;
}

.aw-sb-cta__text{
  color: rgba(0,0,0,.70);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.aw-sb-cta__actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* mobile: disable sticky */
@media (max-width: 980px){
  .aw-sidebar__sticky{ position: static; }
}
/* =========================================================
   SIDEBAR FAQ
========================================================= */

.aw-sb-faq{
  display: grid;
  gap: 8px;
}

.aw-sb-faq__item{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  overflow: hidden;
}

.aw-sb-faq__q{
  list-style: none;
  cursor: pointer;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;

  padding: 10px 10px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(0,0,0,.85);
}

.aw-sb-faq__q::-webkit-details-marker{ display:none; }

.aw-sb-faq__icon{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  transition: transform .15s ease;
}

.aw-sb-faq__item[open] .aw-sb-faq__icon{
  transform: rotate(180deg);
}

.aw-sb-faq__a{
  padding: 0 10px 10px;
  color: rgba(0,0,0,.70);
  font-size: 13px;
  line-height: 1.5;
}

/* hover */
.aw-sb-faq__item:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.10);
}
/* =========================================================
   Sidebar CTA blocks
========================================================= */

.aw-sb-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
  padding: 12px;
}

.aw-sb-card + .aw-sb-card{ margin-top: 12px; }

.aw-sb-card__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.aw-sb-card__title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(0,0,0,.88);
}

.aw-sb-card__meta{
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.55);
}

.aw-sb-cta__text{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,.72);
  margin-bottom: 10px;
}

.aw-sb-cta__actions{
  display: grid;
  gap: 8px;
}

.aw-sb-cta--buyers{
  background: rgba(0,0,0,.02);
}
