/* ============================================================
   Страница /price — «ПРЕЙСКУРАНТ-ДОКУМЕНТ» (эталон auth-invoice).
   Бумага #FDFBF6 на «столе» var(--bg-base) — СВЕТЛАЯ В ОБЕИХ ТЕМАХ
    (doc-палитра #1a1a2e/#6a6a88/#eceadf/#c5c7d6/#e4e1d4/#2E6B53 + полутона
    #4a4a68/#9a9ab0/#b0aec0/#b9b7a8/#d8d5c8/#e4e6f4/#b45309/#ffffff/#6c63f0
    + alert-палитра на бумаге #d4edda/#bee5c0/#155724, #f8d7da/#f5c6cb/#721c24,
    #fff3cd/#ffeeba/#856404, #d1ecf1/#bee5eb/#0c5460 —
   фиксированная, осознанное исключение из «только var(--*)»,
   прецедент auth_split.css; действует внутри .price-doc/.price-bar).
   Акцент документа — --doc-primary (фиксированный: var(--primary) в dark
   светлеет, а на бумаге акцент обязан быть стабилен).
   BEM .price-*, tnum у цен, dark через [data-theme="dark"], 768/480.
   ============================================================ */

/* ==================== Документ на столе ==================== */
.price-doc {
    --doc-primary: #5a52e0;
    position: relative;
    max-width: 920px;
    margin: 8px auto 40px;
    background: #FDFBF6;
    color: #1a1a2e;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 48px 20px 64px; /* слева место под пробойники */
    overflow: hidden;
}

[data-theme="dark"] .price-doc {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Dark color-scheme перекрашивает button/input/textarea в белый ПО UA-СТИЛЮ
   (не наследуют color контейнера) — на светлой бумаге текст исчезает.
   Правило: ВСЕ элементы внутри документа получают явный color doc-палитры. */
.price-doc button,
.price-doc input,
.price-doc textarea {
    color: #1a1a2e;
}

/* [data-theme="dark"] .form-input (0,2,1) из style.css перекрывает слабые
   селекторы — form-полям нужны (0,2,1) + позже style.css (этот файл
   подключён после него в extra_css) */
.price-doc input.form-input,
.price-doc textarea.form-input {
    color: #1a1a2e;
    background: transparent;
}

.price-doc .price-row__price b,
.price-doc .price-set__price,
.price-doc .price-set__name,
.price-doc .price-row__name,
.price-doc .price-row-group__price b,
.price-doc .price-row-group__name {
    color: #1a1a2e;
}

/* Акценты документа — фиксированный --doc-primary */
.price-doc .price-set__num,
.price-doc .price-section-doc__num,
.price-doc .price-jur-cat__num,
.price-doc .price-partner-doc__glyph {
    color: var(--doc-primary);
}

.price-doc .price-index__link.is-active {
    color: var(--doc-primary);
    border-bottom-color: var(--doc-primary);
}

.price-doc .price-set:hover,
.price-doc .price-row:hover {
    background: rgba(90, 82, 224, 0.04);
}

.price-doc .price-set[aria-pressed="true"] {
    background: rgba(90, 82, 224, 0.07);
}

.price-doc .price-set[aria-pressed="true"] .price-set__name {
    color: var(--doc-primary);
}

/* Водяной знак + розетка (как у auth-invoice) */
.price-doc__watermark {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 5.2rem;
    font-weight: 900;
    color: #1a1a2e;
    opacity: 0.035;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
    z-index: 0;
}

.price-doc__rosette {
    position: absolute;
    top: 120px;
    right: -46px;
    width: 210px;
    height: 210px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Контент поверх декора */
.price-doc > * {
    position: relative;
    z-index: 1;
}

/* Декор СИЛЬНЕЕ blanket-правила (0,2,0 > 0,1,0): иначе watermark/rosette/
   punch/fold получают position:relative и СТАНОВЯТСЯ ПОТОКОВЫМИ — водяной
   знак съедал ~576px высоты (поймано замером на макете) */
.price-doc > .price-doc__watermark,
.price-doc > .price-doc__rosette,
.price-doc > .price-doc__punch,
.price-doc > .price-doc__fold {
    position: absolute;
    z-index: 0;
}

.price-doc > .price-doc__punch {
    z-index: 2;
}

.price-doc > .price-doc__fold {
    z-index: 3;
}

/* Пробойники слева */
.price-doc__punch {
    position: absolute;
    left: 12px;
    top: 120px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-doc__punch-hole {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Сгиб угла */
.price-doc__fold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent var(--bg-base) transparent;
    box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.08);
}

.price-doc__fold::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, #FDFBF6 50%);
}

/* ==================== Шапка документа ==================== */
.price-doc__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a2e;
}

