/* Page: service center */
body.page-service-center {
  --page-entry: service-center;
}

.price-pb {
  margin-bottom: 100px;
  padding-bottom: 0;
}

.price-pt {
  margin-top: 100px;
  padding-top: 0;
}

.post-type-archive-prices main section:last-child {
  margin-bottom: 60px;
}

.tablePrices-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #090909;
}

.tablePrices-title span {
  background: linear-gradient(-14.8deg, #f99515 7.4%, #ff7316 112.6%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* price-main */
.price-main__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.price-main__block {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.price-main__block--info {
  z-index: 0;
  background: #f6f6f6;
  padding: 64px 32px;
}

.price-main__block--info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/service-center/price-info-glow.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.price-main__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.price-main__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  color: #090909;
  margin: 0;
}

.price-main__title span {
  background: linear-gradient(-60.15deg, #f99515 7.42%, #ff7316 112.6%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-main__subtitle {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: #333333;
}

.price-main__subtitle strong {
  font-weight: normal;
}

.price-main__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #090909;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  padding: 12px 24px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
  transition: background 0.3s ease;
  width: fit-content;
}

.price-main__btn:hover {
  background: #ff7316;
}

.price-main__decor {
  position: absolute;
  z-index: 1;
  right: -205px;
  bottom: -35px;
  transform: rotate(-22.59deg);
  width: 570px;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: color-burn;
}

.price-main__decor img {
  width: 100%;
}

/* Series hero — single card (Figma node 2:3186, Antminer S23) */
.price-main--series {
  margin-bottom: 20px;
}

.series-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background-image: url("../img/service-center/hero-bg-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.series-banner__etched {
  position: absolute;
  left: 350px;
  top: 175px;
  width: min(570px, 55vw);
  transform: translateY(calc(-50% - 28px)) rotate(-22.59deg);
  mix-blend-mode: color-burn;
  opacity: 1;
}

.series-banner__etched img {
  display: block;
  width: 100%;
  height: auto;
}

.series-banner__grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.series-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
  padding: 32px 32px 38px;
}

.series-banner__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-banner__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #090909;
}

.series-banner__subtitle {
  margin: 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: #333333;
}

.series-banner__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.series-banner__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

.price-main__block--hero {
  background: #090909;
}

.price-main__hero-bg {
  position: absolute;
  inset: 0;
}

.price-main__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.price-main__hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.price-main__hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.price-main__hero-logo {
  width: 92px;
  margin-bottom: 12px;
}

.price-main__hero-logo img {
  width: 100%;
}

.price-main__hero-title {
  margin-bottom: auto;
}

.price-main__hero-title-top {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  color: #ffffff;
  text-transform: uppercase;
}

.price-main__hero-title-sub {
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
}

.price-main__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-main__stat {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 12px;
  width: fit-content;
  min-width: 224px;
}

.price-main__stat-value {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-main__stat-value span {
  font-size: 14px;
}

.price-main__stat-label {
  font-size: 12px;
  line-height: 1.2;
  color: #f6f6f6;
}

.price-main__stat-group {
  display: flex;
  gap: 16px;
}

.glass-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.1);

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

  border: none;
  overflow: hidden;
}

.glass-panel::before,
.glass-panel::after {
  content: "";
  position: absolute;
  border-radius: inherit; /* Используем скругление основного блока */
  padding: 1px; /* Толщина блика */
  pointer-events: none; /* Не перекрывает события мыши */
  width: 110%;
  height: 110%;

  /* Магия маски: рисует градиент ТОЛЬКО на контуре (гранях) */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* БЛИК В ВЕРХНЕМ ЛЕВОМ УГЛУ */
.glass-panel::before {
  top: 0;
  left: 0;
  /* Градиент блика для верхнего левого угла (затухает к краям) */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
}

/* БЛИК В НИЖНЕМ ПРАВОМ УГЛУ */
.glass-panel::after {
  bottom: 0;
  right: 0;

  /* Градиент блика для нижнего правого угла (затухает к краям) */
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
}

/* price-services */
.price-services__title {
  text-align: center;
  margin-bottom: 32px;
}
.price-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}

