/* ============================================================
   1tab — Thailand landing. Layout + motion glue.
   Tokens & type come from colors_and_type.css (loaded first).
   ============================================================ */

:root {
  --footer-green: #1F402D;
  --container: 1240px;
  --gutter: 40px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--fg-primary);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Typographic helpers tuned for this page ===== */
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; line-height: 1.04; }
.spaceland { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 2px; }
.lede { font-family: var(--font-body); font-size: 17px; line-height: 26px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 34px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { width: 78px; height: auto; flex: 0 0 auto; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.nav a {
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: opacity .18s var(--ease);
}
.nav a:hover { opacity: .55; }

.header__actions { display: flex; align-items: center; gap: 16px; width: fit-content; }
/* ===== Outline button (1tab DS) =====
   Default sits on the deep-green / dark surfaces → white ink.
   .pill-dark is the light-surface (white / soft-pink) colorway → black ink. */
.pill-outline, .pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
/* Dark / green surface — white outline */
.pill-outline { border-color: #fff; color: #fff; }
.pill-outline:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.6); }

/* Hero Telegram CTA — DS outline button, inverse colorway, with icon */
.hero__tg { margin-top: 32px; }
.hero__tg .pill-outline { gap: 10px; }
.hero__tg .pill-outline img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.lang {
  position: relative;
}
.lang__sel {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  color: #fff;
  transition: opacity .18s var(--ease);
  /* Composite icon + label onto one GPU layer so the whole component fades
     as a single flat unit — prevents the globe's thin lines re-rasterizing
     (shimmering) during the opacity transition. */
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.lang__sel:hover { opacity: .55; }
.lang__globe { width: 26px; height: 26px; display: block; transform: none; transition: none; }
.lang__txt {
  font-family: var(--font-title);
  font-size: 18px; line-height: 25px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #fff;
}
.lang__menu {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  width: 180px; background: #fff;
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: none; flex-direction: column; gap: 10px;
}
.lang.open .lang__menu { display: flex; }
.lang__item {
  font-family: var(--font-body);
  font-size: 15px; line-height: 25px; color: #000; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 0 0 14px; border-bottom: 1px solid rgba(0,0,0,.1);
  transition: color .18s var(--ease);
}
.lang__item:last-child { border: 0; padding-bottom: 0; }
.lang__item:hover { color: var(--accent); }
.lang__item.on { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  width: 22px; height: 2px;
  background: #fff; transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-primary);
  padding: 184px 0 0;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}
.hero__title {
  color: #fff;
  font-size: 48px;
  line-height: 1.2;
  max-width: 13ch;
}
.hero__desc {
  color: rgba(255,255,255,.92);
  margin-top: 24px;
  max-width: 46ch;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}
.stat {
  border-left: 1px solid rgba(255,255,255,.28);
  padding: 16px 24px;
  min-width: 150px;
}
.stat__num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat__label {
  font-size: 15px;
  line-height: 20px;
  color: rgba(255,255,255,.66);
  margin-top: 8px;
  max-width: 18ch;
}

/* hero form card */
.form-card {
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 500; font-size: 17px; }
.field input {
  height: 50px;
  border: 1px solid #CCCCCC;
  background: #F0F0F0;
  border-radius: 8px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--fg-primary);
  outline: none;
  transition: border-color .18s var(--ease);
}
.field input::placeholder { color: #999; }
.field input:focus { border-color: #000; }

.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-pill);
  background: #2B2B2B;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: background 120ms ease;
}
.btn-primary:hover { background: #4D4D4D; }
.btn-primary:active { background: #4D4D4D; }
.btn-primary:disabled { background: #9E9E9E; cursor: not-allowed; }

.msg-row { display: flex; gap: 12px; margin-top: 12px; }
.btn-msg {
  flex: 1;
  height: 48px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 400; font-size: 16px; color: #000;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn-msg img { width: 22px; height: 22px; display: block; }
.btn-msg, .btn-msg:hover { color: #000; }
.btn-msg:hover { background: var(--bg-quaternary); border-color: var(--fg-secondary); }
.disclaimer {
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0,0,0,.7);
  margin-top: 16px;
}

/* ticker */
.ticker {
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  animation: ticker 60s linear infinite;
  will-change: transform;
}
.ticker__item {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  line-height: 1.2;
  color: #F6C2CE;
  padding: 0 24px;
  display: inline-flex; align-items: center;
}
.ticker__item .divider {
  display: inline-block;
  width: 1px; height: 0.9em;
  background: currentColor;
  opacity: .3;
  margin: 0 24px 0 0;
  vertical-align: middle;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   WHITE SURFACE WRAPPER
   ============================================================ */
.surface {
  background: #fff;
  border-radius: 40px 40px 0 0;
  position: relative;
  overflow: hidden;
}
.section { padding: 96px 0; }
#process, #estate, #pay, #currency { padding-left: 40px; padding-right: 40px; }
.section--pink { background: var(--bg-secondary); }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 1.33; color: #17130E; letter-spacing: -0.01em;
}
.section-head p { margin-top: 16px; color: #2C271F; }

/* ===== Process ===== */
.process-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  color: #fafafa;
  background: var(--bg-primary); /* fallback so white text always reads if photo is slow/missing */
}
.process-card__media {
  position: absolute; inset: -10% 0;
  z-index: 0;
  will-change: transform, opacity;
  transition: opacity .35s var(--ease);
}
.process-card__media.is-swapping { opacity: 0; }
.process-card__bg {
  position: absolute; inset: 0;
  background: var(--bg-primary) center/cover no-repeat;
  filter: blur(30px) brightness(.82);
  transform: scale(1.18);
}
.process-card__photo {
  position: absolute; inset: 0;
  background: center/contain no-repeat;
}
.process-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.52));
  z-index: 1;
}
.process-card > *:not(.process-card__media) { position: relative; z-index: 2; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 12px; align-items: baseline;
  font-weight: 700; font-size: 20px; letter-spacing: -0.25px;
  color: rgba(250,250,250,.5);
  cursor: pointer;
  transition: color .25s var(--ease);
}
.step.active { color: #fafafa; }
.step:hover { color: rgba(250,250,250,.85); }
.step__n { opacity: .8; min-width: 26px; }
.process-detail h3 {
  margin-bottom: 16px;
  color: #fff;
}
.process-detail p { font-size: 17px; line-height: 28px; color: rgba(250,250,250,.92); margin-bottom: 14px; }

/* ===== Freehold / Leasehold ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.estate-card__img {
  height: 380px; border-radius: 24px; overflow: hidden;
  position: relative; background: #e9ded9;
}
.estate-card__img img { position: absolute; top: -60px; left: 0; width: 100%; height: calc(100% + 120px); object-fit: cover; filter: brightness(0.82); will-change: transform; }
.estate-card__img figcaption {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 13px; color: #fff; background: rgba(0,0,0,.35);
  padding: 6px 14px; border-radius: var(--radius-pill); backdrop-filter: none;
}
.estate-card h3 {
  margin: 28px 0 12px;
}
.estate-card .lead-line { font-weight: 600; font-size: 17px; color: #17130E; margin-bottom: 12px; }
.estate-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.estate-list li { position: relative; padding-left: 24px; font-size: 17px; line-height: 27px; color: #17130E; }
.estate-list li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ===== Payments ===== */
.pay-head { display: block; margin-bottom: 48px; }
.pay-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.33; color: #17130E; letter-spacing: -0.01em; max-width: calc(50% - 16px); }
.pay-head p { color: #2C271F; max-width: calc(50% - 16px); margin-top: 24px; }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-card {
  background: rgba(0,0,0,.04);
  border-radius: 16px;
  padding: 32px;
}
.pay-card__icon { width: 32px; height: 32px; margin-bottom: 16px; color: var(--bg-primary); }
.pay-card__icon svg { width: 100%; height: 100%; display: block; }
.pay-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.46; text-transform: none; letter-spacing: 0; margin-bottom: 8px; color: #17130E; }
.pay-card p { font-size: 15px; line-height: 25px; color: #17130E; }

/* ===== Any currency / Any source ===== */
.currency-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 56px;
}
.currency-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.currency-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.currency-card__head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 1.18; color: #17130E; letter-spacing: -0.01em;
}
.currency-list { list-style: none; display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.currency-list li {
  position: relative; padding-left: 40px;
  font-size: 17px; line-height: 26px; color: #17130E;
}
.currency-list li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 15px no-repeat;
}


/* ===== Audience ===== */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.aud { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.aud__icon { width: 56px; height: 56px; }
.aud h3 { color: #000; }
.aud p { font-size: 15px; line-height: 25px; color: #000; max-width: 34ch; }
.center-btn { display: flex; justify-content: center; }
/* Light surface (white / soft-pink) — black outline */
.pill-dark { border-color: #000; color: #000; }
.pill-dark:hover { background: var(--bg-quaternary); border-color: #999; color: #000; }

/* ===== Reviews ===== */
.reviews-wrap { display: flex; align-items: center; gap: 56px; }
.carousel { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.carousel__track { display: flex; gap: 56px; transition: transform .5s var(--ease); }
.review { flex: 0 0 calc((100% - 112px) / 3); display: flex; flex-direction: column; gap: 20px; }
.review__photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; background: #d9d9d9; }
.review__photo img { width: 100%; height: 100%; object-fit: cover; }
.review__text { font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.46; color: #000; }
.review__name { font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.46; color: #000; }
.review__role { font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.46; color: #000; }
.car-arrow {
  flex: 0 0 48px;
  width: 48px; height: 48px; border-radius: 50%; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms ease;
}
.car-arrow:hover { background: #4D4D4D; }
.car-arrow svg { width: 20px; height: 20px; fill: #fff; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 2px solid rgba(0,0,0,.18); }
.faq-item:last-child { border-bottom: 2px solid rgba(0,0,0,.18); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--font-body); font-size: 17px; color: #000;
}
.faq-q .chev { width: 18px; height: 11px; flex: 0 0 18px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a p { font-size: 15px; line-height: 25px; color: rgba(0,0,0,.62); padding: 0 0 24px; max-width: 92%; }

/* ===== CTA ===== */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
  padding: 40px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background-color: #16100b;
}
.cta-banner__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(22,16,11,0.62);
}
.cta-banner__copy, .cta-banner .cta-form { position: relative; z-index: 2; }
.cta-banner__copy { color: #fff; }
.cta-banner__copy h2 {
  color: #fff;
}
.cta-banner__copy p {
  margin: 20px 0 36px; color: rgba(255,255,255,0.86);
  font-family: var(--font-body); font-size: 17px; line-height: 26px; max-width: 46ch;
}
/* messenger buttons sit on the dark image → white outline */
.cta-banner .btn-msg { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.cta-banner .btn-msg img { filter: brightness(0) invert(1); }
.cta-banner .msg-row { flex-wrap: wrap; }
.cta-banner .msg-row .btn-msg { flex: 0 0 auto; padding: 0 24px; }
.cta-banner .btn-msg:hover { background: rgba(255,255,255,0.10); border-color: #fff; color: #fff; }
.cta-form {
  background: #F8F8F8; border-radius: 24px; padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

/* ===== Map / pre-footer ===== */
.map {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 110px 0;
}
.map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.map__world {
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.map__inner { position: relative; z-index: 2; max-width: 600px; }
.map h2 { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; color: #fff; letter-spacing: -0.01em; }
.map .pill-outline { display: inline-flex; margin-top: 40px; }

/* ===== Footer (как в HTML-версии 1tab.co) ===== */
.footer { background: var(--footer-green); color: #fff; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { opacity: .6; }
.footer__content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  gap: 40px 0;
  grid-template-areas:
    "logo contacts contacts contacts"
    ".    socials  partners policies";
  grid-template-columns: max-content max-content 1fr max-content;
  align-items: center;
}
.footer__containerForLogo { grid-area: logo; }
.footer__logo { margin-right: 120px; height: 44px; width: auto; }
.footer__containerForContacts { grid-area: contacts; display: flex; flex-direction: column; gap: 24px; }
.footer__contacts-row { display: flex; column-gap: 40px; }
.footer__textAdress { color: #fff; font-family: var(--font-body); font-size: 15px; line-height: 20.5px; }
.footer__textAdress--accent { color: #4CA188; white-space: nowrap; }
.footer__containerForSocials { grid-area: socials; display: flex; column-gap: 20px; padding-right: 60px; align-items: center; }
.footer__containerForSocials svg, .footer__containerForSocials img { display: block; height: 30px; width: 30px; }
.footer__containerForSocials a { display: inline-flex; align-items: center; justify-content: center; transition: none; }
.footer__containerForSocials a:hover { opacity: 1; }
.footer__containerForSocials a svg path { transition: fill 120ms var(--ease); }
.footer__containerForSocials a:hover svg path { fill: #B3B3B3; }
.footer__containerForPartners { grid-area: partners; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.footer__containerForPartners img { filter: invert(1) brightness(2); height: 18px; width: auto; }
.footer__containerForPolicies { grid-area: policies; display: grid; gap: 30px; grid-template-columns: repeat(3, max-content); align-items: center; }
.footer__textSmall { color: #fff; font-family: var(--font-body); font-size: 13px; line-height: normal; margin: 0; }
.footer__only-mobile { display: none; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  padding: 28px var(--gutter) 40px;
}
.mobile-menu.open { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__head img { width: 78px; }
.mobile-menu__close { width: 44px; height: 44px; border: none; border-radius: 50%; position: relative; }
.mobile-menu__close::before, .mobile-menu__close::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 21px; height: 2px; background: #fff;
}
.mobile-menu__close::before { transform: rotate(45deg); }
.mobile-menu__close::after { transform: rotate(-45deg); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.mobile-menu nav a {
  color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2;
  padding: 10px 0; opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .14s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .20s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .26s; }
.mobile-menu .pill-outline { margin-top: auto; text-align: center; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Scroll-reveal disabled — per request, only interactive elements animate.
   Non-clickable cards, icons and text render statically (no fade/slide-in). */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .nav, .header__actions .pill-outline { display: none; }
  .header__actions .lang { display: block; }
  .header__actions { gap: 20px; }
  .burger { display: flex; }

  .hero { padding-top: 132px; }
  .hero__grid { grid-template-columns: 100%; gap: 40px; }
  .hero__grid > *, .cta-banner > * { min-width: 0; }
  .cta-form { width: 100%; max-width: 100%; }
  .hero__title { font-size: 34px; line-height: 1.2; max-width: 100%; width: 100% !important; text-align: center !important; }
  .hero__desc { width: 100% !important; max-width: 100%; text-align: center !important; }
  .hero__copy { text-align: center; justify-self: center; width: 100% !important; max-width: 528px; }
  .hero__tg { text-align: center; }
  .stats { justify-content: center; flex-wrap: nowrap; }
  .stats .stat { text-align: left; }
  .form-card { width: 100%; min-width: 0; max-width: 560px; justify-self: center; }

  .process-card {
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: stretch;
    gap: 32px;
    height: 560px !important; min-height: 560px;
  }
  .process-card .steps { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .process-card .step { gap: 8px; }
  .process-card .step__n { min-width: 0; }
  .process-card .step:not(.active) { color: rgba(250,250,250,.6); }
  .process-card .step:not(.active) > span:not(.step__n) { display: none; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-head { grid-template-columns: 1fr; gap: 16px; }
  .pay-head h2, .pay-head p { max-width: 100%; }
  .pay-head h2 { font-size: 28px; line-height: 1.33; }
  .aud-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-banner { grid-template-columns: 100%; gap: 40px; padding: 40px; }
  .cta-banner__copy { text-align: center; }
  .cta-banner__copy p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cta-banner .msg-row { justify-content: center; margin-left: auto; margin-right: auto; }
  .cta-banner .cta-form { justify-self: center; }
  /* map → full-bleed background behind the text */
  .map { overflow: hidden; }
  .map__grid { display: block; }
  .map__world {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none;
    object-fit: cover; object-position: center;
    z-index: 0;
  }
  .map__inner { position: relative; z-index: 2; max-width: 100%; }
  .review { flex-basis: calc((100% - 56px) / 2); }
  .section-head h2 { font-size: 28px; line-height: 1.33; }
  .currency-photo { aspect-ratio: 3 / 2; margin-bottom: 36px; }
  .currency-card { grid-template-columns: 1fr; gap: 28px; }
  .currency-card__head h2 { font-size: 28px; line-height: 1.33; }

  /* footer → two-row collapse with hairline separators */
  .footer__content {
    --gap: 64px; --line-width: 1px;
    grid-template-areas:
      "contacts contacts contacts"
      "socials  socials  partners"
      "policies policies policies";
    grid-template-columns: max-content 1fr max-content;
    row-gap: var(--gap);
  }
  .footer__content > * { position: relative; }
  .footer__content > *::before {
    content: ""; position: absolute; bottom: calc(var(--gap) / -2 - var(--line-width));
    width: 100%; border-bottom: var(--line-width) solid hsla(0,0%,100%,.2);
  }
  /* row 2 (socials + bestchange) have different heights — bottom-align them
     so their two divider segments line up into one continuous hairline */
  .footer__containerForSocials, .footer__containerForPartners { align-self: end; }
  .footer__containerForLogo { display: none; }
  .footer__containerForPolicies::before { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .two-col { padding-left: 0 !important; padding-right: 0 !important; }
  .section { padding: 64px 0; }

  /* sections with inline 40px side padding → unify to 16px edges */
  #process, #estate, #pay, #currency { padding-left: 16px !important; padding-right: 16px !important; }
  #process > .container, #estate > .container, #pay > .container, #currency > .container { padding-left: 0 !important; padding-right: 0 !important; }

  .hero { padding-top: 112px; }
  .hero__title { font-size: 28px; line-height: 1.2; text-align: left !important; }
  .hero__copy { max-width: 100%; }
  .hero__desc { font-size: 17px; line-height: 27px; width: 100% !important; max-width: 100%; text-align: left !important; }
  .stat { min-width: 0; flex: 1 1 100%; }
  .stats { gap: 12px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .form-card, .cta-form { padding: 24px; border-radius: 24px; }
  .cta-banner { padding: 16px !important; }
  .cta-banner .cta-form { width: 100% !important; }
  .ticker__item { font-size: 16px; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .pay-grid { grid-template-columns: 1fr; }
  .estate-card__img { height: 240px; }
  .process-card { padding: 28px 22px; height: 560px !important; min-height: 560px; }
  .process-card .step > span:not(.step__n) { display: none; }
  .surface { border-radius: 28px 28px 0 0; }

  .section-head { margin-bottom: 40px; }
  .section-head h2, .pay-head h2, .currency-card__head h2 { font-size: 24px; line-height: 1.33; }
  .cta-banner__copy h2, .map h2 { font-size: 24px; line-height: 1.33; }

  .review { flex-basis: 100%; align-items: center; text-align: center; }
  .carousel__track { gap: 24px; }
  .reviews-wrap { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .carousel { flex: 0 0 100%; order: 1; }
  .car-arrow { order: 2; }

  .msg-row { flex-direction: column; }
  .msg-row .btn-msg { flex: 0 0 48px; }

  /* footer → single column */
  .footer__content {
    --gap: 48px;
    grid-template-areas:
      "socials"
      "contacts"
      "partners"
      "policies";
    grid-template-columns: 1fr;
  }
  .footer__only-desktop { display: none; }
  .footer__only-mobile { display: block; }
  .footer__containerForSocials { padding-right: 0; }
  .footer__containerForPolicies { grid-template-columns: max-content 1fr; align-items: start; }
  .footer__containerForPolicies > p { grid-column: 1 / 3; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* The hero ticker is a continuous text strip, not decorative bounce —
     keep it scrolling even when the OS requests reduced motion. */
  .ticker__track { animation-duration: 60s !important; animation-iteration-count: infinite !important; }
}

/* ============================================================
   PROCESS STEPPER — pre-rendered detail panels
   ============================================================ */
.process-detail .pd-panel { display: none; }
.process-detail .pd-panel.active { display: block; }
