:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #666666;
  --color-accent: #d9fb4d;
  --color-accent-soft: rgba(217, 251, 77, 0.5);
  --color-teal: #017175;
  --color-teal-light: rgba(1, 113, 117, 0.3);
  --color-teal-border: #03d3db;
  --color-dark: #040404;
  --radius-card: 13px;
  --font-sans: "Montserrat", "Inter", system-ui, sans-serif;
  --page-max: 402px;
  --page-pad: 16px;
}

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

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

body {
  margin: 0 auto;
  width: 100%;
  max-width: min(100vw, var(--page-max));
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.4;
}

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

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

/* Header — iPhone 17 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 51px;
  padding: 9px var(--page-pad);
  background: #fff;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 69px;
  height: 31px;
}

.logo__pill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo__text {
  position: relative;
  z-index: 1;
  width: 52px;
}

.header__start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav--drawer {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px var(--page-pad);
  background: #fff;
  border-bottom: 1px solid #eee;
}

.nav--drawer a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lang-switch__btn {
  min-width: 40px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--color-dark);
  color: #fff;
}

body.nav-open .nav--drawer {
  display: flex;
}

/* Hero — Figma iPhone 17-1 / 12: текст сверху, телефон ниже без наложения */
.hero {
  position: relative;
  padding: 16px var(--page-pad) 8px;
  overflow: visible;
}

.hero__text {
  position: relative;
  width: 100%;
  max-width: 338px;
  margin-bottom: 4px;
}

.hero__text-img {
  display: block;
  width: 100%;
}

.hero__cta {
  position: absolute;
  left: 0;
  top: 88%;
  width: 54%;
  height: 12%;
  min-height: 28px;
  z-index: 3;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: clamp(420px, 105vw, 520px);
  margin-top: 4px;
  overflow: visible;
  pointer-events: none;
}

.hero__phone-wrap {
  position: relative;
  width: min(304px, 76vw);
  margin: 0 auto -24px;
  transform: translateX(-10%);
  flex-shrink: 0;
  pointer-events: auto;
}

/* Figma: Subtract 82/434, телефон 18/395 — кольцо привязано к макету телефона */
.hero__glow {
  position: absolute;
  left: 21%;
  top: -4%;
  width: 162.5%;
  max-width: 494px;
  height: auto;
  aspect-ratio: 1;
  transform: none;
  pointer-events: none;
  z-index: 0;
  filter: none;
}

.hero__phone {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  transform: rotate(21.22deg);
  transform-origin: center bottom;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
}

/* Features — Figma iPhone 17-11 / 24 */
.features {
  padding: 24px var(--page-pad) 32px;
}

.features__title {
  margin: 0 0 8px;
  text-align: center;
  color: var(--color-text);
}

.features__title-prefix {
  display: block;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.features__title-brand {
  display: block;
  font-size: clamp(40px, 12vw, 50px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.features__lead {
  margin: 0 0 24px;
  padding: 0 11px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  padding: 16px 18px;
  border-radius: 15px;
  background: #cce3e3;
  border: 1.5px solid #00feff;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.feature-card p + p {
  margin-top: 8px;
}

/* Marketplaces */
.marketplaces {
  padding: 8px var(--page-pad) 48px;
}

.mp-title {
  margin: 0 0 8px;
  padding-left: 23px;
  font-family: "Montserrat", var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: uppercase;
  color: #000000;
}

.mp-sub {
  margin: 0 0 24px;
  padding-left: 23px;
  font-family: "Montserrat", var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
  color: #757575;
  white-space: pre-line;
}

.mp-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 32px;
}

.mp-card {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-teal-border);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mp-card:active {
  transform: scale(0.99);
}

.mp-card--pinduoduo {
  background: var(--color-teal-light);
}

.mp-card--1688 {
  background: var(--color-teal);
  color: #fff;
}

.mp-card--poizon {
  background: var(--color-accent-soft);
}

.mp-card--taobao {
  background: var(--color-dark);
  color: #fff;
  border-color: #003330;
}

.mp-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mp-card__icon {
  width: 35px;
  height: auto;
  flex-shrink: 0;
}

.mp-card__logo {
  height: 20px;
  width: auto;
}

.mp-card__logo--light {
  filter: brightness(0) invert(1);
}

.mp-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 200;
  line-height: 1.4;
  font-family: "Inter", sans-serif;
}

.mp-card--1688 p,
.mp-card--taobao p {
  color: rgba(255, 255, 255, 0.95);
}

.mp-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mp-detail {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  scroll-margin-top: 72px;
}

@media (min-width: 430px) {
  html {
    background: #f0f0f0;
  }

  body {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }
}
