/* Стили модуля js/consult.js. До 19.09.2026 скрипт вставлял их тегом <style>;
   с 19.09.2026 CSP сайта без 'unsafe-inline' такие теги не применяет, поэтому стили — здесь.
   Правите стили раздела — правьте этот файл и поднимайте его ?v=N в index.html. */

        .ac-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
            padding: 20px; opacity: 0; transition: opacity .2s ease; }
        .ac-modal.is-open { opacity: 1; }
        .ac-modal[hidden] { display: none; }
        .ac-modal__scrim { position: absolute; inset: 0; background: rgba(6,5,16,0.6);
            -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
        .ac-modal__panel { position: relative; z-index: 1; width: min(980px, 100%); max-height: 90vh; overflow-y: auto;
            padding: 26px 26px 24px; border-radius: 28px;
            background: linear-gradient(165deg, #221c36, #16122a);
            border: 1px solid rgba(255,255,255,0.14);
            box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
            transform: translateY(10px) scale(.98); transition: transform .24s ease; color: #efeafb; }
        .ac--psy .ac-modal__panel { background: linear-gradient(165deg, #102019, #0a1712); }
        .ac-modal.is-open .ac-modal__panel { transform: none; }
        .ac-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
            display: grid; place-items: center; margin: 0; padding: 0; line-height: 1; font-size: 15px;
            border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; }
        .ac-close:hover { background: rgba(255,255,255,0.14); }

        .ac-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding-right: 44px; }
        .ac-head__icon { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
            font-size: 24px; color: #ffb347; background: rgba(255,179,71,0.16); border: 1px solid rgba(255,179,71,0.34); }
        .ac-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
        .ac-sub { font-size: 13.5px; line-height: 1.55; opacity: .78; margin-top: 4px; }

        .ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); gap: 16px; }
        /* Каталог дисциплины может быть пуст (услуги сняты) — пустая сетка не должна
           оставлять зазор между плашкой «скоро» и визиткой специалиста. */
        .ac-grid:empty { display: none; }
        .ac-card { position: relative; display: flex; flex-direction: column; padding: 22px 20px; border-radius: 22px;
            background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 34px rgba(0,0,0,0.26);
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
        .ac-card:hover { transform: translateY(-5px); border-color: rgba(255,179,71,0.55);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 22px 50px rgba(0,0,0,0.38); }
        .ac-card--popular { border-color: rgba(255,207,92,0.5);
            background: linear-gradient(165deg, rgba(255,207,92,0.14), rgba(255,255,255,0.02)); }
        .ac-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .ac-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px;
            color: #ffb347; background: rgba(255,179,71,0.15); border: 1px solid rgba(255,179,71,0.32); }
        .ac-badge { font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 5px 10px; border-radius: 999px;
            color: #6a4a00; background: linear-gradient(135deg, #ffe9a8, #ffcf5c); }
        .ac-card__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
        .ac-card__tagline { margin-top: 3px; font-size: 12.5px; opacity: .65; }
        .ac-card__price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 8px; color: #ffd98a; }
        .ac-card__ready { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
            font-size: 11.5px; font-weight: 700; letter-spacing: .2px; padding: 4px 10px; border-radius: 999px;
            color: #7be3b8; background: rgba(69,224,168,0.12); border: 1px solid rgba(69,224,168,0.28); }
        .ac-card__ready i { font-size: 10px; }
        .ac-card__desc { font-size: 13px; line-height: 1.5; opacity: .82; min-height: 40px; }
        /* Обязательное условие услуги — янтарным, чтобы не сливалось с перечнем «что входит». */
        /* Заморозка раздела: услуга анонсирована, но записаться пока нельзя. */
        .ac-soon { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 18px;
            padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
            color: #f0c987; background: rgba(240,201,135,0.10); border: 1px solid rgba(240,201,135,0.32); }
        .ac-soon i { margin-top: 3px; font-size: 15px; flex: 0 0 auto; }
        .ac-soon b { color: #ffdf9e; }
        .ac-cta--soon { opacity: .55; cursor: default; filter: grayscale(.5); }
        .ac-card__note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px;
            font-size: 12.5px; line-height: 1.45; padding: 9px 11px; border-radius: 10px;
            color: #f0c987; background: rgba(240,201,135,0.10); border: 1px solid rgba(240,201,135,0.30); }
        .ac-card__note i { margin-top: 2px; font-size: 11px; flex: 0 0 auto; }
        .ac-feats { list-style: none; margin: 14px 0 16px; padding: 12px 0 0; display: flex; flex-direction: column; gap: 9px;
            border-top: 1px solid rgba(255,255,255,0.10); }
        .ac-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.4; }
        .ac-feats li i { margin-top: 3px; font-size: 11px; color: #45e0a8; flex: 0 0 auto; }

        .ac-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
            width: 100%; padding: 7px 8px 7px 18px; border: none; cursor: pointer;
            border-radius: 999px; font-size: 14.5px; font-weight: 700; color: #2a1e05;
            background: linear-gradient(135deg, #ffe9b0, #f0b84a 45%, #e08a4a);
            box-shadow: 0 12px 26px rgba(240,184,74,0.32);
            transition: filter .18s ease, transform .18s ease; }
        .ac-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
        .ac-cta:disabled { opacity: .7; cursor: default; transform: none; }
        .ac-cta__arrow { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
            font-size: 13px; color: #fff; background: rgba(42,30,5,0.9); transition: transform .18s ease; }
        .ac-cta:hover .ac-cta__arrow { transform: translateX(3px); }

        .ac-note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.55;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
            padding: 12px 14px; opacity: .92; }
        .ac-note i { color: #ffb347; margin-top: 2px; flex: 0 0 auto; }
        .ac-note a { color: #ffd98a; }

        .ac-reqs { margin-top: 18px; border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 14px 16px;
            background: rgba(255,255,255,0.04); }
        .ac-reqs__h { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
            color: #ffd98a; }
        .ac-req { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0;
            border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
        .ac-req:first-of-type { border-top: none; }
        .ac-req__tx { flex: 1 1 220px; min-width: 0; line-height: 1.45; }
        .ac-req__meta { display: block; font-size: 11.5px; opacity: .55; }
        .ac-req__status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
            color: var(--st); background: color-mix(in srgb, var(--st) 14%, transparent);
            border: 1px solid color-mix(in srgb, var(--st) 35%, transparent); white-space: nowrap; }
        .ac-req__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
            font-size: 12.5px; font-weight: 700; text-decoration: none; color: #2a1e05;
            background: linear-gradient(135deg, #ffe9b0, #f0b84a); border: none; cursor: pointer; font-family: inherit; }
        .ac-req__btn:disabled { opacity: .6; cursor: default; }
        .ac-req__btn--violet { color: #fff; background: linear-gradient(135deg, #8f7bff, #6a4fd0); }
        .ac-req__cancel { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
            font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit;
            color: #ffb3b3; background: rgba(255,90,90,0.10); border: 1px solid rgba(255,90,90,0.32); }
        .ac-req__cancel:hover { background: rgba(255,90,90,0.18); }
        .ac-req__reason { display: block; font-size: 11.5px; opacity: .72; margin-top: 4px; line-height: 1.4; }
        .ac-req__reason i { color: #ff9d9d; margin-right: 4px; }

        .ac-cancel { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center;
            padding: 18px; background: rgba(6,6,16,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
            opacity: 0; transition: opacity .18s; }
        .ac-cancel.is-open { opacity: 1; }
        .ac-cancel__panel { width: 100%; max-width: 440px; background: #1a1730; color: #efeafb;
            border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px;
            display: flex; flex-direction: column; gap: 12px;
            transform: translateY(14px); transition: transform .2s; }
        .ac-cancel.is-open .ac-cancel__panel { transform: translateY(0); }
        .ac-cancel__h { font-size: 17px; font-weight: 800; }
        .ac-cancel__lead { font-size: 13px; line-height: 1.5; opacity: .82; margin: 0; }
        .ac-cancel__err { margin: 0; font-size: 12.5px; color: #ffb3b3;
            background: rgba(255,90,90,0.12); border: 1px solid rgba(255,90,90,0.4);
            border-radius: 10px; padding: 9px 12px; }
        .ac-cancel__btns { display: flex; gap: 10px; }
        .ac-cancel__btn { flex: 1; padding: 12px; border-radius: 12px; border: none; cursor: pointer;
            font-family: inherit; font-size: 14px; font-weight: 700; }
        .ac-cancel__btn--no { background: rgba(255,255,255,.08); color: #efeafb; border: 1px solid rgba(255,255,255,.16); }
        .ac-cancel__btn--yes { background: linear-gradient(135deg, #ff8b8b, #e05555); color: #2a0b0b; }
        .ac-cancel__btn--yes:disabled { opacity: .55; cursor: default; }

        .ac-form { display: flex; flex-direction: column; gap: 14px; }
        .ac-field { display: flex; flex-direction: column; gap: 6px; }
        .ac-field__lbl { font-size: 12px; font-weight: 700; letter-spacing: .3px; opacity: .8; }
        .ac-input { width: 100%; padding: 11px 13px; border-radius: 12px; font-size: 14px; color: #efeafb;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
            font-family: inherit; resize: vertical; }
        .ac-input:focus { outline: none; border-color: rgba(255,179,71,0.6);
            box-shadow: 0 0 0 3px rgba(255,179,71,0.15); }
        /* Выпадающий список — в тёмной стилистике раздела (раньше был белым) */
        select.ac-input { color-scheme: dark; }
        select.ac-input option { color: #ece8fb; background: #1c1730; }
        select.ac-input option:checked { color: #f0c987; background: #2b2145; }
        .ac-form__err { background: rgba(255,90,90,0.12); border: 1px solid rgba(255,90,90,0.4); color: #ffb3b3;
            border-radius: 12px; padding: 10px 14px; font-size: 13px; }
        .ac-form__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
        .ac-form__actions .ac-cta { width: auto; min-width: 240px; }
        .ac-back { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
            cursor: pointer; font-size: 13.5px; font-weight: 600; color: inherit;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); }
        .ac-back:hover { background: rgba(255,255,255,0.11); }
        .ac-form__legal { font-size: 11.5px; line-height: 1.5; opacity: .6; margin: 2px 0 0; }
        .ac-form__legal a { color: #ffd98a; }

        .ac-done { text-align: center; padding: 18px 6px 6px; }
        .ac-loading { display: grid; place-items: center; min-height: 260px; font-size: 30px; opacity: .55; }
        .ac-done__icon { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
            font-size: 40px; color: #45e0a8; background: rgba(69,224,168,0.12);
            border: 1px solid rgba(69,224,168,0.35); margin-bottom: 14px; }
        .ac-done__icon--info { color: #ffb347; background: rgba(255,179,71,0.12); border-color: rgba(255,179,71,0.35); }
        .ac-done__title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
        .ac-done__text { font-size: 14.5px; opacity: .85; margin: 8px 0 0; }
        .ac-done__steps { display: flex; flex-direction: column; gap: 10px; margin: 20px auto 22px; max-width: 520px;
            text-align: left; }
        .ac-step { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
            border-radius: 14px; padding: 11px 14px; }
        .ac-step span { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
            font-size: 12px; font-weight: 800; color: #2a1e05; background: linear-gradient(135deg, #ffe9b0, #f0b84a); }
        .ac-done .ac-form__actions { justify-content: center; }

        @media (max-width: 640px) {
            .ac-modal { padding: 12px; }
            .ac-modal__panel { padding: 20px 16px 18px; }
            .ac-title { font-size: 19px; }
        }

        /* ===== Психология: зелёный акцент вместо золотого ===== */
        .ac--psy .ac-head__icon { color: #4fd6a0; background: rgba(79,214,160,0.16); border-color: rgba(79,214,160,0.36); }
        .ac--psy .ac-card:hover { border-color: rgba(79,214,160,0.55); }
        .ac--psy .ac-card--popular { border-color: rgba(79,214,160,0.5);
            background: linear-gradient(165deg, rgba(79,214,160,0.14), rgba(255,255,255,0.02)); }
        .ac--psy .ac-card__icon { color: #4fd6a0; background: rgba(79,214,160,0.15); border-color: rgba(79,214,160,0.32); }
        .ac--psy .ac-badge { color: #063127; background: linear-gradient(135deg, #b9f5df, #4fd6a0); }
        .ac--psy .ac-card__price { color: #7be3b8; }
        .ac--psy .ac-cta { color: #062018; background: linear-gradient(135deg, #b9f5df, #4fd6a0 45%, #1d9e75);
            box-shadow: 0 12px 26px rgba(29,158,117,0.32); }
        .ac--psy .ac-cta__arrow { color: #fff; background: rgba(6,32,24,0.9); }
        .ac--psy .ac-note i, .ac--psy .ac-reqs__h, .ac--psy .ac-note a, .ac--psy .ac-form__legal a { color: #7be3b8; }
        .ac--psy .ac-input:focus { border-color: rgba(79,214,160,0.6); box-shadow: 0 0 0 3px rgba(79,214,160,0.15); }
        .ac--psy .ac-req__btn { color: #062018; background: linear-gradient(135deg, #b9f5df, #4fd6a0); }
        .ac--psy .ac-step span { color: #062018; background: linear-gradient(135deg, #b9f5df, #4fd6a0); }
        .ac-badge--alt { color: #062018; background: linear-gradient(135deg, #b9f5df, #4fd6a0); }
        .ac-card--free .ac-card__price { color: #7be3b8; }
        .ac--psy .ac-card--free { border-color: rgba(79,214,160,0.5);
            background: linear-gradient(165deg, rgba(79,214,160,0.12), rgba(255,255,255,0.02)); }

        /* ===== Блок «Обо мне» (bio) в окне живого консультанта ===== */
        .ac-bio { margin-top: 18px; border: 1px solid rgba(255,255,255,0.10); border-radius: 16px;
            padding: 16px 18px; background: rgba(255,255,255,0.03); }
        .ac-bio__lead { font-size: 15px; font-weight: 700; font-style: italic; color: #7be3b8; margin-bottom: 9px; }
        .ac-bio p { font-size: 13px; line-height: 1.55; opacity: .9; margin: 0 0 14px; }
        .ac-bio__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
        @media (max-width: 640px) { .ac-bio__cols { grid-template-columns: 1fr; } }
        .ac-bio__h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
            color: #7be3b8; margin-bottom: 9px; }
        .ac-bio ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
        .ac-bio li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.45; opacity: .9; }
        .ac-bio li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px;
            border-radius: 50%; background: #4fd6a0; }
        .ac-bio__note { margin-top: 14px; font-size: 12.5px; opacity: .78; display: flex; align-items: center; gap: 8px; }
        .ac-bio__note i { color: #4fd6a0; }
        html[data-theme="light"] .ac-bio { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
        html[data-theme="light"] .ac-bio__lead, html[data-theme="light"] .ac-bio__h { color: #12805e; }

        /* ----- Светлая тема ----- */
        html[data-theme="light"] .ac-modal__panel {
            background: linear-gradient(165deg, rgba(255,255,255,0.99), rgba(247,245,252,0.99));
            border-color: rgba(0,0,0,0.10); color: #20203a;
            box-shadow: 0 40px 90px rgba(60,30,90,0.26), inset 0 1px 0 rgba(255,255,255,0.9); }
        html[data-theme="light"] .ac-close { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #20203a; }
        html[data-theme="light"] .ac-card { background: linear-gradient(165deg, rgba(255,255,255,0.95), rgba(250,248,255,0.85));
            border-color: rgba(0,0,0,0.08); box-shadow: 0 14px 30px rgba(90,40,140,0.10); }
        html[data-theme="light"] .ac-card--popular { background: linear-gradient(165deg, rgba(255,240,200,0.9), rgba(255,255,255,0.85));
            border-color: rgba(240,164,60,0.5); }
        html[data-theme="light"] .ac--psy .ac-card--popular { background: linear-gradient(165deg, rgba(200,245,225,0.9), rgba(255,255,255,0.85));
            border-color: rgba(79,214,160,0.5); }
        html[data-theme="light"] .ac-card__price { color: #b0730a; }
        html[data-theme="light"] .ac--psy .ac-card__price { color: #12805e; }
        html[data-theme="light"] .ac-feats { border-top-color: rgba(0,0,0,0.08); }
        html[data-theme="light"] .ac-note,
        html[data-theme="light"] .ac-reqs,
        html[data-theme="light"] .ac-step { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
        html[data-theme="light"] .ac-note a, html[data-theme="light"] .ac-form__legal a { color: #b0730a; }
        html[data-theme="light"] .ac--psy .ac-note a, html[data-theme="light"] .ac--psy .ac-form__legal a,
        html[data-theme="light"] .ac--psy .ac-reqs__h { color: #12805e; }
        html[data-theme="light"] .ac-reqs__h { color: #b0730a; }
        html[data-theme="light"] .ac-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #20203a; }
        html[data-theme="light"] .ac-back { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
        
