/* Служебное для тестового сайта */
.abbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 16px; background: #1c274c; color: #fff; font: 500 13px/1.3 Arial, sans-serif; position: relative; z-index: 10000; }
.abbar .ab-t { opacity: .85; }
.abbar .ab-sw { display: inline-flex; align-items: center; gap: 4px; }
.abbar .ab-sw a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); min-height: 32px; display: inline-flex; align-items: center; }
.abbar .ab-sw a.on { background: #ffd33d; color: #1c274c; font-weight: 700; }
.abbar .ab-home { color: #fff; margin-left: auto; }
.owner { border-bottom: 0 !important; }
.rev .ph.ini { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background-image: none !important; }
a.video { display: block; color: inherit; text-decoration: none; }
.ab-miss { outline: 2px solid #d9302c !important; outline-offset: 1px; }
.ab-modal { position: fixed; inset: 0; background: rgba(15, 20, 40, .55); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ab-card { background: #fff; color: #1c274c; border-radius: 16px; padding: 22px; width: min(480px, 100%); max-height: 86vh; overflow: auto; font: 15px/1.45 Arial, sans-serif; }
.ab-card h3 { margin: 0 0 8px; font-size: 19px; }
.ab-card ul { margin: 10px 0; padding-left: 18px; word-break: break-word; }
.ab-card .ab-note { color: #5b6275; font-size: 13px; }
.ab-act { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.ab-act button { border: 0; background: #1c274c; color: #fff; padding: 10px 18px; border-radius: 10px; cursor: pointer; font: inherit; min-height: 40px; }

/* форма B внутри нашего первого экрана: только карточка формы, его заголовок и оффер скрыты (скрипту формы они нужны в разметке) */
.order-hero.ab-inline { background: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; position: relative; z-index: 1; overflow: visible; color: #1c274c; min-width: 0; }
.hero .order-hero.ab-inline { align-self: center; margin: 30px 0 !important; }
@media (max-width: 900px) { .hero .order-hero.ab-inline { margin: 14px 0 26px !important; } }
.order-hero.ab-inline::before, .order-hero.ab-inline::after { display: none !important; }
.order-hero.ab-inline .base { max-width: none; width: auto; margin: 0; padding: 0; }
.order-hero.ab-inline .order-breadcrumbs, .order-hero.ab-inline .order-offer { display: none !important; }
.order-hero.ab-inline .order-hero__grid { display: block; padding: 0; margin: 0; }
.order-hero.ab-inline .order-form-wrapper { width: 100%; max-width: none; margin: 0; }
.order-hero.ab-inline .iti { display: block; width: 100%; }
/* кнопка файла стилизована в общем CSS боевого сайта, здесь его нет: те же правила */
.order-hero.ab-inline .upfiles { display: flex; flex-direction: column; align-items: flex-start; }
.order-hero.ab-inline button.browse { display: flex; background-color: #fff; border: 1px solid #ebebeb; padding: 15px 20px; align-items: center; justify-content: space-between; gap: 60px; color: #000; cursor: pointer; box-sizing: border-box; }
.order-hero.ab-inline button.browse:hover { background-color: #fafafa; }
.order-hero.ab-inline .filelist { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.ab-cta { display: inline-block; padding: 16px 24px; text-decoration: none; border-radius: 18px; font-weight: 700; }
.final .ab-cta { align-self: center; justify-self: center; margin: 30px; text-align: center; }

/* форма A в два шага */
form[data-q2] .field { position: relative; }
/* девушка стоит перед формой, как в прототипе. Только открытый список поверх неё */
.hero form[data-q2]:has(.q2-list:not([hidden])) { z-index: 4; }
.q2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.q2-n { flex: none; font-size: 12px; font-weight: 700; color: var(--mut); background: #f1f3f8; border-radius: 99px; padding: 3px 9px; margin-top: 3px; margin-left: auto; }
.q2-bar { height: 3px; background: #eef0f5; border-radius: 3px; margin: 2px 0 12px; overflow: hidden; }
.q2-bar i { display: block; height: 100%; width: 50%; background: var(--or); border-radius: 3px; transition: width .2s; }
.q2-s[hidden] { display: none; }
form.qform[data-q2] .field { margin-bottom: 9px; }
form.qform[data-q2] .field input { padding: 11px 13px; }
form.qform[data-q2] .q2-row { grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
form[data-q2] .field em { font-style: normal; font-weight: 500; opacity: .75; }
.q2-bad input { border-color: #d9302c !important; }
.q2-err { display: block; color: #c62a26; font-size: 12px; margin-top: 3px; }
.q2-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 220px; overflow-y: auto; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(28, 39, 76, .2); font-size: 14px; min-width: 220px; }
.q2-list[hidden] { display: none; }
.q2-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.q2-list li:hover, .q2-list li.on { background: #f1f3f8; }
.q2-list li.q2-none { color: var(--mut); }
.q2-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(28, 39, 76, .2); padding: 8px; }
.q2-panel[hidden] { display: none; }
.q2-search { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--navy); }
.q2-panel .q2-list { position: static; margin: 6px 0 0; padding: 0; border: 0; box-shadow: none; min-width: 0; }
form[data-q2] .tp { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q2-sum { display: flex; align-items: center; gap: 9px; background: #fff8ec; border: 1px solid #f6dfb4; border-radius: 12px; padding: 9px 11px; margin-bottom: 11px; font-size: 13px; color: var(--navy); }
.q2-ck { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #2f9e6e; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.q2-st { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.q2-st b { display: block; font-size: 12.5px; }
.q2-st b:empty { display: none; }
.q2-sum button { flex: none; border: 0; background: none; color: var(--mut); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 8px 0 8px 4px; }
.q2-free { text-align: center; font-size: 12.5px; color: var(--mut); margin: 9px 0 0; }
.q2-ok { text-align: center; color: var(--navy); }
.q2-check { width: 46px; height: 46px; margin: 2px auto 8px; border-radius: 50%; background: #2f9e6e; color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.q2-ok h4 { margin: 0 0 6px; font-size: 19px; }
.q2-no { display: inline-block; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; margin-bottom: 8px; }
.q2-ok p { font-size: 13.5px; margin: 0 0 12px; color: var(--mut); }
.q2-tg { background: #2aa3e6; color: #fff; border-radius: 14px; padding: 13px 14px; text-align: left; }
.q2-tg b { display: block; font-size: 15px; }
.q2-tg small { display: block; font-size: 12px; opacity: .9; margin-bottom: 6px; }
.q2-tg ul { margin: 0 0 10px; padding-left: 17px; font-size: 13px; }
.q2-tgbtn .ic { width: 20px; height: 20px; flex: none; color: inherit; }
.q2-tgbtn { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; background: #fff; color: #1c7fb8; font-weight: 700; border-radius: 99px; padding: 11px; text-decoration: none; }
.q2-test { margin-top: 10px; text-align: left; font: 13px/1.4 Arial, sans-serif; color: #5b6275; }
.q2-test summary { cursor: pointer; }
.q2-test ul { margin: 6px 0 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.q2-test li span { color: #1c274c; font-weight: 700; }
.ab-cta { color: #fff; }
.q2-files { list-style: none; margin: -6px 0 10px; padding: 0; font-size: 12.5px; color: var(--navy); }
.q2-files:empty { display: none; }
.q2-files li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 3px 10px; background: #f6f7fb; border-radius: 8px; margin-top: 4px; }
.q2-files span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q2-files button { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--mut); font-size: 17px; line-height: 1; cursor: pointer; }
[data-files] { cursor: pointer; }
a.rev-name { color: inherit; text-decoration: none; }
a.rev-name:hover { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
form[data-q2] .note[hidden] { display: none; }

/* Декор секций только в полях вокруг контента (контент 1160 px, поле = (100vw - 1160px) / 2, минус полоса прокрутки): на ноутбуках он наезжал на заголовки и карточки */
.deco { --gut: calc((100vw - 1176px) / 2); }
.deco.deco-a .d-grid, .deco.deco-b .d-grid { width: min(190px, calc(var(--gut) - 28px)); }
.deco.deco-a .d-grid { left: 14px; }
.deco.deco-b .d-grid { right: 14px; }
.deco.deco-a .d-chev { left: 14px; width: min(230px, calc(var(--gut) - 28px)); overflow: hidden; }
.deco.deco-a .d-plus, .deco.deco-b .d-plus { left: calc(var(--gut) / 2 - 15px); }
.deco.deco-a .d-plus.d2, .deco.deco-b .d-plus.d2 { left: auto; right: calc(var(--gut) / 2 - 15px); }
.deco.deco-a .d-half, .deco.deco-b .d-half { right: min(0px, calc(var(--gut) - 440px)); }
@media (max-width: 1899px) { .deco.deco-a .d-curve, .deco.deco-b .d-curve { display: none; } }
@media (max-width: 1299px) { .deco.deco-a > i, .deco.deco-b > i { display: none; } }

/* видеоотзыв: на лице ничего нет. Кадр поднят, подпись и кнопка в нижней полосе под подбородком (замер в проверке) */
a.video.vr { display: block; position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 1 / 1; min-height: 300px; background: #1c274c; isolation: isolate; color: #fff; text-decoration: none; }
a.video.vr img { position: absolute; left: 0; top: 0; right: auto; bottom: auto; width: 100%; height: auto; max-width: none; transform: translateY(-9.5%); transition: transform .5s ease; }
a.video.vr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 39, 76, 0) 71%, rgba(28, 39, 76, .98) 84%); } /* ниже подбородка: закрывает зашитую в кадр плашку */
a.video.vr:hover img { transform: translateY(-9.5%) scale(1.03); }
.vr-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #e25b2b; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: vr-pulse 2.4s infinite; transition: transform .2s ease; }
.vr-play svg { width: 28px; height: 28px; margin-left: 2px; }
a.video.vr:hover .vr-play { transform: scale(1.08); }
@keyframes vr-pulse { 70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.vr-cap { position: absolute; z-index: 2; left: 16px; right: 80px; bottom: 15px; display: block; }
.vr-cap small { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 13px; color: #fff; }
.vr-cap small svg { width: 17px; height: 17px; flex: none; }
.vr-cap b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; color: #fff; }
@media (prefers-reduced-motion: reduce) { .vr-play { animation: none; } a.video.vr:hover img { transform: translateY(-9.5%); } }

/* код друга в форме */
.q2-promo-link { display: block; border: 0; background: none; padding: 2px 0 10px; color: var(--mut); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.q2-promo-link[hidden], .q2-promo[hidden] { display: none; }

/* Лента отзывов и заказов: свайп, нажатие не должно останавливать её навсегда */
.ticker { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ticker:active { cursor: grabbing; }
.ticker:focus-within .track { animation-play-state: running; }
@media (hover: none) { .ticker:hover .track { animation-play-state: running; } }
.q2-fail { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1f11; font-size: 14px; line-height: 1.4; }
.q2-fail a { color: inherit; text-decoration: underline; }
.q2-fail-top { margin: 0 0 16px; grid-column: 1 / -1; }

/* narrow phones 320-400 (2026-11-06, prototype/scan_overflow.py): final form, sticker, FAQ Telegram button and form button arrow are not cut */
@media (max-width:520px){.final{grid-template-columns:minmax(0,1fr)}.final>.t,.final form.qform{min-width:0}.faqsec .btn,.faqsec .btn-tg{max-width:100%;white-space:normal}}
@media (max-width:400px){form.qform .btn-main{padding-left:14px;padding-right:6px;gap:8px;white-space:normal;text-align:left;line-height:1.15;font-size:15px}form.qform .btn-main>i{flex:none}}
@media (max-width:380px){body .sticker{right:6px}}   /* body: glavna.css и kursova.css подключаются после page.css и задают .sticker сами */
