:root {
  color-scheme: dark;
  --bg: #090c0f;
  --header: #0d1115;
  --surface: #12171c;
  --surface-2: #171d23;
  --surface-3: #0e1318;
  --line: #28313a;
  --line-strong: #394550;
  --text: #f4f7f9;
  --muted: #94a0ac;
  --green: #48d990;
  --green-dark: #102b20;
  --blue: #72aef8;
  --amber: #f1be5b;
  --red: #ff7479;
  --radius: 7px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }
.hidden { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 68px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(13,17,21,.96); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; }
.brand b { color: var(--green); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #06160e; background: var(--green); font-size: 11px; font-weight: 950; }
.header-status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.header-status svg { color: var(--green); }
.button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); background: var(--surface-2); font-weight: 750; font-size: 12px; }
.button:hover { border-color: var(--line-strong); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button.primary { color: #06160e; border-color: var(--green); background: var(--green); }
.button.secondary { background: transparent; }
.button.quiet { background: transparent; }
.button.full { width: 100%; min-height: 46px; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; display: grid; place-items: center; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.intro-band { padding: 52px clamp(18px, 5vw, 72px) 30px; border-bottom: 1px solid var(--line); background: #0c1014; }
.intro-copy { max-width: 760px; }
.eyebrow, .step-kicker { display: block; color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.intro-copy h1 { max-width: 680px; margin: 10px 0 12px; font-size: clamp(34px, 5.5vw, 62px); line-height: 1.02; font-weight: 760; }
.intro-copy p { max-width: 720px; margin: 0; color: #a7b1ba; font-size: 15px; line-height: 1.65; }
.delivery-strip { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.delivery-strip span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-strip svg { color: var(--blue); }
.checkout-layout { width: min(1500px, 100%); margin: 0 auto; padding: 36px clamp(18px, 4vw, 56px) 70px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; align-items: start; }
.configurator { min-width: 0; }
.section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2, .payment-heading h2 { margin: 7px 0 0; font-size: 20px; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.billing-switch { width: fit-content; margin: 0 0 14px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); background: #0b0f13; }
.billing-switch button { min-height: 48px; padding: 6px 15px; border: 0; border-radius: 4px; display: grid; place-items: center; gap: 1px; color: var(--muted); background: transparent; }
.billing-switch button.selected { color: var(--text); background: var(--surface-3); box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.billing-switch span { font-size: 11px; font-weight: 800; }
.billing-switch small { color: var(--muted); font-size: 8px; }
.billing-switch button[data-billing="annual"].selected small { color: var(--green); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 9px; }
.plan-card { position: relative; min-height: 214px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; text-align: left; color: var(--text); background: var(--surface); }
.plan-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.plan-card.selected { border-color: var(--green); background: #111d17; box-shadow: inset 0 0 0 1px rgba(72,217,144,.2); }
.plan-card .recommended { position: absolute; top: 12px; right: 10px; color: var(--amber); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.plan-card h3 { margin: 0; font-size: 14px; }
.plan-card .price { margin-top: 17px; font-size: 27px; font-weight: 800; }
.plan-card .price small { color: var(--muted); font-size: 10px; font-weight: 600; }
.price-note { margin-top: 2px; color: var(--green); font-size: 9px; font-weight: 700; }
.plan-card dl { margin: auto 0 0; display: grid; gap: 7px; }
.plan-card dl div { display: flex; justify-content: space-between; gap: 8px; }
.plan-card dt { color: var(--muted); font-size: 10px; }
.plan-card dd { margin: 0; font-size: 10px; font-weight: 750; }
.custom-plan { text-decoration: none; justify-content: center; }
.custom-plan:hover { border-color: var(--blue); }
.custom-plan p { max-width: 190px; margin: 9px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.custom-icon { width: 31px; height: 31px; margin-bottom: 15px; border-radius: 5px; display: grid; place-items: center; color: var(--blue); background: #14202b; }
.custom-icon svg { width: 15px; }
.custom-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 10px; font-weight: 800; }
.custom-link svg { width: 13px; }
.details-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.compact-heading { align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label { display: grid; gap: 7px; color: #bdc5cc; font-size: 11px; font-weight: 720; }
.optional { color: var(--muted); font-size: 9px; font-weight: 600; }
input, select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #303944; border-radius: 5px; outline: none; color: var(--text); background: var(--surface-3); }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(72,217,144,.1); }
label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.domain-field { grid-column: span 1; }
.joined-input { display: grid; grid-template-columns: minmax(110px, 1fr) auto; }
.joined-input input { border-radius: 5px 0 0 5px; }
.joined-input span { height: 42px; padding: 0 10px; border: 1px solid #303944; border-left: 0; border-radius: 0 5px 5px 0; display: flex; align-items: center; color: var(--muted); background: var(--surface-2); font-size: 10px; }
.payment-heading { margin: 30px 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.secure-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.secure-label svg { color: var(--green); }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method-card { min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; text-align: left; color: var(--text); background: var(--surface); }
.method-card:hover, .method-card.selected { border-color: var(--green); background: #111d17; }
.coin-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #dce8f4; background: #24303b; font-size: 10px; font-weight: 900; }
.method-card strong, .method-card small { display: block; }
.method-card strong { font-size: 11px; }
.method-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.form-error { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: 11px; }
.telegram-panel { margin-top: 20px; min-height: 96px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 13px; background: var(--surface); }
.telegram-panel.verified { border-color: #285d45; background: #101b16; }
.telegram-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #d9eaff; background: #1f5d8f; }
.telegram-panel.verified .telegram-mark { color: #06160e; background: var(--green); }
.telegram-copy h3 { margin: 4px 0 5px; font-size: 14px; }
.telegram-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.telegram-identity { margin-top: 7px; display: inline-flex; align-items: center; color: var(--green); font-size: 10px; font-weight: 800; }
.telegram-actions { display: flex; gap: 7px; }
.telegram-actions .button { white-space: nowrap; text-decoration: none; }
.order-summary { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.summary-head { min-height: 84px; padding: 17px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.summary-head h2 { margin: 7px 0 0; font-size: 18px; }
.status-badge { min-height: 24px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; color: var(--amber); background: #322917; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.capacity-list { margin: 0; padding: 8px 18px; }
.capacity-list div { min-height: 42px; border-bottom: 1px solid #222a31; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.capacity-list dt { color: var(--muted); font-size: 10px; }
.capacity-list dd { margin: 0; font-size: 11px; font-weight: 750; text-align: right; }
.included-list { padding: 13px 18px; display: grid; gap: 9px; border-bottom: 1px solid var(--line); }
.included-list span { display: flex; align-items: center; gap: 8px; color: #bdc6ce; font-size: 10px; }
.included-list svg { width: 14px; color: var(--green); }
.coupon-block { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.coupon-row { margin-top: 7px; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.coupon-row input { text-transform: uppercase; }
.coupon-message { min-height: 14px; margin: 7px 0 0; color: var(--green); font-size: 9px; }
.coupon-message.error { color: var(--red); }
.totals { padding: 14px 18px; display: grid; gap: 10px; }
.totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.totals strong { color: var(--text); }
.totals .discount-row, .totals .discount-row strong { color: var(--green); }
.totals .due { margin-top: 2px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
.totals .due strong { font-size: 22px; }
.totals small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.order-summary > .button { width: calc(100% - 36px); margin: 2px 18px 10px; }
.summary-preview { margin: 0 18px 10px; padding: 9px 10px; border: 1px solid #58491f; border-radius: 5px; display: flex; align-items: center; gap: 8px; color: #dbc77e; background: #1c1911; font-size: 9px; line-height: 1.45; }
.summary-preview svg { flex: 0 0 auto; width: 14px; height: 14px; }
.summary-note { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-band { padding: 60px clamp(18px, 6vw, 90px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 410px); gap: clamp(30px, 7vw, 100px); align-items: center; background: #0d1115; overflow: hidden; }
.product-copy { max-width: 680px; }
.product-copy h2 { margin: 10px 0 14px; font-size: clamp(26px, 4vw, 44px); line-height: 1.08; }
.product-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-columns { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-columns span { display: flex; align-items: center; gap: 9px; color: #c4cbd1; font-size: 11px; font-weight: 700; }
.feature-columns svg { color: var(--blue); }
.phone-frame { height: 500px; overflow: hidden; display: flex; justify-content: center; align-items: start; }
.phone-frame img { width: min(100%, 310px); height: auto; display: block; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
dialog { width: min(92vw, 560px); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(2,4,6,.78); backdrop-filter: blur(3px); }
.dialog-head { min-height: 78px; padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 6px 0 0; font-size: 19px; }
.invoice-content { padding: 20px; }
.invoice-banner { padding: 14px; border: 1px solid #3d4b57; border-radius: 6px; background: #101820; }
.invoice-banner strong, .invoice-banner span { display: block; }
.invoice-banner strong { font-size: 14px; }
.invoice-banner span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.invoice-ref { margin-top: 18px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.invoice-rows { margin-top: 16px; }
.invoice-rows div { min-height: 43px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11px; }
.invoice-rows span { color: var(--muted); }
.invoice-rows .invoice-due strong { color: var(--green); font-size: 19px; }
.preview-warning { margin: 16px 0 0; padding: 11px; border-left: 3px solid var(--amber); color: #c8b98f; background: #1c1911; font-size: 10px; line-height: 1.5; }
.invoice-payment-link { width: 100%; margin-top: 14px; text-decoration: none; }
.dialog-actions { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.setup-timeline { padding: 18px 20px; display: grid; }
.setup-timeline > div { min-height: 64px; padding-left: 44px; position: relative; }
.setup-timeline > div::before { content: ""; position: absolute; left: 14px; top: 29px; bottom: -9px; width: 1px; background: var(--line); }
.setup-timeline > div:last-child::before { display: none; }
.setup-timeline > div > svg { position: absolute; left: 3px; top: 2px; width: 24px; height: 24px; padding: 5px; border: 1px solid var(--line); border-radius: 50%; color: #6f7b86; background: var(--surface-3); }
.setup-timeline .complete > svg { color: var(--green); border-color: #28513f; background: var(--green-dark); }
.setup-timeline .active > svg { color: var(--blue); border-color: #2c4b70; animation: spin 1.3s linear infinite; }
.setup-timeline strong, .setup-timeline small { display: block; }
.setup-timeline strong { font-size: 12px; }
.setup-timeline small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.setup-foot { margin: 0 20px 20px; padding: 12px; border: 1px solid #29465d; border-radius: 6px; display: flex; gap: 9px; color: #aac6dc; background: #101923; font-size: 10px; line-height: 1.5; }
.setup-foot svg { flex: 0 0 auto; color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .capacity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .product-band { grid-template-columns: 1fr; }
  .phone-frame { height: 430px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 60px; padding: 0 14px; }
  .header-status { display: none; }
  .site-header .button span { display: none; }
  .site-header .button { width: 38px; padding: 0; margin-left: auto; }
  .intro-band { padding: 35px 18px 24px; }
  .intro-copy h1 { font-size: 36px; }
  .delivery-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout { padding: 24px 14px 50px; }
  .section-heading, .payment-heading { display: block; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .secure-label { margin-top: 10px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card { min-height: 190px; }
  .plan-card:last-child { grid-column: 1 / -1; min-height: 165px; }
  .billing-switch { width: 100%; }
  .form-grid, .method-grid { grid-template-columns: 1fr; }
  .domain-field { grid-column: auto; }
  .telegram-panel { grid-template-columns: 38px 1fr; align-items: start; }
  .telegram-actions { grid-column: 1 / -1; }
  .telegram-actions .button { width: 100%; }
  .capacity-list { display: block; }
  .product-band { padding: 46px 18px; }
  .feature-columns { grid-template-columns: 1fr; }
  .phone-frame { height: 390px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .intro-copy h1 { font-size: 31px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card, .plan-card:last-child { grid-column: auto; min-height: 165px; }
  .joined-input { grid-template-columns: minmax(90px, 1fr) auto; }
  .joined-input span { font-size: 8px; padding: 0 7px; }
}
