/* /esim/ — eSIM Купитур */
.page-esim {
  --esim-yellow: #FFD500;
  --esim-yellow-hover: #E6C000;
  --esim-orange: #FF5A36;
  --esim-purple: #8122EE;
  --esim-pale: #E9DDFF;
  --esim-teal: #2DD4BF;
  --esim-ink: #171717;
  --esim-muted: #4b5563;
  --esim-line: rgba(23, 23, 23, 0.1);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(255, 213, 0, 0.38), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 8%, rgba(129, 34, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(45, 212, 191, 0.1), transparent 50%),
    linear-gradient(180deg, #fffef8 0%, #fff 45%, #f7f5ff 100%);
  color: var(--esim-ink);
  overflow-x: clip;
}

.page-esim .esim-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.page-esim .esim-hero {
  padding: clamp(1.75rem, 4.5vw, 3rem) 0 clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  min-height: clamp(26rem, 68vw, 34rem);
}

.page-esim .esim-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--esim-purple);
}

.page-esim .esim-hero h1 {
  margin: 0 auto 0.85rem;
  max-width: 16ch;
  font-size: clamp(2.05rem, 6.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.page-esim .esim-hero-lead {
  margin: 0 auto 1.35rem;
  max-width: 38rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.5;
  color: var(--esim-muted);
}

.page-esim .esim-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.page-esim .esim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 14px;
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.page-esim .esim-btn:hover {
  transform: translateY(-1px);
}

.page-esim .esim-btn-yellow {
  background: var(--esim-yellow);
  color: var(--esim-ink);
}

.page-esim .esim-btn-yellow:hover {
  background: var(--esim-yellow-hover);
}

.page-esim .esim-btn-ghost {
  background: #fff;
  border-color: var(--esim-line);
  color: var(--esim-ink);
}

.page-esim .esim-hero-art {
  margin: 0 auto;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  background: #FFF9D6;
}

.page-esim .esim-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-esim .esim-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.page-esim .esim-section--soft {
  background: rgba(255, 255, 255, 0.55);
}

.page-esim .esim-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-esim .esim-section-lead {
  margin: -0.5rem 0 1.25rem;
  color: var(--esim-muted);
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 36rem;
}

.page-esim .esim-benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .page-esim .esim-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-esim .esim-benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-esim .esim-benefit {
  background: #fff;
  border: 1px solid var(--esim-line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.page-esim .esim-benefit-ico {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 0.75rem;
}

.page-esim .esim-benefit h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.page-esim .esim-benefit p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--esim-muted);
}

.page-esim .esim-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .page-esim .esim-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-esim .esim-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--esim-line);
}

.page-esim .esim-step-n {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--esim-purple);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-esim .esim-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.page-esim .esim-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--esim-muted);
}

.page-esim .esim-country {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  max-width: 360px;
}

.page-esim .esim-country-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--esim-muted);
}

.page-esim .esim-country-select {
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid var(--esim-line);
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-weight: 650;
  background: #fff;
  color: var(--esim-ink);
}

.page-esim .esim-country-select:focus {
  outline: none;
  border-color: var(--esim-yellow);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.35);
}

.page-esim .esim-packages {
  min-height: 140px;
  margin-bottom: 1.5rem;
}

