/* [c1] */

.ap-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(10px, 3vh, 28px) clamp(14px, 4vw, 28px) 40px; }
.ap-top { z-index: 5; }

/* [c2] */
.ap-hero { text-align: center; padding: 6px 0 18px; animation: st-fade-up var(--st-dur-slow) var(--st-ease) both; }
.ap-eyebrow { display: inline-block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--st-accent); background: var(--st-accent-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.ap-title { font-family: var(--st-font-heading); font-weight: var(--st-weight-heading); font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 10px; }
.ap-sub { color: var(--st-text-soft); font-size: clamp(0.92rem, 2.2vw, 1.02rem); line-height: 1.55; margin: 0 auto; max-width: 560px; }

/* [c3] */
.ap-card { background: var(--st-surface); border: 1.5px solid var(--st-border); border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow-md); padding: clamp(18px, 4vw, 30px); animation: st-fade-up var(--st-dur-slow) var(--st-ease) 80ms both; }
.ap-h2 { font-family: var(--st-font-heading); font-size: 1.2rem; margin: 0 0 4px; }
.ap-help { color: var(--st-text-soft); font-size: 0.9rem; margin: 0 0 8px; }
.ap-field { display: block; margin: 12px 0 0; }
.ap-field > span:first-child { display: block; font-size: 0.84rem; font-weight: 600; color: var(--st-text-soft); margin-bottom: 2px; }
.ap-field > span em { font-style: normal; font-weight: 400; color: var(--st-text-faint); }
.ap-field .st-input { margin: 4px 0 0; }
.ap-field .st-input.is-bad { border-color: var(--st-danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .ap-grid { grid-template-columns: 1fr; } }
select.st-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--st-text-soft) 50%), linear-gradient(135deg, var(--st-text-soft) 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.st-input { resize: vertical; min-height: 96px; line-height: 1.45; }
.ap-error { margin: 12px 0 0; font-weight: 600; }
.ap-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.ap-nav .st-btn { min-width: 120px; }
.ap-nav .st-btn-primary { margin-left: auto; flex: 1; max-width: 320px; }
@media (max-width: 480px) { .ap-nav .st-btn-primary { max-width: none; } }
.st-captcha-holder { display: flex; justify-content: center; margin-top: 14px; }
.st-captcha-holder:empty { display: none; }

/* [c4] */
.ap-progress { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; }
.ap-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.ap-progress li::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 999px; background: var(--st-surface-2); transition: background var(--st-dur) var(--st-ease); }
.ap-progress li.is-active::before, .ap-progress li.is-done::before { background: var(--st-accent); }
.ap-progress i { display: none; }
.ap-progress span { font-size: 0.72rem; font-weight: 700; color: var(--st-text-faint); letter-spacing: 0.02em; transition: color var(--st-dur-fast) var(--st-ease); }
.ap-progress li.is-active span { color: var(--st-text); }
.ap-progress li.is-done span { color: var(--st-text-soft); }
.ap-step { animation: st-fade-up var(--st-dur) var(--st-ease) both; }

/* [c5] */
.ap-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--st-border); border-radius: 14px; overflow: hidden; background: var(--st-surface); margin-top: 4px; }
.ap-stepper button { width: 52px; min-height: 52px; border: none; background: none; font-size: 1.4rem; color: var(--st-text-soft); cursor: pointer; transition: background var(--st-dur-fast) var(--st-ease); }
.ap-stepper button:hover { background: var(--st-surface-2); color: var(--st-text); }
.ap-stepper input { width: 84px; text-align: center; border: none; font: inherit; font-size: 1.4rem; font-weight: 700; padding: 8px 0; background: transparent; color: var(--st-text); outline: none; -moz-appearance: textfield; }
.ap-stepper input::-webkit-inner-spin-button, .ap-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* [c9] */
.ap-locrow { display: grid; grid-template-columns: 28px 1.6fr 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.ap-locrow .st-input { margin: 0; }
.ap-locnum { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--st-surface-2); font-size: 0.78rem; font-weight: 700; color: var(--st-text-soft); }
@media (max-width: 560px) {
    .ap-locrow { grid-template-columns: 24px 1fr; }
    .ap-locrow [data-loc-city] { grid-column: 2; }
}