.price-services__item {
  background: #ffffff;
  box-shadow: 0px 10px 15px rgba(101, 101, 101, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.price-services__item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0px 4px 30px rgba(255, 255, 255, 0.25);
}

.price-services__item-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-services__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(-82.06deg, #f99515 7.42%, #ff7316 112.6%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-services__item-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.price-services__item-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  background: linear-gradient(-46.13deg, #f99515 7.42%, #ff7316 112.6%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-services__item-text {
  font-size: 16px;
  line-height: 1.4;
  color: #333333;
}

/* price-models */
.price-models__title {
  text-align: center;
  margin-bottom: 20px;
}
.price-models__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-models__item {
  position: relative;
  background: #ffffff;
  box-shadow: 0px 10px 30px rgba(101, 101, 101, 0.1);
  border-radius: 24px;
  height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
}

.price-models__item-img {
  flex-shrink: 0;
  align-self: center;
  margin-bottom: auto;
  width: 180px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-models__item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.price-models__item-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: #090909;
  text-align: center;
  text-decoration: none;
}

.price-models__item-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* price-benefits */
.price-benefits__title {
  text-align: center;
  margin-bottom: 16px;
}
.price-benefits__subtitle {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: #333333;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.price-benefits__subtitle strong {
  font-weight: normal;
}

.price-benefits__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-benefits__list:has(> .price-benefits__item:only-child) {
  grid-template-columns: 1fr;
}

.price-benefits__list:has(> .price-benefits__item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.price-benefits__list:has(> .price-benefits__item:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

.price-benefits__item {
  background: #ffffff;
  border: 1px solid #c7ced4;
  box-shadow: 0px 10px 30px rgba(101, 101, 101, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.price-benefits__item-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-benefits__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(-82.06deg, #f99515 7.42%, #ff7316 112.6%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-benefits__item-icon img {
  width: 24px;
  height: 24px;
}

.price-benefits__item-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  background: linear-gradient(-47.49deg, #f99515 7.42%, #ff7316 112.6%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-benefits__item-text {
  font-size: 16px;
  line-height: 1.4;
  color: #333333;
}

/* priceBanner */
.priceBanner-wrapper {
  background: #333333;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;

  background-image: url("https://asicfox.ua/wp-content/uploads/page-service/banner-bg.png");
  background-size: cover;
  background-position: center;
}

.priceBanner-left {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.priceBanner-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 12px;
}

.priceBanner-subtitle {
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 16px;
}

.priceBanner-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.priceBanner-link svg {
  flex-shrink: 0;
}

.priceBanner-link span {
  font-size: 18px;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.priceBanner-right {
  position: relative;
  z-index: 1;
  width: 474px;
}

/* Matches CF7 markup (.form-row-wrap / .form-row), not .priceBanner-form */
.priceBanner .form-row-wrap {
  box-sizing: border-box;
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 4px 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.priceBanner .form-row {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.priceBanner .form-row .wpcf7-form-control-wrap {
  display: block;
  margin: 0;
}

.priceBanner .form-row input[type="text"],
.priceBanner .form-row input[type="tel"] {
  box-sizing: border-box;
  border: none;
  outline: none;
  width: 100%;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  height: 40px;
  color: #7d8389;
  background: transparent;
}

.priceBanner .form-row input::placeholder {
  color: #7d8389;
  opacity: 1;
}

.priceBanner .form-submit {
  flex-shrink: 0;
  margin: 0;
}

.priceBanner .form-submit input {
  box-sizing: border-box;
  min-width: 150px;
  background: #333333;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.priceBanner .form-submit input:hover {
  background: #090909;
}

.tablePrices-block__item-name {
  padding-right: 5px;
}

@media (max-width: 1200px) {
  .price-pb {
    margin-bottom: 80px;
  }

  .price-pt {
    margin-top: 80px;
  }

  .post-type-archive-prices main section:last-child {
    margin-bottom: 40px;
  }

  /* Section headings (tablet) — H3 scale from Figma */
  .tablePrices-title {
    font-size: 36px;
  }

  /* price-main — stacked blocks, heights from tablet frame */

  .price-main__list {
    grid-template-columns: 1fr;
  }

  .price-main__block {
    height: auto;
  }

  .price-main__block--info {
    min-height: 312px;
    height: auto;
    padding: 32px;
  }

  .price-main__title {
    font-size: 56px;
    line-height: 1.1;
  }

  .price-main__subtitle {
    max-width: none;
  }

  .price-main__decor {
    right: -150px;
    bottom: -115px;
  }

  .price-main__block--info::after {
    top: 30%;
  }

  .price-main__hero-content {
    padding: 24px;
    gap: 0;
  }

  .price-main__hero-title {
    margin-bottom: 0;
    max-width: 286px;
  }

  .price-main__stats {
    gap: 16px;
    margin-top: 16px;
    width: 100%;
  }

  .price-main__stats > .price-main__stat {
    width: fit-content;
    max-width: 224px;
    width: 100%;
  }

  .price-main__stat-group {
    width: 100%;
    max-width: 480px;
  }

  .price-main__stat-group .price-main__stat {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 224px;
  }

  .price-services__list {
    gap: 20px;
  }

  .price-services__list,
  .price-models__list,
  .price-benefits__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service cards — icon row gap from tablet spec */
  .price-services__item-top {
    gap: 12px;
  }

  /* Model cards — 250px card height, 160px image slot */
  .price-models__item {
    height: 250px;
  }

  .price-models__item-img {
    width: min(218px, 90%);
    height: 160px;
  }

  /* Benefits subtitle spacing under narrower title block */
  .price-benefits__subtitle {
    margin-bottom: 32px;
    max-width: none;
    padding-inline: 0;
  }

  /* CTA banner — vertical stack like tablet frame */
  .priceBanner-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 32px 32px 64px;
    min-height: 0;
  }

  .priceBanner-left {
    max-width: none;
    width: 100%;
  }

  /* Banner headline — 40px in tablet frame while section titles stay 36px */
  .priceBanner-title {
    font-size: 40px;
  }

  .priceBanner-right {
    width: 100%;
    max-width: 474px;
  }

  .series-banner__grid {
    flex-direction: column;
    gap: 0;
  }

  .series-banner__copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  .series-banner__photo {
    position: relative;
  }
  .series-banner {
    background-image: url("../img/service-center/hero-bg-mobile.webp");
  }
  .series-banner__etched {
    position: absolute;
    left: -82px;
    bottom: 62px;
    top: auto;
    width: 600px;
    transform: rotate(-28deg);
  }
  .series-banner__title {
    font-size: 40px;
  }
}

@media (max-width: 1100px) {
  main {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .price-pb {
    margin-bottom: 64px;
  }

  .price-pt {
    margin-top: 64px;
  }

  .tablePrices-title {
    font-size: 32px;
  }

  .series-banner__title {
    font-size: 32px;
  }

  .series-banner__subtitle {
    font-size: 16px;
  }

  .series-banner__copy {
    padding: 16px;
  }

  .series-banner__photo img {
    min-height: 200px;
    object-fit: cover;
    object-position: center bottom;
  }

  .series-banner__etched {
    left: -44px;
    bottom: 74px;
    width: 400px;
  }

  /* price-main */
  .price-main__block--info {
    padding: 16px;
    gap: 8px;
    min-height: auto;
  }

  .price-main__title {
    font-size: 40px;
  }

  .price-main__subtitle {
    font-size: 16px;
  }

  .price-main__btn {
    width: 100%;
    justify-content: center;
  }

  .price-main__decor {
    display: none;
  }

  .price-main__block--info::after {
    top: 0;
  }

  .price-main__hero-content {
    padding: 16px;
  }

  .price-main__hero-title-top {
    font-size: 24px;
  }

  .price-main__hero-title-sub {
    font-size: 18px;
  }

  .price-main__stats {
    gap: 8px;
  }

  .price-main__stat-group {
    flex-direction: column;
    gap: 8px;
  }

  .price-main__hero-logo {
    margin-bottom: 8px;
  }

  /* price-services */
  .price-services__item-icon,
  .price-benefits__item-icon {
    width: 32px;
    height: 32px;
  }

  .price-services__list {
    gap: 20px;
  }

  .price-services__item {
    padding: 12px;
    gap: 12px;
  }

  .price-services__item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-services__item-title {
    font-size: 18px;
  }

  .price-services__item-text {
    display: none;
  }

  /* price-models */
  .price-models__list {
    gap: 20px;
  }

  .price-models__item {
    height: auto;
    padding: 8px 16px 12px;
  }

  .price-models__item-img {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
  }

  .price-models__item-title {
    font-size: 16px;
  }

  /* price-benefits */
  .price-benefits__subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .price-benefits__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-benefits__item {
    padding: 20px;
    gap: 12px;
  }

  /* priceBanner */
  .priceBanner-wrapper {
    padding: 32px 20px 60px;
    gap: 24px;
    background-position: center right;
  }

  .priceBanner-title {
    font-size: 32px;
  }

  .priceBanner-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .priceBanner-link span {
    font-size: 16px;
  }

  .priceBanner .form-row-wrap {
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 12px;
    border-radius: 0;
  }

  .priceBanner .form-row {
    background: #ffffff;
    border-radius: 32px;
    padding: 4px 0;
    box-sizing: border-box;
    width: 100%;
  }

  .priceBanner .form-submit {
    width: 100%;
  }

  .priceBanner .form-submit input {
    width: 100%;
    height: 48px;
  }

  .price-benefits__item-text {
    font-size: 14px;
    line-height: 1.6;
  }
}

#banner {
  scroll-margin-top: 100px;
}

@media (max-width: 1200px) {
  #banner {
    margin-bottom: 50px;
  }
}

@media (max-width: 576px) {
  #banner {
    margin-bottom: 34px;
  }
}
