:root {
  --blue: #1269f2;
  --blue-dark: #0f58ce;
  --blue-soft: #eaf2ff;
  --ink: #132033;
  --muted: #667085;
  --line: #dce6f5;
  --soft: #f5f8ff;
  --white: #ffffff;
  --green: #19a974;
  --green-soft: #e9f8f2;
  --navy: #0e1b30;
  --shadow: 0 20px 55px rgba(18, 39, 75, 0.1);
  --shadow-small: 0 10px 26px rgba(18, 39, 75, 0.08);
  --radius: 8px;
  --max-width: 1160px;
  --grid-gutter: clamp(44px, 4.4vw, 64px);
  --font-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-copy: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-copy);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - (var(--grid-gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(220, 230, 245, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(18, 39, 75, 0.05);
}

main {
  padding-top: 72px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), 1220px);
  min-height: 72px;
  margin-inline: auto;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  width: 132px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a,
.header-phone {
  transition: color 180ms ease, border-color 180ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--blue);
}

.header-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 194px;
  min-height: 42px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.header-phone::before {
  display: none;
}

.header-phone:hover,
.header-phone:focus-visible {
  border-left-color: var(--blue);
}

.header-phone span {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.header-phone strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 700;
}

.header-phone:hover strong,
.header-phone:focus-visible strong {
  color: var(--blue);
}

