:root {
  color-scheme: light;
  --ink: #102a22;
  --ink-strong: #071f18;
  --muted: #66766f;
  --green: #087a5a;
  --green-strong: #056044;
  --green-soft: #eaf8f2;
  --line: #cfdfda;
  --line-strong: #a9d7c9;
  --surface: #ffffff;
  --page: #f5f8f7;
  --planned: #f7f9f8;
  --shadow: 0 18px 44px rgba(18, 54, 43, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

/* Шапка сохраняет компактную структуру макета и не перекрывает контент. */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid #e0e8e5;
}

.header-inner,
.page-main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 68px;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

/* Переключатель повторяет форму и размеры контрола Merchant Receipt. */
.language-control {
  position: relative;
}

.language-control summary {
  list-style: none;
}

.language-control summary::-webkit-details-marker {
  display: none;
}

.language-button {
  min-width: 92px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.language-button::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid #70807b;
  border-bottom: 2px solid #70807b;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-control[open] .language-button::after {
  transform: translateY(2px) rotate(225deg);
}

.language-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 35, 43, 0.08);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 132px;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 35, 43, 0.14);
}

.language-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.language-option:hover,
.language-option[aria-current="page"] {
  color: var(--green-strong);
  background: var(--green-soft);
}

/* Первый экран объясняет назначение экосистемы без рекламных обещаний. */
.page-main {
  padding: 58px 0 28px;
}

.hero {
  max-width: 850px;
  margin-bottom: 38px;
}

.eyebrow,
.service-kicker,
.service-status {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.4;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 12px;
  color: var(--ink-strong);
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.services {
  display: grid;
  gap: 16px;
}

.service-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.merchant-card {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  overflow: hidden;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.merchant-copy {
  padding: 34px 36px 32px;
}

.service-meta {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.merchant-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #087455;
  background: var(--green-soft);
  border: 1px solid #b8ddcf;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.service-status.planned {
  color: #76837f;
  background: var(--planned);
  border-color: #d8e0dd;
}

.service-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}

.service-card h2 {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.service-card p {
  color: var(--muted);
}

.merchant-copy > p {
  max-width: 520px;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 6px 9px;
  color: #36574d;
  background: #f9fbfa;
  border: 1px solid #d5e1dd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.primary-link {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.primary-link:hover {
  background: var(--green-strong);
}

.merchant-visual {
  min-height: 394px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #eef7f4;
}

.merchant-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.visual-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 1px;
  padding: 12px 16px;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.9);
  border-left: 3px solid var(--green);
  backdrop-filter: blur(8px);
}

.visual-caption strong {
  font-size: 14px;
}

.visual-caption small {
  color: var(--muted);
  font-size: 11px;
}

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

.planned-card {
  min-height: 304px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.planned-card .service-meta {
  min-height: 38px;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.planned-card h2 {
  font-size: 25px;
}

.planned-card p {
  margin-bottom: 20px;
  font-size: 14px;
}

.service-note {
  margin-top: auto;
  color: #84918d;
  font-size: 12px;
  font-weight: 600;
}

/* Карточка токена отделяет справочную информацию от каталога сервисов. */
.token-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 28px;
}

.token-logo {
  width: 60px;
  height: 60px;
}

.token-copy .eyebrow {
  margin-bottom: 2px;
}

.token-copy h2 {
  margin-bottom: 3px;
  font-size: 20px;
}

.token-copy p {
  margin-bottom: 0;
  font-size: 13px;
}

.token-link {
  color: var(--green-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.token-link:hover {
  text-decoration: underline;
}

.site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #dbe5e1;
  color: #82908b;
  font-size: 12px;
}

.footer-brand {
  color: var(--ink-strong);
  font-weight: 700;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 900px) {
  .merchant-card {
    grid-template-columns: 1fr;
  }

  .merchant-visual {
    min-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .planned-card {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .page-main {
    padding-top: 38px;
  }

  .hero {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 16px;
  }

  .merchant-copy,
  .planned-card {
    padding: 24px;
  }

  .service-card h2 {
    font-size: 26px;
  }

  .merchant-visual {
    min-height: 278px;
  }

  .visual-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .token-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .token-logo {
    width: 52px;
    height: 52px;
  }

  .token-link {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer,
  .footer-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    gap: 8px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 33px;
  }

  .merchant-copy,
  .planned-card {
    padding: 20px;
  }

  .feature-list li {
    font-size: 11px;
  }
}

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

  .language-button::after {
    transition: none;
  }
}