/* [c6] */
.ap-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 4px; }
.ap-options-2 { grid-template-columns: 1fr 1fr; }
.ap-opt { position: relative; display: block; cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-opt > span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 10px 12px; border: 1.5px solid var(--st-border); border-radius: 14px; background: var(--st-surface); transition: all var(--st-dur-fast) var(--st-ease); text-align: center; }
.ap-opt b { font-size: 0.95rem; }
.ap-opt small { font-size: 0.74rem; color: var(--st-text-soft); line-height: 1.3; }
.ap-opt-sm > span { min-height: 46px; padding: 8px 10px; }
.ap-opt-sm b { font-size: 0.9rem; font-weight: 600; }
.ap-opt.is-on > span, .ap-opt input:checked + span { border-color: var(--st-accent); background: var(--st-accent-soft); box-shadow: 0 0 0 3px var(--st-accent-soft); }
.ap-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--st-accent-soft); border-color: var(--st-accent); }
@media (hover: hover) { .ap-opt:hover > span { border-color: var(--st-text-faint); } }

/* [c7] */
.ap-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 8px 0 4px; }
@media (max-width: 400px) { .ap-brands { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.ap-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border: 1.5px solid var(--st-border); border-radius: 16px; background: var(--st-surface); cursor: pointer; transition: all var(--st-dur-fast) var(--st-ease); user-select: none; }
.ap-brand input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-brand-logo { position: relative; width: 56px; height: 56px; border-radius: 14px; background: var(--st-surface-2); display: grid; place-items: center; overflow: hidden; }
.ap-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; display: block; }
.ap-brand-logo b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--st-font-heading); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; color: var(--st-text-soft); background: var(--st-surface-2); }
.ap-brand-logo img + b { display: none; }
.ap-brand-logo.no-logo img { display: none; }
.ap-brand-logo.no-logo img + b { display: grid; }
.ap-brand-name { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--st-text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ap-brand-check { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--st-accent); color: var(--st-accent-contrast); display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: all var(--st-dur-fast) var(--st-ease); }
.ap-brand-check svg { width: 13px; height: 13px; }
.ap-brand.is-on { border-color: var(--st-accent); background: var(--st-accent-soft); }
.ap-brand.is-on .ap-brand-check { opacity: 1; transform: none; }
.ap-brand input:focus-visible ~ .ap-brand-name { text-decoration: underline; }
@media (hover: hover) { .ap-brand:hover { border-color: var(--st-text-faint); transform: translateY(-1px); } }
.ap-other { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.ap-other .st-input { margin: 0; flex: 1; }
.ap-other .st-btn { min-height: 44px; padding: 8px 16px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-chips:empty { display: none; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--st-surface-2); font-size: 0.86rem; font-weight: 600; }
.ap-chip button { border: none; background: none; width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; color: var(--st-text-soft); cursor: pointer; }
.ap-chip button:hover { background: var(--st-surface); color: var(--st-danger); }

/* [c8] */
.ap-done, .ap-invalid { text-align: center; }
.ap-done h2, .ap-invalid h1 { font-family: var(--st-font-heading); font-size: 1.45rem; margin: 6px 0 8px; }
.ap-done p, .ap-invalid p { color: var(--st-text-soft); line-height: 1.55; max-width: 520px; margin: 0 auto 14px; }
.ap-done-ico, .ap-invalid-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 12px; }
.ap-done-ico { background: var(--st-accent); color: var(--st-accent-contrast); animation: ap-pop var(--st-dur-slow) var(--st-ease) both; }
.ap-invalid-ico { background: var(--st-surface-2); color: var(--st-text-soft); }
.ap-done-ico svg, .ap-invalid-ico svg { width: 32px; height: 32px; }
@keyframes ap-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ap-done-book { margin: 6px auto 18px; padding: 16px 18px 14px; border: 1.5px solid var(--st-border); border-radius: var(--st-radius-lg); background: var(--st-surface-2); max-width: 440px; }
.ap-done-bookline { font-weight: 700; color: var(--st-text); margin: 0 0 10px; }
.ap-done-book .st-btn { width: 100%; }
.ap-done-booksub { font-size: 0.82rem; color: var(--st-text-soft); margin: 10px 0 0; }
.ap-done-ref { font-size: 1rem; }
.ap-done-ref b { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; letter-spacing: 0.12em; color: var(--st-text); background: var(--st-surface-2); padding: 4px 12px; border-radius: 10px; margin-left: 4px; }
.ap-fine { text-align: center; max-width: 560px; margin: 16px auto 0; }
