/* ==========================================================================
   Страница «Цены» — balashiha-master.com
   Макет: Figma «Цены — Desktop 1920» / «Цены — Mobile 375»
   ========================================================================== */

:root {
  --c-primary: #3a22d4;
  --c-primary-dark: #24138f;
  --c-accent: #7b5cff;
  --c-text: #16132e;
  --c-muted: #6e6a85;
  --c-muted-2: #b9b3d9;
  --c-border: #e4e1f5;
  --c-soft: #ece9fd;
  --c-bg: #f6f5fc;
  --c-white: #ffffff;

  --shadow-card: 0 8px 32px rgba(41, 28, 115, 0.06);

  --container: 1320px;
  --gutter: 40px;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.prices-page {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: clip;
}

.prices-page *:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-primary);
}

.icon-box .icon {
  width: 30px;
  height: 30px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 16px 28px;
  font: 600 16px/19px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.67;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--primary:hover {
  background: #2e19b3;
  box-shadow: 0 8px 20px rgba(58, 34, 212, 0.28);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--white {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn--white:hover {
  background: var(--c-soft);
}

.btn--sm {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 17px;
}

.btn--block {
  width: 100%;
}

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 14px/20px var(--font);
}

.breadcrumbs li {
  display: flex;
  gap: 8px;
  color: var(--c-text);
  font-weight: 500;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--c-muted-2);
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--c-muted);
  font-weight: 400;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--c-primary);
}

/* ---------- Hero ---------- */

.hero__row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}

.hero__title {
  flex: 1 1 0;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
}

.hero__h1-main {
  display: block;
  font-size: 104px;
  font-weight: 900;
  line-height: 1;
}

.hero__h1-sub {
  display: block;
  margin-top: 4px;
  max-width: 640px;
  font-size: 46px;
  font-weight: 800;
  line-height: 51px;
}

.hero__lead {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--c-muted);
  font: 400 18px/28px var(--font);
}

.hero__lead-extra {
  display: inline;
}

.discount {
  display: flex;
  flex: 1 1 0;
  gap: 32px;
  min-width: 0;
  padding: 36px;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.discount__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 24px;
}

.discount__sale {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discount__sale .icon-box {
  width: 72px;
  height: 72px;
  background: var(--c-primary);
  color: var(--c-white);
}

.discount__sale .icon-box .icon {
  width: 36px;
  height: 36px;
  stroke-width: 3.3;
}

.discount__sale-text {
  margin: 0;
}

.discount__value {
  display: block;
  color: var(--c-primary);
  font-size: 56px;
  font-weight: 900;
  line-height: 56px;
  white-space: nowrap;
}

.discount__caption {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
}

.discount__divider {
  flex: none;
  width: 1px;
  background: var(--c-border);
}

.discount__free {
  display: flex;
  flex-direction: column;
  flex: 0 0 190px;
  gap: 14px;
}

.discount__free .icon-box {
  width: 56px;
  height: 56px;
}

.discount__free .icon-box .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.discount__free-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 23px;
}

.discount__free-text {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Преимущества ---------- */

.advantages {
  padding-top: 48px;
}

.advantages__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adv {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: var(--c-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.adv .icon {
  stroke-width: 2.25;
}

/* ---------- Прайс ---------- */

.prices {
  padding-top: 80px;
}

.section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 46px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--c-accent);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-white);
  color: var(--c-text);
  font: 600 15px/18px var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.tab .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.265;
  color: var(--c-primary);
}

.tab:hover {
  border-color: var(--c-accent);
}

.tab[aria-selected="true"] {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: var(--c-white);
}

.tab[aria-selected="true"] .icon {
  color: var(--c-white);
}

.price-card {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding: 40px;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.price-card[hidden] {
  display: none;
}

.price-card__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 24px;
  min-width: 0;
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price-card__head .icon-box {
  width: 64px;
  height: 64px;
}

.price-card__head .icon-box .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

.price-card__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 36px;
}

/* Таблица: на десктопе — строки, на мобильных — карточки */

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  margin: -4px 0;
  table-layout: fixed;
}

