/* Just eSIM × S7 — перенос макета Claude Design (S7Screen.dc.html). Значения 1:1, cqw → vw.
   Сетка — как на justesim.com: контейнер 1024px, поля 16px, внутренние отступы карточек 24px (mobile) / 32px (от 768px). */

@font-face {
  font-family: 'Haffer';
  src: url('fonts/HafferMedium.woff2') format('woff2'), url('fonts/HafferMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; background: #E7E6E2; }
body { -webkit-font-smoothing: antialiased; }
a { color: #000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { opacity: .65; }

button { font: inherit; color: inherit; background: none; border: 0; margin: 0; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }

.page {
  font-family: 'Haffer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #000;
  background: #E7E6E2;
  overflow: hidden;
}

/* ---------- шапка ---------- */
.header { display: flex; align-items: center; gap: 14px; max-width: 1024px; margin: 0 auto; padding: clamp(14px, 1.8vw, 26px) 16px; }
.header__jes { width: 40px; height: 40px; display: block; }
.header__sep { width: 1px; height: 24px; background: #C9C8C3; }
.header__s7 { width: 38px; height: 38px; display: block; }

/* ---------- хиро ---------- */
.hero { text-align: center; max-width: 1024px; margin: 0 auto; padding: clamp(22px, 3.6vw, 56px) 16px 0; }
.hero__title { margin: 0 auto; max-width: 900px; font-size: clamp(34px, 6vw, 86px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #DF0C99, #4D4DE9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: clamp(14px, 2vw, 26px) auto 0; max-width: 640px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; color: #4A4A4A; text-wrap: pretty; }

.codes__label { margin-top: clamp(22px, 3vw, 36px); font-size: 14px; color: #4A4A4A; }
.codes__list { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }

.plashka {
  display: block;
  width: min(100%, 420px);
  box-sizing: border-box;
  padding: 16px 24px;
  border-radius: 40px;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 100%), linear-gradient(#FFF, #FFF);
  box-shadow: 0 4px 84px rgba(0,0,0,.15), 0 2px 10px rgba(0,0,0,.05);
  transition: background .25s ease;
}
.plashka[data-copied] { background: linear-gradient(rgba(0,0,0,.03) 0%, rgba(0,0,0,0) 100%), linear-gradient(#BDDC03, #BDDC03); }
.plashka__code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: clamp(22px, 2vw, 28px); letter-spacing: 0.06em; font-weight: 500; }
/* высота подписи зафиксирована: смена «Нажмите, чтобы скопировать» → «Скопировано» не двигает вёрстку */
.plashka__sub { font-size: 13px; line-height: 18px; height: 18px; overflow: hidden; white-space: nowrap; color: #4A4A4A; margin-top: 6px; }
.plashka[data-copied] .plashka__sub::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5 4.5 9.5 10.5 2.5' fill='none' stroke='%234A4A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.codes__multi { margin: 14px auto 0; max-width: 440px; font-size: 14px; line-height: 1.45; color: #4A4A4A; }

.nocode {
  margin: clamp(22px, 3vw, 36px) auto 0;
  max-width: 520px;
  background: linear-gradient(rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 100%), linear-gradient(#FFF, #FFF);
  border-radius: 40px;
  padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px);
  box-shadow: 0 4px 84px rgba(0,0,0,.15), 0 2px 10px rgba(0,0,0,.05);
}
.nocode__title { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.01em; }
.nocode__text { margin-top: 10px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: #4A4A4A; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 420px); margin: clamp(20px, 2.6vw, 32px) auto 0; }
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 18px; border-radius: 999px; flex: 1 1 0;
  background: #000; color: #FFF; font-size: 18px; text-decoration: none; letter-spacing: -0.01em;
}
.store svg { flex: none; }
.store__apple { width: 20px; height: 20px; }
.store__play { width: 18px; height: 18px; }

/* стеклянные плитки — раскладка как на главной justesim.com */
.glass { position: relative; width: 100%; max-width: 50%; margin: clamp(20px, 3vw, 44px) auto 0; pointer-events: none; }
.glass img { display: block; width: 100%; height: auto; }
.glass__front { position: relative; z-index: 3; }
.glass__side { position: absolute; left: 5%; right: 5%; height: 200%; transform-origin: bottom; }
.glass__side--l { top: 20px; z-index: 2; transform: translateX(-30%) rotate(-10deg); }
.glass__side--r { top: 0; z-index: 1; transform: translateX(20%) rotate(15deg); }

/* ---------- секции и карточки ---------- */
.sec { max-width: 1024px; margin: 0 auto; padding: clamp(32px, 4.4vw, 72px) 16px 0; }
.card {
  background: linear-gradient(rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 100%), linear-gradient(#FFF, #FFF);
  border-radius: 40px;
  box-shadow: 0 4px 84px rgba(0,0,0,.15), 0 2px 10px rgba(0,0,0,.05);
}
.h2 { margin: 0 auto; font-size: clamp(26px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-align: center; text-wrap: balance; }

/* иконка — по верхнему краю текста */
.row { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.row svg { width: 26px; height: 26px; flex: none; }
.row__text { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; }

/* условия */
.terms { padding: 24px; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 22px); }
.terms .h2 { margin: 0 auto 4px; }

/* как получить */
.howto { padding: 24px; }
.tabs { display: flex; justify-content: center; margin-top: clamp(18px, 2.4vw, 32px); }
.tabs__track { display: inline-flex; background: #E7E6E2; border-radius: 999px; padding: 4px; gap: 4px; max-width: 100%; }
.tab {
  padding: 10px 18px; border-radius: 999px; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.25;
  cursor: pointer; transition: all .2s ease; text-align: center; flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #6A6A66;
}
.tab.is-active { background: #FFF; color: #000; box-shadow: 0 1px 4px rgba(0,0,0,.10); }

.steps { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(24px, 3vw, 44px); max-width: 760px; margin-left: auto; margin-right: auto; }
.step { display: flex; gap: clamp(14px, 1.6vw, 22px); align-items: flex-start; text-align: left; }
.step__n { flex: none; width: 34px; height: 34px; border-radius: 999px; background: #BDDC03; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.step__t { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em; }
.step__d { margin-top: 5px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: #4A4A4A; }

.car { position: relative; margin-top: clamp(28px, 3.2vw, 48px); }
.car__arrow {
  position: absolute; top: 36%; width: 44px; height: 44px; border-radius: 999px; background: #FFF;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 8px 28px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; padding: 0;
}
.car__arrow svg { width: 20px; height: 20px; }
.car__arrow--l { left: -6px; }
.car__arrow--r { right: -6px; }
.car__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.car__track::-webkit-scrollbar { display: none; }
.car__card { flex: none; width: clamp(200px, 19vw, 250px); scroll-snap-align: start; }
.car__card img { display: block; width: 100%; border-radius: 24px; }
.car__cap { margin-top: 10px; font-size: clamp(13px, 1.1vw, 15px); text-align: center; line-height: 1.35; }
.car__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.car__dots button { width: 7px; height: 7px; padding: 0; border-radius: 999px; background: #C9C8C3; transition: background .2s; cursor: pointer; }
.car__dots button.is-active { background: #000; }
/* все карточки помещаются — листать некуда */
.car[data-single-page] .car__arrow,
.car[data-single-page] .car__dots { display: none; }

@media (max-width: 767px) {
  .car__arrow { display: none; }
}

/* что такое eSIM */
.esim { padding: 24px; }
.esim .h2 { max-width: 800px; }
.esim__lead { margin: clamp(14px, 1.8vw, 24px) auto 0; max-width: 720px; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; color: #4A4A4A; text-wrap: pretty; text-align: center; }
.esim__rows { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 22px); max-width: 620px; margin: clamp(20px, 2.6vw, 36px) auto 0; }
.esim__note { margin: clamp(18px, 2.4vw, 30px) auto 0; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.5; color: #4A4A4A; max-width: 720px; text-align: center; }

/* FAQ */
.faq { padding: 24px; }
.faq__list { display: flex; flex-direction: column; margin: clamp(14px, 2vw, 28px) auto 0; max-width: 860px; }
.faq__item { border-bottom: 1px solid #E7E6E2; }
.faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 1.8vw, 24px) 0; cursor: pointer; text-align: left; }
.faq__qt { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -0.01em; }
.faq__icon { flex: none; transform: rotate(0deg); transition: transform .3s ease; }
.faq__item[data-open] .faq__icon { transform: rotate(45deg); }
.faq__body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
.faq__item[data-open] .faq__body { max-height: 260px; opacity: 1; }
.faq__a { padding: 0 0 clamp(16px, 1.8vw, 24px); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: #4A4A4A; max-width: 680px; text-align: left; }

/* поддержка */
.support { text-align: center; }
.support .card { padding: 24px; }
.support .h2 { text-wrap: wrap; }
.support__lead { margin: clamp(12px, 1.4vw, 18px) auto 0; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.45; color: #4A4A4A; }
.support__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 480px); margin: clamp(18px, 2.2vw, 28px) auto 0; }
.btn-dark, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 20px;
  border-radius: 999px; flex: 1 1 0; font-size: 17px; text-decoration: none; box-sizing: border-box;
}
.btn-dark { background: #000; color: #FFF; }
.btn-line { border: 1px solid #000; color: #000; }

/* финал */
.final { background: #000; border-radius: 40px; padding: clamp(40px, 6vw, 88px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(12px, 1.4vw, 18px); }
.final__title { margin: 0; color: #FFF; font-size: clamp(28px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.final__lead { margin: 0; color: rgba(255,255,255,.65); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.4; }
.final .stores { margin: clamp(8px, 1vw, 14px) auto 0; }
.final .store { background: #FFF; color: #000; letter-spacing: normal; }

/* футер */
.footer { max-width: 1024px; margin: 0 auto; padding: clamp(24px, 3vw, 44px) 16px clamp(28px, 3.4vw, 48px); text-align: center; }
.footer__brand { font-size: 13px; color: #4A4A4A; }
.footer__legal { font-size: 12px; color: #9A9994; margin-top: 6px; }

/* карточки от 768px — отступ 32px, как на главной */
@media (min-width: 768px) {
  .terms, .howto, .esim, .faq, .support .card { padding: 32px; }
  .final { padding-left: 32px; padding-right: 32px; }
}
