@font-face {
  font-family: Jakarta;
  src: url('assets/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --custom-blue: #1d33f0;
  --custom-ink: #0a1478;
  --custom-muted: #505b85;
  --custom-canvas: #f6f8ff;
  --custom-line: #cbd2f0;
  --custom-error: #9d342e;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--custom-canvas);
  color: var(--custom-ink);
  font: 16px/1.65 Jakarta, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--custom-blue); outline-offset: 3px; }
input, button, textarea { font: inherit; }
h1, h2, p { margin: 0; }
.custom-shell { min-height: 100dvh; background: var(--custom-canvas); container-type: inline-size; }
.custom-wrap { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.custom-header { background: #fff; border-bottom: 1px solid var(--custom-line); }
.custom-header .custom-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 80px; }
.custom-header img { display: block; width: 180px; height: auto; }
.custom-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--custom-blue); text-decoration: none; font-size: 14px; font-weight: 750; }
.custom-back:hover { text-decoration: underline; }
.custom-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(32px, 6vw, 84px); align-items: start; padding-block: 48px 64px; }
.custom-offer { min-width: 0; padding-top: 12px; }
.custom-package { color: var(--custom-blue); font-size: 14px; font-weight: 800; }
.custom-offer h1 { max-width: 12ch; margin-block: 8px 16px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.custom-lead { max-width: 40ch; color: var(--custom-muted); }
.custom-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 366px; margin-block: 28px; padding: 12px; background: #fff; border: 1px solid var(--custom-line); border-radius: 16px; }
.custom-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.custom-offer-details { max-width: 40ch; padding-top: 16px; border-top: 1px solid var(--custom-line); }
.custom-price { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 750; }
.custom-price strong { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.custom-terms { margin-top: 7px; color: var(--custom-muted); font-size: 14px; }
.custom-panel { min-width: 0; background: #fff; border: 1px solid var(--custom-line); border-radius: 16px; padding: 28px; }
.custom-panel h2 { font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
#custom-form { display: grid; gap: 18px; }
.custom-field { min-width: 0; display: grid; justify-items: stretch; gap: 6px; }
.custom-field label { color: var(--custom-ink); font-size: 14px; line-height: 1.5; font-weight: 750; }
.custom-field label span { margin-left: 4px; color: var(--custom-muted); font-size: 12px; font-weight: 450; }
.custom-field input, .custom-field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #7d8bb8; border-radius: 12px; background: #fff; color: #06114b; font-size: 16px; }
.custom-field input:focus-visible, .custom-field textarea:focus-visible { outline-offset: 2px; }
.custom-field input[type=date] { display: block; appearance: none; }
.custom-field textarea { min-height: 100px; resize: vertical; }
.custom-field :is(input,textarea)::placeholder { color: var(--custom-muted); }
.custom-field [aria-invalid=true] { border-color: var(--custom-error); }
.custom-event-details { border-block: 1px solid var(--custom-line); }
.custom-event-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; color: var(--custom-blue); font-size: 14px; font-weight: 750; cursor: pointer; list-style: none; }
.custom-event-details summary::-webkit-details-marker { display: none; }
.custom-event-details summary:hover { text-decoration: underline; }
.custom-disclosure { flex: none; width: 22px; text-align: center; font-size: 18px; }
.custom-disclosure::before { content: '+'; }
.custom-event-details[open] .custom-disclosure::before { content: '−'; }
.custom-event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.custom-event-details[open] .custom-event { padding: 8px 0 16px; }
.custom-error { font-size: 13px; line-height: 1.6; color: var(--custom-error); overflow-wrap: anywhere; }
.custom-images { min-width: 0; margin: 0; padding: 0; border: 0; }
.custom-images legend { margin-bottom: 8px; padding: 0; color: var(--custom-ink); font-size: 14px; line-height: 1.5; font-weight: 750; }
.custom-images legend span { margin-left: 4px; color: var(--custom-muted); font-size: 12px; font-weight: 450; }
.custom-image-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.custom-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.custom-add-images { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 14px; border: 1px solid #7d8bb8; border-radius: 12px; color: var(--custom-blue); font-size: 14px; font-weight: 750; cursor: pointer; }
.custom-add-images span { font-size: 21px; line-height: 1; }
.custom-add-images:hover { background: var(--custom-canvas); }
.custom-file-input:focus-visible + .custom-add-images { outline: 3px solid var(--custom-blue); outline-offset: 3px; }
.custom-file-input:disabled + .custom-add-images { opacity: .6; cursor: default; }
.custom-image-actions output { flex: none; color: var(--custom-muted); font-size: 13px; font-weight: 700; }
.custom-image-help { margin-top: 6px; color: var(--custom-muted); font-size: 12px; }
.custom-images .custom-error { margin-top: 8px; }
.custom-image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.custom-image-list li { min-width: 0; position: relative; }
.custom-image-preview { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: var(--custom-canvas); border: 1px solid var(--custom-line); color: var(--custom-muted); font-size: 12px; font-weight: 750; }
.custom-image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.custom-image-name { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--custom-muted); font-size: 11px; }
.custom-remove-image { display: grid; place-items: center; position: absolute; top: 1px; right: 1px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #06114b; cursor: pointer; }
.custom-remove-image span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--custom-line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }
.custom-remove-image:hover span { background: #eef2ff; }
.custom-submit { display: grid; gap: 8px; }
.custom-primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; background: var(--custom-blue); color: #fff; border: 0; border-radius: 12px; font-weight: 750; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, transform 150ms ease; }
.custom-primary:hover { background: #1224b8; }
.custom-primary:active { transform: translateY(1px); }
.custom-primary:disabled { cursor: wait; background: #e9edf8; color: var(--custom-muted); }
.custom-preview-note { font-size: 12px; color: var(--custom-muted); text-align: center; }
.custom-customer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 20px; }
.custom-customer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--custom-blue); font-size: 13px; font-weight: 750; text-underline-offset: 3px; }
.custom-success { display: grid; gap: 16px; }
.custom-success h2 { margin: 0; }
.custom-success > p { color: var(--custom-muted); }
.custom-check { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7f4eb; color: #245e43; font-size: 24px; }
.custom-receipt { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding-block: 12px; border-top: 1px solid var(--custom-line); font-size: 14px; }
.custom-receipt strong { color: var(--custom-ink); overflow-wrap: anywhere; }
@container (max-width: 700px) {
  .custom-wrap { width: calc(100% - 40px); }
  .custom-header .custom-wrap { min-height: 66px; }
  .custom-header img { width: min(156px, 45%); }
  .custom-back { font-size: 13px; }
  .custom-layout { grid-template-columns: minmax(0, 1fr); padding-block: 24px 32px; gap: 24px; }
  .custom-offer { padding: 0; }
  .custom-offer h1 { max-width: 18ch; margin-bottom: 10px; font-size: 34px; }
  .custom-lead { font-size: 15px; }
  .custom-art { display: none; }
  .custom-offer-details { max-width: none; margin-top: 16px; padding-top: 14px; }
  .custom-price strong { font-size: 26px; }
  .custom-terms { font-size: 13px; }
  .custom-panel { padding: 20px; }
  .custom-field textarea { height: 105px; }
  .custom-panel h2 { font-size: 22px; margin-bottom: 16px; }
  .custom-success h2 { margin-bottom: 0; }
  .custom-event { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@container (max-width: 350px) {
  .custom-panel { padding: 16px; }
  .custom-offer h1 { font-size: 30px; }
}
@media (min-width: 501px) {
  .custom-page[data-phone-preview] { display: grid; place-items: center; padding: 12px; min-height: 100dvh; background: #edf0f7; }
  .custom-page[data-phone-preview] .custom-shell { width: 404px; height: min(858px, calc(100dvh - 24px)); min-height: 0; border: 7px solid #161c30; border-radius: 32px; overflow: auto; scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .custom-primary { transition: none; }
}