.price-table th {
  padding: 0 0 4px 16px;
  color: var(--c-muted);
  font: 500 14px/20px var(--font);
  text-align: left;
}

.price-table td {
  padding: 12px 0 12px 16px;
  font-size: 16px;
  line-height: 23px;
  vertical-align: middle;
}

.price-table th:first-child,
.price-table td:first-child {
  padding-left: 24px;
}

.price-table th:last-child,
.price-table td:last-child {
  padding-right: 24px;
}

.price-table col.col-price {
  width: 166px;
}

.price-table col.col-warranty {
  width: 126px;
}

.price-table col.col-action {
  width: 160px;
}

.price-table tbody tr:nth-child(odd) td {
  background: var(--c-bg);
}

.price-table td:first-child {
  border-radius: 14px 0 0 14px;
}

.price-table td:last-child {
  border-radius: 0 14px 14px 0;
}

.price-table__name {
  font-weight: 500;
}

.price-table__price {
  color: var(--c-primary);
  font-weight: 700;
  white-space: nowrap;
}

.price-table__label {
  display: none;
}

.price-table .btn {
  width: 120px;
}

.price-card__more {
  display: none;
  width: 100%;
}

.price-note {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 24px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 20px;
}

.price-note .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.price-empty {
  padding: 32px;
  border-radius: 20px;
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 16px;
  line-height: 24px;
}

.price-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 20px;
  line-height: 25px;
}

.price-empty a {
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.price-card__aside {
  display: flex;
  flex-direction: column;
  flex: 0 0 360px;
  gap: 20px;
}

.price-card__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--c-soft);
  color: var(--c-accent);
}

.price-card__photo .icon {
  width: 120px;
  height: 120px;
  stroke-width: 1.33;
  opacity: 0.5;
}

.price-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aside-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: var(--c-soft);
}

.aside-cta__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
}

.aside-cta__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 20px;
}

.aside-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-decoration: none;
}

.aside-cta__phone .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: var(--c-primary);
}

.aside-cta__phone:hover {
  color: var(--c-primary);
}

.aside-cta .btn {
  margin-top: 0;
}

/* ---------- CTA ---------- */

.cta {
  padding: 80px 0 96px;
}

.cta__card {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 64px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
}

.cta__text {
  flex: 1 1 auto;
}

.cta__title {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  line-height: 49px;
}

.cta__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 28px;
}

.cta__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.cta__phone {
  color: var(--c-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  text-decoration: none;
  white-space: nowrap;
}

.cta__phone:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1279px) {
  .hero__h1-main {
    font-size: 88px;
  }

  .hero__h1-sub {
    font-size: 38px;
    line-height: 44px;
  }

  .price-card__aside {
    flex-basis: 300px;
  }

  .price-card__photo {
    height: 380px;
  }
}

@media (max-width: 1099px) {
  .hero__row {
    flex-direction: column;
    align-items: stretch;
  }

  .discount {
    max-width: 640px;
  }

  .advantages__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card {
    flex-direction: column;
  }

  .price-card__aside {
    flex-direction: row;
    flex-basis: auto;
  }

  .price-card__photo {
    flex: 0 0 280px;
    height: auto;
    min-height: 237px;
  }

  .aside-cta {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cta__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px;
  }

  .cta__actions {
    align-items: flex-start;
  }
}

@media (max-width: 899px) {
  .price-table col.col-price {
    width: 120px;
  }

  .price-table col.col-warranty {
    width: 110px;
  }

  .price-table col.col-action {
    width: 140px;
  }
}

