@font-face {
  font-family: Roboto;
  src: url('./assets/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url('./assets/roboto-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url('./assets/roboto-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --rate-green: #19ab01;
  --rate-orange: #ff5c00;
  --rate-dark: #252525;
  --rate-line: #e7e7e7;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8f8f8; color: #333; font-family: Roboto, sans-serif; line-height: 1.5; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .3; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0079cc; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rates { width: calc(100% - 48px); max-width: 1400px; margin: 18px auto 40px; }
.rates__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.rate { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rate-line); border-radius: 8px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.rate:hover { transform: translateY(-6px); box-shadow: 0 0 16px -2px #32323280; }
.rate__header { min-height: 58px; padding: 16px 24px; display: flex; align-items: center; background: var(--rate-dark); color: white; }
.rate__header h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.rate__art { background: white; border-bottom: 1px solid var(--rate-line); }
.rate__art > svg { display: block; width: 100%; height: 170px; object-fit: contain; }
.rate__features { list-style: none; margin: 0; padding: 18px 24px; min-height: 126px; font-size: 14px; }
.rate__features li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.rate__features li + li { margin-top: 9px; }
.rate__status { display: grid; place-items: center; flex: 0 0 17px; height: 17px; border-radius: 50%; background: var(--rate-green); color: white; }
.rate__status::before { content: ''; width: 8px; height: 4px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-1px) rotate(-45deg); }
.rate__note { padding: 16px 24px; min-height: 130px; flex: 1; background: #f8f8f8; }
.rate__badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 9px; border: 1px solid #d9e1d4; border-radius: 4px; background: white; color: #526047; font-size: 12px; font-weight: 500; }
.rate__badge--remote { color: #137e03; border-color: #b6dda5; background: #eef8e8; }
.rate__badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rate__note p { margin: 10px 0 0; color: #60645d; font-size: 13px; line-height: 1.55; }
.rate__price { border-top: 1px solid var(--rate-line); padding: 15px 24px 0; }
.rate__price-label { font-size: 12px; color: #666; }
.rate__amount { display: flex; align-items: baseline; gap: 8px; color: var(--rate-orange); font-size: 36px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.rate__from { font-size: 20px; font-weight: 500; }
.rate__currency { font-size: 26px; }
.rate__actions { display: flex; gap: 16px; padding: 12px 24px 24px; }
.rate__order, .rate__info { min-height: 44px; border: 0; border-radius: 8px; color: white; font-weight: 700; }
.rate__order { flex: 1; background: var(--rate-green); padding: 10px 16px; text-align: left; font-size: 15px; }
.rate__order:hover { background: #148d01; }
.rate__info { flex: 0 0 44px; background: var(--rate-dark); display: grid; place-items: center; }
.rate__info:hover { background: #424242; }
.rate__info span { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid currentColor; border-radius: 50%; font-size: 16px; line-height: 1; }
@media (max-width: 1399px) {
  .rates { max-width: 900px; }
  .rates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 679px) {
  .rates { max-width: 400px; }
  .rates__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .rates { width: calc(100% - 24px); }
  .rate__header, .rate__features, .rate__note, .rate__price, .rate__actions { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rate { transition: none; }
}

/* Движение отдельных деталей иллюстраций. */
.software-progress { transform-origin: 80px 117px; animation: scan-progress 4s ease-in-out infinite; }
.software-shield { animation: shield-float 4s ease-in-out infinite; }
.hardware-fan { transform-origin: 133px 93px; animation: fan-spin 3s linear infinite; }
.hardware-brush { transform-origin: 248px 82px; transform: rotate(28deg); animation: brush-sweep 3s ease-in-out infinite; }
.install-download { animation: download-bounce 2s ease-in-out infinite; }
.install-progress { transform-origin: 78px 105px; animation: install-progress 5s ease-in-out infinite; }
.build-fan-top { transform-origin: 240px 63px; animation: fan-spin 3s linear infinite; }
.build-fan-bottom { transform-origin: 240px 113px; animation: fan-spin 4s linear infinite reverse; }
.build-ready { stroke-dasharray: 24; animation: ready-check 4s ease-in-out infinite; }
@keyframes scan-progress { 0%, 100% { transform: scaleX(.2); } 65%, 85% { transform: scaleX(1); } }
@keyframes shield-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fan-spin { to { transform: rotate(360deg); } }
@keyframes brush-sweep { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(36deg); } }
@keyframes download-bounce { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes install-progress { 0%, 100% { transform: scaleX(.1); } 75%, 90% { transform: scaleX(1); } }
@keyframes ready-check { 0%, 100% { stroke-dashoffset: 24; opacity: 0; } 35%, 85% { stroke-dashoffset: 0; opacity: 1; } }


/* Иллюстрации второго ряда. */
.printer-paper { animation: print-page 3s ease-in-out infinite; }
.printer-led, .printer-signal { animation: printer-signal 2s ease-in-out infinite; }
.programs-tile { animation: app-install 3s ease-in-out infinite; }
.programs-tile--second { animation-delay: .3s; }
.programs-tile--third { animation-delay: .6s; }
.programs-progress { transform-origin: 82px 112px; animation: install-progress 4s ease-in-out infinite; }
.repair-tool { transform-origin: 225px 85px; animation: repair-turn 3s ease-in-out infinite; }
.repair-status { animation: printer-signal 2s ease-in-out infinite; }
.consult-bubble { animation: shield-float 4s ease-in-out infinite; }
.consult-dot { animation: typing-dot 1.5s ease-in-out infinite; }
.consult-dot--second { animation-delay: .2s; }
.consult-dot--third { animation-delay: .4s; }
@keyframes print-page { 0%, 100% { transform: translateY(-7px); } 65%, 85% { transform: translateY(3px); } }
@keyframes printer-signal { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes app-install { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@keyframes repair-turn { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Шапка и навигация сайта. */
.site-header { background: #fff; }
.site-header__notice { margin: 0; padding: 10px 16px; background: #fff1ef; color: #b42318; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.site-header__inner { width: calc(100% - 48px); max-width: 1400px; margin: auto; min-height: 150px; display: grid; grid-template-columns: minmax(235px, 280px) minmax(290px, 1fr) minmax(205px, 250px) auto; gap: 24px; align-items: center; padding: 24px 0; }
.brand { display: inline-grid; grid-template-columns: 40px max-content; column-gap: 12px; row-gap: 6px; align-items: center; color: var(--rate-dark); text-decoration: none; width: fit-content; }
.brand__icon { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__name { display: block; font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -1.2px; }
.brand > .brand__name { height: 40px; line-height: 40px; }
.brand__name > span { color: var(--rate-green); }
.brand__caption { grid-column: 1 / -1; display: block; font-size: 11.3px; line-height: 1.25; color: #74796f; text-align: center; white-space: nowrap; }
.computer-info { margin: 0; padding-left: 20px; border-left: 1px solid var(--rate-line); font-size: 12px; line-height: 1.85; }
.header-hours { display: grid; gap: 3px; padding-left: 20px; border-left: 1px solid var(--rate-line); font-size: 12px; line-height: 1.5; color: #545b50; }
.header-hours strong { color: var(--rate-dark); font-size: 13px; }
.computer-info > div { display: flex; gap: 6px; flex-wrap: wrap; }
.computer-info > .computer-info__hardware { flex-wrap: nowrap; white-space: nowrap; }
.computer-info__hardware dt:nth-of-type(2) { margin-left: 12px; }
.computer-info dt { color: #6b7066; }
.computer-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.header-contacts { display: flex; flex-direction: column; gap: 10px; font-style: normal; scroll-margin-top: 24px; }
.header-contacts a { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.header-contacts a:hover { color: var(--rate-green); }
.header-contacts svg { width: 20px; height: 20px; fill: none; stroke: var(--rate-green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-contacts__phone { color: var(--rate-dark); font-size: 22px; font-weight: 700; }
.header-contacts__email { color: #666; font-size: 14px; }
.site-nav { position: relative; z-index: 5; background: var(--rate-dark); }
.site-nav__inner { max-width: 1400px; width: calc(100% - 48px); margin: auto; }
.site-nav__list, .site-nav__submenu { margin: 0; padding: 0; list-style: none; }
.site-nav__list { display: flex; align-items: stretch; }
.site-nav__list > li { position: relative; }
.site-nav__link { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 16px 26px; border: 0; background: transparent; color: white; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav__link:hover, .site-nav__link[aria-expanded=true] { background: #373d33; }
.site-nav__link--active { background: var(--rate-green); }
.site-nav__link--active:hover { background: #148d01; }
.site-nav__chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.site-nav__link[aria-expanded=true] .site-nav__chevron { transform: rotate(180deg); }
.site-nav__submenu { position: absolute; top: 100%; left: 0; min-width: 264px; max-height: min(560px, calc(100dvh - 110px)); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: white; border: 1px solid var(--rate-line); border-top: 3px solid var(--rate-green); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px #0002; }
.site-nav__submenu--account { left: auto; right: 0; min-width: 180px; }
.site-nav__submenu--admin { left: auto; right: 0; min-width: 210px; }
.site-nav__submenu [hidden] { display: none; }
.account-link-with-badge { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-notice-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.account-notice-dot--unpaid { background: #d83a30; }
.account-notice-dot--completed { background: #19ab01; }
.download-link { display: block; padding: 12px 14px; border-radius: 5px; color: var(--rate-dark); text-decoration: none; }
.site-nav__submenu .account-link-with-badge { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.download-link:hover, .download-link:focus-visible { background: #eff7e9; }
.download-link > span { display: block; font-weight: 700; font-size: 14px; }
.download-link > small { display: block; color: #73796d; font-size: 12px; margin-top: 3px; }
.site-nav__toggle { display: none; }
.site-nav + .rates { margin-top: 32px; }
@media (hover: hover) and (pointer: fine) {
  .site-nav__dropdown:not(.site-nav__account):hover > .site-nav__submenu,
  .site-nav__dropdown:not(.site-nav__account):focus-within > .site-nav__submenu,
  .site-nav__account[data-authenticated="true"]:hover > .site-nav__submenu,
  .site-nav__account[data-authenticated="true"]:focus-within > .site-nav__submenu { display: block; }
}
.unpaid-alert { max-width: 1400px; width: calc(100% - 48px); margin: 14px auto 0; padding: 12px 16px; border: 1px solid #edbd72; border-radius: 6px; background: #fff3db; color: #804600; font-size: 14px; }
.unpaid-alert[hidden] { display: none; }
.unpaid-alert a { color: #713600; font-weight: 700; }
.completed-alert { max-width: 1400px; width: calc(100% - 48px); margin: 14px auto 0; padding: 12px 16px; border: 1px solid #a9d99c; border-radius: 6px; background: #ecf9e8; color: #2d6d26; font-size: 14px; }
.completed-alert[hidden] { display: none; }
.completed-alert a { color: #27721c; font-weight: 700; }
.profile-alert { max-width: 1400px; width: calc(100% - 48px); margin: 14px auto 0; padding: 12px 16px; border: 1px solid; border-radius: 6px; font-size: 14px; line-height: 1.55; }
.profile-alert[hidden] { display: none; }
.profile-alert a { font-weight: 700; }
.profile-alert--name { border-color: #a7c7e9; background: #edf5ff; color: #254f79; }
.profile-alert--name a { color: #174b83; }
.profile-alert--email { border-color: #cbb8e7; background: #f6f0ff; color: #594078; }
.profile-alert--email a { color: #56358b; }
/* Генератор паролей. */
.password-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--rate-line); border-radius: 12px; color: #333; box-shadow: 0 24px 80px #0003; }
.password-dialog::backdrop { background: #15201080; }
.password-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-dialog h2 { font-size: 23px; line-height: 1.3; margin: 0; }
.dialog-close { border: 0; background: #f3f5f0; border-radius: 6px; font-size: 26px; line-height: 1; width: 36px; height: 36px; flex: 0 0 36px; }
.password-dialog p { font-size: 14px; color: #6b7066; }
.password-length { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; margin: 20px 0 16px; }
.password-length input { font: inherit; width: 76px; padding: 8px; border: 1px solid #cbd5c3; border-radius: 5px; }
.password-results { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.password-row { display: flex; gap: 8px; min-width: 0; }
.password-result { box-sizing: border-box; min-width: 0; flex: 1; font: 16px/1.5 monospace; padding: 10px 12px; border: 1px solid #b6d5a5; border-radius: 6px; background: #f5faef; color: #252525; }
.password-dialog__actions { display: flex; gap: 10px; margin-top: 16px; }
.password-dialog__actions button { padding: 11px 16px; font-size: 14px; font-weight: 500; border: 0; border-radius: 6px; }
.password-generate { background: var(--rate-green); color: white; }
.password-copy { display: grid; place-items: center; flex: 0 0 46px; min-height: 46px; border: 1px solid #cbd5c3; border-radius: 6px; background: #f3f5f0; color: #333; }
.password-copy:hover { background: #e3efdc; }
.password-copy svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-status { min-height: 21px; margin-bottom: 0; }
/* Подробное описание услуги. */
.service-info-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid var(--rate-line); border-radius: 12px; color: #333; box-shadow: 0 24px 80px #0003; }
.service-info-dialog::backdrop { background: #152010a8; }
.service-info-dialog[open] { animation: service-info-open .28s cubic-bezier(.22, 1, .36, 1) both; }
.service-info-dialog[open]::backdrop { animation: service-info-backdrop .28s ease both; }
.service-info-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-info-dialog h2 { margin: 0; font-size: 25px; line-height: 1.25; }
.service-info-dialog h3 { margin: 22px 0 10px; font-size: 17px; }
.service-info-dialog__close { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 6px; background: #f3f5f0; color: #333; font-size: 26px; line-height: 1; }
.service-info-dialog__close:hover { background: #e3efdc; }
.service-info-dialog__lead { margin: 18px 0 0; color: #414c3d; font-size: 16px; line-height: 1.6; }
.service-info-dialog ul { margin: 0; padding-left: 22px; line-height: 1.6; }
.service-info-dialog li + li { margin-top: 8px; }
.service-info-dialog li::marker { color: var(--rate-green); }
.service-info-dialog__note { margin: 22px 0 0; padding: 13px 16px; border-left: 3px solid var(--rate-green); border-radius: 0 6px 6px 0; background: #f1f8ee; color: #45563d; font-size: 14px; line-height: 1.55; }
@keyframes service-info-open { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes service-info-backdrop { from { background: #15201000; } to { background: #152010a8; } }
@media (prefers-reduced-motion: reduce) { .service-info-dialog[open], .service-info-dialog[open]::backdrop { animation: none; } }
@media (max-width: 600px) { .service-info-dialog { padding: 22px; } .service-info-dialog h2 { font-size: 22px; } }
/* Единая форма заявки на услугу. */
.order-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--rate-line); border-radius: 12px; color: #333; box-shadow: 0 24px 80px #0003; }
.order-dialog::backdrop { background: #15201080; }
.order-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-dialog h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.order-dialog__close { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 6px; background: #f3f5f0; color: #333; font-size: 26px; line-height: 1; }
.order-dialog__service { margin: 10px 0 20px; color: #53882f; font-size: 16px; font-weight: 700; }
.order-dialog__check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-dialog__field { display: grid; gap: 6px; margin-top: 16px; }
.order-dialog__field label, .order-dialog__mode legend { font-size: 14px; font-weight: 500; }
.order-dialog__field input, .order-dialog__field select, .order-dialog__field textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5c3; border-radius: 6px; background: #fff; color: #333; font: inherit; }
.order-dialog__field textarea { resize: vertical; line-height: 1.45; }
.order-dialog__field small { color: #6b7066; font-size: 12px; }
.order-dialog__mode { display: flex; gap: 22px; margin: 18px 0 0; padding: 0; border: 0; }
.order-dialog__mode legend { margin-bottom: 10px; }
.order-dialog__mode label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.order-dialog__mode input { accent-color: var(--rate-green); }
.order-dialog__mode-note { margin: 18px 0 0; color: #6b7066; font-size: 14px; }
#order-visit-notice { color: #bc2c24; font-weight: 700; }
.order-dialog__section[hidden], .order-dialog__field[hidden], .order-dialog__mode[hidden], .order-dialog__mode-note[hidden] { display: none; }
.order-dialog__status { min-height: 20px; margin: 18px 0 10px; font-size: 14px; color: #a3261c; }
.order-dialog__status.is-success { color: #267c16; }
.order-remote-risk { margin-top: 18px; padding: 14px; border: 1px solid #e2bc7f; border-radius: 7px; background: #fff6e7; font-size: 13px; line-height: 1.5; }
.order-remote-risk p { margin: 7px 0 11px; }
.order-remote-risk label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.order-remote-risk input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 17px; accent-color: var(--rate-green); }
.order-dialog__submit { width: 100%; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--rate-green); color: #fff; font-size: 15px; font-weight: 700; }
.order-dialog__submit:disabled { opacity: .65; cursor: wait; }
.site-nav__admin:not([hidden]) { margin-left: auto; }
.site-nav__account { margin-left: auto; }
.site-nav__admin:not([hidden]) + .site-nav__account { margin-left: 0; }
.site-nav__account .site-nav__link { box-sizing: border-box; width: 170px; height: 58px; padding: 4px 10px; justify-content: space-between; background: #188e08; white-space: nowrap; }
.site-nav__admin .site-nav__link { padding-left: 16px; padding-right: 16px; }
.account-identity { display: grid; gap: 3px; min-width: 0; text-align: left; line-height: 1.1; }
.notification-settings__row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rate-line); }
.notification-settings__row input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--rate-green); }
.notification-settings__row span { display: grid; gap: 4px; }
.notification-settings__row small { color: #687364; font-size: 13px; }
.notification-settings__warning { margin: 10px 0 4px 30px; color: #a34322; font-size: 13px; }
.notification-settings__warning[hidden] { display: none; }
.account-identity__name { display: block; max-width: 124px; overflow: hidden; color: #ddf6d8; font-size: 11px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.account-identity__name[hidden] { display: none; }
.auth-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--rate-line); border-radius: 12px; color: #333; box-shadow: 0 24px 80px #0003; }
.auth-dialog::backdrop { background: #15201080; }
.auth-dialog h2 { margin: 0; }
.auth-dialog__close { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 6px; background: #f3f5f0; font-size: 26px; }
.auth-dialog .order-dialog__submit { margin-top: 18px; }
.auth-dialog [hidden] { display: none; }
.cabinet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(24px, calc((100vw - 1100px)/2)); background: #252525; color: white; }
.cabinet-header a { color: white; }
.cabinet-header button { border: 1px solid #aaa; border-radius: 5px; padding: 6px 12px; background: transparent; color: white; }
.cabinet { width: calc(100% - 48px); max-width: 1400px; margin: 32px auto; padding: 0; }
.cabinet h1 { margin-bottom: 6px; }
.cabinet-panel { margin: 24px 0; padding: 24px; border: 1px solid var(--rate-line); border-radius: 8px; background: white; }
.cabinet-panel h2 { margin-top: 0; }
.cabinet-panel label { display: grid; gap: 5px; max-width: 600px; }
.cabinet-panel input, .cabinet-panel select { min-height: 40px; padding: 8px; border: 1px solid #b8c5b1; border-radius: 5px; font: inherit; }
#emails, #addresses { display: grid; max-width: 600px; gap: 8px; }
.cabinet-panel button { min-height: 38px; padding: 7px 12px; border: 1px solid #168f05; border-radius: 5px; background: white; color: #147b05; }
.cabinet-panel button.cabinet-primary, .admin-invoice button, .admin-inline button { background: var(--rate-green); color: white; }
.cabinet-orders article { padding: 18px 0; border-top: 1px solid var(--rate-line); }
.cabinet-orders h3, .admin-order h3 { margin: 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; }
.admin-table-wrap th, .admin-table-wrap td { padding: 8px; border-bottom: 1px solid var(--rate-line); text-align: left; }
.admin-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 14px 0; }
.admin-report-filter label { min-width: 165px; }
.admin-report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.admin-report-metrics > div { display: grid; gap: 5px; padding: 16px; border: 1px solid #d8e6ce; border-radius: 7px; background: #f5faf2; }
.admin-report-metrics strong { font-size: 23px; color: #237816; overflow-wrap: anywhere; }
.admin-report-metrics span { color: #52634d; }
.admin-report-statuses { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.admin-report-statuses > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--rate-line); border-radius: 6px; }
.admin-report-heading, .admin-report-client-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 12px; }
.admin-report-heading h2, .admin-report-heading h3, .admin-report-client-head h3 { margin: 0; }
.admin-report-export { display: inline-block; padding: 8px 12px; border: 1px solid #168f05; border-radius: 6px; color: #147b05; text-decoration: none; font-weight: 700; }
.admin-report-export:hover, .admin-report-export:focus-visible { background: #edf7e8; }
.admin-report-pages { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.admin-report-pages a { color: #147b05; font-weight: 700; }
.status-badge--deleted { background: #e9e9e9; color: #555; }
.admin-invoice { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; padding: 14px; border-radius: 6px; background: #f4f8f0; }
.admin-new-invoice > summary { cursor: pointer; font-size: 18px; font-weight: 700; }
.admin-new-invoice > summary::marker { color: #19ab01; }
.admin-new-invoice .admin-invoice { font-size: 13px; padding: 10px 12px; }
.admin-new-invoice .admin-invoice input, .admin-new-invoice .admin-invoice button { font-size: 13px; }
.admin-invoice-head { display: grid; grid-template-columns: 175px minmax(0,1fr) 130px; align-items: start; gap: 10px; width: 100%; min-width: 0; }
.admin-invoice-head > *, .admin-invoice .admin-invoice-head label { min-width: 0; }
.admin-invoice-head .admin-invoice-target-fields input:not([type=hidden]), .admin-invoice-head .admin-invoice-number input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.admin-new-invoice .admin-invoice-target { display: grid; gap: 4px; padding: 5px 8px 8px; }
.admin-invoice-head .admin-invoice-target-fields { min-width: 0; }
.admin-invoice-head .admin-invoice-target-fields label { max-width: none; }
.admin-invoice-head .admin-invoice-number { min-width: 0; }
.admin-invoice-head .admin-invoice-number input { padding-left: 6px; padding-right: 6px; }
@media (max-width: 780px) { .admin-invoice-head { grid-template-columns: 1fr; } }
.admin-invoice label { min-width: 150px; flex: 1; }
.admin-invoice label:first-of-type { flex: 2; }
.admin-invoice-target { display: flex; flex-wrap: wrap; gap: 10px 18px; flex: 1 1 100%; padding: 12px; border: 1px solid #d8e6ce; border-radius: 6px; }
.admin-invoice-target legend { font-weight: 700; }
.admin-invoice .admin-invoice-target label { display: flex; align-items: center; gap: 6px; min-width: 0; flex: none; }
.admin-invoice-target input { min-height: 0; }
.admin-invoice-target-fields { flex: 1 1 100%; position: relative; }
.admin-invoice-target-fields[hidden], .admin-invoice-suggestions[hidden] { display: none; }
.admin-invoice-target-fields label { max-width: 500px; }
.admin-invoice-suggestions { position: absolute; z-index: 20; width: min(100%, 650px); max-height: 260px; overflow-y: auto; border: 1px solid #c4d7bb; border-radius: 6px; background: white; box-shadow: 0 9px 22px #0002; }
.admin-invoice-suggestions button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 0; background: white; color: #263124; text-align: left; }
.admin-invoice-suggestions button:hover, .admin-invoice-suggestions button:focus-visible { background: #edf7e8; }
.admin-invoice [readonly] { background: #edf2e9; color: #354234; }
.admin-prepayment { flex: 1 1 100%; padding: 13px 15px; border: 1px solid #cee3c6; border-radius: 7px; background: #f4faf1; }
.admin-prepayment[hidden] { display: none; }
.admin-prepayment legend { padding: 0 6px; font-weight: 700; }
.admin-prepayment p { margin: 5px 0 10px; }
.admin-invoice label.admin-credit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 155px); align-items: center; gap: 12px; flex: none; width: 100%; max-width: none; padding: 8px 0; border-top: 1px solid #dcead6; }
.admin-credit-row input[type=number] { width: 100%; }
.admin-invoice-preview { flex: 1 1 100%; margin: 2px 0; font-weight: 700; color: #267a16; }
.diagnostic-note { padding: 12px 16px; border-left: 4px solid #19ab01; border-radius: 5px; background: #f3faf0; color: #344a31; line-height: 1.5; }
#invoice-number-hint { flex: 1 1 100%; margin: 0; font-size: 12px; color: #5c6858; }
.admin-invoice-items { display: grid; gap: 9px; flex: 1 1 100%; }
.admin-invoice-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; position: relative; }
.admin-invoice-item label:first-of-type { flex: 2 1 220px; }
.admin-invoice-item .admin-invoice-suggestions { top: 100%; left: 0; width: min(100%, 650px); }
.admin-invoice-item label { flex: 1 1 170px; min-width: 0; }
.admin-invoice-item button { flex: 0 0 38px; }
.admin-invoice-receipts { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rate-line); }
.admin-invoice-receipts h3 { margin: 0 0 10px; }
.admin-collapsible { margin: 12px 0; }
.admin-list-head, .admin-collapsible > summary { display: grid; grid-template-columns: 22px minmax(120px,1fr) minmax(110px,1.3fr) minmax(90px,1fr) minmax(145px,1fr) minmax(80px,.8fr) minmax(78px,.8fr); align-items: center; gap: 12px; text-align: left; }
.admin-list-head { padding: 0 24px; color: #687364; font-size: 12px; }
.admin-collapsible > summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 400; }
.admin-collapsible > summary::-webkit-details-marker { display: none; }
.admin-collapsible > summary > span { min-width: 0; overflow-wrap: anywhere; }
.admin-collapsible > summary .status-badge { width: fit-content; font-weight: 400; }
.admin-collapsible > summary::before { content: '▸'; color: #4d7545; font-size: 21px; }
.admin-collapsible[open] > summary::before { content: '▾'; }
.admin-collapsible[open] > summary { padding-bottom: 18px; border-bottom: 1px solid var(--rate-line); margin-bottom: 18px; }
@media (max-width: 820px) { .admin-list-head { display: none; } .admin-collapsible > summary { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; } .admin-collapsible > summary::before { flex: 0 0 14px; } }
.admin-service-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rate-line); }
.admin-service-form label:first-of-type { flex: 2; }
.admin-service-form label { flex: 1; }
.admin-service-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-bottom: 1px solid var(--rate-line); }
.admin-service-entry .admin-service-form { flex: 1 1 620px; border-bottom: 0; }
.admin-delete-form { margin: 14px 0 0; }
.admin-delete-form button { border-color: #bb352b; color: #a62b23; }
.admin-create-client { margin: 14px 0 24px; padding: 12px; border: 1px solid var(--rate-line); border-radius: 6px; }
.admin-create-client summary { cursor: pointer; font-weight: 700; }
.invoice-total { font-size: 18px; }
.admin-settings-form { display: grid; gap: 15px; max-width: 700px; }
.admin-template-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-daily-mail-setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #dce8d7; border-radius: 7px; background: #f7faf4; }
.admin-daily-mail-setting .admin-settings-check { flex: 1 1 340px; }
.admin-daily-mail-setting > label:last-child { flex: 0 0 130px; }
.admin-payment-warning { padding: 12px 15px; border: 1px solid #c77311; border-radius: 6px; background: #fff0d9; color: #784200; font-weight: 700; }
.admin-payment-missing { margin: 16px 0; padding: 16px; border: 1px solid #e2bc7f; border-radius: 7px; background: #fff6e7; }
.admin-payment-missing p { margin: 6px 0 12px; }
.admin-payment-missing form + form { margin-top: 12px; }
.admin-payment-missing small { display: block; margin-top: 10px; color: #795b30; }
.admin-message--warning { color: #8a5100; }
.admin-settings-form .admin-settings-check { display: flex; align-items: center; gap: 10px; max-width: none; }
.admin-settings-check input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; }
.admin-settings-form textarea { width: 100%; padding: 10px; border: 1px solid #b8c5b1; border-radius: 5px; font: inherit; }
.cabinet { min-height: 45vh; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.account-tabs a { padding: 10px 16px; border: 1px solid #d8e6ce; border-radius: 7px; background: white; color: #326b25; text-decoration: none; font-weight: 700; }
.account-tabs a[aria-current="page"] { background: var(--rate-green); border-color: var(--rate-green); color: white; }
.profile-panel { max-width: 1040px; border-color: #dde9d7; box-shadow: 0 8px 30px #284d170d; }
.profile-panel h2 { margin-bottom: 18px; }
.profile-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; max-width: 540px; margin: 0 0 24px; padding: 13px 16px; border-radius: 8px; background: #f2f8ee; color: #52674a; font-size: 14px; }
.profile-phone strong { color: #252525; font-size: 16px; }
.profile-panel input { width: 100%; max-width: 540px; }
.profile-field-heading { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; color: #354631; font-weight: 700; }
.profile-panel .profile-add { width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--rate-green); color: white; font-size: 23px; line-height: 1; transition: transform .15s ease, background .15s ease; }
.profile-panel .profile-add:hover { transform: scale(1.08); background: #148d01; }
.profile-input-list { display: grid; gap: 8px; max-width: 540px; }
.profile-entry { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; min-height: 50px; padding: 5px 8px 5px 14px; border: 1px solid #dce8d7; border-radius: 8px; background: #fbfdf9; }
.profile-entry__value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-entry input { flex: 1; min-width: 0; max-width: none; background: white; }
.profile-entry__value[hidden], .profile-entry input[hidden], .profile-entry__actions[hidden] { display: none; }
.profile-entry__actions { display: flex; flex: 0 0 auto; gap: 4px; margin-left: auto; }
.profile-panel .profile-icon-button { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 7px; border: 0; border-radius: 6px; background: transparent; color: #507c43; }
.profile-panel .profile-icon-button:hover { background: #eaf5e4; color: #197909; }
.profile-panel .profile-icon-button--delete { color: #9b5b52; }
.profile-panel .profile-icon-button--delete:hover { background: #fff0ec; color: #af3528; }
.profile-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-actions { display: flex; justify-content: flex-end; max-width: 540px; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .profile-panel .profile-add { transition: none; } }
.profile-logout { max-width: 720px; background: #f8faf6; }
.profile-logout button { border-color: #a8362a; color: #a8362a; }
.logout-dialog, .email-dialog { width: min(440px,calc(100% - 32px)); border: 1px solid var(--rate-line); border-radius: 9px; padding: 24px; box-shadow: 0 20px 65px #0003; }
.logout-dialog::backdrop, .email-dialog::backdrop { background: #0008; }
.logout-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.logout-dialog__actions button, .email-dialog button { min-height: 39px; padding: 8px 12px; border: 1px solid #168f05; border-radius: 5px; background: white; color: #147b05; font: inherit; cursor: pointer; }
.logout-dialog__actions button:last-child, .email-dialog button[type=submit] { background: var(--rate-green); color: white; }
.email-dialog form { display: grid; gap: 12px; }
.email-dialog label { display: grid; gap: 6px; }
.email-dialog input { min-height: 40px; padding: 8px; border: 1px solid #b8c5b1; border-radius: 5px; font: inherit; }
.account-table-wrap { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { padding: 13px 12px; border-bottom: 1px solid #e3e8df; text-align: left; }
.account-table th { text-align: center; color: #596554; font-size: 13px; white-space: nowrap; }
.account-table td:not(:first-child) { text-align: center; }
.account-table td:not(:first-child) .order-invoice-cell { align-items: center; }
.account-table tbody tr[data-href] { cursor: pointer; }
.account-table tbody tr:hover { background: #f3f9ef; }
.account-table a { color: #218211; font-weight: 700; }

/* Страница обслуживания организаций. */
.business { width: min(1400px, calc(100% - 48px)); margin: 24px auto 64px; }
.business h1, .business h2, .business h3, .business p { margin-top: 0; }
.business-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); align-items: center; gap: 20px; min-height: 370px; padding: clamp(28px, 4vw, 58px); overflow: hidden; border-radius: 12px; background: linear-gradient(115deg, #e9f6e5 0%, #f5fbf2 58%, #e1f0db 100%); color: #202f20; }
.business-hero__copy { align-self: center; }
.business-eyebrow { color: var(--rate-green); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.business-hero .business-eyebrow { color: #158d06; }
.business-highlight .business-eyebrow { color: #80e66d; }
.business-hero h1 { max-width: 730px; margin-bottom: 18px; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.12; }
.business-hero__lead { max-width: 670px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; }
.business-hero__copy > p:not(.business-eyebrow) { color: #536652; }
.business-hero__visual { display: grid; place-items: center; }
.business-hero__visual img { display: block; width: min(100%, 420px); height: auto; }
.business-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.business-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 2px solid var(--rate-green); border-radius: 7px; background: var(--rate-green); color: white; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.business-button:hover { transform: translateY(-2px); border-color: #148d01; background: #148d01; }
.business-button--outline { border-color: var(--rate-green); background: transparent; color: #17730f; }
.business-button--outline:hover { border-color: var(--rate-green); background: #e0f0da; }
.business-button--light { border-color: white; background: white; color: #217119; }
.business-button--light:hover { border-color: #e8f7e4; background: #e8f7e4; }
.business-jump { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--rate-line); }
.business-jump a { padding: 9px 15px; border-radius: 999px; background: white; border: 1px solid #d7e3d2; color: #246d1b; text-decoration: none; font-size: 14px; font-weight: 700; }
.business-jump a:hover { background: #eff9ea; }
.business-section { padding: 68px 0 10px; scroll-margin-top: 20px; }
.business-section__heading { max-width: 750px; margin-bottom: 30px; }
.business-section__heading h2, .business-highlight h2, .business-cta h2 { margin-bottom: 14px; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.2; color: #252525; }
.business-section__heading > p:last-child { color: #626962; font-size: 16px; }
.business-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.business-card { padding: 25px; border: 1px solid var(--rate-line); border-top: 4px solid var(--rate-green); border-radius: 8px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.business-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px #253c2420; }
.business-card__number { display: block; margin-bottom: 20px; color: var(--rate-orange); font-size: 14px; font-weight: 700; }
.business-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.28; color: #252525; }
.business-card p { margin-bottom: 0; color: #626962; font-size: 14px; }
.business-highlight { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 68px; padding: clamp(30px, 4vw, 54px); border-radius: 9px; background: #294126; color: #eaf2e7; }
.business-highlight > div { max-width: 790px; }
.business-highlight h2 { color: white; }
.business-highlight p:last-child { margin-bottom: 0; }
.business-highlight .business-button { flex: 0 0 auto; }
.business-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.business-columns article { padding: 30px; border: 1px solid var(--rate-line); border-radius: 8px; background: white; }
.business-columns h3 { margin-bottom: 12px; color: #252525; font-size: 22px; }
.business-columns p { margin-bottom: 0; color: #626962; }
.business-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.business-benefits li { padding: 22px; border-left: 3px solid var(--rate-green); background: white; }
.business-benefits strong, .business-benefits span { display: block; }
.business-benefits strong { margin-bottom: 9px; color: #252525; }
.business-benefits span { color: #626962; font-size: 14px; }
.business-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.business-steps li { position: relative; padding: 28px 24px; border-radius: 8px; background: #eaf5e6; counter-increment: step; }
.business-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; color: #168d05; font-size: 24px; font-weight: 700; }
.business-steps strong, .business-steps span { display: block; }
.business-steps strong { margin-bottom: 10px; font-size: 18px; }
.business-steps span { color: #536051; font-size: 14px; }
.business-faq { max-width: 940px; }
.business-faq details { margin-bottom: 10px; border: 1px solid var(--rate-line); border-radius: 7px; background: white; }
.business-faq summary { padding: 17px 22px; cursor: pointer; font-weight: 700; }
.business-faq details[open] summary { color: #218211; }
.business-faq details p { padding: 0 22px 20px; margin-bottom: 0; color: #626962; }
.business-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 72px; padding: clamp(30px, 4vw, 54px); border: 1px solid #d2e8ca; border-radius: 9px; background: #f0f9ec; }
.business-cta > div:first-child { max-width: 790px; }
.business-cta > div:first-child p:last-child { margin-bottom: 0; color: #5b6658; }
.business-cta .business-actions { margin-top: 0; flex: 0 0 auto; }
.business-cta .business-button--outline { border-color: #19ab01; color: #168d05; }
.business-cta .business-button--outline:hover { background: #e0f4da; }
@media (max-width: 1100px) { .business-grid, .business-steps, .business-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .business-highlight, .business-cta { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { .business-hero { grid-template-columns: 1fr; } .business-hero__visual { display: none; } }
@media (max-width: 700px) { .business { width: calc(100% - 28px); margin-top: 14px; } .business-hero { padding: 26px 22px; } .business-section { padding-top: 48px; } .business-grid, .business-columns, .business-steps, .business-benefits { grid-template-columns: 1fr; } .business-highlight { margin-top: 48px; } .business-cta { margin-top: 52px; } }
@media (prefers-reduced-motion: reduce) { .business-button, .business-card { transition: none; } }
.invoice-detail-table tfoot th, .invoice-detail-table tfoot td { border-bottom: 0; }
.invoice-detail-table .invoice-total th, .invoice-detail-table .invoice-total td { border-top: 1px solid #d8e6ce; color: #202820; font-size: 18px; font-weight: 700; }
.cabinet-panel button.invoice-pay-button { padding: 10px 16px; border: 1px solid var(--rate-green); border-radius: 7px; background: var(--rate-green); color: white; font-weight: 700; cursor: pointer; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #edf2e9; color: #53624c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.timezone-label { color: #a9afa7; font-size: 9px; font-weight: 400; white-space: nowrap; }
.status-badge--new, .status-badge--issued { background: #fff0d1; color: #885600; }
.status-badge--accepted { background: #e5f2ff; color: #155f9d; }
.status-badge--in_progress { background: #e9e6ff; color: #5845a2; }
.status-badge--completed, .status-badge--paid { background: #e0f6db; color: #25751a; }
.status-badge--cancelled { background: #f9e3e0; color: #aa3429; }
.status-badge--waiting_parts { background: #fff0d1; color: #885600; }
.status-badge--ready_pickup { background: #dcf8ed; color: #12694e; }
.status-badge--device_issued { background: #e0f6db; color: #25751a; }
.status-badge--cancelled_return { background: #ffe7d8; color: #994413; }
.device-list { margin: 20px 0; }
.device-card--archived { background: #f5f5f5; }
.device-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; }
.device-actions form { margin: 0; }
.device-actions button { padding: 6px 10px; font-size: 12px; }
.device-editor { margin: 18px 0; }
.device-editor summary { cursor: pointer; color: #28651d; font-weight: 600; }
.device-editor form { margin-top: 16px; }
.device-panel .admin-user-form { max-width: 620px; }
.device-work-note { min-width: 190px; white-space: pre-line; }
.device-private-note { color: #75613b; font-size: 12px; }
.device-order-fields { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #d6e3ce; border-radius: 8px; background: #f8fbf5; }
.device-order-fields legend { color: #426936; font-size: 14px; font-weight: 600; }
.device-order-fields label { display: grid; gap: 6px; margin: 10px 0; font-size: 14px; }
.device-order-fields input, .device-order-fields select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #b8c5b1; border-radius: 6px; background: #fff; color: #333; font: inherit; }
.device-order-fields small { display: block; color: #687462; font-size: 12px; line-height: 1.5; }
.device-order-fields [hidden] { display: none; }
.admin-order.admin-collapsible > summary > .status-badge { max-width: 100%; white-space: normal; line-height: 1.35; }
.admin-order.admin-collapsible > summary > .status-badge--device_issued { white-space: nowrap; }
.device-register-filter { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,220px); gap: 18px; align-items: end; margin: 18px 0; }
.device-register-filter label { display: grid; gap: 7px; font-size: 14px; }
.device-register-filter input, .device-register-filter select { box-sizing: border-box; width: 100%; }
.device-register-number { display: block; margin-top: 5px; color: #737a6d; font-size: 11px; }
.device-register-actions a { display: block; margin: 5px 0; white-space: nowrap; }
.admin-device-create { max-width: 620px; margin-top: 18px; }
.admin-device-create [data-account-user-picker] { position: relative; }
.device-detail-archive { margin: 18px 0; }
@media (max-width: 650px) { .device-register-filter { grid-template-columns: minmax(0,1fr); gap: 12px; } }
.detail-card { max-width: 850px; }
.detail-back { display: inline-block; margin-bottom: 16px; }
.detail-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.detail-card dt { color: #667061; font-size: 13px; }
.detail-card dd { margin: 3px 0 0; font-weight: 700; }
.detail-list { padding-left: 22px; line-height: 1.7; }
.cabinet-primary--link { display: inline-block; padding: 11px 16px; border-radius: 6px; text-decoration: none; }
.admin-search-label { max-width: none; margin-bottom: 8px; }
#admin-search { width: 100%; max-width: 640px; }
.admin-message-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rate-line); }
.admin-message-form label, .admin-user-form label { display: grid; gap: 6px; margin: 12px 0; }
.admin-message-form textarea, .admin-user-form textarea { width: 100%; max-width: 650px; padding: 10px; border: 1px solid #b8c5b1; border-radius: 5px; font: inherit; resize: vertical; }
.admin-message { color: #237816; font-weight: 700; }
.admin-status-form { display: grid; gap: 12px; max-width: 680px; margin: 18px 0; }
.admin-status-form label { display: grid; gap: 6px; }
.admin-status-form textarea { width: 100%; padding: 10px; border: 1px solid #b8c5b1; border-radius: 5px; font: inherit; resize: vertical; }
.admin-status-form [hidden], #order-visit-fields[hidden] { display: none; }
.auth-call-number { margin: 12px 0 18px; color: #777; font-size: clamp(26px, 5vw, 38px); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.auth-call-number a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .cabinet-panel { padding: 18px; } .detail-card dl { grid-template-columns: 1fr; } .account-table th, .account-table td { padding: 10px; } }
@media (max-width: 1100px) {
  .site-header__inner { gap: 20px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .computer-info { grid-column: 2; grid-row: 1; }
  .header-hours { grid-column: 1; grid-row: 2; border-left: 0; padding-left: 0; }
  .header-contacts { grid-column: 2; grid-row: 2; justify-self: start; }
  .site-nav__link { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 1050px) {
  .site-nav__toggle { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: white; padding: 15px 0; font-size: 15px; }
  .site-nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
  .site-nav__list { display: none; padding-bottom: 12px; }
  .site-nav.is-open .site-nav__list { display: block; }
  .site-nav__link { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 5px; }
  .site-nav__account .site-nav__link { width: 100%; height: auto; min-height: 48px; padding: 6px 16px; }
  .site-nav__admin:not([hidden]), .site-nav__account { margin-left: 0; }
  .site-nav__submenu { position: static; box-shadow: none; margin: 4px 0 8px; border-radius: 6px; }
}
@media (max-width: 600px) {
  .site-header__inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .computer-info { grid-column: 1; grid-row: 2; font-size: 11px; border: 0; border-top: 1px solid var(--rate-line); padding: 16px 0 0; }
  .header-hours { grid-column: 1; grid-row: 3; }
  .header-contacts { grid-column: 1; grid-row: 4; justify-self: start; }
  .brand__name { font-size: 34px; }
  .brand__caption { font-size: 14.5px; }
  .header-contacts__phone { font-size: 21px; }
  .password-dialog { padding: 20px; }
  .order-dialog { padding: 20px; }
  .password-dialog__actions { flex-direction: column; }
}
@media (max-width: 360px) {
  .site-header__inner, .site-nav__inner { width: calc(100% - 24px); }
}

/* Подвал сайта. */
.site-footer { margin-top: 56px; background: #252525; color: #f4f4f4; }
.site-footer__main { width: calc(100% - 48px); max-width: 1400px; margin: auto; padding: 36px 0 30px; display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(280px, 1.5fr); align-items: center; gap: 34px; }
.site-footer__identity { min-width: 0; }
.site-footer__description { max-width: 340px; margin: 14px 0 0; color: #bcbcbc; font-size: 12px; line-height: 1.6; }
.site-footer__legal { max-width: 380px; margin: 12px 0 0; color: #e6e6e6; font-size: 12px; line-height: 1.6; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.site-footer__brand .brand__icon { width: 40px; height: 40px; flex-basis: 40px; }
.site-footer__brand .brand__name { font-size: 27px; }
.site-footer__call { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid #555; padding-left: 28px; font-size: 14px; color: #ccc; white-space: nowrap; }
.site-footer__contact { width: max-content; max-width: 100%; }
.site-footer__call a { width: fit-content; color: #fff; text-decoration: none; font-size: 19px; font-weight: 700; }
.site-footer__call a:hover { color: #9fdb81; }
.site-footer__messengers { display: flex; justify-content: center; gap: 12px; width: 100%; margin-top: 9px; }
.site-footer__messengers a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; box-sizing: border-box; transition: transform .18s ease, filter .18s ease; }
.site-footer__messengers a:hover { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 5px 7px #0006); }
.site-footer__messengers img { display: block; width: 30px; height: 30px; object-fit: contain; }
.site-footer__messengers a:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .site-footer__messengers a { transition: none; } .site-footer__messengers a:hover { transform: none; } }
.site-footer__links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; }
.site-footer__links a { color: #d5d5d5; text-decoration: none; font-size: 13px; }
.site-footer__links a:hover { color: #9fdb81; }
.site-footer__links a:focus-visible { outline: 2px solid #9fdb81; outline-offset: 4px; }
.site-footer__copyright { border-top: 1px solid #414141; padding: 14px 24px; color: #aaa; text-align: center; font-size: 12px; }
.cookie-notice { position: fixed; z-index: 1000; right: 0; bottom: 0; left: 0; padding: 14px 20px; border-top: 2px solid var(--rate-green); background: #fff; box-shadow: 0 -8px 30px #0002; }
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner { max-width: 1400px; margin: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.cookie-notice__inner > p:first-child { flex: 1 1 520px; margin: 0; font-size: 14px; line-height: 1.55; }
.cookie-notice a { color: #147b05; text-underline-offset: 2px; }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-notice__actions button { min-height: 42px; padding: 9px 15px; border: 1px solid var(--rate-green); border-radius: 6px; background: var(--rate-green); color: white; font-weight: 700; }
.cookie-notice__actions button:hover { filter: brightness(.94); }
.cookie-notice__actions button:disabled { opacity: .55; }
.cookie-notice__status { flex-basis: 100%; margin: 0; color: #a52c1e; font-size: 13px; }
.cookie-notice__status:empty { display: none; }
@media (max-width: 600px) { .cookie-notice { padding: 14px; } .cookie-notice__actions { width: 100%; } .cookie-notice__actions button { flex: 1 1 140px; } }
.legal-inline-note { margin: 12px 0; color: #5a6657; font-size: 13px; line-height: 1.5; }
.legal-inline-note a { color: #147b05; text-underline-offset: 2px; }
.legal-page { width: calc(100% - 40px); max-width: 980px; min-height: 45vh; margin: 40px auto 0; }
.legal-page__intro { padding: 28px 32px; border-radius: 12px; background: #edf7e9; }
.legal-page__eyebrow { margin: 0 0 9px; color: #168f05; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.legal-page__intro h1 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 38px); line-height: 1.18; }
.legal-page__intro p:last-child { margin: 0; line-height: 1.6; }
.legal-page__content { margin-top: 22px; padding: 10px 32px 24px; border: 1px solid var(--rate-line); border-radius: 10px; background: #fff; }
.legal-page__content section { padding-top: 18px; }
.legal-page__content h2 { margin: 0 0 11px; font-size: 21px; line-height: 1.35; }
.legal-page__content p, .legal-page__content li { line-height: 1.7; }
.legal-page__content p { margin: 0 0 12px; }
.legal-page__content ul { margin: 0 0 15px; padding-left: 22px; }
.legal-page__content li + li { margin-top: 7px; }
.legal-page__content a { color: #147b05; text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer__links { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid #414141; padding-top: 20px; }
}
@media (max-width: 600px) {
  .site-footer { margin-top: 40px; }
  .site-footer__main { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 20px; padding: 28px 0 24px; }
  .site-footer__call { border-left: 0; border-top: 1px solid #555; padding: 18px 0 0; }
  .site-footer__links { grid-column: auto; display: grid; grid-template-columns: 1fr; gap: 14px; }
  .legal-page { width: calc(100% - 28px); margin-top: 24px; }
  .legal-page__intro { padding: 22px; }
  .legal-page__content { padding: 6px 22px 18px; }
  .legal-page__content h2 { font-size: 19px; }
}

/* Главная страница: первый экран и список услуг. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); align-items: center; gap: 20px; min-height: 370px; padding: clamp(28px, 4vw, 58px); border-radius: 12px; background: linear-gradient(115deg, #e9f6e5 0%, #f5fbf2 58%, #e1f0db 100%); overflow: hidden; }
.home-hero__copy { position: relative; z-index: 1; }
.home-hero__eyebrow { margin: 0 0 10px; color: #158d06; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-hero h1 { max-width: 780px; margin: 0; color: #202f20; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.12; }
.home-hero__lead { max-width: 690px; margin: 18px 0 8px; color: #344b34; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.home-hero__copy > p:not(.home-hero__eyebrow, .home-hero__lead) { max-width: 670px; margin: 0; color: #536652; font-size: 15px; line-height: 1.6; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.home-hero__actions :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 19px; border: 2px solid var(--rate-green); border-radius: 7px; background: var(--rate-green); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.home-hero__actions :is(a, button):hover { transform: translateY(-2px); background: #148d01; }
.home-hero__actions :is(a, button):nth-child(2) { background: transparent; color: #17730f; }
.home-hero__actions :is(a, button):nth-child(2):hover { background: #e0f0da; }
.home-hero__visual svg { display: block; width: 100%; max-width: 420px; margin: auto; }
.home-services { scroll-margin-top: 16px; }
.home-services__heading { margin: 38px 0 20px; }
.home-services__heading p { margin: 0 0 5px; color: #168f05; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.home-services__heading h2 { margin: 0; color: #283228; font-size: clamp(24px, 2.4vw, 33px); line-height: 1.2; }

/* Страница контактов. */
.contact-page { width: calc(100% - 48px); max-width: 1200px; margin: 36px auto 0; }
.contact-page__intro { max-width: 750px; margin-bottom: 28px; }
.contact-page__intro h1 { margin: 4px 0 10px; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.contact-page__intro > p:last-child { margin: 0; color: #5b6758; font-size: 17px; line-height: 1.6; }
.contact-page__grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.contact-page__details, .contact-page__form-card { padding: clamp(24px, 3vw, 34px); border: 1px solid #dfe9da; border-radius: 10px; background: #fff; }
.contact-page__details h2, .contact-page__form-card h2 { margin: 0 0 16px; font-size: 24px; }
.contact-page__primary, .contact-page__email { display: block; width: fit-content; color: #253425; text-decoration: none; }
.contact-page__primary { font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; }
.contact-page__email { margin-top: 8px; color: #147b05; font-size: 17px; }
.contact-page__primary:hover, .contact-page__email:hover { text-decoration: underline; }
.contact-page__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.contact-page__messengers a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 12px; border: 1px solid #d9e8d2; border-radius: 7px; color: #253425; text-decoration: none; font-weight: 700; transition: transform .2s ease, border-color .2s ease; }
.contact-page__messengers a:hover { transform: translateY(-2px); border-color: var(--rate-green); }
.contact-page__messengers img { width: 32px; height: 32px; }
.contact-page__details > p { margin: 0; color: #637060; font-size: 14px; line-height: 1.6; }
.contact-page__form-card > p { color: #5b6758; line-height: 1.55; }
.contact-form { display: grid; gap: 16px; }
.contact-form > label:not(.contact-form__consent) { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input:not([type=checkbox]), .contact-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bfceba; border-radius: 6px; background: #fff; color: #333; font: inherit; font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form__consent { display: flex; align-items: flex-start; gap: 9px; color: #536050; font-size: 13px; line-height: 1.5; }
.contact-form__consent input { flex: 0 0 17px; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--rate-green); }
.contact-form__consent a { color: #147b05; }
.contact-form button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--rate-green); color: #fff; font-weight: 700; }
.contact-form button:hover { background: #148d01; }
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-page__success, .contact-page__error { padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.contact-page__cookie-note { padding: 13px 15px; border-radius: 6px; background: #edf7e9; color: #23551b; font-size: 14px; line-height: 1.55; }
.contact-page__success { background: #e7f6e1; color: #176b10 !important; }
.contact-page__error { background: #fff0ed; color: #a52c1e !important; }
.contact-dialog { box-sizing: border-box; width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid var(--rate-line); border-radius: 12px; background: #fff; color: #333; box-shadow: 0 24px 80px #0003; }
.contact-dialog::backdrop { background: #152010a8; }
.contact-dialog[open] { animation: service-info-open .28s cubic-bezier(.22, 1, .36, 1) both; }
.contact-dialog[open]::backdrop { animation: service-info-backdrop .28s ease both; }
.contact-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.contact-dialog__heading h2 { margin: 0; font-size: 25px; line-height: 1.25; }
.contact-dialog__close { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 6px; background: #f3f5f0; color: #333; font-size: 26px; line-height: 1; cursor: pointer; }
.contact-dialog__close:hover { background: #e3efdc; }
.contact-dialog__intro { margin: 14px 0 20px; color: #5b6758; line-height: 1.55; }
.contact-dialog__status { margin: 0 0 16px; color: #536050; font-size: 14px; }
.contact-dialog__status:empty { display: none; }
.contact-dialog__status--success { padding: 12px 14px; border-radius: 6px; background: #e7f6e1; color: #176b10; }
.contact-dialog__status--error { padding: 12px 14px; border-radius: 6px; background: #fff0ed; color: #a52c1e; }
.contact-form[hidden] { display: none; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; } .home-hero__visual { display: none; } .contact-page__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .home-hero { padding: 26px 22px; } .home-services__heading { margin-top: 30px; } .contact-page { width: calc(100% - 28px); margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .home-hero__actions :is(a, button), .contact-page__messengers a, .contact-dialog[open], .contact-dialog[open]::backdrop { transition: none; animation: none; } .home-hero__actions :is(a, button):hover, .contact-page__messengers a:hover { transform: none; } }
.admin-content-entry{margin:12px 0;border:1px solid #dce6d7;border-radius:10px;background:#fff;padding:0 16px}
.admin-content-entry>summary{cursor:pointer;padding:15px 0;font-weight:700;color:#202820}
.admin-content-entry>summary small{font-weight:400;color:#74806f;margin-left:8px}
.admin-content-entry .admin-settings-form{padding:6px 0 16px}
.admin-content-entry .admin-delete-form{padding-bottom:16px}
.admin-history-detail summary{cursor:pointer;font-weight:600;color:#234b20}
.admin-history-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;padding:13px;border-radius:8px;background:#f2f7ef;line-height:1.55;max-width:620px}

/* Создание заявки выбранному клиенту; остальные формы админки сохраняют свои размеры. */
.admin-order-create { display: grid; gap: 16px; max-width: 720px; margin-top: 20px; }
.admin-order-create label { display: grid; gap: 7px; font-size: 14px; }
.admin-order-create input, .admin-order-create select, .admin-order-create textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #b8c5b1; border-radius: 6px; background: #fff; font: inherit; }
.admin-order-create textarea { resize: vertical; }
.admin-order-create fieldset { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid #dbe5d5; border-radius: 8px; }
.admin-order-create legend { padding: 0 6px; color: #465840; font-size: 14px; }
.admin-order-create p { margin: 0; line-height: 1.55; }
.admin-order-create small, .admin-order-consent-note { color: #64715e; font-size: 13px; }
.admin-order-create .order-visit-warning { color: #c12626; }
.admin-order-create button[type="submit"] { justify-self: start; }
.admin-order-create [hidden] { display: none; }
.admin-user-comment { min-width: 180px; max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }

/* Черновики счетов и связанный счёт в списке заявок. */
.status-badge--draft { background: #eef0f5; color: #626b80; }
.order-invoice-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
.order-invoice-cell a { text-decoration: none; font-weight: 400; }
.admin-invoice-submit { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-invoice-submit .admin-draft-button { color: #54644c; background: #f4f7f2; border-color: #cbd9c4; }
@media (min-width: 1280px) { .admin-orders-head, .admin-order.admin-collapsible > summary { grid-template-columns: 18px minmax(88px,.8fr) minmax(120px,1.2fr) minmax(140px,1.5fr) minmax(115px,1fr) minmax(125px,1fr) 105px minmax(145px,1fr) minmax(120px,1fr); gap: 9px; } }

@media (max-width: 1279px) { .admin-orders-head { display: none; } .admin-order.admin-collapsible > summary { display: flex; flex-wrap: wrap; gap: 8px 14px; } .admin-order.admin-collapsible > summary::before { flex: 0 0 14px; } }

.admin-invoice [hidden] { display: none; }

.admin-order-transfer { margin: 18px 0; padding: 14px; border: 1px solid #d8e6ce; border-radius: 8px; background: #f8fbf6; }
.admin-order-transfer > summary { cursor: pointer; color: #28651d; font-weight: 600; }
.admin-order-transfer [data-account-user-picker] { position: relative; max-width: 540px; }
.admin-order-transfer input[type=search] { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #b8c5b1; border-radius: 6px; background: #fff; font: inherit; }
.admin-order-transfer .admin-settings-check { display: flex; align-items: flex-start; gap: 8px; }
.admin-order-transfer p { color: #64705d; font-size: 13px; line-height: 1.55; }

/* Установка приложения и локальное сканирование штрих-кодов. */
.app-dialog { box-sizing: border-box; width: min(600px,calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 24px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d8e6ce; border-radius: 16px; color: #293427; background: #fff; box-shadow: 0 20px 80px #0004; }
.app-dialog::backdrop { background: #10210ecd; }
.app-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-dialog h2 { margin: 0; font-size: 23px; line-height: 1.25; }
.app-dialog p, .app-dialog li { font-size: 14px; line-height: 1.55; }
.app-dialog li + li { margin-top: 12px; }
.app-dialog [role=status] { margin-bottom: 0; }
.app-dialog .dialog-close { min-width: 44px; min-height: 44px; }
.barcode-field { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; min-width: 0; }
.barcode-field > label { min-width: 0; max-width: none; margin-bottom: 0; }
.barcode-field input { box-sizing: border-box; width: 100%; min-width: 0; }
.barcode-field .barcode-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #b4d3a6; border-radius: 6px; background: #edf7e7; color: #216e15; font: inherit; font-size: 13px; cursor: pointer; }
.barcode-trigger svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.barcode-trigger:hover { background: #e0f2d7; }
.barcode-trigger:focus-visible { outline: 2px solid #199e09; outline-offset: 3px; }
.barcode-camera-label { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; }
.barcode-camera-label select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #b8c5b1; border-radius: 6px; background: #fff; font: inherit; }
.barcode-preview { position: relative; overflow: hidden; aspect-ratio: 4/3; max-height: 38dvh; border-radius: 10px; background: #172015; }
.barcode-preview[data-portrait="true"] { max-height: 52dvh; }
.barcode-preview video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.barcode-preview canvas { display: none; }
.barcode-guide { position: absolute; box-sizing: border-box; border: 2px solid #b5f2a3; border-radius: 8px; box-shadow: 0 0 0 100vmax #0005; pointer-events: none; }
.barcode-guide[hidden] { display: none; }
.barcode-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.barcode-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid #b4d3a6; border-radius: 7px; background: #edf7e7; color: #216e15; font: inherit; font-size: 14px; }
.barcode-toolbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.barcode-toolbar output { min-width: 48px; color: #64715f; font-size: 13px; text-align: right; }
.barcode-zoom { display: inline-grid; grid-template-columns: 44px 56px 44px; flex: 0 0 auto; align-items: center; gap: 6px; }
.barcode-zoom output { width: 56px; min-width: 0; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.barcode-zoom button { box-sizing: border-box; width: 44px; min-width: 44px; padding: 9px; }
.barcode-result { display: grid; gap: 6px; margin: 16px 0; padding: 14px; border: 1px solid #bbdab0; border-radius: 8px; background: #f0faeb; }
.barcode-result[hidden] { display: none; }
.barcode-result strong { font: 700 20px/1.4 monospace; overflow-wrap: anywhere; }
.barcode-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.barcode-actions button { flex: 1 1 180px; min-height: 46px; padding: 10px; border: 1px solid #b4d3a6; border-radius: 7px; background: #fff; color: #216e15; font: inherit; cursor: pointer; }
.barcode-actions .app-primary { border-color: #19ab01; background: #19ab01; color: #fff; font-weight: 700; }
.barcode-actions button:disabled { opacity: .5; cursor: default; }

/* Мобильные формы и кабинеты сохраняют общую серверную логику сайта. */
@media (max-width: 700px) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .site-nav { position: sticky; top: 0; z-index: 100; }
  .site-nav.is-open { max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; }
  .site-nav__toggle { min-height: 50px; width: 100%; }
  .site-nav__submenu a { min-height: 44px; }
  .cabinet { min-width: 0; margin-top: 18px; }
  .cabinet-panel { min-width: 0; padding: 16px; margin: 18px 0; border-radius: 12px; }
  .cabinet-panel h2 { font-size: 22px; overflow-wrap: anywhere; }
  .account-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding: 2px 0 12px; margin-bottom: 12px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .account-tabs a { flex: 0 0 auto; min-height: 44px; padding: 11px 13px; font-size: 14px; }
  .cabinet-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
  .admin-new-invoice .admin-invoice input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .order-dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .order-dialog select, .order-dialog textarea,
  .auth-dialog input, .contact-form input:not([type=checkbox]), .contact-form textarea, .password-length input, .barcode-camera-label select { max-width: 100%; min-height: 44px; font-size: 16px; }
  .cabinet-panel :is(button,input,select,textarea,fieldset), .admin-inline > *, .admin-invoice > *, .admin-status-form { min-width: 0; }
  .cabinet-panel button { min-height: 44px; }
  .profile-panel .profile-add, .profile-panel .profile-icon-button { min-width: 44px; min-height: 44px; }
  .admin-inline { align-items: stretch; }
  .admin-inline > label { flex: 1 1 100%; }
  .admin-inline > button { flex: 1 1 auto; }
  .admin-report-filter label { min-width: 0; }
  .admin-report-pages { justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .admin-report-pages :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; }
  .admin-report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-report-metrics > div { padding: 12px; }
  .admin-report-metrics strong { font-size: 19px; }
  .admin-invoice > label { flex-basis: 100%; max-width: none; }
  .admin-invoice-item label { flex-basis: calc(50% - 10px); }
  .admin-invoice-item label:first-of-type { flex-basis: 100%; }
  .admin-invoice-submit { width: 100%; }
  .admin-invoice-submit button { flex: 1 1 auto; }
  .admin-invoice label.admin-credit-row { grid-template-columns: minmax(0,1fr) 105px; gap: 8px; }
  .admin-order-create { padding: 14px; }
  .device-order-fields { padding: 12px; }
  .account-table-wrap, .admin-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  .invoice-detail-table { min-width: 0; }
  .invoice-detail-table th:first-child, .invoice-detail-table td:first-child { overflow-wrap: anywhere; }
  .invoice-detail-table th:last-child, .invoice-detail-table td:last-child { min-width: 116px; }
  .account-table tr[data-href] td:first-child a { display: inline-block; padding: 5px 0; }
  .mobile-record-table, .mobile-record-table tbody { display: block; width: 100%; }
  .mobile-record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-record-table tbody tr { display: block; margin: 12px 0; padding: 12px; border: 1px solid #dbe5d6; border-radius: 10px; background: #f9fcf7; }
  .mobile-record-table tbody td { display: block; position: relative; min-height: 34px; padding: 7px 0 7px 39%; border: 0; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
  .mobile-record-table td[data-label]::before { position: absolute; top: 8px; left: 0; width: 36%; content: attr(data-label); color: #6a7565; font-size: 12px; line-height: 1.4; }
  .mobile-record-table td[colspan] { padding-left: 0; }
  .mobile-record-table .device-register-actions a { min-height: 36px; white-space: normal; }
  .device-actions { align-items: stretch; }
  .device-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
  .barcode-field .barcode-trigger span { display: none; }
  .barcode-field .barcode-trigger { min-width: 44px; }
  .order-dialog, .auth-dialog, .password-dialog, .service-info-dialog, .contact-dialog, .app-dialog { box-sizing: border-box; max-width: calc(100% - 20px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
  .dialog-close, .order-dialog__close, .auth-dialog__close, .contact-dialog__close, .service-info-dialog__close { min-width: 44px; min-height: 44px; }
  .home-hero__actions :is(a,button), .business-actions :is(a,button) { flex: 1 1 100%; text-align: center; }
  .cookie-notice { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .site-footer__copyright { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .site-header__inner { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 20px 0; }
  .header-contacts { grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; }
  .header-contacts a { min-height: 32px; }
  .header-hours { grid-row: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
  .header-hours strong { flex-basis: 100%; }
  .computer-info { grid-row: 4; display: grid; gap: 5px; margin: 0; padding-top: 12px; font-size: 11px; }
  .device-register-filter { grid-template-columns: minmax(0,1fr); }
}
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
}

/* Мастер очного приёма; внутренние сведения не смешиваются с описанием клиента. */
.intake-toolbar { margin: 18px 0; }
.intake-toolbar .account-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: 1px solid #19ab01; border-radius: 8px; background: #19ab01; color: #fff; font-weight: 700; text-decoration: none; }
.intake-toolbar .account-action:hover { background: #148d01; }
.intake-wizard { max-width: 800px; margin-right: auto; margin-left: auto; padding: 28px; border-color: #dbe7d4; box-shadow: 0 10px 35px #25421b0a; }
.intake-wizard__intro { margin-top: 0; color: #64715f; line-height: 1.6; }
.intake-steps { display: flex; gap: 8px; overflow-x: auto; margin: 24px 0 30px; padding: 0 0 8px; list-style: none; counter-reset: intake; scrollbar-width: thin; }
.intake-steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 10px; border-radius: 8px; background: #f1f4ef; color: #697164; font-size: 13px; counter-increment: intake; }
.intake-steps li::before { content: counter(intake); display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e0e6dc; color: #56644e; font-size: 12px; }
.intake-steps li[data-state=current] { background: #e6f7dd; color: #237315; font-weight: 700; }
.intake-steps li[data-state=current]::before { background: #19ab01; color: #fff; }
.intake-steps li[data-state=done]::before { content: '✓'; background: #d5edc9; color: #217315; }
.intake-form { max-width: 100%; }
.intake-form h2 { scroll-margin-top: 80px; font-size: 23px; }
.intake-form [hidden] { display: none; }
.intake-form [data-account-user-picker] { position: relative; }
.intake-form label { max-width: none; }
.intake-form input:not([type=hidden]), .intake-form select, .intake-form textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; }
.intake-form textarea { max-width: 100%; resize: vertical; }
.intake-form > section > p, .intake-form [data-intake-new-client] p, .intake-form [data-intake-new-service] p { color: #64715f; font-size: 13px; line-height: 1.6; }
.intake-form fieldset[data-admin-order-service] { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #d8e6ce; border-radius: 8px; }
.intake-private-note { padding: 12px 15px; border-radius: 8px; background: #edf3fa; }
.intake-error, .intake-form p.intake-error { color: #b42e25; font-size: 14px; line-height: 1.5; }
.intake-error:empty { display: none; }
.intake-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 24px; border-top: 1px solid #e0e9da; }
.intake-actions button { min-height: 46px; padding: 11px 18px; }
.intake-actions .cabinet-primary { margin-left: auto; }
.intake-review { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1.5fr); gap: 0 20px; }
.intake-review dt, .intake-review dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #e4ebdf; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-review dt { color: #687660; }
.order-intake-details { padding: 18px; margin: 20px 0; border: 1px solid #cdddc3; border-radius: 10px; background: #f7fbf4; }
.order-intake-details h3 { margin: 0 0 12px; }
.order-intake-details h3 small { display: inline-block; color: #7b8874; font-size: 11px; font-weight: 400; }
.order-intake-details dl { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px 18px; }
.order-intake-details dt { color: #687660; font-size: 13px; }
.order-intake-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.order-intake-details [data-intake-secret] { margin-top: 20px; }
.order-intake-details [data-intake-password] { display: block; padding: 12px 14px; margin-top: 12px; border: 1px solid #d0dfc7; border-radius: 6px; background: white; font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.order-intake-details [data-intake-password][hidden] { display: none; }
.order-intake-details [data-intake-password-status] { color: #687660; font-size: 12px; }
@media (max-width: 700px) {
  .intake-wizard { padding: 18px 14px; }
  .intake-steps { gap: 6px; margin: 18px 0 22px; }
  .intake-steps li { font-size: 12px; padding: 6px 8px; }
  .intake-actions button { flex: 1 1 auto; }
  .intake-actions [data-intake-submit] { flex-basis: 100%; }
  .intake-review, .order-intake-details dl { grid-template-columns: minmax(0,1fr); gap: 0; }
  .intake-review dt { padding: 12px 0 2px; border: 0; font-size: 12px; }
  .intake-review dd { padding: 0 0 12px; }
  .order-intake-details dt { margin: 12px 0 3px; }
  .order-intake-details { padding: 14px; }
}

/* Причина видна в свёрнутой заявке; длинный текст переносится без потери содержимого. */
.admin-order-reason { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-weight: 400; }
.intake-device-match { display: block; width: 100%; margin: 10px 0; padding: 12px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1099px) { .admin-order.admin-collapsible > summary .admin-order-reason { flex-basis: 100%; } .admin-order-reason::before { content: "Причина: "; color: #687660; } }

/* Уведомления располагаются компактными облачками в пределах ширины шапки. */
.site-alerts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; width: calc(100% - 48px); max-width: 1400px; margin: 14px auto 0; }
.site-alerts:not(:has(> aside:not([hidden]))) { display: none; }
.site-alerts > :is(.unpaid-alert,.completed-alert,.profile-alert) { flex: 0 1 auto; width: auto; max-width: min(100%,620px); margin: 0; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-order.admin-collapsible > summary > span { min-width: 0; overflow-wrap: break-word; }
.admin-order.admin-collapsible > summary > span:nth-child(6) { white-space: nowrap; }
@media (max-width: 360px) { .site-alerts, .cabinet { width: calc(100% - 24px); } }

@media (min-width: 1100px) and (max-width: 1279px) { .admin-order.admin-collapsible > summary .admin-order-reason { flex-basis: 100%; } }

/* Данные клиента и заявки собраны по смыслу, иконки снабжены подсказками. */
.field-icon { display: inline-flex; flex: 0 0 19px; width: 19px; height: 19px; color: #5e7955; vertical-align: middle; }
.field-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.order-facts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 9px 12px; margin: 12px 0; }
.order-fact { display: inline-flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; padding: 9px 12px; border: 1px solid #e0e9db; border-radius: 9px; background: #f8fbf5; color: #35472e; font-size: 14px; line-height: 1.45; text-decoration: none; }
.order-fact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.order-fact .field-icon { margin-top: 1px; }
a.order-fact:hover { border-color: #a9cf99; background: #eff8e9; }
.order-fact[href^="tel:"] { white-space: nowrap; }
.order-details-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 9px 18px; margin: 14px 0 20px; font-size: 13px; line-height: 1.6; }
.order-details-grid p { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f7f8f6; overflow-wrap: anywhere; }
.admin-client-link { color: #287b19; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.admin-client-card { padding: 20px; margin: 18px 0; border: 1px solid #dce8d5; border-radius: 14px; background: linear-gradient(120deg,#f7fcf3,#fff); }
.admin-client-card__heading, .admin-client-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.admin-client-card__heading h2 { margin: 0; font-size: 24px; }
.admin-client-since { margin: 10px 0 16px; font-size: 12px; color: #74816b; }
.admin-client-tools form { margin: 0; }
.admin-client-tools .account-action { display: inline-flex; align-items: center; margin: 0; }
.admin-client-discount { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; font-size: 13px; }
.admin-client-discount label { display: flex; align-items: center; gap: 8px; }
.admin-client-discount input { width: 90px; }
.admin-client-comment { margin-top: 16px; font-size: 13px; }
.admin-client-comment summary { cursor: pointer; color: #62765a; }
.admin-client-comment form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
.admin-client-comment textarea { flex: 1 1 280px; margin: 0; }
.admin-client-history { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 16px; margin-top: 24px; }
.admin-client-history > section { min-width: 0; padding: 16px; border: 1px solid #e1e8dd; border-radius: 12px; background: #fbfdf9; }
.admin-client-history h3 { margin: 0 0 12px; }
.admin-client-history .detail-list { margin-bottom: 0; padding-left: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-client-history .detail-list li + li { margin-top: 9px; }
.profile-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px 22px; }
.profile-contact-group { min-width: 0; }
.profile-contact-group:last-child { grid-column: 1 / -1; }
.profile-contact-group .profile-field-heading { margin-top: 4px; }
.profile-business { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid #e0e8db; border-radius: 10px; }
.profile-business legend { padding: 0 6px; font-size: 13px; color: #718367; }
.profile-panel label.profile-business-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; }
.profile-panel .profile-business-toggle input { width: 18px; min-height: 18px; accent-color: var(--rate-green); }
.profile-panel .profile-business-inn { max-width: 320px; }
.profile-business small, .admin-manual-payment small { font-size: 12px; color: #728269; line-height: 1.5; }
.profile-business [hidden] { display: none; }
.admin-manual-payment { flex: 1 1 100%; }
.admin-manual-payment input { width: 100%; }
.invoice-client-business { font-size: 13px; color: #66785c; }
@media (max-width: 650px) {
 .profile-contact-grid { grid-template-columns: minmax(0,1fr); }
 .admin-client-card { padding: 14px; }
 .admin-client-card__heading h2 { font-size: 21px; }
 .order-facts { gap: 8px; }
 .order-fact { padding: 8px 10px; }
 .profile-business { padding: 12px; }
}

/* Факты одной заявки идут непрерывной лентой; узкий экран прокручивает её по горизонтали. */
.order-facts--inline { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 7px; scrollbar-width: thin; }
.order-facts--inline:focus-visible { outline: 2px solid #82bd6c; outline-offset: 3px; }
.order-facts--inline .order-fact { flex: 0 0 auto; max-width: none; white-space: nowrap; }
.order-fact--service { background: #f0edf9; border-color: #ddd5ef; color: #61517b; }
.order-fact--client { background: #edf6ff; border-color: #cee2f5; color: #365f83; }
.order-fact--phone { background: #edf9ef; border-color: #cee7d2; color: #3d6d46; }
.order-fact--mode { background: #fff5e7; border-color: #efdfc7; color: #87642d; }
.order-fact--connection { background: #eaf8f7; border-color: #c8e5e2; color: #3b716c; }
.order-fact--programs { background: #fff0f4; border-color: #efd4de; color: #875a6b; }
.order-facts--inline .field-icon { color: inherit; }
.admin-registry-search { position: relative; flex: 1 1 280px; min-width: 180px; max-width: 600px; align-self: flex-end; }
.admin-registry-search > input { width: 100%; }
.admin-registry-results { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; width: min(620px,calc(100vw - 80px)); max-height: min(540px,65dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d3e1ca; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #20301826; }
.admin-registry-results[hidden] { display: none; }
.admin-registry-results ul { list-style: none; padding: 0; margin: 0; }
.admin-registry-results li + li { border-top: 1px solid #e8eee4; }
.admin-registry-results li > a { display: grid; gap: 5px; padding: 12px 14px; color: #34422e; font-size: 13px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.admin-registry-results li > a:hover, .admin-registry-results li > a:focus-visible { background: #f2f9ee; }
.admin-registry-result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-registry-result-client { color: #65765a; }
.admin-registry-result-meta { color: #85917d; font-size: 11px; }
.admin-registry-message, .admin-registry-error { margin: 0; padding: 14px; font-size: 13px; }
.admin-registry-error { color: #b03636; }
.admin-registry-paging { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid #e8eee4; }
@media (max-width: 650px) { .admin-registry-search { flex-basis: 100%; min-width: 0; max-width: none; } .admin-registry-results { width: 100%; } }

/* Центрируются заголовки и данные после первого столбца, включая строки-карточки. */
.admin-list-head { text-align: center; justify-items: center; }
.admin-collapsible > summary > span:not(:first-child) { text-align: center; justify-self: center; }
.admin-collapsible > summary > .order-invoice-cell { align-items: center; }
.admin-order :is(.device-editor,.admin-order-transfer) > summary { display: list-item; max-width: 100%; white-space: nowrap; overflow-x: auto; list-style-position: inside; }
.admin-order-title { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 16px 0; }
.admin-order-title > label { flex: 1 1 300px; margin: 0; }
.admin-order-title > .admin-invoice-suggestions { top: calc(100% + 4px); left: 0; width: min(100%,650px); }
.admin-client-name-picker { position: relative; flex: 1 1 240px; max-width: 400px; }
.admin-client-name-picker > .admin-invoice-suggestions { top: 100%; left: 0; width: min(560px,calc(100vw - 80px)); }
.admin-client-name-picker label { max-width: none; }
.admin-client-info-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 14px 0; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.admin-client-info-row > * { flex: 0 0 auto; white-space: nowrap; }
.admin-client-info-row .order-fact { max-width: none; }
.admin-client-info-row .admin-client-since { margin: 0; }
.admin-client-info-row .admin-client-discount label { flex: 0 0 auto; margin: 0; }
.admin-client-info-row .admin-client-discount input { width: 76px; }
.admin-client-tools :is(button,a.account-action) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border: 1px solid #168f05; border-radius: 5px; background: #fff; color: #147b05; font: inherit; text-decoration: none; cursor: pointer; }
.admin-client-tools :is(button,a.account-action):hover { background: #f0f8eb; }
.account-table .table-preview-form { margin: 0; }
.account-table button.table-preview-link { min-height: 0; padding: 0; border: 0; background: transparent; color: #218211; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-table button.table-preview-link:disabled { color: #7d8776; text-decoration: none; cursor: default; }

/* Пользователи и устройства используют те же раскрывающиеся карточки, что заявки и счета. */
.admin-record-list { min-width: 0; }
.admin-record-list > .cabinet-panel { margin: 12px 0; }
.admin-user-card .table-preview-form { margin: 0; }
.admin-user-card button.table-preview-link { min-height: 0; padding: 0; border: 0; background: transparent; color: #218211; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-user-card button.table-preview-link:disabled { color: #7d8776; text-decoration: none; cursor: default; }
.admin-user-card summary a, .admin-device-card summary a { color: #247c18; text-underline-offset: 3px; }
.record-comment-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #72806b; font-size: 12px; line-height: 1.5; }
.record-data { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px 20px; margin: 18px 0; }
.record-data > div { min-width: 0; }
.record-data dt { margin-bottom: 5px; font-size: 12px; color: #7b8871; }
.record-data dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.record-data a { color: #247c18; }
.record-private-comment { padding: 12px 14px; margin: 14px 0; border-radius: 8px; background: #f6f8f3; color: #5f6c55; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.record-actions form { margin: 0; }
.record-actions :is(a,button) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border: 1px solid #bcd8af; border-radius: 6px; background: #fff; color: #267915; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.record-actions :is(a,button):hover { background: #f1f8ec; border-color: #8fbe7c; }
.device-list-card > summary { grid-template-columns: 18px minmax(160px,2fr) minmax(140px,1fr) minmax(90px,.6fr); }
@media (min-width: 1100px) {
 .admin-users-head, .admin-user-card > summary { grid-template-columns: 18px minmax(140px,1fr) minmax(130px,1fr) 80px minmax(115px,.8fr) minmax(140px,1.3fr); }
 .admin-devices-head, .admin-device-card > summary { grid-template-columns: 18px minmax(160px,1.5fr) minmax(140px,1.2fr) minmax(120px,1fr) minmax(125px,1fr) 70px minmax(100px,.7fr); }
}
@media (max-width: 1099px) {
 .admin-users-head, .admin-devices-head { display: none; }
 .admin-user-card > summary, .admin-device-card > summary { display: flex; flex-wrap: wrap; gap: 10px 14px; }
 .admin-user-card > summary::before, .admin-device-card > summary::before { flex: 0 0 14px; }
 .admin-user-card .record-comment-preview { flex-basis: 100%; }
 .admin-user-card .record-comment-preview[data-empty="1"] { display: none; }
 .admin-record-list [data-record-label]::before { content: attr(data-record-label) ": "; color: #7d8973; font-size: 12px; }
}
@media (max-width: 700px) {
 .record-actions :is(a,button) { min-height: 44px; }
 .admin-user-card button.table-preview-link { min-height: 44px; }
 .device-list-card > summary { display: flex; flex-wrap: wrap; gap: 10px 14px; }
 .device-list-card > summary > span:first-child { flex: 1 1 calc(100% - 38px); }
}

.device-panel .device-edit-save { margin-top: 16px; }
.account-record-card .account-record-date, .account-record-card .account-record-mode { white-space: nowrap; }
.account-record-content.detail-card { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; }
.account-record-content .invoice-detail-table { margin-top: 12px; }
.account-record-message { margin: 14px 0; color: #73816a; font-size: 13px; }
@media (min-width: 1100px) {
 .account-orders-head, .account-order-card > summary { grid-template-columns: 18px minmax(90px,.7fr) minmax(145px,1.1fr) minmax(150px,1.5fr) 105px minmax(135px,1fr) minmax(120px,1fr); }
 .account-invoices-head, .account-invoice-card > summary { grid-template-columns: 18px minmax(100px,.8fr) minmax(145px,1.1fr) minmax(160px,1.7fr) minmax(115px,.9fr) minmax(125px,1fr); }
}
@media (max-width: 1099px) {
 .account-orders-head, .account-invoices-head { display: none; }
 .account-record-card > summary { display: flex; flex-wrap: wrap; gap: 10px 14px; }
 .account-record-card > summary::before { flex: 0 0 14px; }
 .account-record-card > summary > [data-record-service] { flex-basis: 100%; text-align: left; }
}

/* Компактный счёт с бумажным оформлением и отдельными ссылками на настоящие чеки. */
.client-invoice-view { max-width: 390px; }
.client-invoice-paper { max-width: 340px; margin: 0 auto; padding: 16px 14px; border: 1px solid #e8e5da; border-bottom: 3px dotted #d8d5c9; border-radius: 9px; background: #fffefa; box-shadow: 0 5px 18px #564b3010; }
.client-invoice-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.client-invoice-brand { display: block; color: #267915; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.client-invoice-heading small { display: block; margin-top: 3px; font-size: 11px; color: #8b8b7d; }
.client-invoice-heading h2 { margin: 12px 0 0; font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.client-invoice-heading > .status-badge { margin-top: 3px; }
.client-invoice-paper dl.client-invoice-meta { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; margin: 16px 0 12px; padding: 12px 0; border-top: 1px dashed #dcded2; border-bottom: 1px dashed #dcded2; }
.client-invoice-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.client-invoice-meta dt { color: #838676; font-size: 12px; }
.client-invoice-meta dd { max-width: 75%; margin: 0; text-align: right; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.client-invoice-meta a { color: #267915; }
.client-invoice-paper .client-invoice-table { margin-top: 0; font-size: 13px; }
.client-invoice-paper .client-invoice-table th, .client-invoice-paper .client-invoice-table td { padding: 9px 6px; border-color: #e8e9de; }
.client-invoice-paper .client-invoice-table thead th { color: #818773; font-size: 10px; font-weight: 600; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; white-space: normal; }
.client-invoice-paper .client-invoice-table td:first-child { line-height: 1.5; overflow-wrap: anywhere; }
.client-invoice-paper .client-invoice-table th:last-child, .client-invoice-paper .client-invoice-table td:last-child { min-width: 0; width: 90px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.client-invoice-paper .client-invoice-table .client-invoice-date { width: 80px; min-width: 0; font-variant-numeric: tabular-nums; }
.client-invoice-paper .client-invoice-table tbody .client-invoice-date { color: #78826e; font-size: 12px; white-space: nowrap; }
.client-invoice-paper .client-invoice-table tbody tr:hover { background: transparent; }
.client-invoice-paper .client-invoice-table tfoot th { white-space: normal; font-size: 12px; line-height: 1.5; font-weight: 400; color: #77806b; }
.client-invoice-paper .client-invoice-table tfoot td { font-size: 13px; color: #59654c; }
.client-invoice-paper .client-invoice-table tfoot .invoice-total th { padding-top: 16px; color: #2b3926; font-size: 15px; font-weight: 700; }
.client-invoice-paper .client-invoice-table tfoot .invoice-total td { padding-top: 16px; color: #253b1d; font-size: 21px; font-weight: 700; }
.client-invoice-paper .client-invoice-table tfoot .invoice-total :is(th,td) { border-top: 1px dashed #c8d4bf; }
.client-invoice-note { margin: 12px 0; padding: 9px 11px; border-radius: 6px; background: #f4f6ed; color: #748065; font-size: 12px; line-height: 1.55; }
.client-invoice-payment { margin-top: 17px; }
.client-invoice-payment .invoice-pay-button { width: 100%; }
.client-invoice-payment p { margin: 9px 0 0; color: #8a8f7e; font-size: 11px; line-height: 1.5; text-align: center; }
.client-invoice-payment a { color: #6d825d; }
.client-record-section { margin-top: 20px; }
.client-record-section h3 { margin: 0 0 10px; color: #506342; font-size: 14px; font-weight: 600; }
.client-record-documents { padding-top: 14px; border-top: 1px dashed #dce3d5; }
.client-document-links { display: flex; flex-wrap: wrap; gap: 8px; }
.client-document-links a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 10px; border: 1px solid #dce7d5; border-radius: 7px; color: #387526; background: #fcfef9; font-size: 12px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.client-document-links a:hover { border-color: #a6c697; background: #f0f7eb; }
/* Обращение: главное в шапке, сведения и результат разделены визуально. */
.client-order-view { max-width: 1040px; }
.client-order-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.client-record-eyebrow { display: block; margin-bottom: 5px; color: #8a9680; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.client-order-heading h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.client-order-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; color: #819075; font-size: 12px; }
.client-order-service { padding: 13px 15px; border: 1px solid #dcead3; border-radius: 9px; background: #f5faef; color: #32562a; font-size: 17px; font-weight: 600; }
.client-order-view dl.client-order-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.client-order-field { min-width: 0; padding: 12px 14px; border: 1px solid #e7ece2; border-radius: 8px; background: #fafcf8; }
.client-order-field--wide { grid-column: 1 / -1; }
.client-order-fields dt { margin-bottom: 6px; color: #819075; font-size: 12px; font-weight: 400; }
.client-order-fields dd { margin: 0; color: #3b4c32; font-size: 14px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.client-order-device { margin: 16px 0; font-size: 13px; }
.client-order-device a { color: #3e7d2a; text-underline-offset: 3px; }
.client-order-result { margin-top: 18px; padding: 15px 17px; border: 1px solid #cbe2c0; border-radius: 10px; background: #eff8e9; }
.client-order-result h3 { margin: 0 0 8px; color: #437033; font-size: 14px; }
.client-order-result p { margin: 0; color: #3c5730; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.client-order-result--cancelled { border-color: #eed8cd; background: #fff5ef; }
.client-order-result--cancelled h3, .client-order-result--cancelled p { color: #936047; }
.client-related-invoices { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.client-related-invoices a { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; padding: 11px 13px; border: 1px solid #e0e9d9; border-radius: 8px; color: #4b6840; text-decoration: none; font-size: 13px; }
.client-related-invoices a:hover { background: #f5faef; border-color: #b3cea4; }
.client-related-invoices a > span:first-child { flex: 1; min-width: 110px; }
.client-related-invoices small { display: block; margin-top: 3px; color: #94a187; font-size: 11px; }
.client-related-invoices strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-record-content.client-order-view > :is(.client-order-heading,.client-order-meta,.client-order-service) { display: none; }
.account-record-content.client-order-view > .client-record-section:first-of-type { margin-top: 0; }
@media (max-width: 650px) {
 .client-invoice-paper { padding: 15px 12px; }
 .client-invoice-heading h2 { font-size: 18px; }
 .client-invoice-paper .client-invoice-table th, .client-invoice-paper .client-invoice-table td { padding: 8px 4px; }
 .client-invoice-paper .client-invoice-table tfoot .invoice-total td { font-size: 18px; }
 .client-order-heading h2 { font-size: 21px; }
 .client-order-view dl.client-order-fields { grid-template-columns: minmax(0,1fr); }
 .client-order-result { padding: 13px; }
}

.client-order-empty { margin: 12px 0 0; color: #8b9681; font-size: 13px; }