.price-doc__brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.price-doc__logo {
    width: 46px;
    height: 50px;
}

.price-doc__firm {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.price-doc__firm-sub {
    font-size: 0.68rem;
    color: #6a6a88;
    margin-top: 2px;
}

.price-doc__title-block {
    text-align: right;
}

.price-doc__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6a6a88;
    font-weight: 700;
}

.price-doc__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2px 0 0;
}

.price-doc__docline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.68rem;
    color: #6a6a88;
    padding: 4px 0 5px;
    border-bottom: 1px dashed #c5c7d6;
}

.price-doc__docline b {
    color: #1a1a2e;
}

/* ==================== Части А/Б + поиск в одной строке ==================== */
.price-doc__parts {
    display: flex;
    gap: 26px;
    align-items: center;
    border-bottom: 1px solid #e4e6f4;
    margin-bottom: 4px;
}

.price-doc__search {
    margin-left: auto;
}

.price-part {
    padding: 5px 2px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #6a6a88;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: inherit;
}

.price-part.is-active {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

.price-part__tag {
    font-size: 0.62rem;
    color: #6a6a88;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 6px;
}

/* ==================== Индекс разделов + поиск ==================== */
.price-doc__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin: 8px 0 2px;
}

.price-doc__search input {
    border: none;
    border-bottom: 1.5px solid #c5c7d6;
    background: transparent;
    padding: 5px 2px;
    font-size: 0.85rem;
    color: #1a1a2e;
    width: 220px;
    font-family: inherit;
}

.price-doc__search input:focus {
    outline: none;
    border-bottom-color: var(--doc-primary);
}

.price-doc__search input::placeholder {
    color: #9a9ab0;
}

.price-index {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: baseline;
}

.price-index__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a6a88;
    font-weight: 700;
}

.price-index__link {
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a4a68;
    font-family: inherit;
    border-bottom: 1.5px solid transparent;
}

.price-index__link:hover {
    color: #1a1a2e;
}

.price-index__link.is-active {
    color: var(--doc-primary);
    border-bottom-color: var(--doc-primary);
}

.price-search-empty {
    padding: 16px 8px;
    color: #6a6a88;
    font-size: 0.88rem;
    border-bottom: 1px dashed #c5c7d6;
}

/* ==================== Типовые наборы (строки документа) ==================== */
.price-sets {
    margin: 6px 0 2px;
}

.price-sets__caption {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a6a88;
    font-weight: 700;
    margin-bottom: 2px;
}

.price-set {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding: 4px;
    background: none;
    border: none;
    border-bottom: 1px dotted #d8d5c8;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease;
}

.price-set__num {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.95rem;
}

.price-set__name {
    font-weight: 700;
    font-size: 0.9rem;
}

.price-set__desc {
    font-size: 0.76rem;
    color: #6a6a88;
}

.price-set__dots {
    flex: 1;
    border-bottom: 2px dotted #c5c7d6;
    transform: translateY(-3px);
    min-width: 14px;
}

.price-set__price {
    font-weight: 800;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

/* ==================== Разделы и строки прейскуранта ==================== */
.price-section-doc {
    margin-top: 12px;
}

.price-section-doc__title {
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 2px;
}

.price-section-doc__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a1a2e;
    transform: translateY(-4px);
}

.price-section-doc__num {
    font-style: italic;
    font-size: 0.95rem;
}

.price-section-doc__count {
    font-size: 0.72rem;
    color: #6a6a88;
    font-family: var(--font-main);
    font-weight: 600;
}

