/* Чистовой слой: общие размеры, читаемость и сценарии. */
:root { --muted: #596372; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; transform: translateY(-200%); padding: 12px 18px; background: var(--ink); color: white; border-radius: var(--radius-control); }
.skip-link:focus { transform: none; }
.button { border-radius: var(--radius-control); font-size: 14px; min-height: 48px; }
.site-nav { font-size: 14px; }
.nav-toggle, .cart-button, .icon-btn { min-width: 44px; min-height: 44px; }
.hero-copy h1 { letter-spacing: -.04em; }
.hero-lead { max-width: 38ch; }
.hero-facts dd { font-size: 13px; }
.motion-replay { min-height: 44px; font-size: 12px; }
.catalog-search input { min-height: 48px; font-size: 16px; border-radius: var(--radius-control); }
.catalog-search svg { top: 14px; }
.catalog-count { font-size: 14px; }
.chip { min-height: 44px; font-size: 14px; border-radius: var(--radius-control); }
.product-grid, .catalog-grid { gap: var(--space-7) var(--space-5); grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { background: transparent; overflow: visible; min-width: 0; display: flex; flex-direction: column; }
.card .pic { height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-control); filter: none; background: var(--surface-2); }
.card .body { gap: var(--space-3); padding: var(--space-4) 0 var(--space-5); flex: 1; min-width: 0; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: var(--space-5); align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: var(--space-4); }
.card .meta .req-btn, .card .meta .add-btn { width: 100%; justify-content: center; }
.card .price { min-width: 0; overflow-wrap: anywhere; }
.card h3, .card p { overflow-wrap: anywhere; }
.hero-lab, .popular-section, .process-section { overflow: clip; }
.price { font-size: 23px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.price small { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.req-btn, .add-btn { min-height: 44px; border-radius: var(--radius-control); font-size: 13px; }
.add-btn { width: auto; padding: 10px 14px; gap: 8px; display: inline-flex; align-items: center; }
.badge-service { font-size: 11px; }
.empty { grid-column: 1 / -1; padding: 48px 24px; }
.empty .button { margin-top: 16px; }
.empty p { font-size: 15px; }
.field, .field label { font-size: 14px; }
.field input, .field textarea, .field select { font-size: 16px; border-radius: var(--radius-control); min-height: 48px; }
.field, .field input, .field textarea, .field select { min-width: 0; }
.field input, .field textarea, .field select { width: 100%; box-sizing: border-box; }
.fine { font-size: 12px; line-height: 1.6; }
.flow-step-label { font-size: 13px; }
.flow-step-number { font-size: 12px; }
.flow-progress-status { font-size: 12px; }
.flow-step:disabled { color: var(--muted); opacity: 1; }
.form-status, .order-feedback { line-height: 1.55; }
.task-grid a small { font-size: 12px; }
.price-note { font-size: 13px; line-height: 1.6; }
.catalog-search input:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.card:hover { transform: none; }
@media (hover: hover) {
  .req-btn:hover, .add-btn:hover { background: var(--accent-soft); color: var(--blue-dark); }
  .card .pic { transition: filter .2s ease; }
  .card:hover .pic { filter: brightness(.97); }
}
@media (max-width: 1000px) {
  .product-grid, .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { order: 0; padding-top: 24px; position: static; }
  .print-flow { order: 1; position: relative; margin-top: 32px; }
}
@media (max-width: 640px) {
  .hero-lab { padding: 28px 20px 40px; gap: 0; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: clamp(54px, 16vw, 72px); line-height: .98; }
  .hero-lead { font-size: 16px; line-height: 1.6; margin-block: 20px 24px; }
  .hero-actions { gap: 20px; align-items: center; flex-wrap: wrap; }
  .hero-actions .button { min-height: 48px; }
  .hero-facts { margin-top: 28px; padding-top: 20px; margin-bottom: 0; }
  .print-flow { min-height: 590px; margin-top: 40px; }
  .product-grid, .catalog-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-grid { grid-template-columns: 1fr; }
  .card .pic { aspect-ratio: 3 / 2; height: auto; }
  .card .body { padding: 16px 0 20px; }
  .card h3 { font-size: 22px; }
  .card p { display: block; font-size: 15px; }
  .card .meta { flex-wrap: nowrap; gap: var(--space-4); }
  .price { font-size: 24px; }
  .req-btn, .add-btn { padding: 12px; font-size: 13px; }
  .page-intro { padding-top: 40px; gap: 20px; }
  .page-intro h1 { font-size: clamp(40px, 11vw, 56px); letter-spacing: -.04em; }
  .page-intro p { font-size: 16px; }
  .catalog-tools { display: flex; flex-direction: column-reverse; gap: 16px; }
  .catalog-search { margin-top: 0; }
  .filters { width: 100%; padding-bottom: 8px; }
  .flow-step { padding: 10px 4px; }
  .flow-step-label { font-size: 11px; line-height: 1.4; }
  .flow-progress-status { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .card .pic { transition: none; }
}
/* Подписи и настройки заказа читаются без увеличения страницы. */
.back-link, .cart-row small, .cart-remove, .cart-editing, .cart-quote-error,
.cart-last-order, .cart-undo, .upload-drop small, .upload-privacy, .upload-action,
.global-settings > div > p, .global-settings legend, .choice-row span,
.choice-row small, .format-note, .file-title small, .quality, .file-options label,
.upload-status small, .upload-status button, .ticket-head, .ticket-lines > div,
.consent, .ticket-note, .pickup-mini small, .success-ticket small,
.service-switch, .service-section-head p, .service-file small,
.form-error, .service-ticket > p, .service-price small, .service-flow li,
.status-ticket small, .status-track span, .status-payment small,
.status-receipt > p, .status-receipt li, .contact-row small,
.route-card small, .site-footer a, .footer-bottom .wrap,
.queue-head p, .add-photo-button, .gallery-filters button, .select-visible,
.batch-empty, .batch-head strong, .batch-controls label, .editor-fields > label,
.editor-segment > span, .zoom-control, .rotation-tools > span,
.gallery-copy > strong, .gallery-copy > small, .gallery-copy .quality,
.gallery-upload, .gallery-upload small, .gallery-upload button, .gallery-empty p,
.editor-head p, .editor-preview-missing p, .crop-instruction strong,
.crop-instruction span, .editor-quality strong, .editor-quality small,
.orientation-control > span, .reset-frame, .approval-help, .editor-empty p,
.approval-meter, .approval-meter strong, .document-kind-block p,
.document-kind-grid small, .document-guide li p, .document-page-copy strong,
.document-page-copy small, .document-page-copy .quality, .document-pdf-large p,
.queue-actions .plain-link { font-size: 12px; line-height: 1.5; }
.batch-controls select, .editor-fields select { min-height: 44px; height: auto; font-size: 16px; padding: 10px; }
.batch-controls .button, .editor-segment button, .rotation-tools button,
.orientation-control button { min-height: 44px; font-size: 12px; padding: 10px; }
.gallery-filters button, .select-visible, .add-photo-button, .gallery-upload button,
.reset-frame, .cart-remove { min-height: 44px; }
.consent { gap: 10px; align-items: start; }
.consent input { min-width: 20px; min-height: 20px; }
.site-footer h4 { font-size: 13px; }
.service-file strong { font-size: 14px; }
@media (max-width:640px) {
  .gallery-copy > strong, .gallery-copy > small { white-space: normal; overflow-wrap: anywhere; }
  .batch-controls { grid-template-columns: 1fr 1fr; }
  .batch-controls .button { white-space: normal; }
}
.motion-replay[hidden] { display: none; }
/* В рабочем сценарии заголовок уступает место настройкам и файлам. */
.order-intro { padding-top: 40px; padding-bottom: 32px; gap: 48px; }
.order-intro h1 { font-size: clamp(36px,4vw,56px); line-height: 1.08; letter-spacing: -.035em; }
.order-intro > p { font-size: 16px; line-height: 1.6; }
.page-intro .price-note { font-size: 12px; line-height: 1.55; }
@media(max-width:640px) {
  .order-intro { padding-top: 28px; padding-bottom: 24px; gap: 18px; }
  .order-intro h1 { font-size: 38px; }
  .catalog-workbench { padding-top: 28px; padding-bottom: 40px; }
}
/* Основной текст и действие не тускнеют при прокрутке или начале анимации. */
.home-page .hero-copy { animation: none; opacity: 1; transform: none; clip-path: none; }

/* Услуги собраны по задаче; готовые вещи находятся в своём каталоге. */
.catalog-group { grid-column: 1 / -1; margin: 8px 0 40px; min-width: 0; }
.catalog-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 28px 0 24px; }
.catalog-group-heading h2 { font-size: 32px; line-height: 1.12; margin: 0; }
.catalog-group-heading p { margin: 0; max-width: 42ch; color: var(--muted); font-size: 14px; }
.card-method { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.catalog-group .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-directions { grid-template-columns: repeat(4,minmax(0,1fr)); }
.service-directions a span { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.goods-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; border-top: 1px solid var(--line); }
.goods-entry h2 { font-size: clamp(32px,4vw,52px); margin: 12px 0 20px; }
.goods-entry p { max-width: 42ch; line-height: 1.6; }
.goods-entry .button { margin-top: 16px; }
.goods-entry img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-control); }
@media(max-width:980px) { .service-directions { grid-template-columns: repeat(2,minmax(0,1fr)); } .catalog-group .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .catalog-group .product-grid, .goods-entry { grid-template-columns: 1fr; } .catalog-group-heading { display: block; } .catalog-group-heading p { margin-top: 12px; } .catalog-group-heading h2 { font-size: 28px; } .service-directions { grid-template-columns: 1fr; } .goods-entry { gap: 28px; } }

/* CMS-backed public detail pages */
.card-photo-link{display:block;overflow:hidden}
.card h3 a{color:inherit;text-decoration:none;text-underline-offset:.2em}
.card h3 a:hover{text-decoration:underline}
.card-photo-link:focus-visible,.card h3 a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* Фото на документы: выбор способа, требования и пожелание к визиту. */
.passport-order-page .service-fields { display: grid; gap: var(--space-7); }
.passport-choice { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.passport-choice legend { padding: 0; margin-bottom: var(--space-4); font-size: 22px; font-weight: 700; line-height: 1.25; }
.passport-choice > p { margin: 0 0 var(--space-5); color: var(--muted); font-size: 14px; line-height: 1.6; }
.passport-source-options { display: grid; gap: var(--space-3); }
.passport-source-options label { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; background: var(--paper); }
.passport-source-options label:has(input:checked) { border-color: var(--blue); background: var(--accent-soft); }
.passport-source-options input, .passport-days input { accent-color: var(--blue); flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; }
.passport-source-options strong, .passport-source-options small { display: block; }
.passport-source-options strong { font-size: 16px; line-height: 1.5; }
.passport-source-options small { margin-top: var(--space-1); color: var(--muted); font-size: 14px; line-height: 1.6; }
.passport-document { display: grid; gap: var(--space-5); }
.passport-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.passport-days label { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); cursor: pointer; font-size: 14px; }
.passport-days label:has(input:checked) { border-color: var(--blue); background: var(--accent-soft); }
.passport-source-options label:focus-within, .passport-days label:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.passport-order-page .service-contact-grid { align-items: start; }
.passport-order-page .service-contact-grid > .field:only-child { grid-column: 1 / -1; }
.passport-order-page input[type="date"] { min-height: 48px; color: var(--ink); }
.passport-example { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: var(--space-5); border-radius: var(--radius-control); }
.passport-summary { display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
.passport-summary > div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: var(--space-3); font-size: 14px; line-height: 1.6; }
.passport-summary dt { color: var(--muted); }
.passport-summary dd { margin: 0; overflow-wrap: anywhere; }
@media(max-width:640px) {
  .passport-order-page .service-fields { gap: var(--space-6); }
  .passport-choice legend { font-size: 21px; }
  .passport-order-page .service-ticket { position: static; }
  .passport-order-page .passport-example { display: none; }
  .passport-order-page[data-flow-current="1"] .service-ticket,
  .passport-order-page[data-flow-current="2"] .service-ticket { display: none; }
}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;padding-top:24px;padding-bottom:24px;font-size:14px;line-height:1.6}
.breadcrumbs a{color:var(--ink);text-underline-offset:3px}
.detail-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center;padding-top:16px}
.detail-hero figure{margin:0;min-width:0}
.detail-hero figure img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line);border-radius:12px}
.detail-hero figcaption{font-size:14px;line-height:1.5;color:var(--muted);margin-top:12px}
.detail-hero h1{font-size:clamp(32px,4vw,56px);line-height:1.08;letter-spacing:-.045em;margin:16px 0 20px}
.detail-lead{font-size:19px;line-height:1.55}
.detail-price{font-size:32px;font-weight:700;margin:24px 0 8px}.detail-price small{display:block;font-size:15px;font-weight:400;line-height:1.6}
.detail-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:24px}
.detail-tariffs table{width:100%;border-collapse:collapse;text-align:left}.detail-tariffs th,.detail-tariffs td{padding:14px 0;border-bottom:1px solid var(--line)}
.detail-tariffs tbody th{font-weight:500}.detail-tariffs td{padding-left:16px;white-space:nowrap}
.detail-next{display:grid;grid-template-columns:1fr 1fr;gap:48px;border-top:1px solid var(--line)}
.detail-next li{margin-bottom:14px;line-height:1.65;padding-left:8px}.detail-next ol{padding-left:20px}
@media(max-width:760px){.detail-hero{grid-template-columns:1fr;gap:24px}.detail-hero h1{font-size:36px}.detail-hero>div{grid-row:1}.detail-next{grid-template-columns:1fr;gap:24px}.detail-lead{font-size:17px}.detail-actions .button{width:100%}.detail-tariffs th,.detail-tariffs td{font-size:15px}.breadcrumbs{font-size:13px;gap:7px}}

