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

.plan-hero {
  padding: 104px 0 92px;
  background:
    radial-gradient(circle at 83% 30%, rgb(248 200 0 / 14%), transparent 30%),
    var(--color-deep-navy);
  color: var(--color-white);
}

.plan-hero__label {
  margin: 0;
  color: var(--color-yellow);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.plan-hero h1,
.plan-hero h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.tax {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.tax--dark {
  color: var(--color-muted);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin-top: 48px;
}

.price-card {
  padding: 28px 34px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 24px;
  background: rgb(255 255 255 / 7%);
}

.price-card--yellow {
  background: var(--color-yellow);
  color: var(--color-navy);
}

.price-card p {
  margin: 0;
  font-size: var(--font-size-body-compact);
  font-weight: 800;
}

.price-card strong {
  display: block;
  margin-top: 4px;
  font-size: 62px;
  line-height: 1.25;
}

.price-card strong small {
  font-size: 22px;
}

.price-card span {
  display: block;
  font-size: var(--font-size-note);
  font-weight: 800;
}

.period {
  width: fit-content;
  margin: 28px 0 0;
  padding: 10px 18px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  font-size: var(--font-size-ui);
  font-weight: 800;
}

.support-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.support-plan-card {
  padding: 22px;
  border: 8px solid rgb(255 255 255 / 45%);
  border-radius: 24px;
  background: var(--color-white);
  color: var(--color-navy);
}

.support-plan-card--pro { border-color: var(--color-yellow); }
.support-plan-card--enterprise { border-color: #173a5e; }

.support-plan-card__tier {
  margin: 0;
  padding: 15px 12px;
  border-radius: 14px;
  background: var(--color-mist);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.support-plan-card__tier small {
  font-size: 12px;
  white-space: nowrap;
}

.support-plan-card__fees {
  margin: 22px 0 0;
  color: #d7372f;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.support-plan-card__fees strong { font-size: 24px; }

.support-plan-card__total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
}

.support-plan-card__total span { font-weight: 800; }
.support-plan-card__total strong { font-size: 62px; line-height: 1; }
.support-plan-card__total small { font-size: 18px; font-weight: 800; }

.support-plan-card__period {
  margin: 14px 0 0;
  color: #d7372f;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.support-plan-card__services {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.support-plan-card__services h2,
.support-plan-card__services h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.support-plan-card__services ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.support-plan-card__services li {
  padding: 9px 12px;
  border-radius: 999px;
  background: #173a5e;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.support-plan-card__services li.support-plan-card__guarantee { background: #928522; }

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.included-grid li {
  display: flex;
  align-items: center;
  min-height: 130px;
  padding: 28px;
  gap: 20px;
  box-shadow: none;
}

.included-grid > li > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-weight: 900;
}

.included-grid h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 20px;
  line-height: 1.5;
}

.simulation__period {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--font-size-ui);
  font-weight: 800;
}

.table-wrap {
  margin-top: 42px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 17px 10px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
  white-space: nowrap;
}

thead th {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 12px;
}

thead th:first-child {
  min-width: 190px;
}

tbody th {
  background: #f8fafb;
  color: var(--color-navy);
  text-align: left;
}

tr.money td {
  background: #fff9d8;
  font-weight: 800;
}

tr.total th,
tr.total td {
  background: var(--color-navy);
  color: var(--color-yellow);
  font-weight: 900;
}

tr.appointments th { background: var(--color-yellow); }

.simulation-notes {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 28px;
}

.simulation-results,
.replace-guarantee {
  padding: 26px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-white);
}

.simulation-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.simulation-results p { margin: 0; font-size: 13px; line-height: 1.7; }
.simulation-results strong { color: var(--color-navy); font-size: 16px; }
.simulation-results small { color: var(--color-navy); font-size: 10px; font-weight: 800; }
.replace-guarantee h3 {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}
.replace-guarantee p { margin: 0; font-size: 14px; line-height: 1.7; }
.replace-guarantee p strong { font-size: 18px; }

.mobile-simulation {
  display: none;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.option--apolink {
  background: linear-gradient(145deg, #23217d, #b32f25);
  color: var(--color-white);
}

.option.option--apolink h3,
.option--apolink .option__prices strong { color: var(--color-white); }
.option--apolink .option__prices p { color: var(--color-white); border-color: rgb(255 255 255 / 22%); }

.option {
  padding: 38px;
  box-shadow: none;
}

.option--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.option h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 28px;
  line-height: 1.45;
}

.option--navy h3 {
  color: var(--color-white);
}

.option__prices {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.option__prices p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--font-size-body-compact);
  font-weight: 800;
}

.option--navy .option__prices p {
  border-color: rgb(255 255 255 / 18%);
}

.option__prices strong {
  flex-shrink: 0;
  color: var(--color-navy);
  font-size: 40px;
  line-height: 1;
}

.option--navy .option__prices strong {
  color: var(--color-yellow);
}

.option__prices small {
  font-size: 16px;
}

.option__period {
  width: fit-content;
  margin: 24px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-mist);
  color: var(--color-navy);
  font-size: var(--font-size-note);
  font-weight: 900;
}

.option h4 {
  margin: 28px 0 8px;
}

.option ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--font-size-body-compact);
}

