article header {
  position: static;
}

/* ––––––––––– PRICE PAGE ––––––––– */

section.price-page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: 620px;
  display: flex;
  align-items: flex-end;

  padding-top: calc(var(--header-height) + var(--section-padding));
  background-color: var(--color-black);
  color: var(--color-white);
}

section.price-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 36%, hsla(from var(--color-primary) h s l / 0.18), transparent 26%),
    radial-gradient(circle at 88% 24%, hsla(from var(--color-secondary) h s l / 0.56), transparent 28%),
    linear-gradient(180deg, hsla(from var(--color-black) h s l / 0.42) 0%, hsla(from var(--color-black) h s l / 0.78) 62%, var(--color-black) 100%);
}

section.price-page-hero .price-page-hero__picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}

section.price-page-hero .price-page-hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--prices-hero-position, center);
  filter: brightness(0.68) saturate(1.05);
  transform: scale(1.02);
}

section.price-page-hero .price-page-hero__content {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

section.price-page-hero h1 {
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

section.price-page-hero h1 span {
  color: var(--color-primary);
}

section.price-page-hero .price-page-hero__content > p:not(.section-label) {
  max-width: 720px;
  color: var(--color-gray);
  font-size: var(--text-md);
  line-height: 1.55;
}

section.prices-table,
section.prices-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-black);
  color: var(--color-white);
}

section.prices-table::before {
  content: "";
  position: absolute;
  top: 9rem;
  left: -160px;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background-color: hsla(from var(--color-primary) h s l / 0.12);
  filter: blur(22px);
  pointer-events: none;
}

section.prices-table .container,
section.prices-table .prices-table__head,
section.prices-table .prices-table__groups {
  display: grid;
}

section.prices-table .container {
  gap: 2rem;
}

section.prices-table .prices-table__head {
  gap: 0.75rem;
  max-width: 900px;
}

section.prices-table .prices-table__head h2,
section.prices-cta .prices-cta__content h2 {
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 0.95;
  text-transform: uppercase;
}

section.prices-table .prices-table__head > p:not(.section-label),
section.prices-cta .prices-cta__content p {
  max-width: 720px;
  color: var(--color-gray);
  font-size: var(--text-base);
  line-height: 1.6;
}

section.prices-table .prices-table__groups {
  gap: 1rem;
}

section.prices-table .price-table-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 2rem;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  border: 1px solid hsla(from var(--color-white) h s l / 0.12);
  border-radius: 28px;
  background-color: var(--color-secondary);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

section.prices-table .price-table-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: hsla(from var(--color-primary) h s l / 0.14);
}

section.prices-table .price-table-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid hsla(from var(--color-white) h s l / 0.1);
}

section.prices-table .price-table-card__head div {
  display: grid;
  gap: 0.45rem;
}

section.prices-table .price-table-card__head h3 {
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

section.prices-table .price-table-card__head p,
section.prices-table .price-table-card__note {
  max-width: 720px;
  color: var(--color-gray);
  font-size: var(--text-base);
  line-height: 1.5;
}

section.prices-table .price-table-card__head > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: var(--color-black);
  font-weight: 900;
  line-height: 1;
}

section.prices-table .price-table-card__table-wrap {
  overflow-x: auto;
}

section.prices-table table {
  width: 100%;
  border-collapse: collapse;
}

section.prices-table th,
section.prices-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

section.prices-table th {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

section.prices-table tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsla(from var(--color-white) h s l / 0.1);
}

section.prices-table td:first-child {
  padding-right: 0;
}

section.prices-table td:last-child,
section.prices-table th:last-child {
  text-align: right;
  padding-left: 0;
}

section.prices-table td span,
section.prices-table td strong,
section.prices-table td small {
  display: block;
}

section.prices-table td span {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
}

section.prices-table td strong {
  color: var(--color-primary);
  font-family: var(--font-rubik);
  font-size: clamp(1.35rem, 1rem + 1vw, 2.1rem);
  line-height: 1;
  white-space: nowrap;
}

section.prices-table td small {
  margin-top: 0.3rem;
  color: var(--color-gray);
  font-size: var(--text-sm);
  line-height: 1.25;
}

section.prices-table .price-table-card__note {
  padding: 1rem 1.1rem;
  color: var(--color-white);
}

section.prices-cta .prices-cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: grid;
  gap: 1.25rem;

  padding: 1.25rem;
  border: 1px solid hsla(from var(--color-white) h s l / 0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, hsla(from var(--color-primary) h s l / 0.18), transparent 42%),
    var(--color-secondary);
}

