@font-face {
  font-family: "Montserrat";
  src:
    url("fonts/Montserrat-Variable.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green-950: #061b16;
  --green-900: #09261e;
  --green-850: #0b3026;
  --green-800: #0d3b2f;
  --gold: #c99b49;
  --gold-soft: #ead8b4;
  --ivory: #f6f3ec;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #14201c;
  --muted: #718078;
  --line: rgba(9, 38, 30, 0.11);
  --shadow: 0 18px 45px rgba(9, 38, 30, 0.10);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #e9ede9;
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  overscroll-behavior-y: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 0 60px rgba(9, 38, 30, 0.12);
}

.screen {
  display: none;
  min-height: 100dvh;
  animation: screen-in 180ms ease-out;
}

.screen.is-active {
  display: block;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-header {
  min-height: 316px;
  padding:
    calc(var(--safe-top) + 30px)
    24px
    66px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(
      circle at 80% 12%,
      rgba(201, 155, 73, 0.14),
      transparent 30%
    ),
    linear-gradient(160deg, var(--green-850), var(--green-950));
  border-radius: 0 0 34px 34px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 8vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: #e4bd72;
}

.brand-subtitle {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 500;
}

.rate-card {
  position: relative;
  width: min(100%, 310px);
  margin: 28px auto 0;
  padding: 13px 40px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(14px);
}

.rate-card__label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-card strong {
  display: block;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.rate-card__dot {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55cf8a;
  box-shadow: 0 0 0 5px rgba(85, 207, 138, 0.10);
}

.content {
  padding-right: 18px;
  padding-left: 18px;
}

.content--calculator {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding-bottom: calc(112px + var(--safe-bottom));
}

.exchange-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(9, 38, 30, 0.07);
  border-radius: 25px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.amount-block {
  display: block;
  min-height: 112px;
  padding: 20px 20px 18px;
}

.amount-block:first-child {
  border-bottom: 1px solid var(--line);
}

.amount-block__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.amount-block__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.amount-block input,
.amount-block strong {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 35px);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.currency {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 38, 30, 0.035);
  font-size: 14px;
  font-weight: 650;
}

.currency__flag {
  font-size: 20px;
  line-height: 1;
}

.swap-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 4px solid var(--paper);
  border-radius: 50%;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--green-900);
  color: #efc473;
  box-shadow: 0 7px 16px rgba(9, 38, 30, 0.24);
}

.swap-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 22px;
}

.quick-amounts button {
  min-width: 91px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  color: #415049;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.quick-amounts button:active {
  transform: scale(0.97);
}

.quick-amounts button.is-selected {
  border-color: var(--gold);
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(9, 38, 30, 0.17);
}

.primary-button {
  width: 100%;
  min-height: 58px;
  padding: 15px 22px;
  border: 0;
  border-radius: 17px;
  background: var(--green-900);
  color: var(--white);
  font-size: 17px;
  font-weight: 680;
  box-shadow: 0 12px 28px rgba(9, 38, 30, 0.18);
  transition:
    transform 120ms ease,
    opacity 120ms ease;
}

.primary-button:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.minimum-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
}

.minimum-note svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.page-header {
  position: relative;
  display: flex;
  min-height: calc(88px + var(--safe-top));
  padding:
    calc(24px + var(--safe-top))
    58px
    18px;
  align-items: flex-end;
  justify-content: center;
  background: var(--green-900);
  color: var(--white);
  border-radius: 0 0 25px 25px;
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: center;
}

.page-header--static {
  padding-right: 20px;
  padding-left: 20px;
}

.icon-button {
  position: absolute;
  bottom: 13px;
  left: 13px;
  display: grid;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--white);
}

.icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content--page {
  min-height: calc(100dvh - 110px);
  padding-top: 22px;
  padding-bottom: calc(30px + var(--safe-bottom));
}

