/* ai-designer.css — ИИ-дизайнер мебели: баннер внизу всех страниц и страница /ii-dizayner/ */

:root {
  --aid-v1: #2a1650;
  --aid-v2: #5b2a86;
  --aid-pink: #b4407a;
  --aid-coral: #f08a5d;
  --aid-gold: #e6c27a;
  --aid-grad: linear-gradient(118deg, #2a1650 0%, #4d2479 34%, #93357f 66%, #e57a5d 100%);
}

/* ═════════ Баннер ═════════ */
.aid-banner { padding: 34px 0 10px; }
.aid-banner__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  min-height: 300px; border-radius: 30px; background: var(--aid-grad); color: #fff; text-decoration: none;
  box-shadow: 0 26px 60px rgba(61, 25, 96, .28); isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.aid-banner__card:hover { transform: translateY(-3px); box-shadow: 0 32px 70px rgba(61, 25, 96, .36); }
.aid-banner__card::before, .aid-banner__card::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px);
}
.aid-banner__card::before { width: 420px; height: 420px; right: 18%; top: -190px; background: radial-gradient(circle, rgba(255, 215, 140, .38), rgba(255, 215, 140, 0) 66%); }
.aid-banner__card::after { width: 360px; height: 360px; left: -120px; bottom: -200px; background: radial-gradient(circle, rgba(120, 220, 200, .28), rgba(120, 220, 200, 0) 66%); }
.aid-banner__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(2px 2px at 38% 78%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(3px 3px at 52% 18%, rgba(255,231,170,.9), transparent 60%),
    radial-gradient(2px 2px at 64% 64%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2px 2px at 88% 30%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(3px 3px at 92% 84%, rgba(255,231,170,.8), transparent 60%);
  animation: aidTwinkle 4.5s ease-in-out infinite alternate; }
@keyframes aidTwinkle { from { opacity: .55; } to { opacity: 1; } }
.aid-banner__text { padding: 38px 10px 38px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.aid-banner__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.aid-banner__badge i { font-style: normal; color: var(--aid-gold); }
.aid-banner__title { font-family: Georgia, serif; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff 0%, #fff 55%, #ffe1a8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aid-banner__sub { max-width: 520px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.aid-banner__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.aid-banner__steps span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; background: rgba(20, 8, 40, .28); font-size: 13.5px; color: #fff; }
.aid-banner__steps svg { width: 16px; height: 16px; color: var(--aid-gold); flex: 0 0 auto; }
.aid-banner__btn { min-height: 52px; padding: 0 26px; }
.aid-banner__btn span { margin-left: 8px; transition: transform .25s ease; }
.aid-banner__card:hover .aid-banner__btn span { transform: translateX(4px); }
.aid-banner__art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 18px 26px 18px 0; }
.aid-banner__art img { width: 100%; max-width: 470px; height: auto; display: block; filter: drop-shadow(0 26px 34px rgba(20, 6, 40, .45)); animation: aidFloat 6s ease-in-out infinite; }
@keyframes aidFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .aid-banner { padding: 22px 0 4px; }
  .aid-banner__card { grid-template-columns: 1fr; border-radius: 24px; }
  .aid-banner__text { padding: 28px 24px 6px; }
  .aid-banner__art { padding: 0 22px 22px; }
  .aid-banner__art img { max-width: 360px; }
  .aid-banner__sub { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .aid-banner__art img, .aid-banner__sparks { animation: none; } }

/* ═════════ Страница сервиса ═════════ */
.aid { background: var(--bg, #f7f2ea); }
.aid-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aid-gold); }
.aid-h2 { font-family: Georgia, serif; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--text, #2c241d); margin: 0 0 10px; text-align: center; }
.aid-sub-title { text-align: center; color: var(--muted, #7c6d5d); margin: 0 0 28px; }
.aid-center { text-align: center; margin-top: 26px; }

.aid-hero { padding: 18px 0 0; }
.aid-hero__inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 10px;
  border-radius: 32px; background: var(--aid-grad); color: #fff; padding: 46px 30px 46px 56px; box-shadow: 0 26px 60px rgba(61, 25, 96, .25); }
.aid-hero__inner::before { content: ""; position: absolute; width: 520px; height: 520px; right: 10%; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 140, .35), rgba(255, 215, 140, 0) 66%); pointer-events: none; }
.aid-hero__title { font-family: Georgia, serif; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; margin: 0 0 16px; color: #fff; }
.aid-hero__lead { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 560px; margin: 0 0 22px; }
.aid-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.aid-hero__facts li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.aid-hero__facts b { font-size: 17px; }
.aid-hero__facts span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.aid-hero__art img { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(20, 6, 40, .45)); animation: aidFloat 6s ease-in-out infinite; }

.aid-tool-section { padding: 34px 0 10px; scroll-margin-top: 90px; }
.aid-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.aid-form, .aid-result { background: #fff; border-radius: 26px; box-shadow: var(--shadow, 0 18px 42px rgba(46, 35, 24, .1)); padding: 28px; }
.aid-result { position: sticky; top: calc(var(--header-h, 84px) + 16px); min-height: 420px; }
.aid-step { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.aid-step:first-child { margin-top: 0; }
.aid-step__num { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--aid-grad); color: #fff; font-weight: 700; font-size: 15px; }
.aid-step__title { margin: 0; font-family: Georgia, serif; font-size: 21px; color: var(--text, #2c241d); }
.aid-step__title small { font-family: inherit; font-size: 13px; color: var(--muted, #7c6d5d); font-weight: 400; margin-left: 6px; }

.aid-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 210px; border-radius: 20px; cursor: pointer; overflow: hidden;
  border: 2px dashed rgba(147, 53, 127, .35); background: linear-gradient(135deg, #faf6ff, #fff6f1); transition: border-color .2s, background .2s; }
.aid-drop:hover, .aid-drop.is-drag { border-color: #93357f; background: linear-gradient(135deg, #f3eaff, #ffeee5); }
.aid-drop.is-bad { border-color: #d64545; }
.aid-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.aid-drop__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; color: #5b2a86; }
.aid-drop__empty b { font-size: 16px; color: var(--text, #2c241d); }
.aid-drop__empty small { max-width: 340px; color: var(--muted, #7c6d5d); font-size: 13px; line-height: 1.45; }
.aid-drop__preview { display: none; width: 100%; max-height: 360px; object-fit: contain; background: #f2ede6; }
.aid-drop__change { display: none; position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; }
.aid-drop.has-photo .aid-drop__empty { display: none; }
.aid-drop.has-photo .aid-drop__preview, .aid-drop.has-photo .aid-drop__change { display: block; }
.aid-drop.is-loading::after { content: "Готовим фото…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .8); font-weight: 700; color: #5b2a86; }

.aid-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-bottom: 8px; border-radius: 16px; border: 1px solid var(--line, rgba(173, 142, 98, .18)); cursor: pointer; transition: border-color .2s, background .2s; }
.aid-check:hover { background: #fbf8ff; }
.aid-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #93357f; flex: 0 0 auto; }
.aid-check span { display: flex; flex-direction: column; gap: 2px; }
.aid-check b { font-size: 15.5px; color: var(--text, #2c241d); }
.aid-check small { font-size: 13px; color: var(--muted, #7c6d5d); }
.aid-check:has(input:checked) { border-color: rgba(147, 53, 127, .55); background: #fbf6ff; }
.aid-sub { display: none; margin: -2px 0 12px 46px; }
.aid-sub.is-open { display: block; }
.aid-form .field, .aid-form .textarea { width: 100%; box-sizing: border-box; }
/* Сайтовые .field/.textarea рассчитаны на тёмные формы (белый текст) — на светлых формах сервиса делаем тёмный текст */
.aid-form .field, .aid-form .textarea, .aid-modal .field { background: #fff; color: var(--text, #2c241d); border: 1px solid rgba(147, 53, 127, .22); font-size: 15px; }
.aid-form .field::placeholder, .aid-form .textarea::placeholder, .aid-modal .field::placeholder { color: #9b8f84; opacity: 1; }
.aid-form .field:focus, .aid-form .textarea:focus, .aid-modal .field:focus { background: #fff; border-color: #93357f; box-shadow: 0 0 0 3px rgba(147, 53, 127, .12); }
.aid-form .is-bad { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }

.aid-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; }
.aid-chip { border: 1px solid rgba(147, 53, 127, .28); background: #fff; color: #5b2a86; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .2s; }
.aid-chip:hover, .aid-chip.is-on { background: #5b2a86; color: #fff; border-color: #5b2a86; }
.aid-chip--soft { color: #8a5a2b; border-color: rgba(185, 142, 84, .4); }
.aid-chip--soft:hover, .aid-chip--soft.is-on { background: #b98e54; border-color: #b98e54; color: #fff; }

.aid-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #7c6d5d); cursor: pointer; }
.aid-consent input { margin-top: 2px; accent-color: #93357f; flex: 0 0 auto; }
.aid-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; }
.aid-go { min-height: 56px; padding: 0 30px; font-size: 13px; }
.aid-go[disabled] { opacity: .6; cursor: wait; transform: none; }
.aid-left { font-size: 14px; color: var(--muted, #7c6d5d); }
.aid-left b { color: #93357f; font-size: 16px; }
.aid-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1f0; color: #b42318; font-size: 14px; }

/* Результат */
.aid-result__idle { text-align: center; }
.aid-result__idle h3 { font-family: Georgia, serif; font-size: 22px; margin: 6px 0 12px; color: var(--text, #2c241d); }
.aid-art--small img { max-width: 360px; width: 100%; height: auto; margin: 0 auto; display: block; }
.aid-tips { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: left; }
.aid-tips li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; color: var(--muted, #7c6d5d); }
.aid-tips li::before { content: "✦"; position: absolute; left: 0; color: #93357f; }

.aid-progress-art { position: relative; overflow: hidden; border-radius: 18px; background: #efe9f7; aspect-ratio: 4 / 3; }
.aid-progress-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) blur(1px); opacity: .8; }
.aid-scan { position: absolute; left: 0; right: 0; height: 36%; top: -36%;
  background: linear-gradient(180deg, rgba(147, 53, 127, 0), rgba(147, 53, 127, .35) 70%, rgba(255, 225, 168, .9) 100%);
  animation: aidScan 2.4s ease-in-out infinite; }
@keyframes aidScan { 0% { top: -36%; } 100% { top: 100%; } }
.aid-stages { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 8px; }
.aid-stages li { position: relative; padding-left: 30px; color: #b5a9bd; font-size: 15px; }
.aid-stages li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d9cfe2; box-sizing: border-box; }
.aid-stages li.is-active { color: var(--text, #2c241d); font-weight: 700; }
.aid-stages li.is-active::before { border-color: #93357f; border-right-color: transparent; animation: aidSpin .8s linear infinite; }
.aid-stages li.is-done { color: #5b2a86; }
.aid-stages li.is-done::before { content: "✓"; background: #93357f; border-color: #93357f; color: #fff; font-size: 11px; line-height: 14px; text-align: center; }
@keyframes aidSpin { to { transform: rotate(360deg); } }
.aid-timer { font-size: 13px; color: var(--muted, #7c6d5d); margin: 4px 0 0; }

.aid-result__title { font-family: Georgia, serif; font-size: 21px; margin: 16px 0 12px; color: var(--text, #2c241d); }
.aid-result__actions, .aid-single__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aid-note { font-size: 12.5px; color: var(--muted, #7c6d5d); margin: 14px 0 0; line-height: 1.5; }
.aid-result__fail { text-align: center; padding: 40px 10px; }
.aid-fail__icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #fff1f0; color: #b42318; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.aid-result__fail p { color: var(--text, #2c241d); margin: 0 0 16px; }

/* Сравнение «было / стало» */
.aid-compare { --pos: 50%; position: relative; overflow: hidden; border-radius: 18px; background: #eee; user-select: none; touch-action: pan-y; }
.aid-compare__after { display: block; width: 100%; height: auto; }
.aid-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.aid-compare__before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aid-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.aid-compare__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #5b2a86; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.aid-compare__tag { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.aid-compare__tag--before { left: 12px; }
.aid-compare__tag--after { right: 12px; background: rgba(91, 42, 134, .85); }
.aid-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }

/* Как это работает */
.aid-how { padding: 54px 0 10px; }
.aid-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.aid-how__item { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow-s, 0 10px 24px rgba(46, 35, 24, .08)); }
.aid-how__num { display: inline-block; font-family: Georgia, serif; font-size: 30px; font-weight: 700; background: var(--aid-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aid-how__item b { display: block; font-size: 17px; margin: 6px 0 6px; color: var(--text, #2c241d); }
.aid-how__item p { margin: 0; color: var(--muted, #7c6d5d); font-size: 14.5px; line-height: 1.5; }

/* История */
.aid-gallery-section { padding: 54px 0 20px; scroll-margin-top: 90px; }
.aid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.aid-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-s, 0 10px 24px rgba(46, 35, 24, .08)); transition: transform .25s, box-shadow .25s; }
.aid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow, 0 18px 42px rgba(46, 35, 24, .1)); }
.aid-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.aid-card__img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aid-card__before { position: absolute; left: 10px; bottom: 10px; width: 34%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.aid-card__before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aid-card__before em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10px; text-align: center; color: #fff; background: rgba(0, 0, 0, .55); text-transform: uppercase; letter-spacing: .06em; }
.aid-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.aid-card__room { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93357f; }
.aid-card__title { font-size: 15px; line-height: 1.4; color: var(--text, #2c241d); }
.aid-card__date { font-size: 12.5px; color: var(--muted, #7c6d5d); }

/* Призыв */
.aid-cta { padding: 40px 0 10px; }
.aid-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-radius: 26px; padding: 30px 36px; box-shadow: var(--shadow-s, 0 10px 24px rgba(46, 35, 24, .08)); border: 1px solid var(--line, rgba(173, 142, 98, .18)); }
.aid-cta__title { font-family: Georgia, serif; font-size: 26px; margin: 0 0 6px; color: var(--text, #2c241d); }
.aid-cta p { margin: 0; color: var(--muted, #7c6d5d); max-width: 720px; }

/* Страница одного результата */
.aid-single { padding: 26px 0 10px; }
.aid-single .container { max-width: 1080px; }
.aid-single .aid-eyebrow { color: #93357f; }
.aid-single__title { font-family: Georgia, serif; font-size: clamp(26px, 3vw, 40px); margin: 0 0 6px; color: var(--text, #2c241d); }
.aid-single__date { color: var(--muted, #7c6d5d); margin: 0 0 20px; }
.aid-single .aid-compare { margin-bottom: 18px; box-shadow: var(--shadow, 0 18px 42px rgba(46, 35, 24, .1)); }
.aid-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 20px; border-radius: 20px; background: #fff; text-align: center; margin-bottom: 18px; }
.aid-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #e6dcf0; border-top-color: #93357f; animation: aidSpin .9s linear infinite; }

/* Окно связи с менеджером */
.aid-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(24, 12, 38, .62); backdrop-filter: blur(4px); }
.aid-modal.is-open { display: flex; }
.aid-modal__dialog { position: relative; width: min(460px, 100%); background: #fff; border-radius: 26px; padding: 34px 30px 26px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: aidPop .25s ease; }
@keyframes aidPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.aid-modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #9a8fa3; }
.aid-modal__icon { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; background: var(--aid-grad); color: #ffe1a8; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.aid-modal__title { font-family: Georgia, serif; font-size: 23px; margin: 0 0 10px; color: var(--text, #2c241d); }
.aid-modal__text { color: var(--muted, #7c6d5d); font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.aid-modal__form { display: grid; gap: 10px; }
.aid-modal__form .field { width: 100%; box-sizing: border-box; }
.aid-modal__form .is-bad { border-color: #d64545; }
.aid-modal__note { font-size: 11.5px; color: var(--muted, #7c6d5d); margin: 2px 0 0; }
.aid-modal__ok { padding: 16px; border-radius: 14px; background: #effaf3; color: #1d7a45; font-weight: 700; }
.aid-modal__phone { display: inline-block; margin-top: 14px; font-size: 14px; color: #5b2a86; text-decoration: none; }
.aid-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 980px) {
  .aid-tool { grid-template-columns: 1fr; }
  .aid-result { position: static; min-height: 0; }
  .aid-hero__inner { grid-template-columns: 1fr; padding: 34px 24px; }
  .aid-hero__art img { max-width: 420px; }
}
@media (max-width: 680px) {
  .aid-form, .aid-result { padding: 20px 16px; border-radius: 22px; }
  .aid-how__grid { grid-template-columns: 1fr; }
  .aid-cta__inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .aid-sub { margin-left: 0; }
  .aid-hero__lead { font-size: 16px; }
  .aid-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .aid-card__body { padding: 10px 12px 12px; }
  .aid-card__title { font-size: 13.5px; }
}
@media (max-width: 420px) { .aid-gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .aid-hero__art img, .aid-scan { animation: none; } }