/* Order steps share one state model and a separate confirmed receipt. */
[data-flow-visible="false"] { display: none !important; }
.flow-progress-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.flow-actions [data-flow-next] { margin-inline-start: auto; }
body[data-flow-current="2"] .photo-order-grid,
body[data-flow-current="2"] .document-order-grid { grid-template-columns: minmax(0, 1fr); }
body[data-flow-current="3"] .photo-order-grid,
body[data-flow-current="3"] .document-order-grid { display: block; max-width: 800px; margin-inline: auto; }
body[data-flow-current="3"] .photo-ticket,
body[data-flow-current="3"] .document-ticket { position: static; }
body[data-flow-current="1"] .workflow-file-settings { display: none; }
.workflow-shell { padding-bottom: 8px; }
.service-material-note { color: var(--muted); font-size: 16px; padding-block: 20px; }
.order-success { align-items: start; padding-block: 48px 72px; min-height: 480px; gap: clamp(24px, 5vw, 64px); }
.receipt-content { min-width: 0; }
.receipt-content h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 56px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 20px; }
.receipt-content > p { font-size: 16px; line-height: 1.6; }
.receipt-check { width: 40px; height: 40px; color: white; }
.order-success .success-ticket { min-height: 230px; gap: 24px; }
.order-success .success-ticket strong { font-size: clamp(24px, 3vw, 40px); overflow-wrap: anywhere; word-break: normal; }
.order-success .success-ticket small { font-size: 14px; line-height: 1.5; color: #d9e1ed; }
.receipt-details { margin: 24px 0; border-block: 1px solid var(--line); }
.receipt-details > div { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(0, 1fr); gap: 16px; padding-block: 14px; }
.receipt-details > div + div { border-top: 1px solid var(--line); }
.receipt-details dt { color: var(--muted); font-size: 14px; }
.receipt-details dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.receipt-content .success-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.receipt-content .receipt-note { font-size: 14px; margin-top: 20px; }
@media (max-width: 640px) {
  .flow-step-label { font-size: 12px; }
  .flow-step { padding-inline: 4px; }
  .receipt-details > div { grid-template-columns: 1fr; gap: 4px; }
  .receipt-content .success-actions { align-items: stretch; flex-direction: column; }
  .receipt-content .plain-link { padding-block: 12px; }
}
.modal-receipt { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 0; min-height: 0; }
.modal-receipt .success-ticket { min-height: 160px; padding: 24px; }
.modal-receipt .receipt-content h1 { font-size: 32px; }
.modal-receipt .receipt-details > div { grid-template-columns: 1fr; gap: 4px; }
[data-flow-progress], [data-flow-panel], .order-success { scroll-margin-top: 96px; }
.cart-last-order a { color: var(--blue-dark); font-size: 14px; }

/* Фотопечать: один набор настроек в выбранном режиме, без вложенных шагов. */
.photo-order-page .gallery-toolbar { margin-bottom: 20px; flex-wrap: wrap; }
.photo-order-page .proof-desk { grid-template-columns: minmax(180px,260px) minmax(0,1fr); }
.photo-order-page .photo-queue { grid-template-columns: repeat(2,minmax(0,1fr)); }
.photo-order-page .crop-editor { position: static; border-top: 1px solid var(--line-dark); }
.photo-order-page .photo-single .proof-desk { display: block; max-width: 800px; margin-inline: auto; }
.photo-order-page .batch-panel { position: sticky; top: 96px; margin: 0; padding: 24px; background: var(--paper); border-top: 1px solid var(--line-dark); }
.photo-order-page .batch-head { align-items: start; flex-wrap: wrap; gap: 8px 16px; }
.photo-order-page .batch-head h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.photo-order-page .batch-head .plain-link { min-height: 44px; font-size: 14px; padding: 8px 0; border: 0; background: transparent; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.photo-order-page .batch-scope, .photo-order-page .batch-feedback { font-size: 14px; line-height: 1.6; margin: 0 0 24px; color: var(--muted); }
.photo-order-page .batch-feedback { margin: 20px 0; }
.photo-order-page .batch-controls { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.photo-order-page .batch-controls .button { grid-column: 1/-1; }
.photo-order-page .batch-controls .batch-apply { background: var(--blue); color: white; border-color: var(--blue); }
.photo-order-page .batch-approve { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line-dark); }
.photo-print-settings { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.photo-print-settings legend { margin: 0 0 16px; padding: 0; font-size: 17px; font-weight: 700; }
.photo-order-page .editor-fields { grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.photo-order-page .editor-fields > label { grid-column: 1/-1; }
.photo-order-page .editor-fields > label, .photo-order-page .editor-segment > span, .photo-order-page .batch-controls label { font-size: 14px; }
.photo-quantity-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.photo-order-page .editor-bottom { position: static; margin: 20px 0 0; padding: 0; border: 0; align-items: end; }
.photo-order-page .photo-qty button { min-width: 44px; min-height: 44px; }
.photo-extra-tools { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo-extra-tools > summary { display: list-item; padding: 14px 0; min-height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; }
.photo-extra-tools .orientation-control { margin-top: 0; border: 0; }
.photo-extra-tools .editor-tools { padding-bottom: 16px; }
.photo-order-page .editor-head .icon-btn { min-width: 44px; min-height: 44px; }
.photo-order-page .editor-proof { box-shadow: none; }
.photo-order-page .photo-order-grid { padding-top: 24px; }
.photo-order-page .photo-controls { padding-top: 0; padding-bottom: 24px; }
.photo-proof-column, .photo-settings-column { min-width: 0; }
@media (min-width: 1101px) {
  .photo-order-page .photo-single .proof-desk { max-width: 1100px; }
  .photo-editor-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,1fr); gap: 24px; align-items: start; }
  .photo-order-page .photo-print-settings { margin-top: 0; }
  .photo-order-page .editor-fields { grid-template-columns: 1fr; }
  .photo-order-page .editor-proof { min-height: 360px; max-height: 480px; aspect-ratio: 4/5; }
  .photo-order-page .crop-instruction { grid-template-columns: 1fr; }
  .photo-extra-tools .orientation-control, .photo-extra-tools .editor-tools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .photo-order-page .proof-desk { display: flex; gap: 16px; }
  .photo-order-page .photo-queue { order: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; grid-template-columns: none; overflow-x: auto; padding: 2px 0 10px; }
  .photo-order-page .gallery-photo { padding: 6px; box-shadow: none; }
  .photo-order-page .gallery-image { aspect-ratio: 1; height: 88px; }
  .photo-order-page .gallery-copy { padding: 6px 0 0; }
  .photo-order-page .gallery-copy > small { font-size: 12px; }
  .photo-order-page .gallery-copy .quality { min-height: 18px; font-size: 11px; margin-top: 5px; }
  .photo-order-page .gallery-upload { padding-top: 4px; }
  .photo-order-page .gallery-upload small { font-size: 11px; }
  .photo-order-page .gallery-select { top: 10px; left: 10px; width: 44px; height: 44px; }
  .photo-order-page .crop-editor, .photo-order-page .batch-panel { order: 1; position: static; width: 100%; margin: 0; padding: 18px 14px; }
  .photo-order-page .gallery-toolbar { display: flex; align-items: start; gap: 8px; margin-bottom: 16px; }
  .photo-order-page .gallery-filters { width: 100%; padding: 0; }
  .photo-order-page .select-visible { width: auto; }
  .photo-order-page .add-photo-button span { display: inline; }
  .photo-order-page .queue-head { align-items: start; gap: 12px; }
  .photo-order-page .queue-head h2 { font-size: 22px; }
  .photo-order-page .editor-fields { grid-template-columns: 1fr; }
  .photo-order-page .batch-controls { grid-template-columns: 1fr; }
}

/* Документы: собрать материалы, проверить результат, затем отправить. */
.document-order-page .document-setup, .document-order-page .document-controls { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.document-kind-grid strong { font-size: 16px; line-height: 1.4; }
.document-upload-files { padding: 0; margin: var(--space-5) 0 var(--space-3); list-style: none; display: grid; gap: var(--space-3); }
.document-upload-files li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.document-upload-files strong, .document-upload-files small { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.document-upload-files .gallery-upload { margin: 0; }
.document-upload-status { font-size: 14px; line-height: 1.6; color: var(--muted); }
.document-guide-help { margin-top: var(--space-5); border-block: 1px solid var(--line); }
.document-guide-help > summary, .document-crop-fields > summary { cursor: pointer; padding-block: var(--space-4); font-size: 14px; font-weight: 600; min-height: 48px; }
.document-guide-help .document-guide { margin-top: 0; }
.document-order-page .document-pages { max-height: 740px; overflow-y: auto; padding: 4px; }
.document-page-card .page-order-actions { position: static; display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.page-order-actions button { width: 44px; height: 44px; display: grid; place-items: center; }
.page-order-actions svg { width: 18px; height: 18px; }
.page-order-actions [data-doc-move="-1"] svg { transform: rotate(-90deg); }
.page-order-actions [data-doc-move="1"] svg { transform: rotate(90deg); }
.document-crop-fields { margin-block: var(--space-4); border-block: 1px solid var(--line); }
.document-crop-fields > p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.document-crop-fields > div, .document-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); }
.document-crop-fields > div { padding-bottom: var(--space-4); }
.document-crop-fields label { display: grid; gap: var(--space-2); font-size: 14px; min-width: 0; }
.document-crop-fields input { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.document-contact { gap: var(--space-5); }
.document-contact h3 { font-size: 24px; margin-bottom: var(--space-4); }
.document-contact .fine { font-size: 14px; line-height: 1.6; }
.document-review-pages { margin-block: var(--space-4); padding-inline-start: var(--space-5); font-size: 14px; line-height: 1.8; }
.document-ticket > h2 { margin: 0 0 var(--space-4); font-size: 30px; }
[data-workflow="document_filling"] .workflow-panel { border-radius: var(--radius-panel); }
[data-workflow="document_filling"] .workflow-panel > p { font-size: 16px; line-height: 1.6; }
[data-workflow="document_filling"] .workflow-group { margin-top: var(--space-6); padding-top: var(--space-6); }
[data-workflow="document_filling"] .workflow-group-head { align-items: start; }
[data-workflow="document_filling"] .workflow-group-head > div { min-width: 0; }
[data-workflow="document_filling"] .workflow-group-head .button { flex: 0 0 auto; }
[data-workflow="document_filling"] .workflow-group-head h3 small { display: block; font-size: 14px; line-height: 1.6; font-weight: 400; color: var(--muted); margin-top: var(--space-1); }
[data-workflow="document_filling"] .workflow-group-head p { font-size: 14px; line-height: 1.6; }
[data-workflow="document_filling"] .workflow-form-grid { gap: var(--space-5) var(--space-4); }
[data-workflow="document_filling"] .workflow-form label { font-size: 14px; }
[data-workflow="document_filling"] .workflow-form input, [data-workflow="document_filling"] .workflow-form select, [data-workflow="document_filling"] .workflow-form textarea { min-width: 0; width: 100%; font-size: 16px; min-height: 48px; }
[data-workflow="document_filling"] .workflow-form .consent { display: flex; align-items: start; }
[data-workflow="document_filling"] .workflow-form .consent input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }
.workflow-summary { display: grid; gap: var(--space-4); margin-block: var(--space-5); }
.workflow-summary > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-4); font-size: 14px; line-height: 1.6; }
.workflow-summary dt { color: #cfd5de; }
.workflow-summary dd { margin: 0; overflow-wrap: anywhere; }
.workflow-retry { grid-column: 2 / -1; justify-self: start; }
@media(max-width:900px) {
  [data-workflow="document_filling"][data-flow-current="1"] .workflow-ticket,
  [data-workflow="document_filling"][data-flow-current="2"] .workflow-ticket { display: none; }
}
@media(max-width:720px) {
  .document-order-page .document-pages { order: 0; max-height: none; grid-auto-columns: 150px; padding: 4px 4px var(--space-3); }
  .document-order-page .document-editor { order: 1; }
  .document-page-preview { height: 90px; }
  .document-page-copy .quality { font-size: 12px; }
}
@media(max-width:640px) {
  .document-contact-grid { grid-template-columns: 1fr; }
  .document-ticket .ticket-lines strong { max-width: none; }
}
@media(prefers-reduced-motion:reduce) {
  [data-workflow="document_filling"] .workflow-form { animation: none; }
}

/* Уточнения после проверки документов на двух ширинах. */
.document-order-page .queue-actions { flex-wrap: wrap; gap: var(--space-3); }
.document-order-page .plain-link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.document-order-page .add-photo-button span { display: inline; }
[data-workflow="document_filling"] .workflow-shell { padding-top: var(--space-6); }

/* Большая печать и дизайн: предметный бриф, материалы и проверка. */
.quote-order-page .order-intro h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.08; letter-spacing: -.03em; }
.quote-form { padding-top: var(--space-6); padding-bottom: var(--space-3); }
.quote-panel { min-width: 0; padding: clamp(20px, 3vw, 32px); background: var(--paper); border-top: 1px solid var(--line-dark); }
.quote-form > .quote-panel { max-width: 800px; margin-inline: auto; }
.quote-panel h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 var(--space-3); }
.quote-panel > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 var(--space-5); max-width: 68ch; }
.quote-panel .field { font-size: 14px; line-height: 1.5; margin-block: var(--space-4); }
.quote-panel .field select { margin-top: 0; }
.quote-panel .field textarea { min-height: 120px; }
.quote-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 var(--space-4); }
.quote-choice { border: 0; padding: 0; margin-block: var(--space-5) var(--space-3); min-width: 0; }
.quote-choice legend { font-size: 16px; font-weight: 700; margin-bottom: var(--space-3); }
.quote-choice > div { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.quote-choice label { display: flex; gap: var(--space-2); align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; }
.quote-choice input { width: 20px; height: 20px; accent-color: var(--blue); }
.quote-upload-group { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-4); align-items: start; padding-top: var(--space-5); margin-top: var(--space-5); border-top: 1px solid var(--line); }
.quote-upload-group h3 { font-size: 21px; line-height: 1.3; margin: 0 0 var(--space-2); }
.quote-upload-group p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.quote-files { grid-column: 1 / -1; display: grid; gap: var(--space-3); }
.quote-file { min-width: 0; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.quote-file > svg { width: 24px; height: 24px; }
.quote-file strong, .quote-file small { display: block; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.quote-file small { color: var(--muted); }
.quote-file .status-error { color: #9c2b1f; }
.quote-retry { grid-column: 2 / -1; justify-self: start; }
.quote-contact-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: var(--space-5); align-items: start; }
.quote-panel .consent { display: flex; gap: var(--space-3); font-size: 14px; line-height: 1.6; margin-block: var(--space-5); }
.quote-panel .consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }
.quote-panel [type=submit] { width: 100%; margin-top: var(--space-3); }
.quote-summary { margin-block: var(--space-5); }
.quote-summary > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: var(--space-4); border-bottom: 1px solid var(--line); padding-block: var(--space-3); font-size: 14px; line-height: 1.6; }
.quote-summary dt { color: var(--muted); }
.quote-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.quote-brief h3 { font-size: 16px; margin-block: var(--space-5) var(--space-2); }
.quote-brief p { font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-panel .quote-format-note, .quote-panel .quote-price-note, .quote-panel .quote-notice { font-size: 14px; line-height: 1.6; }
.quote-panel .quote-notice { margin-top: var(--space-4); }
.quote-panel .plain-link { min-height: 44px; padding: 8px 0; background: transparent; border: 0; color: var(--blue-dark); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:760px) { .quote-contact-layout { display: flex; flex-direction: column; } .quote-contact-layout > .quote-panel { width: 100%; } .quote-review { order: -1; } }
@media(max-width:540px) { .quote-fields { grid-template-columns: 1fr; } .quote-upload-group { grid-template-columns: 1fr; } .quote-upload-group > .button { justify-self: start; } }

/* Telegram contact surface: one task, existing NET·GRAF typography and spacing. */
.contact-placeholder { min-height: 62vh; max-width: 1200px; padding-block: 56px 80px; }
.contact-placeholder h1 { max-width: 16ch; margin: 40px 0 24px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -.03em; overflow-wrap: anywhere; }
.contact-placeholder-lead { max-width: 52ch; margin: 0 0 32px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.contact-placeholder-handle { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.contact-placeholder-visit { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-placeholder-visit h2 { font-size: 22px; margin: 0 0 12px; }
.contact-placeholder-visit p { margin: 0 0 16px; max-width: 60ch; line-height: 1.6; }
.detail-availability { max-width: 46ch; color: var(--muted); line-height: 1.6; }
@media (max-width:640px) {
  .contact-placeholder { padding-block: 32px 56px; }
  .contact-placeholder h1 { margin-top: 32px; }
  .contact-placeholder-lead { font-size: 17px; }
  .contact-placeholder .button { width: 100%; justify-content: center; }
  .contact-placeholder-visit { margin-top: 40px; }
}

@media (max-width:380px) {
  .header-contact { width:44px; min-width:44px; padding-inline:0; justify-content:center; }
  .header-contact span { display:none; }
  .site-header .wrap { gap:12px; }
}