.price-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-bottom: 1px solid #eceadf;
    cursor: pointer;
    transition: background 0.15s ease;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row__idx {
    flex-shrink: 0;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.78rem;
    color: #9a9ab0;
    min-width: 18px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-row__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.price-row__name {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.price-row__star {
    width: 13px;
    height: 13px;
    color: #b45309;
    flex-shrink: 0;
    fill: currentColor;
}

.price-row__desc {
    font-size: 0.78rem;
    color: #6a6a88;
    line-height: 1.4;
}

.price-row__dots {
    flex: 1;
    border-bottom: 2px dotted #c5c7d6;
    transform: translateY(-4px);
    min-width: 16px;
    align-self: flex-start;
    margin-top: 13px;
}

.price-row__price {
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
}

.price-row__price b {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-row__price i {
    font-style: normal;
    font-size: 0.72rem;
    color: #6a6a88;
    display: block;
}

.price-row__ask {
    color: #6a6a88;
    font-size: 0.85rem !important;
    font-style: italic;
}

/* ==================== Часть Б — юр (аккордеон в языке документа) ==================== */
.price-partner-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 6px;
    padding: 10px 14px;
    border: 1px dashed #c5c7d6;
    border-radius: 4px;
    background: rgba(90, 82, 224, 0.03);
}

.price-partner-doc__glyph {
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
}

.price-partner-doc p {
    margin: 0;
    font-size: 0.78rem;
    color: #4a4a68;
    line-height: 1.45;
}

.price-jur-cat {
    border-bottom: 1px solid #eceadf;
}

.price-jur-cat__summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}

.price-jur-cat__summary::-webkit-details-marker {
    display: none;
}

.price-jur-cat__summary:hover {
    background: rgba(90, 82, 224, 0.04);
}

.price-jur-cat__num {
    font-family: Georgia, serif;
    font-style: italic;
}

.price-jur-cat__count {
    font-size: 0.72rem;
    color: #6a6a88;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-jur-cat__chevron {
    margin-left: auto;
    display: inline-flex;
    color: #6a6a88;
    transition: transform 0.2s ease;
}

.price-jur-cat__chevron svg {
    width: 15px;
    height: 15px;
}

.price-jur-cat[open] .price-jur-cat__chevron {
    transform: rotate(180deg);
}

.price-jur-cat .price-rows {
    padding: 0 4px 6px 34px;
}

/* ==================== Строки-группы режимов (.price-row-group) ====================
   «Строка-раскрывашка» в языке документа (зеркало .price-jur-cat): summary с
   «от min ₽» + note min-варианта, chevron, toggle-кнопка «выбрать»;
   варианты — обычные .price-row (data-service-id → заявка/бар/×N работают). */
.price-row-group {
    border-bottom: 1px solid #eceadf;
}

.price-row-group__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}

.price-row-group__summary::-webkit-details-marker {
    display: none;
}

.price-row-group__summary:hover {
    background: rgba(90, 82, 224, 0.04);
}

.price-row-group__summary:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
}

/* Кнопка «выбрать» в summary — тот же кружок, что у строк (переиспользование
   .price-row__toggle); клик по ней details НЕ раскрывает (JS preventDefault) */
.price-row-group__name {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
}

.price-row-group__count {
    font-size: 0.72rem;
    color: #6a6a88;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.price-row-group__dots {
    flex: 1;
    border-bottom: 2px dotted #c5c7d6;
    transform: translateY(-4px);
    min-width: 16px;
}

.price-row-group__price {
    white-space: nowrap;
    text-align: right;
}