.screen--with-nav .content--page {
  padding-bottom: calc(112px + var(--safe-bottom));
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-card {
  display: flex;
  min-height: 88px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(9, 38, 30, 0.045);
}

.method-card.is-selected {
  border-color: var(--green-800);
  box-shadow:
    0 0 0 1px var(--green-800),
    0 10px 28px rgba(9, 38, 30, 0.08);
}

.method-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  place-items: center;
  background: rgba(9, 38, 30, 0.055);
  color: var(--green-900);
}

.method-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-card__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.method-card__copy strong {
  font-size: 16px;
  font-weight: 660;
}

.method-card__copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1.5px solid rgba(9, 38, 30, 0.24);
  border-radius: 50%;
  place-items: center;
}

.method-card.is-selected .choice-mark {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.choice-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-action {
  margin-top: 24px;
}

.summary-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(9, 38, 30, 0.06);
}

.summary-row {
  display: flex;
  min-height: 76px;
  padding: 17px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

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

.summary-row strong {
  max-width: 58%;
  font-size: 16px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.confirm-actions {
  margin-top: 24px;
}

.text-button {
  display: block;
  margin: 15px auto 0;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--green-900);
  font-size: 15px;
  font-weight: 650;
}

.content--orders {
  display: grid;
  align-content: start;
  gap: 13px;
}

.order-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
  box-shadow: 0 8px 25px rgba(9, 38, 30, 0.05);
}

.order-card__top,
.order-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-card__top {
  color: var(--muted);
  font-size: 12px;
}

.status {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 680;
}

.status--active {
  background: #fff0d6;
  color: #a8650b;
}

.status--done {
  background: #e8f5eb;
  color: #268044;
}