.option li + li {
  margin-top: 5px;
}

.trust__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 8vw, 150px);
  margin-top: 30px;
}

.trust__grid > *,
.trust__profile-body {
  min-width: 0;
}

.trust dl {
  margin: 44px 0 0;
}

.trust dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}

.trust dt {
  color: var(--color-muted);
  font-size: var(--font-size-note);
  font-weight: 800;
}

.trust dd {
  margin: 0;
  font-size: var(--font-size-body-compact);
  font-weight: 600;
}

.trust__profile {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  align-items: start;
  gap: 34px;
  padding: 42px;
  box-shadow: none;
}

.trust__portrait {
  width: 190px;
  height: 190px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
}

.trust__profile-body > p:first-child {
  margin-top: 0;
  color: var(--color-muted);
  font-size: var(--font-size-note);
  font-weight: 800;
}

.trust__profile h3 {
  margin: 8px 0 26px;
  color: var(--color-navy);
  font-size: 30px;
}

.trust__profile h3 small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.trust__profile p {
  overflow-wrap: anywhere;
  font-size: var(--font-size-body-compact);
}

.trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust__links a {
  padding: 9px 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-navy);
  font-size: var(--font-size-note);
  font-weight: 800;
}

@media (max-width: 900px) {
  .price-grid,
  .included-grid,
  .support-plan-grid,
  .option-grid,
  .trust__grid {
    grid-template-columns: 1fr;
  }

  #simulation .table-wrap {
    display: none;
  }

  .simulation-notes { grid-template-columns: 1fr; }
  .simulation-results { grid-template-columns: 1fr; }

  .mobile-simulation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
  }

  .mobile-simulation article {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-white);
  }

  .mobile-simulation h3 {
    margin: 0 0 14px;
    color: var(--color-navy);
  }

  .mobile-simulation dl {
    margin: 0;
  }

  .mobile-simulation dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--color-line);
  }

  .mobile-simulation dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-simulation dd {
    margin: 0;
    color: var(--color-navy);
    font-size: var(--font-size-note);
    font-weight: 900;
    text-align: right;
  }

  .mobile-simulation dl div.money {
    background: #fff9d8;
    margin: 0 -22px;
    padding: 8px 22px;
    border-top-color: transparent;
  }
  .mobile-simulation dl div.money dd { font-weight: 900; }

  .mobile-simulation dl div.appointments {
    background: var(--color-yellow);
    margin: 0 -22px;
    padding: 8px 22px;
    border-top-color: transparent;
  }
  .mobile-simulation dl div.appointments dt,
  .mobile-simulation dl div.appointments dd {
    color: var(--color-navy);
  }

  .mobile-simulation dl div.total {
    background: var(--color-navy);
    margin: 0 -22px -22px;
    padding: 8px 22px 22px;
    border-radius: 0 0 17px 17px;
    border-top-color: transparent;
  }
  .mobile-simulation dl div.total dt,
  .mobile-simulation dl div.total dd {
    color: var(--color-yellow);
  }
}

@media (max-width: 700px) {
  .plan-hero {
    padding: 72px 0 64px;
  }

  .plan-hero h1,
  .plan-hero h2 {
    font-size: 44px;
  }

  .price-card {
    padding: 24px;
  }

  .price-card strong {
    font-size: 54px;
  }

  .support-plan-card { padding: 18px; }
  .support-plan-card__tier { font-size: 24px; }

  .table-wrap {
    margin-right: -20px;
    border-radius: 16px 0 0 16px;
  }

  table { min-width: 820px; }
  th, td { padding: 14px 9px; }

  .simulation-notes { margin-top: 22px; }
  .simulation-results,
  .replace-guarantee { padding: 22px; }

  .included-grid li {
    min-height: 0;
    padding: 24px;
  }

  .mobile-simulation {
    grid-template-columns: 1fr;
  }

  .option {
    padding: 26px;
  }

  .option h3 {
    font-size: 24px;
  }

  .option__prices p {
    align-items: flex-end;
  }

  .trust__grid {
    gap: 34px;
  }

  .trust__profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
  }

  .trust__portrait {
    width: 240px;
    height: 240px;
    margin-inline: auto;
  }

  .trust__profile h3 {
    font-size: 25px;
  }
}

@media (max-width: 380px) {
  .plan-hero h1,
  .plan-hero h2 {
    font-size: 40px;
  }

  .option__prices p {
    display: grid;
  }
}