.page-esim .esim-pkg-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .page-esim .esim-pkg-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-esim .esim-pkg-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-esim .esim-pkg {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 112px;
  text-align: left;
  padding: 1.05rem 1.15rem;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-esim .esim-pkg:hover {
  border-color: var(--esim-yellow);
}

.page-esim .esim-pkg.is-active {
  border-color: var(--esim-yellow);
  background: linear-gradient(165deg, #FFF9D6 0%, #fff 65%);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.28);
}

.page-esim .esim-pkg__info {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.page-esim .esim-pkg__data {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-esim .esim-pkg__per {
  font-size: 0.62em;
  font-weight: 750;
  color: var(--esim-purple);
  margin-left: 0.15em;
  letter-spacing: 0;
}

.page-esim .esim-pkg--daily {
  border-color: rgba(129, 34, 238, 0.28);
  background: linear-gradient(180deg, #faf7ff 0%, #fff 70%);
}

.page-esim .esim-pkg--daily.is-active {
  border-color: var(--esim-purple);
  box-shadow: 0 0 0 2px rgba(129, 34, 238, 0.18);
}

.page-esim .esim-pkg__days {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--esim-muted);
}

.page-esim .esim-pkg__price {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: var(--esim-yellow);
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 559px) {
  .page-esim .esim-pkg {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
  }
  .page-esim .esim-pkg__price {
    align-self: center;
    flex-shrink: 0;
  }
}

.page-esim .esim-skel {
  display: grid;
  gap: 0.65rem;
}

.page-esim .esim-skel__row {
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eee 0%, #f7f7f7 50%, #eee 100%);
  background-size: 200% 100%;
  animation: esim-skel 1.2s ease-in-out infinite;
}

@keyframes esim-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.page-esim .esim-hint {
  margin: 0.5rem 0 0;
  color: var(--esim-muted);
  font-size: 0.95rem;
}

.page-esim .esim-order {
  background: #fff;
  border: 2px solid var(--esim-pale);
  border-radius: 20px;
  padding: 1.25rem 1.3rem 1.4rem;
  max-width: 520px;
  box-shadow: 0 8px 28px rgba(129, 34, 238, 0.08);
}

.page-esim .esim-order-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.page-esim .esim-order-picked {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--esim-purple);
}

.page-esim .esim-order-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-esim .esim-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page-esim .esim-field span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--esim-muted);
}

.page-esim .esim-field input {
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--esim-line);
  padding: 0.55rem 0.85rem;
  font: inherit;
}

.page-esim .esim-field input:focus {
  outline: none;
  border-color: var(--esim-yellow);
}

.page-esim .esim-order-submit {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
}

.page-esim .esim-promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.page-esim .esim-promo-row input {
  flex: 1;
  min-width: 0;
}
.page-esim .esim-promo-apply {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 750;
}
.page-esim .esim-promo-hint {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--esim-muted);
}
.page-esim .esim-promo-hint.is-ok {
  color: #0f766e;
}
.page-esim .esim-promo-hint.is-error {
  color: #b91c1c;
}
.page-esim .esim-pay-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #faf6ff;
  border: 1px solid var(--esim-pale);
}
.page-esim .esim-pay-sum span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--esim-muted);
}
.page-esim .esim-pay-sum strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
}
.page-esim .esim-pay-sum s {
  font-size: 0.95rem;
  font-weight: 650;
  color: #94a3b8;
}
.page-esim .esim-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 0.85rem;
}
.page-esim .esim-pay-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
}
.page-esim .esim-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--esim-muted);
}
.page-esim .esim-agree a {
  color: var(--esim-purple);
  font-weight: 700;
}
.page-esim .esim-hint.is-error {
  color: #b91c1c;
}
.page-esim .esim-hint.is-ok {
  color: #0f766e;
}
.page-esim .esim-success {
  max-width: 560px;
  margin: 2.5rem auto;
  padding: 0 1rem 3rem;
  text-align: center;
}
.page-esim .esim-success h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.page-esim .esim-profiles {
  display: grid;
  gap: 12px;
  margin: 1.25rem 0;
  text-align: left;
}
.page-esim .esim-profile-card {
  background: #fff;
  border: 1px solid var(--esim-line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.page-esim .esim-profile-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.page-esim .esim-profile-card code {
  word-break: break-all;
  font-size: 0.85rem;
}
.page-esim .esim-success-meta {
  margin: 0 0 0.75rem;
  font-weight: 750;
  color: var(--esim-purple);
}
.page-esim .esim-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}
.page-esim .esim-qr-img {
  width: min(240px, 70vw);
  height: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--esim-line);
}
.page-esim .esim-qr-note {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--esim-muted);
  font-weight: 650;
}
.page-esim .esim-install-guide {
  text-align: left;
  max-width: 440px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--esim-line);
  border-radius: 16px;
}
.page-esim .esim-install-guide h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}
.page-esim .esim-install-guide ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--esim-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.page-esim .esim-install-guide li {
  margin-bottom: 0.45rem;
}
.page-esim .esim-install-guide strong {
  color: #171717;
}

.page-esim .esim-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
}

.page-esim .esim-faq-item {
  background: #fff;
  border: 1px solid var(--esim-line);
  border-radius: 14px;
  padding: 0.85rem 1.05rem;
}

.page-esim .esim-faq-item summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.page-esim .esim-faq-item summary::-webkit-details-marker {
  display: none;
}

.page-esim .esim-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--esim-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}