.price-row-group__price b {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-row-group__price i {
    font-style: normal;
    font-size: 0.72rem;
    color: #6a6a88;
    display: block;
}

.price-row-group__chevron {
    display: inline-flex;
    color: #6a6a88;
    transition: transform 0.2s ease;
}

.price-row-group__chevron svg {
    width: 15px;
    height: 15px;
}

.price-row-group[open] .price-row-group__chevron {
    transform: rotate(180deg);
}

/* Варианты визуально вложены в группу */
.price-rows--group {
    padding: 0 4px 6px 30px;
}

/* Бейджи режима и формы у вариантов (посетитель видит «свой» режим) */
.price-row__regime {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--doc-primary);
    border: 1px solid var(--doc-primary);
    border-radius: 3px;
    padding: 0 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-row__entity {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #6a6a88;
    border: 1px solid #b0aec0;
    border-radius: 3px;
    padding: 0 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Сегмент режима калькулятора: 8 + «Другая» — поле на всю ширину сетки,
   кнопки переносятся (375px — сеткой, см. адаптив) */
.price-estimate__field--regime {
    grid-column: 1 / -1;
}

.price-estimate__seg--regimes {
    display: flex;
    flex-wrap: wrap;
}

/* ПСН — только ИП: «ООО» недоступна при выбранном патенте */
.price-estimate__opt input:disabled + span {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==================== Отрывная часть — форма заявки ==================== */
.price-slip {
    position: relative;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px dashed #b9b7a8;
}

/* Полукруглые прорези перфорации по краям (цвет «стола») */
.price-slip::before,
.price-slip::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-base);
}

.price-slip::before {
    left: -58px;
}

.price-slip::after {
    right: -58px;
}

.price-slip__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.price-slip__title {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.price-slip__num {
    font-size: 0.68rem;
    color: #6a6a88;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.price-slip__sub {
    font-size: 0.8rem;
    color: #6a6a88;
    margin: 0 0 16px;
}

/* Flash-сообщения в отрывной части — ВСЕГДА светлая палитра: бумага
   светлая в обеих темах, а dark-варианты alert (полупрозрачный фон +
   яркий текст — style.css) на бумаге нечитаемы. Специфичность (0,2,0)
   равна [data-theme="dark"] .alert--* — файл подключён после style.css. */
.price-doc .alert--success { background: #d4edda; border: 1px solid #bee5c0; color: #155724; }
.price-doc .alert--danger { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.price-doc .alert--warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }
.price-doc .alert--info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }

/* Поля-бланки: только нижняя линия, transparent bg */
.price-slip .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.price-slip .form-group {
    margin-bottom: 14px;
}

.price-slip .form-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a6a88;
    margin-bottom: 2px;
}

/* Обязательное поле — звёздочка */
.price-slip .form-label--req::after {
    content: " *";
    color: var(--danger);
}

.price-slip .form-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #c5c7d6;
    border-radius: 0;
    background: transparent;
    padding: 7px 2px;
    font-size: 0.95rem;
    color: #1a1a2e;
    font-family: inherit;
}

.price-slip .form-input:focus {
    outline: none;
    border-bottom-color: var(--doc-primary);
}

.price-slip .form-input::placeholder {
    color: #b0aec0;
}

