@font-face {
  font-family: "Hero New";
  src: url("../img/HeroNew-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../img/about/original/fonts/museosanscyrl-500.936287f.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --white: #fff;
  --ink: #242334;
  --muted: #565467;
  --line: #dcd9e3;
  --violet: #51429e;
  --blue: #dce9fc;
  --lilac: #eae4f8;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 "Museo Sans Cyrl", Arial, sans-serif;
}

h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3, .receipt-title {
  font-family: "Hero New", "Museo Sans Cyrl", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}

h1 { max-width: 19ch; margin-inline: auto; font-size: clamp(36px, 5vw, 72px); text-wrap: balance; }
h1 span { color: var(--violet); }
h2 { font-size: clamp(29px, 3.4vw, 46px); text-wrap: balance; }
h3 { font-size: clamp(21px, 2vw, 24px); }

.shell { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: clamp(66px, 8vw, 118px); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 108px);
  align-items: start;
}

.hero {
  padding: clamp(74px, 9vw, 132px) 0 0;
  background: radial-gradient(ellipse at 50% 0%, #ebe7f7, transparent 65%);
}
.hero-copy { text-align: center; }
.intro, .muted { color: var(--muted); }
.intro { max-width: 44ch; margin: 24px auto 0; font-size: clamp(18px, 1.6vw, 22px); }
.muted { max-width: 40ch; margin-top: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  margin-top: 28px;
  padding: 13px 20px 13px 24px;
  border-radius: 100px;
  background: #352b66;
  color: var(--white);
  text-decoration: none;
}
.button:hover { background: var(--violet); }
.button-arrow { display: block; flex: none; width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }

.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr minmax(80px, .24fr);
  width: min(100%, 940px);
  margin: clamp(40px, 5.4vw, 72px) auto 0;
  padding: clamp(30px, 5vw, 65px) clamp(30px, 6.5vw, 96px);
  border: 1px solid #d8d5ec;
  border-radius: 34px;
  background: radial-gradient(ellipse at 83% 5%, #e4d9f7, transparent 65%),
    linear-gradient(120deg, #e0ebfb, #eeeafa);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#7664ae19 1px, transparent 1px),
    linear-gradient(90deg, #7664ae19 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(115deg, #000, transparent 82%);
}
.campaign-preview {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid #d8d4e8;
  border-radius: 18px;
  background: #fefeff;
  box-shadow: 0 18px 48px #58498220;
}
.campaign-toolbar {
  display: flex;
  gap: 6px;
  padding: 14px 19px;
  border-bottom: 1px solid #e8e5ef;
}
.campaign-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: #a49abb; }
.campaign-body { padding: clamp(16px, 3vw, 34px); }
.campaign-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.campaign-heading p { font-size: clamp(17px, 2vw, 22px); }
.campaign-heading span { font-size: 14px; color: var(--muted); }
.campaign-icon, .receipt-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; }
.campaign-icon { background: var(--lilac); color: var(--violet); }
.campaign-chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.receipt {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 15px 20px;
  border: 1px solid #e4dbf8;
  border-radius: 16px;
  background: #f3edfe;
  box-shadow: 0 12px 32px #51427928;
}
.receipt-icon { background: #e3d9f6; color: var(--violet); }
.receipt-title { font-size: clamp(19px, 2vw, 25px); }
.receipt-caption { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.25; }

.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.section-heading h2 { max-width: 16ch; }
.section-heading .muted { margin-top: 2px; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); margin-top: 36px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--white); }
.calculator-inputs, .calculator-result { padding: clamp(22px, 3.4vw, 42px); }
.ad-types { min-width: 0; margin: 0; padding: 0; border: 0; }
.ad-types legend { padding: 0; font-size: 21px; line-height: 1.3; }
.ad-options { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.ad-options label { position: relative; cursor: pointer; }
.ad-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-options span { display: block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; font-size: 16px; }
.ad-options input:checked + span { border-color: #8e7cbe; background: var(--lilac); color: #392b70; }
.ad-options input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.budget-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 30px; }
.budget-heading h3 { font-size: 21px; }
.budget-heading > span { flex: none; font-size: 14px; color: var(--muted); }
.calculator-help { margin-top: 12px; color: var(--muted); font-size: 14px; }
.calculator-contact { margin-top: 20px; }
.calculator-contact a { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
.budget-rows { margin-top: 16px; }
.budget-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 8px 12px; padding-block: 11px; border-top: 1px solid #eae7ef; }
.budget-row label { min-width: 0; }
.budget-row label small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.budget-field { display: flex; align-items: center; padding-right: 13px; border: 1px solid #c9c3d6; border-radius: 12px; }
.budget-field:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.budget-field input { min-width: 0; width: 100%; padding: 10px 12px; border: 0; outline: 0; border-radius: inherit; background: transparent; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.budget-field span { color: var(--muted); }
.budget-field:has([aria-invalid="true"]) { border-color: #a12c42; }
.budget-error { grid-column: 1 / -1; color: #a12c42; font-size: 14px; }
.calculator-empty { margin-top: 20px; color: var(--muted); }
.calculator-result { display: flex; flex-direction: column; justify-content: center; background: #efebf8; }
.result-label { color: var(--violet); }
.cashback-total { display: block; margin-top: 14px; color: #3c2c7e; font: 700 clamp(30px, 3.7vw, 52px)/1.15 "Hero New", Arial, sans-serif; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.calculator-status { margin-top: 8px; color: #92233b; font-size: 14px; }
.calculator-status:empty { display: none; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 25px; font-size: 14px; }
.legal-footer a { color: var(--muted); text-decoration-color: #b8afca; text-underline-offset: 4px; }
.legal-footer a:hover { color: var(--violet); }
[hidden] { display: none !important; }

#connect { background: #eeedf5; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 56px);
  margin: clamp(36px, 5vw, 66px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  --step-accent: #455f9b;
  --step-fill: var(--blue);
  position: relative;
  padding-top: 24px;
  border-top: 1px solid #cecadb;
}
.steps li:nth-child(2) { --step-accent: #594795; --step-fill: #e4dbf6; }
.steps li:nth-child(3) { --step-accent: #775245; --step-fill: #f3e3da; }
.steps li::before {
  position: absolute;
  top: 24px;
  right: 0;
  color: var(--step-accent);
  font-size: 14px;
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
}
.step-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 21px;
  padding: 8px;
  border-radius: 16px;
  background: var(--step-fill);
  color: var(--step-accent);
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.steps p { margin-top: 10px; color: var(--muted); }

.connect-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4.5vw, 56px); border: 1px solid var(--line); border-radius: 28px; background: var(--white); }
.connect-copy h3 { font-size: clamp(28px, 3vw, 38px); }
.connect-copy p { max-width: 34ch; margin-top: 18px; color: var(--muted); }
.connect-copy .connect-minimum { margin-top: 28px; font-size: 15px; color: var(--violet); }
.connect-form { display: grid; gap: 22px; min-width: 0; }
.request-field { display: grid; gap: 8px; min-width: 0; }
.request-field > label { font-size: 16px; }
.request-field > input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #c9c3d6; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; }
.request-field .budget-field input { padding: 12px 14px; }
.request-field input::placeholder { color: #777183; opacity: 1; }
.request-field small, .request-note, .request-privacy { color: var(--muted); font-size: 13px; line-height: 1.45; }
.request-privacy { margin-top: -12px; }
.request-privacy a { color: var(--violet); text-underline-offset: 3px; }
.request-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.request-individual { color: var(--ink); font-size: 15px; }
#request-form { scroll-margin-top: 24px; }
.request-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); }
.request-consent a { color: var(--violet); text-underline-offset: 3px; }
.connect-form .button { width: 100%; margin-top: 0; border: 0; font: inherit; }
.connect-form .button:disabled { cursor: not-allowed; background: #352b66; }
.request-note { margin-top: -12px; }

.request-success {
  width: min(440px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: clamp(24px, 5vw, 36px);
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px #18152c33;
}
.request-success::backdrop { background: #18152c80; }
.request-success h2 { font-size: 30px; line-height: 1.2; }
.request-success p { margin-top: 16px; color: var(--muted); }
.request-success .button { width: 100%; margin-top: 28px; border: 0; font: inherit; }
body:has(.request-success[open]) { overflow: hidden; }

.account .split {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  padding: clamp(32px, 5.4vw, 72px);
  border: 1px solid #e1d9f0;
  border-radius: 32px;
  background: linear-gradient(120deg, #f0edf7, #eae3f6);
}
.account .split > div:first-child { grid-column: 2; grid-row: 1; }
.account .checklist { grid-column: 1; grid-row: 1; }
.connection-date { margin-top: 24px; padding-left: 16px; border-left: 2px solid #b4a4d6; }
.connection-date-title { color: var(--violet); font-weight: 500; }
.connection-date p + p { margin-top: 7px; color: var(--muted); font-size: 16px; }
.checklist ul { margin: 18px 0 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid #d5cce6;
}
.checklist li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 3px;
  width: 7px;
  height: 11px;
  border: solid var(--violet);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.documents { padding-top: 0; }
.document-list div { padding-block: 16px; border-top: 1px solid var(--line); }
.document-list div:last-child { border-bottom: 1px solid var(--line); }
.document-list dt { font-size: 19px; }
.document-list dd { margin-top: 4px; color: var(--muted); }

.referral { padding-bottom: clamp(66px, 8vw, 118px); }
.referral-panel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.referral-icon {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 13px;
  background: var(--lilac);
  color: var(--violet);
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
}
.referral h2 { font-size: clamp(24px, 2.6vw, 32px); text-wrap: wrap; }
.referral p { max-width: 68ch; margin-top: 12px; color: var(--muted); }

.questions { background: #efedf4; }
.questions h2 { text-align: center; }
.faq { max-width: 760px; margin: clamp(30px, 4vw, 52px) auto 0; }
.faq details { border-top: 1px solid #d3cddf; }
.faq details:last-child { border-bottom: 1px solid #d3cddf; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 19px;
  list-style: none;
  cursor: pointer;
}
.faq summary:hover { color: var(--violet); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--violet); font-size: 25px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 28px 18px 0; color: var(--muted); }

@media (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .shell { width: calc(100% - 40px); }
  .hero { padding-top: 62px; }
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 22px;
  }
  .receipt { align-self: flex-end; margin: -8px 0 0; padding: 12px; }
  .receipt-caption { font-size: 13px; }
  .section-heading { flex-direction: column; gap: 14px; }
  .section-heading h2 { max-width: none; }
  .calculator { grid-template-columns: minmax(0, 1fr); margin-top: 26px; border-radius: 22px; }
  .budget-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cashback-total { font-size: clamp(29px, 8vw, 43px); }
  .split, .steps, .account .split { grid-template-columns: minmax(0, 1fr); }
  .connect-panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .steps { gap: 24px; }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .step-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; padding: 6px; }
  .steps h3 { padding-right: 24px; }
  .steps p { margin-top: 6px; }
  .account .split { padding: 26px; gap: 28px; border-radius: 24px; }
  .account .split > div:first-child, .account .checklist { grid-column: auto; grid-row: auto; }
  .referral-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 360px) {
  h1 { font-size: 32px; }
  .shell { width: calc(100% - 32px); }
  .hero-visual { padding: 14px; }
  .campaign-heading { gap: 6px; }
  .campaign-icon { width: 32px; height: 32px; }
}