.header-nav__call,
.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background-color: var(--soft);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
  background-image:
    linear-gradient(rgba(18, 105, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 105, 242, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 0.78fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid rgba(18, 105, 242, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: #edf5ff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  margin-bottom: 0;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
  margin: 28px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid #cbdcf5;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid #cbdcf5;
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts strong {
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.hero-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.calculator {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator::before {
  position: absolute;
  top: -1px;
  left: 28px;
  width: 126px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--blue);
  content: "";
}

.calculator-controls {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.45fr);
  align-items: end;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.minutes-field label,
.presets > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  height: 64px;
  padding: 0 104px 0 18px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 26px;
  font-weight: 800;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.input-wrap input:focus {
  box-shadow: 0 0 0 4px rgba(18, 105, 242, 0.14);
}

.input-wrap input[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.input-wrap span {
  position: absolute;
  right: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.minutes-field p {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.minutes-field .field-error {
  min-height: 0;
  color: #b42318;
  font-weight: 700;
}

.field-error:not(:empty) {
  min-height: 18px;
}

.preset-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preset-list button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.preset-list button:hover,
.preset-list button:focus-visible,
.preset-list button.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.preset-list button:active {
  transform: translateY(1px);
}

.calc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.calc-summary > div {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.calc-summary > div:last-child {
  border-right: 0;
}

.calc-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.calc-summary strong {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 700;
}

.mobile-carousel {
  position: relative;
  min-width: 0;
}

.mobile-scroll-cue {
  display: none;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 335px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.program-card:hover {
  transform: translateY(-2px);
  border-color: #adc7ee;
  box-shadow: var(--shadow-small);
}

.program-card:focus-visible {
  outline: 3px solid rgba(18, 105, 242, 0.25);
  outline-offset: 2px;
}

.program-card.is-selected {
  border: 2px solid var(--blue);
  padding: 21px;
  box-shadow: 0 16px 38px rgba(18, 105, 242, 0.14);
}

.program-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.program-card__name {
  font-size: 21px;
  font-weight: 700;
}

.program-card__name--with-image {
  display: flex;
  align-items: center;
  gap: 9px;
}

.program-card__name--with-image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.program-card__badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.program-card__badge--token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.token-badge-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.token-badge-icon:not([src]) {
  visibility: hidden;
}

.program-card:nth-child(2) .program-card__badge {
  color: #087a53;
  background: var(--green-soft);
}

.program-card__caption {
  min-height: 42px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.program-card__label {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.program-card__value {
  margin-top: 5px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.program-card__value--discount {
  color: #e53935;
}

.program-card:nth-child(2) .program-card__value {
  color: var(--green);
}

.program-card__rows {
  display: grid;
  margin-top: auto;
  padding-top: 22px;
}

.program-card__rows > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.program-card__rows b {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.token-rate-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.token-rate-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.token-rate-icon:not([src]) {
  visibility: hidden;
}

.program-card__rows .net {
  color: var(--ink);
  font-weight: 700;
}

.program-card__rows .net b {
  color: var(--green);
}

.selected-program {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
  font-size: 12px;
}

.selected-program > span {
  flex: 0 0 auto;
  color: var(--ink);
}

.calculator-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.individual-result {
  margin-top: 28px;
  padding: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.individual-result__tag {
  color: #87b8ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.individual-result h2 {
  margin: 10px 0 10px;
  font-size: 34px;
}

.individual-result p {
  max-width: 650px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.individual-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.button--primary {
  color: var(--white);
  background: var(--blue);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.section {
  padding: 88px 0;
  scroll-margin-top: 80px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
  font-weight: 700;
}

.subscription-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 700;
}

.section-heading p,
.subscription-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.tariffs-section__accent {
  display: block;
  color: var(--blue);
}

.tariff-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-small);
}

.tariff-row {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 0.9fr 1.25fr;
  min-height: 74px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.tariff-row:first-child {
  border-top: 0;
}

.tariff-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.tariff-row > *:last-child {
  border-right: 0;
}

.tariff-row--head {
  min-height: 52px;
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.tariff-row strong,
.tariff-row b {
  font-size: 15px;
  font-weight: 700;
}

.tariff-row span {
  color: var(--muted);
  font-size: 14px;
}

.tariff-row--accent {
  position: relative;
  background: #f8fbff;
}

.tariff-row--accent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.tariff-row--individual {
  background: var(--navy);
}

.tariff-row--individual strong,
.tariff-row--individual b {
  color: var(--white);
}

.tariff-row--individual span {
  color: rgba(255, 255, 255, 0.66);
}

.tariff-row--individual > * {
  border-color: rgba(255, 255, 255, 0.1);
}

.subscription-section {
  color: var(--white);
  background: var(--white);
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: 72px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.subscription-copy h2 {
  color: var(--white);
}

.subscription-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.subscription-copy ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.subscription-copy li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.subscription-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #35dfa6;
  font-weight: 900;
}

.subscription-facts {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.subscription-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.subscription-facts > div:first-child {
  border-top: 0;
}

.subscription-facts span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
}

.subscription-facts strong {
  color: var(--white);
  font-size: 25px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.detail-card:not(:first-child)::before {
  position: absolute;
  top: 50%;
  left: -21px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border: 1px solid #cfe0fa;
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(18, 39, 75, 0.08);
  content: "или";
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.detail-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.detail-card strong,
.detail-card a {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.detail-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.program-details__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.contact-section {
  padding: 76px 0;
  scroll-margin-top: 72px;
  color: var(--ink);
  background: var(--white);
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 56px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(140deg, #0a1834 0%, #122551 100%);
  box-shadow: 0 24px 58px rgba(10, 24, 52, 0.2);
  overflow: hidden;
}

.lead-panel__copy {
  align-self: center;
}

.eyebrow--light {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.subscription-copy .eyebrow {
  border-color: rgba(169, 200, 255, 0.22);
  color: #a9c8ff;
  background: rgba(18, 105, 242, 0.12);
}

.lead-panel h2 {
  max-width: 560px;
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 700;
}

.lead-panel__copy > p {
  max-width: 45ch;
  margin: 16px 0 0;
  color: #aebbd6;
  font-size: 15px;
  line-height: 1.6;
}

.lead-panel__benefits {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.lead-panel__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe2f4;
  font-size: 14px;
  font-weight: 500;
}

.lead-panel__benefits svg {
  flex: 0 0 auto;
  color: #19e08f;
}

.lead-form {
  position: relative;
  display: grid;
  align-content: start;
  padding: 32px;
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 60px rgba(10, 24, 52, 0.3);
  scroll-margin-top: 92px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.lead-form__field label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-form__field input,
.lead-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--soft);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease;
}

.lead-form__field textarea {
  min-height: 90px;
  resize: vertical;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.lead-form__actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.lead-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.lead-form__actions small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.lead-form__actions small a {
  color: var(--blue);
  font-weight: 700;
}

.lead-form__status {
  display: none;
  margin-top: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.lead-form__status.is-visible {
  display: block;
}

.lead-form__status.is-error {
  color: #d92d20;
}

.direct-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(18, 105, 242, 0.16);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(18, 39, 75, 0.06);
}

.direct-contact > strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.direct-contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.direct-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.direct-contact__links a:hover,
.direct-contact__links a:focus-visible {
  border-color: rgba(18, 105, 242, 0.35);
  color: var(--blue);
  background: var(--white);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__brand {
  display: grid;
  max-width: 560px;
  gap: 8px;
}

.footer__nav,
.footer__contacts,
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer__nav {
  gap: 0;
  margin-top: 2px;
  line-height: 1.35;
}

.footer__nav a {
  position: relative;
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.footer__nav a + a {
  margin-left: 12px;
  padding-left: 12px;
}

.footer__nav a + a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(93, 107, 130, 0.46);
  content: "";
  transform: translateY(-50%);
}

.footer__contacts {
  gap: 10px 14px;
  color: rgba(93, 107, 130, 0.86);
}

.footer__legal {
  justify-content: flex-end;
  gap: 14px;
  max-width: 460px;
}

.footer a {
  color: var(--ink);
  transition: color 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--blue);
}

.footer__nav a {
  color: var(--blue);
}

.footer__entity {
  flex-basis: 100%;
  margin-top: 12px;
  color: rgba(93, 107, 130, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - (var(--grid-gutter) * 2)), 920px);
  }
}

@media (max-width: 1020px) {
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy p {
    max-width: 760px;
  }

  .calculator-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .program-card {
    min-height: 0;
  }

  .program-card__caption {
    min-height: 0;
  }

  .subscription-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lead-panel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  .direct-contact {
    grid-template-columns: 1fr;
  }

  .direct-contact__links {
    justify-content: flex-start;
  }

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

  .detail-card:not(:first-child)::before {
    top: -21px;
    left: 50%;
  }

  .detail-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --grid-gutter: 22px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - (var(--grid-gutter) * 2)), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
    gap: 8px;
  }

  main {
    padding-top: 64px;
  }

  .brand {
    width: 98px;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--white);
    box-shadow: 0 20px 38px rgba(18, 39, 75, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .header-nav > a:not(.header-nav__call) {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .site-header.is-menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-nav__call {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    padding: 12px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--navy);
  }

  .header-nav__call span {
    color: #a9c8ff;
    font-size: 10px;
    font-weight: 600;
  }

  .header-nav__call strong {
    font-size: 15px;
  }

  .header-phone {
    min-width: 138px;
    margin-left: auto;
    padding: 0 4px 0 12px;
  }

  .header-phone span {
    display: block;
    font-size: 8px;
  }

  .header-phone strong {
    margin: 2px 0 0;
    font-size: 10px;
  }

  .header-phone::before {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    flex: 0 0 42px;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 42px 0 50px;
  }

  .hero-copy {
    margin-bottom: 26px;
  }

  .hero-facts {
    margin-top: 22px;
    padding-top: 12px;
  }

  .hero-facts li {
    padding: 0 9px;
  }

  .hero-facts strong {
    font-size: 13px;
  }

  .hero-facts span {
    font-size: 9px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .calculator {
    padding: 16px;
  }

  .calculator::before {
    left: 16px;
    width: 92px;
  }

  .calculator-controls {
    gap: 20px;
    padding-bottom: 22px;
  }

  .input-wrap input {
    height: 58px;
    font-size: 23px;
  }

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

  .preset-list button {
    min-height: 46px;
  }

  .calc-summary {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .calc-summary > div {
    min-height: 72px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .calc-summary > div:first-child {
    border-top: 0;
  }

  .program-grid {
    display: flex;
    gap: 14px;
    padding: 2px 0 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .program-grid::-webkit-scrollbar,
  .tariff-table::-webkit-scrollbar {
    display: none;
  }

  .program-grid::after,
  .tariff-table::after {
    flex: 0 0 20px;
    content: "";
  }

  .mobile-scroll-cue {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    font: 700 34px/1 Arial, sans-serif;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(18, 105, 242, 0.32);
    transform: translateY(-50%);
    transition: opacity 160ms ease, transform 160ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-scroll-cue--prev {
    left: -16px;
  }

  .mobile-scroll-cue--next {
    right: -16px;
  }

  .mobile-scroll-cue:active {
    transform: translateY(-50%) scale(0.94);
  }

  .mobile-carousel:not(.is-scrollable) .mobile-scroll-cue,
  .mobile-carousel.is-at-start .mobile-scroll-cue--prev,
  .mobile-carousel.is-at-end .mobile-scroll-cue--next {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-carousel.is-scrollable.is-at-start .mobile-scroll-cue--next {
    animation: mobile-scroll-cue 1.25s ease-in-out 2;
  }

  .program-card,
  .program-card.is-selected {
    flex: 0 0 calc(100% - 34px);
    min-height: 325px;
    padding: 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .program-card.is-selected {
    padding: 19px;
  }

  .program-card__value {
    font-size: 30px;
  }

  .selected-program {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .selected-program p {
    text-align: left;
  }

  .calculator-cta,
  .program-details__cta {
    justify-content: stretch;
  }

  .calculator-cta .button,
  .program-details__cta .button {
    width: 100%;
  }

  .individual-result {
    padding: 26px 20px;
  }

  .individual-result h2 {
    font-size: 28px;
  }

  .individual-actions {
    display: grid;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .subscription-copy h2,
  .lead-panel h2 {
    font-size: 30px;
  }

  .section-heading p,
  .subscription-copy > p,
  .lead-panel__copy > p {
    font-size: 15px;
  }

  .tariff-table {
    display: flex;
    gap: 14px;
    padding: 2px 0 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    box-shadow: none;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .tariff-row--head {
    display: none;
  }

  .tariff-row {
    flex: 0 0 calc(100% - 34px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: var(--shadow-small);
  }

  .tariff-row:first-of-type {
    margin-top: 0;
  }

  .tariff-row > * {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 78px;
    padding: 14px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .tariff-row > *:nth-child(-n + 2) {
    border-top: 0;
  }

  .tariff-row > *:nth-child(2n) {
    border-right: 0;
  }

  .tariff-row > *::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .tariff-row--individual > * {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .tariff-row--individual > *::before {
    color: rgba(255, 255, 255, 0.5);
  }

  .subscription-layout {
    gap: 32px;
    padding: 26px;
    border-radius: 22px;
  }

  .subscription-facts > div {
    min-height: 76px;
    padding: 16px;
  }

  .subscription-facts strong {
    font-size: 21px;
  }

  .detail-card {
    padding: 22px;
  }

  .contact-section {
    padding: 60px 0 0;
  }

  .lead-panel {
    gap: 30px;
    padding: 26px;
    border-radius: 22px;
  }

  .lead-form {
    padding: 22px;
    border-radius: 18px;
  }

  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .direct-contact {
    padding: 18px;
  }

  .footer {
    padding: 22px 0;
    font-size: 12px;
  }

  .footer .container {
    display: grid;
    gap: 14px;
  }

  .footer__brand {
    gap: 4px;
  }

  .footer__nav,
  .footer__contacts,
  .footer__legal {
    gap: 8px 12px;
  }

  .footer__legal {
    justify-content: flex-start;
    max-width: none;
  }

  .footer__entity {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  :root {
    --grid-gutter: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .footer__nav a + a {
    margin-left: 0;
    padding-left: 0;
  }

  .footer__nav a + a::before {
    display: none;
  }

  .header-phone strong {
    font-size: 11px;
  }

  .calculator {
    padding: 14px;
  }

  .program-card,
  .program-card.is-selected {
    padding: 18px;
  }

  .program-card.is-selected {
    padding: 17px;
  }

  .program-card__rows > span {
    align-items: flex-start;
  }

  .tariff-row > * {
    min-height: 68px;
    padding: 12px;
  }
}

@media (max-width: 340px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    width: 92px;
  }

  .header-phone {
    min-width: 130px;
    padding: 0 2px 0 10px;
  }

  .header-phone::before {
    display: none;
  }

  .header-phone span {
    font-size: 7px;
  }

  .header-phone strong {
    font-size: 9px;
  }

  .menu-toggle {
    flex-basis: 40px;
    width: 40px;
  }
}

@keyframes mobile-scroll-cue {
  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translate(-6px, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mobile-scroll-cue {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
