.tarifs-page {
  --cream: #f5e9d6;
  --orange: #f0a33c;
  --blue: #1257a6;
  --cyan: #00aeef;
  --magenta: #e6007e;
  --yellow: #ffd400;
  --line: rgba(24, 19, 16, 0.11);
  --muted: #6d5a4a;
}

.tarifs-hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

.tarifs-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.58fr;
  align-items: center;
  gap: 76px;
}

.tarifs-hero h1,
.pricing-section-head h2,
.price-card-head h3,
.tarifs-cta h2 {
  margin: 0;
  font-family: "Space Grotesk", "Arial Black", "Segoe UI", Arial, sans-serif;
}

.tarifs-hero h1 {
  max-width: 780px;
  margin: 20px 0 24px;
  font-size: clamp(58px, 8vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.tarifs-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.tarifs-hero-mark {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--red);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(225, 57, 29, 0.23);
  transform: rotate(1.5deg);
}

.tarifs-hero-mark::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  content: "";
}

.tarifs-hero-mark img {
  width: 62%;
  height: 62%;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: tarifs-spin 18s linear infinite;
}

@keyframes tarifs-spin {
  to {
    transform: rotate(360deg);
  }
}

.pricing-section {
  padding: 12px 0 96px;
}

.pricing-section-head {
  margin-bottom: 34px;
  padding: 42px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: end;
  gap: 72px;
  border-top: 1px solid rgba(24, 19, 16, 0.14);
}

.pricing-section-head h2 {
  max-width: 650px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pricing-section-head .eyebrow {
  margin-bottom: 14px;
}

.pricing-lead {
  margin: 0;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

.pricing-loading,
.pricing-error {
  padding: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.pricing-error p {
  margin-top: 0;
}

.price-card {
  min-width: 0;
}

.price-card-head {
  padding: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 13px;
}

.service-dot {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(225, 57, 29, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.price-card-head h3 {
  color: var(--ink);
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -0.035em;
}

.service-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--orange), rgba(240, 163, 60, 0));
}

.service-subtitle {
  margin: -8px 0 18px 56px;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
}

.price-card-body {
  padding: 0;
}

.price-panels.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.price-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(24, 19, 16, 0.055);
}

.panel-title {
  position: relative;
  padding: 18px 22px;
  color: var(--white);
  background: var(--ink);
  font-family: "Space Grotesk", "Arial Black", "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.panel-title::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 46px;
  height: 3px;
  background: var(--orange);
  border-radius: 5px;
  content: "";
  transform: translateY(-50%);
}

.panel-title.color {
  color: var(--white);
  background: var(--red);
}

.panel-title.color::after {
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--magenta),
    var(--yellow)
  );
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.table-wrap:focus-visible {
  outline: 3px solid rgba(225, 57, 29, 0.3);
  outline-offset: -3px;
}

.price-panel table {
  width: 100%;
  min-width: 500px;
  background: transparent;
  border-collapse: collapse;
}

.price-panel th,
.price-panel td {
  padding: 15px 18px;
  vertical-align: middle;
  text-align: center;
}

.price-panel th {
  color: var(--ink);
  background: #f1e3cf;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-panel td {
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(24, 19, 16, 0.075);
  font-size: 16px;
}

.price-panel tr:nth-child(even) td {
  background: rgba(245, 233, 214, 0.42);
}

.price-panel tr:last-child td {
  border-bottom: 0;
}

.price-panel th:first-child,
.price-panel td:first-child {
  text-align: left;
}

.price-panel td.price {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.price-panel .first-row td {
  font-size: 17px;
}

.price-panel .first-row td:first-child {
  font-style: italic;
}

.meta-box {
  margin: 0;
  padding: 18px 22px;
  color: var(--muted);
  background: #fff8ef;
  border-top: 1px solid rgba(24, 19, 16, 0.08);
  line-height: 1.6;
  text-align: left;
}

.meta-box strong {
  color: var(--red);
}

.subscription {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(24, 19, 16, 0.09);
}

.subscription > div {
  min-height: 92px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subscription > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.subscription .label {
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.subscription .deal {
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
  text-align: center;
}

.subscription .deal b {
  margin-top: 5px;
  display: block;
  color: var(--white);
  font-size: 24px;
}

.small-note-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.small-note {
  position: relative;
  min-height: 116px;
  padding: 24px 26px 22px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(24, 19, 16, 0.045);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.small-note::before {
  position: absolute;
  top: 24px;
  left: 22px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  content: "i";
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.small-note b {
  margin-top: 7px;
  color: var(--red);
  font-size: 17px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compact-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(24, 19, 16, 0.045);
}

.compact-card .service-dot {
  width: 38px;
  height: 38px;
}

.compact-card .price-card-head h3 {
  font-size: 30px;
}

.compact-card .service-line {
  display: none;
}

.simple-table {
  border-radius: 18px;
  box-shadow: none;
}

.simple-table table {
  min-width: 0;
}

.simple-table td {
  overflow-wrap: anywhere;
}

.tarifs-cta {
  padding: 18px 0 96px;
}

.tarifs-cta-box {
  min-height: 370px;
  padding: 58px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.12) 0 105px,
      transparent 106px
    ),
    radial-gradient(
      circle at 88% 18%,
      transparent 0 155px,
      rgba(255, 255, 255, 0.09) 156px 190px,
      transparent 191px
    ),
    var(--red);
  border-radius: 30px;
}

.tarifs-cta .eyebrow {
  color: var(--white);
}

.tarifs-cta h2 {
  max-width: 720px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.tarifs-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.68;
}

.tarifs-cta-button {
  min-width: 210px;
  min-height: 58px;
  align-self: center;
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.13);
  font-size: 16px;
  font-weight: 900;
}

.tarifs-cta-button:hover,
.tarifs-cta-button:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .tarifs-hero-grid,
  .pricing-section-head {
    grid-template-columns: 1fr;
  }

  .tarifs-hero-mark {
    max-width: 500px;
    justify-self: start;
  }

  .pricing-section-head {
    gap: 22px;
  }

  .price-panels.split,
  .two-col,
  .tarifs-cta-box {
    grid-template-columns: 1fr;
  }

  .tarifs-cta-button {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .tarifs-hero {
    padding: 54px 0 48px;
  }

  .tarifs-hero-grid {
    gap: 42px;
  }

  .tarifs-hero h1 {
    font-size: 58px;
  }

  .tarifs-hero p {
    font-size: 17px;
  }

  .pricing-section {
    padding-bottom: 76px;
  }

  .pricing-section-head {
    padding-top: 28px;
  }

  .price-grid {
    gap: 40px;
  }

  .price-card-head h3 {
    font-size: 27px;
  }

  .service-dot {
    width: 38px;
    height: 38px;
  }

  .service-subtitle {
    margin-left: 51px;
  }

  .subscription {
    grid-template-columns: 1fr;
  }

  .subscription > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .small-note-grid {
    grid-template-columns: 1fr;
  }

  .small-note {
    min-height: 0;
    padding-left: 60px;
  }

  .compact-card {
    padding: 20px;
  }

  .tarifs-cta {
    padding-bottom: 76px;
  }

  .tarifs-cta-box {
    min-height: 0;
    padding: 38px 28px;
  }

  .tarifs-cta h2 {
    font-size: 45px;
  }

  .tarifs-cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarifs-hero-mark img {
    animation: none;
  }
}
