.cert { padding-top: clamp(8px, 1vw, 16px); }
.cert .crumbs { margin-bottom: clamp(32px, 3.4vw, 56px); }

.cert-hero {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: center;
  padding-bottom: clamp(88px, 9vw, 150px);
}
.cert-hero-copy { grid-column: 1 / 3; }
.cert-title { font-size: clamp(34px, 4.3vw, 70px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.04; color: var(--text); }
.cert-title span { color: #B4B4B4; }
.cert-lead { margin: clamp(24px, 2.4vw, 40px) 0 clamp(28px, 3vw, 44px); max-width: 34em; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.5; color: var(--muted-2); text-wrap: balance; }

.gc {
  aspect-ratio: 1.58; border-radius: clamp(14px, 1.4vw, 22px); padding: clamp(16px, 1.6vw, 26px);
  display: flex; flex-direction: column; color: #fff;
  box-shadow: 0 24px 50px rgba(0,0,0,.14);
}
.gc b { font-size: clamp(14px, 1.2vw, 20px); font-weight: 700; letter-spacing: -0.04em; }
.gc em { font-style: normal; margin-top: 2px; font-size: clamp(11px, .8vw, 13px); font-weight: 500; opacity: .6; }
.gc > span { margin-top: auto; font-size: clamp(26px, 2.6vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.gc-front, .gc-live { background: linear-gradient(135deg, #2B2B2B 0%, var(--black) 100%); }
.gc-back { background: var(--accent); }
.cert-hero-pic { position: relative; aspect-ratio: 1.2; }
.cert-hero-pic .gc { position: absolute; width: 82%; }
.cert-hero-pic .gc-back { left: 0; top: 4%; transform: rotate(-8deg); }
.cert-hero-pic .gc-front { right: 0; bottom: 6%; transform: rotate(5deg); }

.cert-builder {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start;
  margin-bottom: var(--section-gap); scroll-margin-top: 96px;
}
.cert-form { grid-column: 1 / 3; display: grid; gap: var(--gap); }
.step { border: 0; margin: 0; min-width: 0; padding: clamp(22px, 2.4vw, 40px); border-radius: var(--r-card); background: var(--surface); }
.step-head { float: left; width: 100%; display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: clamp(18px, 1.8vw, 28px); font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.step-head + * { clear: both; }
.step-num { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.step-note { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }

.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount, .amount-own {
  height: 52px; border-radius: 200px; background: #fff; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.amount:hover { border-color: rgba(62,62,62,.25); }
.amount.is-on { background: var(--text); color: #fff; }
.amount-own { grid-column: span 2; display: flex; align-items: center; padding: 0 22px; cursor: text; }
.amount-own input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; }
.amount-own input::placeholder { color: var(--muted); font-weight: 500; }
.amount-own span { color: var(--muted); }
.amount-own.is-on { border-color: var(--text); }
.amount-own.is-bad { border-color: var(--accent); }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--gap); }
.person { display: grid; gap: 12px; align-content: start; }
.person h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }
.people .full { grid-column: 1 / -1; }
.inp { display: grid; gap: 6px; }
.inp > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.inp em { font-style: normal; font-weight: 500; color: var(--muted); }
.inp input, .inp textarea, .inp select.pick {
  width: 100%; height: 52px; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; outline: 0;
  background-color: #fff; font: 500 15px 'Manrope', Arial, sans-serif; letter-spacing: -0.3px; color: var(--text);
  transition: border-color .2s;
}
.inp textarea { height: auto; padding: 14px 20px; resize: vertical; min-height: 96px; line-height: 1.45; }
.inp input::placeholder, .inp textarea::placeholder { color: #B4B4B4; }
.inp input:focus, .inp textarea:focus, .inp select.pick:focus { border-color: rgba(62,62,62,.35); }
.inp select.pick { padding-right: 48px; background-position: right 20px center; }
.inp select.pick:invalid { color: #B4B4B4; }
.inp.is-bad input, .inp.is-bad textarea, .inp.is-bad select { border-color: var(--accent); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted-2); }
.check input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; background: #fff;
  border: 1px solid rgba(62,62,62,.25); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.check.is-bad input { border-color: var(--accent); }
.consent-light { margin-top: 18px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 200px; background: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); transition: background .2s, color .2s;
}
.seg input:checked + span { background: var(--text); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.when-at { margin-top: 12px; max-width: 320px; }

.cert-side {
  position: sticky; top: calc(var(--header-h) - 28px);
  padding: clamp(20px, 2vw, 32px); border-radius: var(--r-card); background: var(--surface);
  display: grid; gap: 20px;
}
.gc-live { box-shadow: none; }
.gc-sum { transition: opacity .2s; }
.gc-meta { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; opacity: .7; }
.gc-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-msg { margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: #fff; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.cert-total { display: grid; gap: 10px; }
.cert-total div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.cert-total dt { color: var(--muted-2); }
.cert-total dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
.cert-pay {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 58px; padding: 0 7px 0 26px; border-radius: 200px; background: var(--text); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px; transition: background .2s;
}
.cert-pay:hover { background: #222; }
.cert-pay i { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s; }
.cert-pay i svg { width: 14px; height: 14px; stroke: var(--text); }
.cert-pay:hover i { transform: rotate(45deg); }
.cert-pay:disabled { opacity: .5; cursor: default; }
.cert-error { font-size: 13px; font-weight: 600; color: var(--accent); }
.cert-done { padding: 18px 20px; border-radius: 16px; background: #fff; }
.cert-done b { font-size: 16px; font-weight: 700; color: var(--text); }
.cert-done p { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted-2); }

.cert-how, .cert-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.how-card, .rule { padding: clamp(22px, 2.2vw, 36px); border-radius: var(--r-card); background: var(--surface); display: flex; flex-direction: column; }
.how-card { min-height: calc(var(--row-h) * 1.15); }
.how-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--text); display: grid; place-items: center; }
.how-ico svg { width: 18px; height: 18px; stroke: #fff; }
.how-card b { margin-top: auto; font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.how-card p, .rule p { margin-top: 10px; max-width: 26em; font-size: 14px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--muted-2); }
.rule { min-height: 0; }
.rule b { margin: clamp(28px, 2.6vw, 44px) 0 4px; font-size: clamp(30px, 2.8vw, 46px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--text); }
.rule.dark { background: linear-gradient(120deg, var(--text) 0%, #1F1F1F 50%, var(--black) 100%); }
.rule.dark b { color: #fff; }
.rule.dark p { color: rgba(255,255,255,.62); }

.cert-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.cert-faq .section-title { margin-bottom: 0; }
.faq { grid-column: 2 / 4; display: grid; gap: 8px; }
.faq details { border-radius: 20px; background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; transition: transform .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--text); translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .3s; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { padding: 0 24px 22px; max-width: 46em; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.5; color: var(--muted-2); }

@media (max-width: 1180px) {
  .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amount-own { grid-column: span 2; }
}
@media (max-width: 900px) {
  .cert .crumbs { margin-bottom: 36px; }
  .cert-hero { grid-template-columns: 1fr; row-gap: 56px; }
  .cert-hero-copy { grid-column: auto; }
  .cert-hero-pic { max-width: 420px; width: 100%; margin: 0 auto; }
  .cert-builder { grid-template-columns: 1fr; }
  .cert-form { grid-column: auto; }
  .cert-side { position: static; }
  .people { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg label { flex: 1 1 auto; }
  .seg span { width: 100%; justify-content: center; }
  .cert-how, .cert-rules { grid-template-columns: 1fr; }
  .how-card { min-height: 220px; }
  .cert-faq { grid-template-columns: 1fr; }
  .cert-faq .section-title { margin-bottom: calc(24px - var(--gap)); }
  .faq { grid-column: auto; }
}