section.prices-cta .prices-cta__card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background-color: hsla(from var(--color-white) h s l / 0.08);
  pointer-events: none;
}

section.prices-cta .prices-cta__warning {
  position: relative;
  padding: 1rem 1rem 1rem 3.1rem;
  border: 1px solid hsla(from var(--color-primary) h s l / 0.28);
  border-radius: 22px;
  background-color: hsla(from var(--color-black) h s l / 0.22);
  color: var(--color-white);
  font-size: var(--text-base);
  line-height: 1.55;
}

section.prices-cta .prices-cta__warning::before {
  content: "!";
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-black);
  font-weight: 900;
  line-height: 1;
}

section.prices-cta .prices-cta__content {
  display: grid;
  gap: 0.75rem;
}

section.prices-cta .btn {
  width: 100%;
  justify-content: center;
}

@media screen and (min-width: 1024px) {
  section.price-page-hero {
    min-height: 720px;
  }

  section.prices-table .container {
    gap: 3rem;
  }

  section.prices-table .prices-table__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section.prices-table .price-table-card {
    border-radius: 34px;
  }

  section.prices-table .price-table-card__head,
  section.prices-table th,
  section.prices-table td,
  section.prices-table .price-table-card__note {
    padding-inline: 1.35rem;
  }

  section.prices-cta .prices-cta__card {
    grid-template-columns: 1.1fr 1.2fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 40px;
  }

  section.prices-cta .btn {
    width: max-content;
  }
}

@media (hover: hover) {
  section.prices-table .price-table-card:hover {
    transform: translateY(-4px);
    border-color: hsla(from var(--color-primary) h s l / 0.45);
    box-shadow: 0 24px 70px hsla(from var(--color-black) h s l / 0.35);
  }
}

@media screen and (max-width: 767px) {
  section.price-page-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 3.5rem;
  }

  section.price-page-hero h1,
  section.prices-table .prices-table__head h2,
  section.prices-cta .prices-cta__content h2 {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    line-height: 0.98;
  }

  section.price-page-hero .price-page-hero__content > p:not(.section-label),
  section.prices-table .prices-table__head > p:not(.section-label),
  section.prices-cta .prices-cta__content p {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.5;
  }

  section.prices-table .price-table-card {
    border-radius: 22px;
  }

  section.prices-table .price-table-card::before {
    right: -70px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    opacity: 0.75;
  }

  section.prices-table .price-table-card__head {
    gap: 0.75rem;
    padding: 1rem;
  }

  section.prices-table .price-table-card__head h3 {
    font-size: clamp(1.25rem, 6.4vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  section.prices-table .price-table-card__head p,
  section.prices-table .price-table-card__note {
    font-size: clamp(0.9rem, 3.7vw, 1rem);
  }

  section.prices-table .price-table-card__head > span {
    min-width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  section.prices-table .price-table-card__table-wrap {
    overflow-x: visible;
  }

  section.prices-table table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  section.prices-table thead {
    display: none;
  }

  section.prices-table tbody,
  section.prices-table tr,
  section.prices-table td {
    display: block;
  }

  section.prices-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid hsla(from var(--color-white) h s l / 0.1);
  }

  section.prices-table tr:last-child {
    border-bottom: 0;
  }

  section.prices-table td {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  section.prices-table td:first-child {
    width: auto;
  }

  section.prices-table td:last-child {
    max-width: 42vw;
    text-align: right;
  }

  section.prices-table td span {
    font-size: clamp(0.95rem, 4.1vw, 1.08rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  section.prices-table td strong {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
    white-space: nowrap;
  }

  section.prices-table td small {
    font-size: clamp(0.72rem, 3.2vw, 0.84rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  section.prices-table .price-table-card__note {
    padding: 1rem;
  }

  section.prices-cta .prices-cta__card {
    padding: 1rem;
    border-radius: 24px;
  }

  section.prices-cta .prices-cta__warning {
    padding: 0.95rem 0.95rem 0.95rem 2.8rem;
    border-radius: 18px;
    font-size: clamp(0.9rem, 3.7vw, 1rem);
  }

  section.prices-cta .prices-cta__warning::before {
    top: 0.95rem;
    left: 0.95rem;
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media screen and (max-width: 380px) {
  section.prices-table .price-table-card__head {
    flex-direction: column;
  }

  section.prices-table tr {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  section.prices-table td:last-child {
    max-width: 100%;
    text-align: left;
  }
}
