@font-face {
  font-family: "Muller";
  src: url("../fonts/muller-medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Muller";
  src: url("../fonts/muller-bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #344154;
  --muted: #586577;
  --page: #ffffff;
  --surface: #f2f3f5;
  --white: #ffffff;
  --control-active-text: #ffffff;
  --panel-border: transparent;
  --toggle-track: #edf0f4;
  --toggle-thumb: #344154;
  --focus-ring: #1e6ee6;
  --footer-background: var(--ink);
  --footer-text: #ffffff;
  --footer-muted: #c7ced7;
  --thumb-shadow: 0 2px 8px rgb(16 25 36 / 22%);
  --transfer-shadow: 0 24px 30px rgb(26 67 38 / 16%);
  --promo-shadow: 0 20px 55px rgb(49 65 82 / 16%);
  --phone-shadow: 0 24px 30px rgb(90 47 47 / 16%);
  --download-surface: linear-gradient(135deg, #6d6f5f 0%, #5d604f 100%);
  --download-band: linear-gradient(100deg, #f8e38e 0%, #fff7bf 58%, #f5e49a 100%);
  --download-text: #ffffff;
  --download-shadow: 0 8px 22px rgb(70 72 54 / 14%);
  --yellow: #f9e897;
  --yellow-soft: #fff9d7;
  --green: #67f28c;
  --green-soft: #dffbd5;
  --pink-soft: #ffe7e5;
  --container: 1200px;
  --page-padding: clamp(20px, 4vw, 48px);
  --radius-lg: 32px;
  --radius-md: 22px;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] {
  /* colors.json / Colors / modes / Dark: source tokens, then element roles. */
  --humo-bg-pure: #1a1c20;
  --humo-bg-island: #282b30;
  --humo-bg-secondary: #2f3338;
  --humo-bg-minor: #1e2126;
  --humo-primary-bg: #2b343e;
  --humo-primary-100: #f9e37a;
  --humo-primary-200: #ffee8f;
  --humo-primary-300: #fff3a0;
  --humo-primary-surface-100: rgba(249, 227, 122, 0.08);
  --humo-primary-surface-200: rgba(249, 227, 122, 0.12);
  --humo-primary-surface-400: rgba(249, 227, 122, 0.32);
  --humo-text-500: #e8e9ed;
  --humo-text-400: #c5c8cf;
  --humo-text-300: #a3a7b0;
  --humo-text-on-primary: #1e1f24;
  --humo-static-white: #f3f7fd;
  --humo-link: #4a7af0;
  --humo-stroke-100: rgba(243, 247, 253, 0.2);
  --humo-modal: rgba(0, 0, 0, 0.6);
  --humo-green-surface: rgba(76, 219, 155, 0.12);
  --humo-green-light: rgba(76, 219, 155, 0.4);
  --humo-red-surface: rgba(255, 107, 107, 0.15);
  --humo-red-light: rgba(255, 107, 107, 0.4);

  --ink: var(--humo-text-500);
  --muted: var(--humo-text-400);
  --page: var(--humo-bg-pure);
  --surface: var(--humo-bg-island);
  --white: var(--humo-static-white);
  --control-active-text: var(--humo-bg-pure);
  --panel-border: var(--humo-stroke-100);
  --toggle-track: var(--humo-primary-bg);
  --toggle-thumb: var(--humo-static-white);
  --focus-ring: var(--humo-link);
  --footer-background: var(--humo-bg-minor);
  --footer-text: var(--humo-text-500);
  --footer-muted: var(--humo-text-300);
  --thumb-shadow: 0 2px 8px var(--humo-modal);
  --transfer-shadow: 0 24px 30px var(--humo-modal);
  --promo-shadow: 0 20px 55px var(--humo-modal);
  --phone-shadow: 0 24px 30px var(--humo-modal);
  --download-surface: linear-gradient(135deg, var(--humo-primary-300) 0%, var(--humo-primary-200) 46%, var(--humo-primary-100) 100%);
  --download-band: linear-gradient(100deg, var(--humo-primary-surface-100) 0%, var(--humo-primary-surface-400) 58%, var(--humo-primary-surface-200) 100%), var(--humo-primary-bg);
  --download-text: var(--humo-text-on-primary);
  --download-shadow: 0 8px 24px var(--humo-modal);
  color-scheme: dark;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: "Muller", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

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

button,
summary,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(100% - (2 * var(--page-padding)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--control-active-text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 88px;
  padding-block: max(16px, env(safe-area-inset-top)) 16px;
  background: var(--page);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 0.82;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 34px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--toggle-track);
  cursor: pointer;
}

.theme-toggle__thumb {
  --toggle-offset: 0px;
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  inset-inline-start: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: var(--thumb-shadow);
  transform: translate(var(--toggle-offset), -50%);
  transition: transform 180ms ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle__thumb {
  --toggle-offset: 20px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher__button[aria-current="page"] {
  background: var(--ink);
  color: var(--control-active-text);
}

.hero {
  overflow: clip;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / 58%), transparent 34%),
    linear-gradient(145deg, var(--yellow-soft), var(--yellow));
}

.hero__inner {
  position: relative;
  min-height: clamp(720px, 68.75vw, 880px);
}

.hero__title {
  position: absolute;
  z-index: 3;
  inset-block-start: clamp(190px, 31%, 238px);
  inset-inline-start: 0;
  width: min(44%, 500px);
  margin: 0;
  font-size: clamp(48px, 4.25vw, 58px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  white-space: pre;
  overflow-wrap: normal;
}

html[lang="ru"] .hero__title {
  width: min(46%, 525px);
  font-size: clamp(46px, 3.95vw, 54px);
}

.hero__image {
  position: absolute;
  z-index: 1;
  inset-block-start: 30px;
  inset-inline-end: clamp(-150px, -10vw, -95px);
  width: min(68vw, 880px);
  height: auto;
  user-select: none;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 18% 14%, var(--humo-primary-surface-200), transparent 35%),
    linear-gradient(145deg, var(--humo-primary-surface-100), var(--humo-primary-surface-400)),
    var(--humo-primary-bg);
}

.download-card {
  position: absolute;
  z-index: 4;
  inset-block-end: 32px;
  inset-inline-start: 0;
  width: 310px;
  color: var(--download-text);
}

.download-card summary {
  display: none;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--download-surface);
  box-shadow: var(--download-shadow);
  color: var(--download-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  text-align: center;
}

.download-card summary::-webkit-details-marker {
  display: none;
}

.download-card__content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--download-surface);
  box-shadow: var(--download-shadow);
  color: var(--download-text);
}

.download-card__content img {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.download-card__content p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

html[data-download-target="store"] .download-card summary {
  display: flex;
}

html[data-download-target="store"] .download-card__content {
  display: none;
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-title--center {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.section-title--display {
  white-space: pre-line;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: clamp(40px, 6vw, 72px);
}

.feature-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-card img {
  width: 54px;
  height: 54px;
}

.feature-card h3 {
  max-width: 300px;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.transfer {
  background: var(--page);
}

.transfer__inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(44px, 6vw, 76px);
  overflow: clip;
  border: 1px solid var(--panel-border);
  border-radius: clamp(52px, 8vw, 102px);
  background: linear-gradient(120deg, #67f28c 0%, #dff4e9 46%, #f0f2f3 100%);
}

.transfer__copy {
  position: relative;
  z-index: 2;
}

.transfer__copy p,
.promo__copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
}

.transfer__image {
  width: min(100%, 330px);
  margin: -68px auto;
  filter: drop-shadow(var(--transfer-shadow));
}

.services {
  background: var(--page);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.service-grid img {
  width: 52px;
  height: 52px;
}

.service-grid span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.promo {
  background: var(--page);
}

.promo--nfc {
  background: var(--page);
}

.promo--qr {
  background: var(--page);
}

.promo__inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(38px, 8vw, 110px);
  padding: clamp(44px, 6vw, 76px);
  overflow: clip;
  border: 1px solid var(--panel-border);
}

.promo__inner--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.promo--nfc .promo__inner {
  border-radius: clamp(44px, 5vw, 60px);
  background: linear-gradient(135deg, #dffbd5 0%, #caf4c7 100%);
}

.promo--qr .promo__inner {
  border-radius: clamp(52px, 8vw, 102px);
  background: radial-gradient(79% 134% at 80.1% 54.3%, #ffbbb3 0%, #f0f7fa 100%);
}

.promo--nfc .promo__copy {
  grid-column: 1;
  grid-row: 1;
}

.promo--nfc .promo__image {
  grid-column: 2;
  grid-row: 1;
}

.promo__copy {
  min-width: 0;
}

.promo__image {
  width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--promo-shadow);
}

.promo__phone {
  width: min(100%, 310px);
  max-height: 570px;
  margin: -54px auto;
  object-fit: contain;
  object-position: top;
  filter: drop-shadow(var(--phone-shadow));
}

.transfer.section,
.promo.section {
  padding-block: clamp(26px, 4vw, 56px);
}

html[data-theme="dark"] .transfer__inner {
  background: linear-gradient(120deg, var(--humo-green-light) 0%, var(--humo-green-surface) 46%, transparent 100%), var(--humo-bg-island);
}

html[data-theme="dark"] .promo--nfc .promo__inner {
  background: linear-gradient(135deg, var(--humo-green-light) 0%, var(--humo-green-surface) 100%), var(--humo-bg-minor);
}

html[data-theme="dark"] .promo--qr .promo__inner {
  background: radial-gradient(79% 134% at 80.1% 54.3%, var(--humo-red-light) 0%, var(--humo-red-surface) 56%, transparent 100%), var(--humo-bg-island);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
}

.site-footer {
  padding-block: 54px max(54px, env(safe-area-inset-bottom));
  background: var(--footer-background);
  color: var(--footer-text);
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.brand--footer {
  color: var(--footer-text);
}

.site-footer__brand p {
  margin: 28px 0 0;
  color: var(--footer-muted);
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 15px;
}

.site-footer__links a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 1000px) {
  .hero__title,
  html[lang="ru"] .hero__title {
    width: min(45%, 440px);
    font-size: clamp(44px, 5.3vw, 52px);
  }

  .hero__image {
    width: min(75vw, 790px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero__title,
  html[lang="ru"] .hero__title,
  html[lang="en"] .hero__title {
    width: min(48%, 440px);
    font-size: 44px;
  }

  .hero__image {
    inset-inline-end: -120px;
    width: min(65vw, 720px);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    min-height: 760px;
  }

  .hero__title,
  html[lang="ru"] .hero__title,
  html[lang="en"] .hero__title {
    inset-block-start: 48px;
    inset-inline: 0;
    width: 100%;
    font-size: 42px;
  }

  .hero__image {
    inset-block-start: 184px;
    inset-inline: 0;
    width: 100%;
  }

  .transfer__inner,
  .promo__inner,
  .promo__inner--reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .transfer__copy,
  .promo__copy {
    text-align: center;
  }

  .transfer__copy p,
  .promo__copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .promo--nfc .promo__copy,
  .promo--nfc .promo__image {
    grid-column: 1;
  }

  .promo--nfc .promo__copy {
    grid-row: 1;
  }

  .promo--nfc .promo__image {
    grid-row: 2;
  }

  .transfer__image {
    margin: 0 auto -120px;
  }

  .promo__phone {
    margin: 0 auto -130px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-padding: 20px;
    --radius-lg: 24px;
    --radius-md: 18px;
  }

  .site-header {
    min-height: 80px;
    padding-block: max(12px, env(safe-area-inset-top)) 12px;
  }

  .brand {
    gap: 7px;
    font-size: 15px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .site-header__controls {
    gap: 7px;
  }

  .theme-toggle {
    width: 48px;
    height: 32px;
  }

  .theme-toggle__thumb {
    width: 24px;
    height: 24px;
  }

  .theme-toggle[aria-checked="true"] .theme-toggle__thumb {
    --toggle-offset: 16px;
  }

  .language-switcher__button {
    min-width: 38px;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .hero__inner {
    min-height: 664px;
  }

  .hero__title,
  html[lang="ru"] .hero__title,
  html[lang="en"] .hero__title {
    inset-block-start: 30px;
    inset-inline: 0;
    width: 100%;
    max-width: none;
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.01;
    letter-spacing: -0.028em;
    white-space: pre-wrap;
    text-wrap: balance;
  }

  .hero__image {
    inset-block-start: 158px;
    inset-inline: 0;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgb(0 0 0 / 78%) 81%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgb(0 0 0 / 78%) 81%, transparent 100%);
  }

  html[lang="ru"] .hero__image,
  html[lang="en"] .hero__image {
    inset-block-start: 170px;
  }

  .download-card {
    inset-inline: 0;
    inset-block-end: 20px;
    width: 100%;
    isolation: isolate;
  }

  .download-card::before {
    position: absolute;
    z-index: -1;
    inset-block: -104px -20px;
    inset-inline: calc(-1 * var(--page-padding));
    background: var(--download-band);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / 34%) 34%, #000 62%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / 34%) 34%, #000 62%, #000 100%);
    content: "";
  }

  .download-card summary {
    position: relative;
    z-index: 1;
    display: flex;
  }

  .download-card__content {
    margin-block-start: 10px;
  }

  .download-card:not([open]) .download-card__content {
    display: none;
  }

  .section {
    padding-block: 72px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .feature-card img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .feature-card h3 {
    font-size: 17px;
  }

  .transfer__inner,
  .promo__inner,
  .promo__inner--reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 38px 24px;
    border-radius: 34px;
  }

  .transfer__copy {
    text-align: center;
  }

  .transfer__copy p,
  .promo__copy > p:not(.eyebrow) {
    margin: 22px auto 0;
    font-size: 17px;
  }

  .transfer__image {
    width: min(78vw, 330px);
    margin: 0 auto -110px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-grid li {
    min-height: 142px;
    padding: 16px 10px;
  }

  .promo__inner {
    text-align: center;
  }

  .promo--nfc .promo__copy {
    grid-row: 1;
  }

  .promo__image {
    width: min(100%, 420px);
    border-radius: 24px;
  }

  .promo__phone {
    width: min(72vw, 310px);
    max-height: none;
    margin: 0 auto -160px;
    order: 2;
  }

  .eyebrow {
    margin-block-end: 18px;
    font-size: 16px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__links {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  :root {
    --page-padding: 16px;
  }

  .language-switcher__button {
    min-width: 32px;
    padding-inline: 6px;
  }

  .hero__inner {
    min-height: 620px;
  }

  .hero__title,
  html[lang="ru"] .hero__title,
  html[lang="en"] .hero__title {
    font-size: 29px;
  }

  .hero__image,
  html[lang="ru"] .hero__image,
  html[lang="en"] .hero__image {
    inset-block-start: 160px;
  }

  .feature-card {
    padding: 18px;
  }

  .section-title {
    font-size: 29px;
  }
}

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