:root {
  --font-main: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --price-ink: #111827;
  --price-muted: #4b5563;
  --price-line: #e5e7eb;
  --price-soft: #f8fafc;
  --price-accent: #1e3a8a;
  --price-accent-dark: #172554;
  --price-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  background: var(--price-white);
  color: var(--price-ink);
}

.price-hero {
  display: flex;
  min-height: clamp(440px, 44vw, 520px);
  align-items: center;
  padding: clamp(52px, 6vw, 72px) 0;
  background:
    linear-gradient(
      90deg,
      rgba(248, 250, 252, 0.99) 0%,
      rgba(248, 250, 252, 0.97) 34%,
      rgba(248, 250, 252, 0.82) 52%,
      rgba(248, 250, 252, 0.18) 78%,
      rgba(248, 250, 252, 0.04) 100%
    ),
    url("./price-hero-lawyers-office-russia-20260822.webp");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid #e7edf5;
}

.price-hero .container,
.price-list {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.price-eyebrow {
  margin: 0 0 10px;
  color: var(--price-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.price-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--price-ink);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.price-hero-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: #475569;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.price-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
}

.price-hero-primary,
.price-help-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--price-accent-dark);
  border-radius: 8px;
  background: var(--price-accent-dark);
  color: var(--price-white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.price-hero-primary:hover {
  background: #0f1e46;
  color: var(--price-white);
}

.price-hero-note {
  max-width: 620px;
  margin: 13px 0 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}

.price-list {
  padding-block: clamp(30px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

.price-list-section {
  scroll-margin-top: 18px;
}

.price-list-section + .price-list-section {
  margin-top: clamp(32px, 4vw, 46px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--price-line);
}

.price-list-section h2 {
  margin: 0 0 16px;
  color: var(--price-ink);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.price-section-lead {
  max-width: 760px;
  margin: -7px 0 16px;
  color: var(--price-muted);
  font-size: 14px;
  line-height: 1.5;
}

.price-subsection + .price-subsection {
  margin-top: 24px;
}

.price-subsection h3 {
  margin: 0 0 10px;
  color: var(--price-ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
}

.price-table-wrap {
  overflow: clip;
  border: 1px solid var(--price-line);
  border-radius: 8px;
  background: var(--price-white);
  box-shadow: none;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

.price-table th {
  background: var(--price-soft);
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.price-table th:first-child {
  width: 58%;
}

.price-table th:nth-child(2) {
  width: 25%;
}

.price-table th:last-child {
  width: 17%;
  text-align: right;
}

.price-table tbody tr + tr {
  border-top: 1px solid var(--price-line);
}

.price-table tbody tr {
  transition: background-color 160ms ease;
}

.price-table tbody tr:hover {
  background: #fbfdff;
}

.price-table tbody tr:focus-within {
  background: var(--price-soft);
  box-shadow: inset 3px 0 0 var(--price-accent);
}

.price-table td {
  color: var(--price-muted);
  font-size: 16px;
  line-height: 1.35;
}

.price-table td:first-child {
  min-width: 0;
}

.price-table strong {
  display: block;
  color: var(--price-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.price-table strong a {
  color: inherit;
  text-decoration: none;
}

.price-table strong a:hover {
  color: var(--price-accent-dark);
  text-decoration: none;
}

.price-service-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}

.price-service-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.price-table small {
  display: block;
  margin-top: 5px;
  color: var(--price-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.price-value {
  color: var(--price-ink) !important;
  font-weight: 700;
  white-space: nowrap;
}

.price-action {
  text-align: right !important;
}

.price-order-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--price-accent);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.price-order-button:hover {
  color: var(--price-accent-dark);
  text-decoration-thickness: 2px;
}

.price-order-button::after {
  display: inline-block;
  margin-left: 4px;
  content: "→";
  text-decoration: none;
  transition: transform 160ms ease;
}

.price-order-button:hover::after {
  transform: translateX(2px);
}

.price-order-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

.price-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(38px, 5vw, 58px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 8px;
  background: var(--price-accent-dark);
  color: var(--price-white);
}

.price-help-kicker {
  margin: 0 0 7px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price-help h2 {
  max-width: 740px;
  margin: 0;
  color: var(--price-white);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 650;
  line-height: 1.12;
}

.price-help h2 + p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.5;
}

.price-help-action {
  border-color: var(--price-white);
  background: var(--price-white);
  color: var(--price-accent-dark);
  white-space: nowrap;
}

.price-help-action:hover {
  background: #eff6ff;
  color: #0f1e46;
}

.price-legal-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--price-line);
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.price-legal-note p {
  margin: 0;
}

.price-legal-note a {
  flex: 0 0 auto;
  color: var(--price-accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.price-legal-note a:hover {
  color: var(--price-accent-dark);
}

@media (max-width: 900px) {
  .price-table th,
  .price-table td {
    padding-inline: 13px;
  }

  .price-table th:first-child {
    width: 52%;
  }

  .price-table th:nth-child(2) {
    width: 29%;
  }

  .price-table th:last-child {
    width: 19%;
  }

  .price-value {
    white-space: normal;
  }

  .price-help {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .price-hero .container,
  .price-list {
    width: min(100% - 28px, 1180px);
  }

  .price-hero {
    min-height: 430px;
    padding-block: 38px 34px;
    background:
      linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.94)),
      url("./price-hero-lawyers-office-russia-20260822.webp");
    background-position: 64% center;
    background-size: cover;
  }

  .price-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .price-hero-lead {
    margin-top: 14px;
    font-size: 17px;
  }

  .price-hero-actions {
    margin-top: 20px;
  }

  .price-hero-note {
    margin-top: 11px;
  }

  .price-list {
    padding-block: 26px 54px;
  }

  .price-list-section {
    scroll-margin-top: 16px;
  }

  .price-list-section + .price-list-section {
    margin-top: 30px;
    padding-top: 28px;
  }

  .price-list-section h2 {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .price-subsection + .price-subsection {
    margin-top: 22px;
  }

  .price-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .price-table,
  .price-table tbody {
    display: block;
    width: 100%;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .price-table tbody {
    display: grid;
    gap: 12px;
  }

  .price-table tbody tr {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 10px;
    padding: 14px;
    border: 1px solid var(--price-line);
    border-radius: 8px;
    background: var(--price-white);
    box-shadow: none;
  }

  .price-table tbody tr + tr {
    border-top: 1px solid var(--price-line);
  }

  .price-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .price-table td:first-child {
    grid-column: 1 / -1;
  }

  .price-table strong,
  .price-table strong a {
    overflow-wrap: anywhere;
  }

  .price-service-heading {
    align-items: flex-start;
  }

  .price-value {
    align-self: center;
    font-size: 15px !important;
    white-space: normal;
  }

  .price-action {
    align-self: center;
    text-align: right !important;
  }

  .price-order-button {
    padding: 0;
    font-size: 14px;
  }

  .price-help {
    gap: 18px;
    padding: 22px 18px;
  }

  .price-help-action {
    width: 100%;
  }

  .price-legal-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 390px) {
  .price-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .price-hero-primary {
    width: 100%;
  }

  .price-table tbody tr {
    grid-template-columns: 1fr;
  }

  .price-value,
  .price-action {
    grid-column: 1;
  }

  .price-action {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-table tbody tr,
  .price-order-button {
    transition: none;
  }
}