/* Мобильная версия — по фрейму «Цены — Mobile 375» */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .breadcrumbs {
    padding-top: 20px;
  }

  .breadcrumbs ol {
    gap: 6px;
    font-size: 13px;
    line-height: 19px;
  }

  .breadcrumbs li {
    gap: 6px;
  }

  .hero__row {
    gap: 20px;
    margin-top: 20px;
  }

  .hero__h1-main {
    font-size: 56px;
    line-height: 56px;
  }

  .hero__h1-sub {
    font-size: 26px;
    line-height: 30px;
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 22px;
  }

  .hero__lead-extra {
    display: none;
  }

  .discount {
    flex-direction: column;
    gap: 16px;
    max-width: none;
    padding: 20px;
    border-radius: 20px;
  }

  .discount__main {
    gap: 16px;
  }

  .discount__sale {
    gap: 14px;
  }

  .discount__sale .icon-box {
    width: 56px;
    height: 56px;
  }

  .discount__sale .icon-box .icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.57;
  }

  .discount__value {
    font-size: 40px;
    line-height: 40px;
  }

  .discount__caption {
    font-size: 14px;
    line-height: 20px;
  }

  .discount .btn {
    width: 100%;
  }

  .discount__divider {
    width: auto;
    height: 1px;
  }

  .discount__free {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .discount__free .icon-box {
    width: 44px;
    height: 44px;
  }

  .discount__free .icon-box .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.1;
  }

  .discount__free-title {
    font-size: 15px;
    line-height: 20px;
  }

  .discount__free-text {
    display: none;
  }

  .advantages {
    padding-top: 24px;
  }

  .advantages__list {
    gap: 8px;
  }

  .adv {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 19px;
  }

  .adv .icon-box {
    width: 44px;
    height: 44px;
  }

  .adv .icon-box .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.25;
  }

  .prices {
    padding-top: 48px;
  }

  .section-title {
    font-size: 26px;
    line-height: 30px;
  }

  .section-title::after {
    width: 56px;
    height: 5px;
    margin-top: 10px;
  }

  /* Табы — горизонтальный скролл */
  .tabs-scroll {
    margin: 20px calc(var(--gutter) * -1) 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .tabs {
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    margin: 0;
    padding: 0 var(--gutter) 2px;
  }

  .tab {
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 17px;
  }

  .tab .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.27;
  }

  .price-card {
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: none;
  }

  .price-card__main {
    gap: 16px;
  }

  .price-card__head {
    gap: 12px;
  }

  .price-card__head .icon-box {
    width: 44px;
    height: 44px;
  }

  .price-card__head .icon-box .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.4;
  }

  .price-card__title {
    font-size: 20px;
    line-height: 24px;
  }

  .price-card__aside {
    display: none;
  }

  /* Таблица превращается в список карточек */
  .price-table,
  .price-table tbody {
    display: block;
    margin: 0;
  }

  .price-table colgroup,
  .price-table thead {
    display: none;
  }

  .price-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .price-table tbody tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--c-bg);
  }

  .price-table tbody tr:nth-child(odd) td,
  .price-table td {
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .price-table td:first-child,
  .price-table td:last-child {
    padding: 0;
    border-radius: 0;
  }

  .price-table__name {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
  }

  .price-table__price,
  .price-table__warranty {
    font-size: 16px;
    line-height: 20px;
  }

  .price-table__price {
    min-width: 91px;
  }

  .price-table__warranty {
    min-width: 64px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
  }

  .price-table__label {
    display: block;
    margin-bottom: 2px;
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
  }

  .price-table__action {
    justify-self: end;
  }

  .price-table .btn {
    width: auto;
  }

  .price-card.is-collapsed .price-table tbody tr:nth-child(n + 9) {
    display: none;
  }

  .price-card__more {
    display: inline-flex;
    gap: 8px;
    padding: 15px 20px;
    font-size: 15px;
    line-height: 18px;
  }

  .price-card__more .icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    transition: transform 0.2s;
  }

  .price-card:not(.is-collapsed) .price-card__more .icon {
    transform: rotate(180deg);
  }

  .price-note {
    gap: 8px;
    padding: 0;
    font-size: 13px;
    line-height: 19px;
  }

  .price-note .icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.35;
  }

  .price-empty {
    padding: 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .price-empty strong {
    font-size: 16px;
    line-height: 20px;
  }

  .cta {
    padding: 40px 0 48px;
  }

  .cta__card {
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
  }

  .cta__title {
    font-size: 26px;
    line-height: 30px;
  }

  .cta__lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 22px;
  }

  .cta__lead-extra {
    display: none;
  }

  .cta__actions {
    align-items: stretch;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .cta__phone {
    font-size: 20px;
    line-height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prices-page *,
  .prices-page *::before,
  .prices-page *::after {
    transition: none !important;
  }
}