.price-slip textarea.form-input {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

.price-slip .form-error {
    color: var(--danger);
}

.price-slip .price-captcha-question {
    font-weight: 700;
    margin-bottom: 8px;
}

.price-slip__foot {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

/* (0,2,0) — перекрывает blanket «.price-doc button { color: #1a1a2e }» */
.price-doc .price-slip__submit {
    padding: 12px 26px;
    border: none;
    border-radius: 4px;
    background: var(--doc-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.price-doc .price-slip__submit:hover {
    background: #6c63f0;
}

.price-slip__consent {
    font-size: 0.68rem;
    color: #6a6a88;
    line-height: 1.4;
    margin: 0;
}

.price-slip__consent a {
    color: var(--doc-primary);
}

/* ==================== Подвал документа ==================== */
.price-doc__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 34px;
    padding-top: 14px;
    border-top: 1px solid #eceadf;
}

.price-doc__sign {
    display: flex;
    gap: 34px;
    align-items: flex-end;
}

.price-doc__sign-block {
    text-align: center;
}

.price-doc__sign-line {
    border-bottom: 1.5px solid #1a1a2e;
    width: 110px;
    height: 20px;
    font-family: cursive;
    color: var(--doc-primary);
    font-style: italic;
}

.price-doc__sign-label {
    font-size: 0.58rem;
    color: #6a6a88;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* Штамп — внизу у подписей (документная логика: печать в конце документа) */
.price-doc__stamp--foot {
    width: 72px;
    height: 72px;
    margin-left: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #2E6B53;
    border-radius: 50%;
    color: #2E6B53;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    transform: rotate(-9deg);
    opacity: 0.8;
    font-size: 0.5rem;
    flex-shrink: 0;
    pointer-events: none;
}

.price-doc__stamp--foot b {
    font-size: 0.66rem;
    font-weight: 800;
}

.price-doc__contacts {
    font-size: 0.72rem;
    color: #6a6a88;
    font-weight: 600;
}

.price-doc__qr {
    width: 46px;
    height: 46px;
    opacity: 0.65;
    flex-shrink: 0;
}

/* ==================== Выбор услуги (toggle + stepper) ==================== */

/* (0,2,0) — перекрывает blanket «.price-doc button» (0,1,1); цвет галочки = бумага */
.price-doc .price-row__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid #b9b7a8;
    border-radius: 50%;
    background: transparent;
    color: #FDFBF6;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Галочка «рисуется» штрихом при выборе */
.price-row__check {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.2s ease;
}

.price-doc .price-row.is-selected .price-row__toggle {
    background: var(--doc-primary);
    border-color: var(--doc-primary);
}

.price-row.is-selected .price-row__check {
    stroke-dashoffset: 0;
}

.price-row.is-selected {
    background: rgba(90, 82, 224, 0.07);
}

/* Загнутый уголок на выбранной строке — язык документа (как сгиб у .price-doc).
   Тон — БУМАЖНЫЙ (#d8d5c8, изнанка листа), не primary: галочка и имя уже
   несут акцент, уголок работает как текстура «заложенной страницы» */
.price-row.is-selected::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent #d8d5c8 transparent transparent;
    pointer-events: none;
}

.price-doc .price-row.is-selected .price-row__name {
    color: var(--doc-primary);
}

.price-row__qty {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 6px;
    border: 1px solid #c5c7d6;
    border-radius: 999px;
    padding: 1px 5px;
    background: #FDFBF6;
}

.price-row__qty[hidden] {
    display: none;
}

.price-doc .price-row__qty-btn {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--doc-primary);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.price-doc .price-row__qty-val {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    min-width: 13px;
    text-align: center;
}

/* ==================== Sticky-bar (бумажный slips) ==================== */
.price-bar {
    --doc-primary: #5a52e0;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 30; /* стек: табы 20 < бар 30 < header 100 */
    width: min(920px, calc(100% - 24px));
    background: #FDFBF6;
    color: #1a1a2e;
    border: 1px solid #e4e1d4;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    animation: price-bar-in 0.2s ease;
}

.price-bar[hidden] {
    display: none;
}

@keyframes price-bar-in {
    from { transform: translateX(-50%) translateY(12px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.price-bar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
}

.price-bar__count {
    font-size: 0.8rem;
    color: #4a4a68;
    white-space: nowrap;
}

.price-bar__sum {
    font-size: 0.92rem;
    color: #4a4a68;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-bar__sum b {
    color: #1a1a2e;
    font-weight: 800;
}

.price-bar__note {
    font-size: 0.72rem;
    color: #6a6a88;
}

.price-bar__note[title] {
    text-decoration: underline dotted #9a9ab0;
    cursor: help;
}

.price-bar__cta {
    margin-left: auto;
    padding: 9px 20px;
    border: none;
    border-radius: 5px;
    background: var(--doc-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.price-bar__cta:hover {
    background: #6c63f0;
}

/* «Очистить» — ghost рядом с CTA; margin-left:auto у CTA прижимает пару вправо */
.price-bar__clear {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #6a6a88;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: underline dotted #b0aec0;
    text-underline-offset: 3px;
}

.price-bar__clear:hover {
    color: #1a1a2e;
    text-decoration-style: solid;
}

/* ==================== Ведомость выбранного в форме ==================== */
.price-slip__hint {
    font-size: 0.78rem;
    color: #9a9ab0;
    margin: 0 0 14px;
    font-style: italic;
}

.price-slip__ledger {
    margin-bottom: 16px;
    border-bottom: 1px solid #eceadf;
    padding-bottom: 6px;
}

.price-slip__ledger[hidden] {
    display: none;
}

.price-slip__ledger-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
}

.price-slip__ledger-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.price-slip__ledger-qty {
    font-size: 0.74rem;
    color: var(--doc-primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.price-slip__ledger-dots {
    flex: 1;
    border-bottom: 2px dotted #c5c7d6;
    transform: translateY(-3px);
    min-width: 14px;
}

.price-slip__ledger-price {
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.price-slip__ledger-remove {
    border: none;
    background: none;
    color: #9a9ab0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 4px;
}

.price-doc .price-slip__ledger-remove:hover {
    color: var(--danger);
}

.price-slip__ledger-total {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price-slip__ledger-total b {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: var(--doc-primary);
}

/* ==================== Empty-state ==================== */
.price-empty {
    padding: 24px 8px;
    color: #6a6a88;
    font-size: 0.9rem;
    border-bottom: 1px dashed #c5c7d6;
}

/* ==================== SEO-блок «Все системы налогообложения» (Р3) ====================
   Текст-описание (не интерактив) в языке документа: заголовок как у разделов
   (Georgia + линия), абзацы-примечания, перечень режимов в 2 колонки.
   Место — после каталога, перед отрывной частью; на печати виден. */
.price-regimes-note {
    margin-top: 26px;
}

.price-regimes-note__title {
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px;
}

.price-regimes-note__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a1a2e;
    transform: translateY(-4px);
}

.price-regimes-note__text {
    font-size: 0.88rem;
    color: #4a4a68;
    line-height: 1.55;
    margin: 0 0 8px;
}

.price-regimes-note__list {
    margin: 0 0 8px;
    padding-left: 18px;
    columns: 2;
    column-gap: 28px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.price-regimes-note__list li {
    margin-bottom: 2px;
    break-inside: avoid;
}

/* ==================== Примечания к прейскуранту — FAQ (В5) ====================
   details/summary без JS в языке документа (зеркало .price-jur-cat):
   вопрос — строка с chevron, ответ — текст-примечание. Общий SEO-текст —
   абзацы после списка. На печати раскрыты (beforeprint-хук шаблона). */
.price-faq {
    margin-top: 26px;
}

.price-faq__title {
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 6px;
}

.price-faq__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a1a2e;
    transform: translateY(-4px);
}

.price-faq__num {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--doc-primary);
}

.price-faq__item {
    border-bottom: 1px solid #eceadf;
}

.price-faq__q {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}

.price-faq__q::-webkit-details-marker {
    display: none;
}

.price-faq__q:hover {
    background: rgba(90, 82, 224, 0.04);
}

.price-faq__q:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
}

.price-faq__q-text {
    flex: 1;
}

.price-faq__chevron {
    display: inline-flex;
    color: #6a6a88;
    transition: transform 0.2s ease;
}

.price-faq__chevron svg {
    width: 15px;
    height: 15px;
}

.price-faq__item[open] .price-faq__chevron {
    transform: rotate(180deg);
}

.price-faq__a {
    margin: 0;
    padding: 0 4px 10px 14px;
    font-size: 0.86rem;
    color: #4a4a68;
    line-height: 1.55;
}

.price-faq__seo {
    margin-top: 14px;
}

.price-faq__seo p {
    font-size: 0.85rem;
    color: #6a6a88;
    line-height: 1.55;
    margin: 0 0 8px;
}

/* ==================== Печать-контакты (видны только в print) ==================== */
.price-print-contacts {
    text-align: center;
}

/* ==================== Фокус-стили ==================== */
.price-part:focus-visible,
.price-index__link:focus-visible,
.price-set:focus-visible,
.price-doc__search input:focus-visible,
.price-jur-cat__summary:focus-visible,
.price-row__toggle:focus-visible,
.price-row__qty-btn:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
}

/* ==================== Адаптив ==================== */
/* ==================== Приложение № 1 — калькулятор стоимости ==================== */
/* CTA-ссылка рядом с заголовком наборов (hero нет — язык документа) */
.price-sets__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.price-doc a.price-sets__estimate-link {
    color: var(--doc-primary);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--doc-primary);
    white-space: nowrap;
}

.price-doc a.price-sets__estimate-link:hover {
    border-bottom-style: solid;
}

/* «Приложение к прейскуранту»: рамка-подложка, графы бланка */
.price-estimate {
    margin: 14px 0 6px;
    padding: 14px 16px 12px;
    border: 1px solid #c5c7d6;
    border-radius: 6px;
    background: #f8f6ee;
}

.price-estimate__title {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #1a1a2e;
}

.price-estimate__num {
    font-family: Georgia, serif;
    font-style: italic;
    color: var(--doc-primary);
    font-weight: 700;
}

.price-estimate__grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 12px 22px;
    align-items: start;
}

.price-estimate__field {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.price-estimate__label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a6a88;
    font-weight: 700;
    padding: 0;
    margin-bottom: 4px;
}

/* Сегменты ИП/ООО, УСН/ОСН — переключатели в языке doc-line */
.price-estimate__seg {
    display: inline-flex;
    gap: 2px;
    border: 1px solid #c5c7d6;
    border-radius: 4px;
    padding: 2px;
    background: #FDFBF6;
}

.price-estimate__opt {
    cursor: pointer;
    margin: 0;
}

.price-estimate__opt input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.price-estimate__opt span {
    display: block;
    padding: 4px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 3px;
    color: #4a4a68;
    transition: background 0.15s ease, color 0.15s ease;
}

/* :checked оформляет подпись (input скрыт, но доступен с клавиатуры) */
.price-estimate__opt input:checked + span {
    background: var(--doc-primary);
    color: #ffffff;
}

.price-estimate__opt input:focus-visible + span {
    outline: 2px solid var(--doc-primary);
    outline-offset: 1px;
}

/* Поле сотрудников — графа бланка (нижняя линия, как у .price-slip) */
.price-estimate__input {
    width: 76px;
    border: none;
    border-bottom: 1.5px solid #b9b7a8;
    background: transparent;
    padding: 3px 2px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    font-feature-settings: "tnum";
    border-radius: 0;
}

.price-estimate__input:focus {
    outline: none;
    border-bottom-color: var(--doc-primary);
}

.price-estimate__hint {
    display: block;
    font-size: 0.68rem;
    color: #9a9ab0;
    margin-top: 2px;
}

.price-estimate__zero {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    padding-top: 3px;
}

.price-estimate__zero input {
    width: 15px;
    height: 15px;
    accent-color: var(--doc-primary);
    margin: 0;
}

/* Кнопка расчёта — как подпись-печать: компактный primary */
.price-doc .price-estimate__submit {
    margin-top: 12px;
    padding: 8px 22px;
    border: none;
    border-radius: 4px;
    background: var(--doc-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.price-doc .price-estimate__submit:hover {
    background: #6c63f0;
}

/* Результат — «вписанная ведомость» в рамке приложения */
.price-estimate__result {
    margin-top: 12px;
    border-top: 1px dashed #c5c7d6;
    padding-top: 10px;
}

.price-estimate__caption {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a6a88;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-estimate__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-estimate__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.88rem;
}

.price-estimate__name {
    font-weight: 600;
    color: #1a1a2e;
}

.price-estimate__qty {
    color: var(--doc-primary);
    font-weight: 800;
    font-feature-settings: "tnum";
}

.price-estimate__dots {
    flex: 1;
    border-bottom: 2px dotted #d8d5c8;
    transform: translateY(-3px);
    min-width: 16px;
}

.price-estimate__price {
    white-space: nowrap;
    font-weight: 700;
    color: #1a1a2e;
    font-feature-settings: "tnum";
}

.price-estimate__price i {
    font-style: normal;
    font-weight: 400;
    font-size: 0.74rem;
    color: #6a6a88;
}

.price-estimate__total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #c5c7d6;
    font-size: 0.88rem;
    color: #4a4a68;
}

.price-estimate__total-value {
    margin-left: auto;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    font-feature-settings: "tnum";
}

.price-estimate__note {
    font-size: 0.72rem;
    color: #6a6a88;
    margin: 6px 0 0;
}

/* CTA результата — как submit формы (перекрытие blanket, (0,2,0)) */
.price-doc .price-estimate__cta {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 20px;
    border: none;
    border-radius: 4px;
    background: var(--doc-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.price-doc .price-estimate__cta:hover {
    background: #6c63f0;
}

.price-estimate__edge-text {
    font-size: 0.9rem;
    color: #1a1a2e;
    margin: 2px 0 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .price-doc {
        margin: 12px 8px 40px;
        padding: 26px 18px 24px;
    }

    .price-doc__punch,
    .price-doc__rosette {
        display: none;
    }

    .price-doc__stamp--foot {
        width: 60px;
        height: 60px;
        font-size: 0.45rem;
    }

    .price-doc__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-doc__title-block {
        text-align: left;
    }

    .price-doc__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .price-doc__parts {
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .price-doc__search {
        margin-left: 0;
    }

    .price-doc__search input {
        width: 100%;
    }

    .price-row {
        flex-wrap: wrap;
    }

    .price-row__dots {
        display: none;
    }

    /* Типовой набор на узком экране: цена справа на первой строке,
       описание — под именем (иначе «от 3 000 ₽/час» уезжал за рамку) */
    .price-set {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .price-set__dots {
        display: none;
    }

    .price-set__price {
        margin-left: auto;
    }

    .price-set__desc {
        flex-basis: 100%;
        order: 4;
        padding-left: 26px;
    }

    .price-row__price {
        margin-left: auto;
    }

    .price-slip::before {
        left: -14px;
    }

    .price-slip::after {
        right: -14px;
    }

    .price-slip .form-row {
        grid-template-columns: 1fr;
    }

    /* Перечень режимов на узком экране — в одну колонку */
    .price-regimes-note__list {
        columns: 1;
    }

    .price-slip__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .price-slip__submit {
        width: 100%;
    }

    .price-estimate__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 9 кнопок режима — сетка 3×3 */
    .price-estimate__seg--regimes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .price-estimate__seg--regimes .price-estimate__opt span {
        text-align: center;
        padding: 4px 6px;
        font-size: 0.78rem;
    }

    /* Группа: summary переносится, точки прячутся (как у .price-row) */
    .price-row-group__summary {
        flex-wrap: wrap;
    }

    .price-row-group__dots {
        display: none;
    }

    .price-row-group__price {
        margin-left: auto;
    }

    .price-rows--group {
        padding-left: 14px;
    }

    .price-estimate__item {
        flex-wrap: wrap;
    }

    .price-estimate__dots {
        display: none;
    }

    .price-estimate__price {
        margin-left: auto;
    }

    .price-estimate__total {
        flex-wrap: wrap;
    }

    .price-doc__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .price-bar {
        bottom: 8px;
    }

    .price-bar__inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .price-bar__cta {
        width: 100%;
    }

    .price-bar__clear {
        width: 100%;
        order: 2; /* «Очистить» под основной кнопкой */
    }
}

@media (max-width: 480px) {
    .price-doc__title {
        font-size: 1.7rem;
    }

    .price-doc__sign {
        gap: 18px;
    }

    .price-doc__sign-line {
        width: 86px;
    }

    .price-estimate__grid {
        grid-template-columns: 1fr;
    }

    /* 375 и ниже: сетка режимов 2 колонки */
    .price-estimate__seg--regimes {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-doc .price-estimate__submit {
        width: 100%;
    }

    .price-doc .price-estimate__cta {
        display: block;
        text-align: center;
    }
}

/* ==================== Reduced motion ==================== */
@media (prefers-reduced-motion: reduce) {
    .price-row,
    .price-set,
    .price-jur-cat__summary,
    .price-jur-cat__chevron,
    .price-row-group__summary,
    .price-row-group__chevron,
    .price-faq__q,
    .price-faq__chevron,
    .price-doc .price-row__toggle,
    .price-row__check {
        transition: none;
    }

    .price-bar {
        animation: none;
    }
}
