/* ==========================================================================
   Sections: page-specific layout, top to bottom
   ========================================================================== */

section { padding: 104px 0; }
section.tight-top { padding-top: 0; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.features .card p { color: var(--muted); font-size: 15px; }

/* ---------- plans ---------- */
#plans { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.plans__toggle { text-align: center; margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.plan--best {
  background: linear-gradient(180deg, #0f1d3d, var(--panel) 60%);
  border-color: rgba(63,184,255,.55); box-shadow: 0 30px 70px -35px rgba(31,123,255,.8);
}
.plan__badge {
  position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.plan h3 { font-size: 20px; font-weight: 700; }
.plan__sub { font-size: 13px; color: var(--muted); }
.plan__price { margin: 22px 0 4px; display: flex; align-items: flex-start; gap: 4px; font-family: var(--font-display); }
.plan__cur { font-weight: 700; font-size: 22px; margin-top: 8px; }
.plan__amt { font-weight: 800; font-size: 56px; line-height: 1; }
.plan__permonth { font-size: 13px; color: var(--muted); min-height: 21px; }
.plan__save { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ok); min-height: 18px; }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14px; color: #c9d2e3; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: rgba(31,123,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233fb8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan .btn { margin-top: auto; }
.plans__note { text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted); }
.plans__note a { color: var(--cyan); }
.plan__alt { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.plan__alt a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.plan__alt a:hover { color: var(--text); }

/* ---------- Checkout ---------- */
.checkout {
  max-width: 440px; margin: 0 auto; padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); text-align: center;
}
.checkout__plan { color: var(--muted); font-size: 15px; }
.checkout__total { font-size: 40px; font-weight: 700; margin: 4px 0 22px; }
.checkout__form { display: grid; gap: 12px; text-align: left; }
.checkout__form label { font-size: 14px; color: var(--muted); }
.checkout__form input {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); font: inherit; font-size: 16px;
  color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.checkout__form input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.checkout__form .btn:disabled { opacity: .6; cursor: default; }
.checkout__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.checkout__msg { min-height: 1.3em; font-size: 14px; color: var(--muted); text-align: center; }
.checkout__msg.is-error { color: #ff8080; }
.checkout__legal { font-size: 12px; color: var(--muted); text-align: center; }
.checkout__legal a { color: var(--muted); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; color: #c9d2e3; font-size: 16px; line-height: 1.7; }
.legal h2 { margin: 36px 0 10px; font-size: 20px; color: var(--text); }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal b { color: var(--text); }
.legal a { color: var(--cyan); }

.checkout__alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.checkout__alt a { color: var(--cyan); }

/* ---------- devices ---------- */
.devices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 46px; line-height: 1;
  background: linear-gradient(180deg, #2a3e6b, transparent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- final call to action ---------- */
.cta-band {
  border-radius: 26px; padding: 64px 40px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #133a8a 0%, #0a1a3d 45%, var(--panel) 100%);
  border: 1px solid #22386b;
}
.cta-band img { width: min(360px, 80%); margin: 0 auto 22px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #b9c5dc; margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 104px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer img { height: 24px; width: auto; }
.site-footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 76px 0; }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 22px; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.contact--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.contact__icon--wa { background: linear-gradient(180deg, #2fd16b, #12a150); }
.contact__icon--wa svg { width: 24px; height: 24px; fill: #fff; }
.contact__card {
  display: grid; gap: 6px; padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.contact__card:hover { border-color: rgba(63,184,255,.55); transform: translateY(-2px); }
.contact__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(180deg, #2aa3ef, #1c8ad6); color: #fff;
}
.contact__icon .icon-tg { width: 24px; height: 24px; }
.contact__icon--support { background: linear-gradient(180deg, var(--blue), var(--blue-2)); }
.contact__icon--support svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.contact__kind { font-size: 13px; color: var(--muted); }
.contact__card b { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.contact__cta { font-size: 14px; color: var(--cyan); margin-top: 6px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- multi-page: page headers, teaser, links ---------- */
.page-hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: 900px; height: 700px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(31,123,255,.18), transparent 70%);
}
.page-hero .wrap { position: relative; max-width: 820px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; margin: 16px 0 18px; letter-spacing: -.02em; }
.page-hero h1 em {
  font-style: italic; padding-right: .08em;
  background: linear-gradient(90deg, #8fd8ff, var(--cyan) 35%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { color: #a7b3c9; font-size: 18px; max-width: 620px; margin: 0 auto; }
.page-hero p a, .more-link a, .faq a { color: var(--cyan); }
.more-link { margin-top: 26px; text-align: center; color: var(--muted); }
.section-gap { margin-top: 104px; }

.teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 40px; border-radius: 22px; background: linear-gradient(120deg, #0f1d3d, var(--panel) 70%); border: 1px solid #22386b;
}
.teaser h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 12px 0 8px; }
.teaser p { color: var(--muted); }
.teaser__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.nav__links a[aria-current="page"] { color: var(--text); position: relative; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue);
}
@media (max-width: 760px) {
  .page-hero { padding: 56px 0 36px; }
  .section-gap { margin-top: 76px; }
  .teaser { padding: 28px 22px; }
  .teaser__ctas .btn { flex: 1 1 100%; }
}