.order-card__id {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.order-card__amount {
  display: flex;
  margin: 10px 0 16px;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.order-card__amount span {
  color: var(--green-800);
  font-weight: 400;
}

.order-card__bottom {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.order-card__bottom span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.order-card__bottom svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--green-900);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card {
  display: flex;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(9, 38, 30, 0.055);
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  place-items: center;
  background: var(--green-900);
  color: #efc473;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.profile-card > div:last-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.profile-card strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card span {
  color: var(--muted);
  font-size: 13px;
}

.profile-menu {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.profile-menu button {
  display: flex;
  width: 100%;
  min-height: 62px;
  padding: 0 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  background: transparent;
  font-size: 15px;
  font-weight: 580;
  text-align: left;
}

.profile-menu button:last-child {
  border-bottom: 0;
}

.profile-menu svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-note {
  margin: 20px auto 0;
  max-width: 300px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 520px);
  min-height: calc(76px + var(--safe-bottom));
  padding: 8px 18px var(--safe-bottom);
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid rgba(9, 38, 30, 0.09);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 -8px 30px rgba(9, 38, 30, 0.055);
  backdrop-filter: blur(18px);
}

.app-shell[data-current="method"] .bottom-nav,
.app-shell[data-current="confirm"] .bottom-nav {
  display: none;
}

.bottom-nav button {
  display: flex;
  padding: 7px 4px 4px;
  border: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: #7c8983;
  font-size: 11px;
  font-weight: 570;
}

.bottom-nav button.is-active {
  color: var(--green-900);
}

.bottom-nav button.is-active span {
  font-weight: 700;
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: calc(92px + var(--safe-bottom));
  left: 50%;
  width: min(calc(100% - 36px), 484px);
  padding: 13px 16px;
  border-radius: 14px;
  transform: translate(-50%, 20px);
  background: var(--green-950);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  box-shadow: 0 12px 30px rgba(9, 38, 30, 0.24);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 370px) {
  .brand-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .quick-amounts {
    gap: 7px;
  }

  .quick-amounts button {
    min-width: 83px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .order-card__amount {
    gap: 8px;
    font-size: 18px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    min-height: 920px;
  }
}


.app-shell.is-telegram .page-header .icon-button {
  display: none;
}


.primary-button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.48;
}

.rate-card__dot.is-loading {
  background: #efc473;
  animation: rate-pulse 1.2s ease-in-out infinite;
}

.rate-card__dot.is-ready {
  background: #55cf8a;
}

.rate-card__dot.is-stale {
  background: #efc473;
}

.rate-card__dot.is-error {
  background: #e87676;
}

@keyframes rate-pulse {
  50% {
    opacity: 0.38;
    transform: scale(0.78);
  }
}


/* COMPACT_DENSITY_V1 */

.brand-header {
  min-height: 282px;
  padding:
    calc(var(--safe-top) + 24px)
    21px
    56px;
  border-radius: 0 0 29px 29px;
}

.brand-name {
  font-size: clamp(26px, 7vw, 33px);
}

.brand-subtitle {
  margin-top: 7px;
  font-size: 13px;
}

.rate-card {
  width: min(100%, 286px);
  margin-top: 22px;
  padding: 11px 36px 12px;
  border-radius: 16px;
}

.rate-card__label {
  margin-bottom: 3px;
  font-size: 9px;
}

.rate-card strong {
  font-size: 20px;
}

.content {
  padding-right: 16px;
  padding-left: 16px;
}

.content--calculator {
  margin-top: -40px;
  padding-bottom: calc(102px + var(--safe-bottom));
}

.exchange-card {
  border-radius: 22px;
}

.amount-block {
  min-height: 98px;
  padding: 17px 18px 16px;
}

.amount-block__label {
  margin-bottom: 10px;
  font-size: 12px;
}

.amount-block input,
.amount-block strong {
  font-size: clamp(25px, 7vw, 31px);
}

.currency {
  min-width: 84px;
  padding: 8px 9px;
  border-radius: 12px;
  font-size: 13px;
}

.currency__flag {
  font-size: 18px;
}

.swap-button {
  width: 40px;
  height: 40px;
}

.swap-button svg {
  width: 19px;
  height: 19px;
}

.quick-amounts {
  gap: 7px;
  margin: 15px 0 18px;
}

.quick-amounts button {
  min-width: 84px;
  padding: 9px 11px;
  border-radius: 13px;
  font-size: 12px;
}

.primary-button {
  min-height: 52px;
  padding: 13px 19px;
  border-radius: 15px;
  font-size: 15px;
}

.minimum-note {
  margin-top: 12px;
  font-size: 11px;
}

.minimum-note svg {
  width: 15px;
  height: 15px;
}

.page-header {
  min-height: calc(80px + var(--safe-top));
  padding:
    calc(20px + var(--safe-top))
    52px
    15px;
  border-radius: 0 0 22px 22px;
}

.page-header h1 {
  font-size: 19px;
}

.icon-button {
  bottom: 10px;
  width: 41px;
  height: 41px;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.content--page {
  padding-top: 18px;
}

.method-list {
  gap: 10px;
}

.method-card {
  min-height: 78px;
  padding: 12px 13px;
  border-radius: 17px;
  gap: 12px;
}

.method-card__icon {
  width: 43px;
  height: 43px;
  flex-basis: 43px;
  border-radius: 13px;
}

.method-card__icon svg {
  width: 23px;
  height: 23px;
}

.method-card__copy {
  gap: 3px;
}

.method-card__copy strong {
  font-size: 14px;
}

.method-card__copy small {
  font-size: 11px;
}

.choice-mark {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.page-action {
  margin-top: 19px;
}

.summary-card {
  border-radius: 19px;
}

.summary-row {
  min-height: 66px;
  padding: 14px 16px;
}

.summary-row span {
  font-size: 12px;
}

.summary-row strong {
  font-size: 14px;
}

.confirm-actions {
  margin-top: 20px;
}

.text-button {
  margin-top: 11px;
  font-size: 14px;
}

.content--orders {
  gap: 11px;
}

.order-card {
  padding: 15px;
  border-radius: 18px;
}

.order-card__top {
  font-size: 11px;
}

.status {
  padding: 6px 9px;
  font-size: 11px;
}

.order-card__id {
  margin-top: 11px;
  font-size: 12px;
}

.order-card__amount {
  margin: 8px 0 13px;
  font-size: 18px;
}

.order-card__bottom {
  padding-top: 11px;
}

.order-card__bottom span {
  font-size: 12px;
}

.order-card__bottom svg {
  width: 17px;
  height: 17px;
}

.profile-card {
  padding: 15px;
  border-radius: 19px;
}

.profile-avatar {
  width: 51px;
  height: 51px;
  flex-basis: 51px;
  font-size: 22px;
}

.profile-card strong {
  font-size: 15px;
}

.profile-card span {
  font-size: 12px;
}

.profile-menu {
  margin-top: 13px;
  border-radius: 19px;
}

.profile-menu button {
  min-height: 56px;
  padding: 0 15px;
  font-size: 14px;
}

.bottom-nav {
  min-height: calc(69px + var(--safe-bottom));
  padding-top: 6px;
}

.bottom-nav button {
  gap: 3px;
  font-size: 10px;
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
}

.toast {
  bottom: calc(82px + var(--safe-bottom));
  padding: 11px 14px;
  font-size: 12px;
}


/* MONTSERRAT_TYPOGRAPHY_V1 */

html,
body,
button,
input {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
}

body {
  font-weight: 400;
}

.brand-name,
.profile-avatar {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
}

.brand-name {
  font-weight: 650;
  letter-spacing: -0.045em;
}

.brand-name span {
  font-weight: 450;
}

.brand-subtitle {
  font-weight: 400;
  letter-spacing: 0.01em;
}

.rate-card__label {
  font-weight: 500;
}

.rate-card strong {
  font-weight: 650;
}

.amount-block__label,
.minimum-note,
.summary-row span {
  font-weight: 400;
}

.amount-block input,
.amount-block strong {
  font-weight: 700;
}

.currency {
  font-weight: 600;
}

.quick-amounts button {
  font-weight: 500;
}

.quick-amounts button.is-selected {
  font-weight: 650;
}

.primary-button {
  font-weight: 650;
}

.page-header h1 {
  font-weight: 650;
}

.method-card__copy strong {
  font-weight: 600;
}

.method-card__copy small {
  font-weight: 400;
}

.summary-row strong {
  font-weight: 650;
}

.text-button {
  font-weight: 550;
}

.status {
  font-weight: 600;
}

.order-card__id,
.order-card__top {
  font-weight: 400;
}

.order-card__amount strong {
  font-weight: 650;
}

.order-card__bottom span {
  font-weight: 500;
}

.profile-card strong {
  font-weight: 650;
}

.profile-card span,
.legal-note {
  font-weight: 400;
}

.profile-menu button {
  font-weight: 500;
}

.bottom-nav button {
  font-weight: 450;
}

.bottom-nav button.is-active span {
  font-weight: 650;
}


/* VERTICAL_BALANCE_V1 */

.brand-header {
  min-height: 306px;
  padding-top: calc(var(--safe-top) + 38px);
  padding-bottom: 62px;
}

.content--calculator {
  margin-top: -38px;
}

.page-header {
  min-height: calc(90px + var(--safe-top));
  padding-top: calc(29px + var(--safe-top));
  padding-bottom: 17px;
}

.content--page {
  padding-top: 22px;
}


/* MANUAL_AMOUNT_ONLY_V1 */

.exchange-card + .primary-button {
  margin-top: 18px;
}

.amount-block input::placeholder {
  color: #9aa69f;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 1;
}


/* ABSTRACT_HERO_V1 */

.brand-header {
  position: relative;
  min-height: 456px;
  padding-top: calc(var(--safe-top) + 188px);
  overflow: hidden;
  isolation: isolate;
  background: #071f19;
}

.brand-header > * {
  position: relative;
  z-index: 3;
}

.brand-header::before {
  position: absolute;
  z-index: 1;
  top: -330px;
  left: 50%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%) rotate(0deg);
  background:
    conic-gradient(
      from 25deg,
      rgba(5, 54, 42, 0.25),
      rgba(30, 122, 93, 0.72),
      rgba(222, 177, 92, 0.50),
      rgba(20, 88, 69, 0.70),
      rgba(5, 54, 42, 0.25)
    );
  filter: blur(32px);
  opacity: 0.92;
  animation:
    lakeeva-hero-rotate
    15s
    linear
    infinite;
  will-change: transform;
}

.brand-header::after {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 14%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      circle at 38% 35%,
      rgba(255, 231, 174, 0.72),
      rgba(211, 157, 69, 0.34) 32%,
      rgba(211, 157, 69, 0) 72%
    );
  box-shadow:
    210px 34px 0 14px rgba(22, 139, 103, 0.24),
    88px 116px 0 25px rgba(26, 96, 76, 0.28),
    -65px 108px 0 7px rgba(221, 176, 90, 0.16);
  filter: blur(25px);
  opacity: 0.92;
  animation:
    lakeeva-hero-drift
    9s
    ease-in-out
    infinite alternate;
  will-change: transform;
}

@keyframes lakeeva-hero-rotate {
  from {
    transform:
      translateX(-50%)
      rotate(0deg)
      scale(1);
  }

  50% {
    transform:
      translateX(-50%)
      rotate(180deg)
      scale(1.08);
  }

  to {
    transform:
      translateX(-50%)
      rotate(360deg)
      scale(1);
  }
}

@keyframes lakeeva-hero-drift {
  from {
    transform:
      translate3d(-18px, -8px, 0)
      scale(0.92);
  }

  to {
    transform:
      translate3d(26px, 28px, 0)
      scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-header::before,
  .brand-header::after {
    animation: none;
  }
}


/* VISUAL_CURRENCY_SWAP_V1 */

.exchange-card {
  display: flex;
  flex-direction: column;
}

.amount-block--from {
  order: 1;
  border-bottom: 1px solid var(--line);
}

.amount-block--to {
  order: 3;
}

.swap-button {
  order: 2;
}

.exchange-card.is-swapped .amount-block--from {
  order: 3;
  border-bottom: 0;
}

.exchange-card.is-swapped .amount-block--to {
  order: 1;
  border-bottom: 1px solid var(--line);
}

.swap-button svg {
  transition:
    transform 260ms
    cubic-bezier(0.22, 1, 0.36, 1);
}

.exchange-card.is-swapped .swap-button svg {
  transform: rotate(180deg);
}


/* DUAL_AMOUNT_INPUT_V1 */

.amount-block {
  transition:
    background-color 180ms ease;
}

.amount-block.is-entry-mode {
  background:
    rgba(201, 155, 73, 0.055);
}

.amount-block input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.amount-block input:not([readonly]) {
  caret-color: var(--gold);
}


/* PROFILE_CONTACTS_AND_TERMS_V1 */

.content--terms {
  display: grid;
  gap: 16px;
}

.terms-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(9, 38, 30, 0.055);
}

.terms-section {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.terms-section:last-child {
  border-bottom: 0;
}

.terms-section strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green-900);
  font-size: 15px;
  font-weight: 650;
}

.terms-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.terms-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.terms-contacts button {
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: var(--green-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 370px) {
  .terms-contacts {
    grid-template-columns: 1fr;
  }
}


/* DESKTOP_WORKSPACE_V1 */

@media (min-width: 900px) {
  html,
  body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body {
    background:
      radial-gradient(
        circle at 15% 15%,
        rgba(201, 155, 73, 0.10),
        transparent 32%
      ),
      #e9ede9;
  }

  .app-shell {
    width: min(100vw, 1180px);
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    border-right: 1px solid rgba(9, 38, 30, 0.08);
    border-left: 1px solid rgba(9, 38, 30, 0.08);
    box-shadow: 0 0 70px rgba(9, 38, 30, 0.13);
  }

  .screen {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .screen--exchange.is-active {
    display: grid;
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(420px, 0.95fr);
  }

  .screen--exchange .brand-header {
    display: flex;
    height: 100%;
    min-height: 0;
    padding:
      clamp(70px, 10vh, 125px)
      clamp(54px, 6vw, 88px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .screen--exchange .brand-name,
  .screen--exchange .brand-subtitle {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .screen--exchange .rate-card {
    width: min(100%, 420px);
    margin-right: 0;
    margin-left: 0;
  }

  .screen--exchange .content--calculator {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding:
      clamp(58px, 8vh, 92px)
      clamp(42px, 5vw, 72px)
      108px;
    flex-direction: column;
    justify-content: center;
  }

  .screen:not(.screen--exchange).is-active {
    display: flex;
    min-height: 0;
    align-items: center;
    flex-direction: column;
  }

  .screen:not(.screen--exchange) .page-header {
    width: 100%;
    max-width: 820px;
    flex: 0 0 auto;
  }

  .screen:not(.screen--exchange) .content--page {
    width: 100%;
    max-width: 820px;
    min-height: 0;
    padding-bottom: 104px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .screen[data-screen="method"] .content--page {
    max-width: 900px;
  }

  .screen[data-screen="method"] .method-list {
    grid-template-columns: 1fr 1fr;
  }

  .screen[data-screen="method"] .method-card {
    min-height: 82px;
  }

  .screen[data-screen="confirm"] .content--page {
    max-width: 680px;
  }

  .screen[data-screen="orders"] .content--page,
  .screen[data-screen="profile"] .content--page {
    max-width: 760px;
  }

  .screen[data-screen="terms"] .page-header {
    max-width: 1020px;
  }

  .screen[data-screen="terms"] .content--terms {
    max-width: 1020px;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-content: start;
    align-items: start;
  }

  .screen[data-screen="terms"] .terms-card {
    grid-template-columns: 1fr 1fr;
  }

  .screen[data-screen="terms"]
  .terms-section:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .screen[data-screen="terms"]
  .terms-section:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .screen[data-screen="terms"] .terms-contacts {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: min(720px, 100vw);
  }

  .app-shell[data-current="exchange"] .bottom-nav {
    right: max(
      0px,
      calc((100vw - 1180px) / 2)
    );
    left: auto;
    width: min(50vw, 560px);
    transform: none;
  }
}

/* DESKTOP_SERVICE_BLOCKS_V1 */

.desktop-service-grid {
  display: none;
}

@media (min-width: 900px) {
  .app-shell .bottom-nav {
    display: none;
  }

  .screen--exchange .brand-header {
    padding:
      clamp(42px, 6vh, 78px)
      clamp(42px, 5vw, 86px);
    align-items: flex-start;
    justify-content: center;
  }

  .screen--exchange .content--calculator {
    padding-bottom: 42px;
  }

  .desktop-service-grid {
    display: grid;
    width: min(100%, 460px);
    margin-top: 24px;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .desktop-service-card {
    min-width: 0;
    padding: 16px 17px;
    border:
      1px solid rgba(255, 255, 255, 0.11);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .desktop-service-card--wide {
    grid-column: 1 / -1;
  }

  .desktop-service-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .desktop-service-card > strong {
    display: block;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
  }

  .desktop-service-card p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.45;
  }

  .desktop-exchange-steps {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    list-style: none;
  }

  .desktop-exchange-steps li {
    min-width: 0;
    padding: 0 13px;
  }

  .desktop-exchange-steps li:first-child {
    padding-left: 0;
  }

  .desktop-exchange-steps li:last-child {
    padding-right: 0;
  }

  .desktop-exchange-steps li + li {
    border-left:
      1px solid rgba(255, 255, 255, 0.12);
  }

  .desktop-exchange-step__number {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 750;
  }

  .desktop-exchange-steps strong,
  .desktop-exchange-steps span:last-child {
    display: block;
  }

  .desktop-exchange-steps strong {
    font-size: 11px;
    font-weight: 680;
    line-height: 1.3;
  }

  .desktop-exchange-steps span:last-child {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    line-height: 1.35;
  }

  .desktop-manager-link {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-bottom:
      1px solid rgba(234, 216, 180, 0.45);
    background: transparent;
    color: var(--gold-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 650;
  }

  .desktop-manager-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
  }
}

@media (
  min-width: 900px
) and (
  max-height: 760px
) {
  .screen--exchange .brand-header {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .desktop-service-grid {
    margin-top: 15px;
  }

  .desktop-service-card {
    padding: 12px 14px;
  }

  .desktop-service-card p {
    display: none;
  }
}

/* DESKTOP_FLOW_SCREENS_V1 */

.desktop-flow-aside {
  display: none;
}

.desktop-flow-workspace {
  display: contents;
}

@media (min-width: 900px) {
  .screen[data-screen="method"].is-active,
  .screen[data-screen="confirm"].is-active {
    display: grid;
    height: 100%;
    grid-template-columns:
      minmax(320px, 0.78fr)
      minmax(0, 1.22fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .desktop-flow-aside {
    display: flex;
    min-width: 0;
    height: 100%;
    padding:
      clamp(44px, 6vh, 76px)
      clamp(38px, 4.5vw, 70px);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--green-950);
    color: var(--white);
  }

  .desktop-flow-workspace {
    display: flex;
    min-width: 0;
    height: 100%;
    padding:
      clamp(42px, 6vh, 76px)
      clamp(38px, 5vw, 76px);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--ivory);
  }

  .desktop-flow-brand {
    color: var(--white);
    font-size: 23px;
    font-weight: 760;
    letter-spacing: -0.04em;
  }

  .desktop-flow-brand span {
    color: var(--gold);
    font-weight: 430;
  }

  .desktop-flow-copy {
    max-width: 410px;
    margin-top: clamp(42px, 7vh, 74px);
  }

  .desktop-flow-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .desktop-flow-copy h2 {
    margin: 0;
    max-width: 390px;
    color: var(--white);
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .desktop-flow-copy p {
    margin: 17px 0 0;
    max-width: 390px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.6;
  }

  .desktop-flow-quote {
    display: grid;
    max-width: 410px;
    margin-top: 26px;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .desktop-flow-quote > div,
  .desktop-flow-notice {
    padding: 15px 16px;
    border:
      1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
  }

  .desktop-flow-quote span,
  .desktop-flow-notice span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
  }

  .desktop-flow-quote strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--white);
    font-size: 15px;
    font-weight: 680;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-flow-notice {
    max-width: 410px;
    margin-top: 26px;
    padding: 17px 18px;
  }

  .desktop-flow-notice span {
    color: var(--gold-soft);
    font-weight: 650;
  }

  .desktop-flow-notice strong {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
  }

  .desktop-flow-progress {
    display: grid;
    max-width: 410px;
    margin: 25px 0 0;
    padding: 0;
    gap: 7px;
    list-style: none;
  }

  .desktop-flow-progress li {
    display: grid;
    min-height: 51px;
    padding: 8px 12px;
    align-items: center;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    border:
      1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.42);
  }

  .desktop-flow-progress li > span {
    color: inherit;
    font-size: 10px;
    font-weight: 740;
  }

  .desktop-flow-progress li div {
    display: grid;
    gap: 2px;
  }

  .desktop-flow-progress strong {
    color: inherit;
    font-size: 12px;
    font-weight: 650;
  }

  .desktop-flow-progress small {
    color: inherit;
    font-size: 9px;
  }

  .desktop-flow-progress li.is-complete {
    color: rgba(255, 255, 255, 0.62);
  }

  .desktop-flow-progress li.is-current {
    border-color: rgba(234, 216, 180, 0.3);
    background: rgba(234, 216, 180, 0.09);
    color: var(--gold-soft);
  }

  .desktop-flow-workspace .page-header {
    width: 100%;
    max-width: 760px;
    min-height: 0;
    margin: 0 auto 23px;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    color: var(--ink);
    border-radius: 0;
  }

  .desktop-flow-workspace .page-header h1 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 680;
    letter-spacing: -0.04em;
    text-align: left;
  }

  .desktop-flow-workspace .page-header .icon-button {
    position: static;
    display: grid;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--green-900);
  }

  .desktop-flow-workspace .content--page {
    width: 100%;
    max-width: 760px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    flex: 0 0 auto;
    overflow: visible;
  }

  .screen[data-screen="method"]
  .desktop-flow-workspace
  .method-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .screen[data-screen="method"]
  .desktop-flow-workspace
  .method-card {
    min-height: 106px;
    padding: 17px 18px;
    border-radius: 20px;
  }

  .screen[data-screen="method"]
  .desktop-flow-workspace
  .page-action {
    min-height: 54px;
    margin-top: 18px;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .page-header,
  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .content--page {
    max-width: 640px;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-card {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-row {
    min-height: 112px;
    padding: 20px 22px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-row:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-row:nth-child(n + 3) {
    border-bottom: 0;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-row strong {
    max-width: 100%;
    font-size: 19px;
    text-align: left;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .confirm-actions {
    margin-top: 18px;
  }
}

@media (
  min-width: 900px
) and (
  max-height: 760px
) {
  .desktop-flow-aside,
  .desktop-flow-workspace {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .desktop-flow-copy {
    margin-top: 25px;
  }

  .desktop-flow-copy h2 {
    font-size: 27px;
  }

  .desktop-flow-quote,
  .desktop-flow-notice,
  .desktop-flow-progress {
    margin-top: 16px;
  }

  .desktop-flow-progress li {
    min-height: 43px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .desktop-flow-workspace .page-header {
    margin-bottom: 16px;
  }

  .screen[data-screen="method"]
  .desktop-flow-workspace
  .method-card {
    min-height: 88px;
  }

  .screen[data-screen="confirm"]
  .desktop-flow-workspace
  .summary-row {
    min-height: 91px;
  }
}



/* TELEGRAM_APP_PROMO_V1 */

.telegram-app-promo {
  display: flex;
  width: 100%;
  min-height: 64px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(9, 38, 30, 0.10);
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--green-900);
  text-decoration: none;
  box-shadow: 0 9px 25px rgba(9, 38, 30, 0.07);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.telegram-app-promo:hover {
  border-color: rgba(9, 38, 30, 0.20);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(9, 38, 30, 0.11);
}

.telegram-app-promo:active {
  transform: scale(0.985);
}

.telegram-app-promo[hidden] {
  display: none;
}

.telegram-app-promo__icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #229ed9;
  box-shadow:
    0 6px 16px rgba(34, 158, 217, 0.22);
}

.telegram-app-promo__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.telegram-app-promo__copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.telegram-app-promo__copy strong,
.telegram-app-promo__copy small {
  display: block;
}

.telegram-app-promo__copy strong {
  font-size: 14px;
  font-weight: 720;
  line-height: 1.3;
}

.telegram-app-promo__copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.35;
}

.telegram-app-promo__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

@media (
  min-width: 900px
) and (
  max-height: 760px
) {
  .telegram-app-promo {
    min-height: 52px;
    margin-top: 10px;
    padding: 8px 10px;
  }

  .telegram-app-promo__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .telegram-app-promo__copy small {
    display: none;
  }
}

/* ONE_EXCHANGE_HIDE_ORDERS_TEMP */
.profile-menu button[hidden],
.bottom-nav button[hidden] {
  display: none !important;
}

/* ONE_EXCHANGE_TWO_ITEM_NAV */
.bottom-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
