/* The company's page: one column, one scroll. Services always open, the rest folded; the booking chat is a panel
   that slides in over the page (and is the whole page in embed mode). Built on the portal tokens (brand.css,
   control.css). */
.portal .control-main.biz { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.biz-demo { margin: 12px 0 0; padding: 8px 14px; border-radius: 10px; background: #eef3e6; color: #2f3d33; font-size: 13px; line-height: 1.5; }
.biz-demo a { color: inherit; }
/* The demo's way out: «Подключить мою компанию» is the one button of the banner — lime once it is the next step */
.biz-demo a.btn.small { min-height: 0; margin: 4px 8px 4px 0; padding: 5px 12px; border: 1px solid #9ccc3c; border-radius: 10px; background: var(--lime, #c8f46c); color: var(--ink, #14201a); font-size: 13px; font-weight: 700; gap: 6px; vertical-align: middle; }
.biz-demo a.btn.small:hover { background: #bce85b; transform: none; }
/* Quiet until the visitor has booked (business_page.py SCRIPT turns it lime then): the booking is the one lime ask of the first screen */
.biz-demo a.btn.small.ghost { background: #fff; border-color: #c3cfb6; }
.biz-demo a.btn.small.ghost:hover { background: #f6f9f1; }
.biz-demo-text { display: block; }  /* the sentence, then a line of its own: [button] note · links */
.biz-demo-note, .biz-demo-links { white-space: nowrap; }
.biz-demo-note { margin-right: 10px; }
@media (pointer: coarse) { .biz-demo a.btn.small { min-height: 44px; } }  /* a tablet is a touch screen too */
@media (max-width: 760px) {
  .biz-demo a.btn.small { display: flex; width: 100%; min-height: 44px; margin: 8px 0 6px; font-size: 14px; }
  .biz-demo-note { display: block; margin: 0 0 4px; }
}
.biz-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 6px; font-size: 14px; }
.biz-brand { font-weight: 700; color: var(--ink, #14201a); text-decoration: none; }
.biz-bar-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.biz-bar-links a { color: #2f3d33; text-decoration: none; border-bottom: 1px solid rgba(47, 61, 51, .35); }

.biz-hero { position: relative; margin: 14px 0 26px; padding: 30px 26px; border-radius: 22px; background: var(--forest, #1b2a21); color: #fff; overflow: hidden; }
.biz-hero.with-cover { background-size: cover; background-position: center; min-height: 280px; display: flex; align-items: flex-end; }
.biz-hero.with-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 24, .15), rgba(20, 30, 24, .85)); }
.biz-hero-text { position: relative; }
.biz-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c8d6c6; margin: 0 0 10px; }
.biz-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; margin: 0 0 10px; }
.biz-tagline { color: #e6eee4; font-size: 16px; line-height: 1.55; margin: 0 0 14px; max-width: 600px; }
.biz-proof { color: #fff; font-size: 14px; margin: 0 0 14px; }
.biz-proof .stars { color: #f3d46a; letter-spacing: 1px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.control-main .biz-actions button.btn.primary, .control-main .biz-sticky button.btn.primary {
  border: 0; border-radius: 12px; padding: 13px 24px; background: var(--lime, #c9f26b); color: var(--ink, #14201a);
  font: inherit; font-weight: 700; cursor: pointer;
}
.control-main .biz-actions button.btn.primary:hover { filter: brightness(.96); }
.biz-actions .btn.ghost { display: inline-block; padding: 12px 20px; border-radius: 12px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); text-decoration: none; font-weight: 600; }
.control-main button.biz-mine { display: inline-block; margin: 0 0 12px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.biz-reasons { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: #c8d6c6; font-size: 13px; }
/* A friend's gift: what the visitor came for, above the company's name */
/* The button stays the hero's one solid accent: the plaque is lime on the dark, not a second lime block */
.biz-gift { display: inline-block; margin: 0 0 12px; padding: 7px 14px; border-radius: 14px; border: 1px solid rgba(200, 244, 108, .6); background: rgba(200, 244, 108, .14); color: var(--lime, #c8f46c); font-size: 14px; font-weight: 700; line-height: 1.35; }
/* The nearest free time under the primary action: a real time, one tap */
.biz-next { margin: -4px 0 14px; color: #e6eee4; font-size: 14px; }
.biz-next a { color: #fff; text-decoration: underline; text-decoration-color: var(--lime, #c8f46c); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.biz-next a:hover { color: var(--lime, #c8f46c); }

.biz-section { margin: 0 0 14px; }
.biz-section h2 { font-size: 22px; margin: 0 0 8px; }
.biz-section h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #4f5d54; margin: 18px 0 4px; }
.biz-section .muted { color: #4f5d54; font-size: 13px; margin: 10px 0 0; }
.biz-services { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line, #e3e8e1); border-radius: 16px; overflow: hidden; }
.biz-services li + li { border-top: 1px solid var(--line, #e3e8e1); }
.control-main .biz-services button.svc:not(.btn) {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; text-align: left;
  padding: 13px 16px; background: none; border: 0; border-radius: 0; color: var(--ink, #14201a); font: inherit; font-weight: 500; cursor: pointer;
}
.control-main .biz-services button.svc:not(.btn):hover, .control-main .biz-services button.svc:not(.btn):focus-visible { background: #f3f7f1; outline: none; }
.control-main .biz-services button.svc:not(.btn) span { font-weight: 600; }
.control-main .biz-services button.svc:not(.btn) small { grid-column: 1; color: #4f5d54; font-size: 12px; font-weight: 500; }
.control-main .biz-services button.svc:not(.btn) b { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-weight: 600; }
.control-main .biz-services button.svc:not(.btn) { grid-template-columns: 1fr auto 10px; }
.control-main .biz-services button.svc:not(.btn) .chev { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 20px; line-height: 1; color: #6b7a6f; }
/* A service's nearest free time: its own link under the row */
.biz-services a.svc-next { display: inline-block; margin: -6px 16px 12px; padding: 4px 11px; border-radius: 999px; background: #eef5e4; color: #2f5d3a; font-size: 13px; font-weight: 700; text-decoration: none; }
.biz-services a.svc-next:hover, .biz-services a.svc-next:focus-visible { background: #dcefc9; }

/* «⚡ Освободилось время»: freed times as cards, open right under the hero */
.biz-windows-block { margin-bottom: 22px; }
.biz-windows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.biz-windows li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--line, #e3e8e1); border-left: 4px solid var(--lime, #c8f46c); border-radius: 14px; }
.biz-windows p { margin: 0; }
.biz-window-when { font-size: 15px; color: #4f5d54; }
.biz-window-when b { font-size: 22px; color: var(--ink, #14201a); }
.biz-window-what { grid-column: 1; font-size: 14px; color: #2f3d33; }
.biz-windows li .btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.control-main a.btn.biz-windows-first { margin-top: 10px; }
@media (max-width: 560px) {
  .biz-windows li { grid-template-columns: 1fr; }
  .biz-windows li .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .control-main a.btn.biz-windows-first { width: 100%; }
}

.control-main details.biz-fold { margin: 0 0 10px; background: #fff; border: 1px solid var(--line, #e3e8e1); border-radius: 16px; padding: 0; }
.control-main details.biz-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; font-size: 16px; }
.control-main details.biz-fold > summary::-webkit-details-marker { display: none; }
.control-main details.biz-fold > summary::after { content: "+"; color: #4f5d54; font-weight: 500; margin-left: auto; }
.control-main details.biz-fold[open] > summary::after { content: "–"; }
.control-main details.biz-fold > summary small { color: #4f5d54; font-weight: 500; font-size: 13px; margin-right: 8px; }
.biz-fold-body { padding: 0 16px 14px; }
.biz-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.biz-people small { display: block; color: #4f5d54; font-size: 12px; }
.biz-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.biz-hours td { padding: 6px 0; border-top: 1px solid var(--line, #e3e8e1); }
.biz-hours td + td { text-align: right; white-space: nowrap; }
.biz-hours tr:first-child td { border-top: 0; }
.biz-hours tr.today td { font-weight: 700; }
.control-main .biz-fold-body details { border-top: 1px solid var(--line, #e3e8e1); padding: 8px 0; }
.control-main .biz-fold-body details:first-of-type { border-top: 0; }
.control-main .biz-fold-body summary { cursor: pointer; font-weight: 600; }
.biz-fold-body details p { margin: 8px 0 0; color: #3b4a3f; font-size: 14px; line-height: 1.6; }
.biz-fold-body > p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.biz-footer { margin: 26px 0 0; text-align: center; color: #4f5d54; font-size: 13px; }
.biz-footer a { color: inherit; }

/* The chat panel: a messenger you want to stay in. Bubbles, a keyboard of quick replies under the last card, a
   composer that looks like one. Scoped to the panel: it is outside <main> on the page and the whole page in embed. */
.chat-panel { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); z-index: 60; display: flex; flex-direction: column;
  background: #eef2e8; box-shadow: -12px 0 40px rgba(0, 0, 0, .18); animation: chat-in .22s ease-out; font-size: 15px; }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes chat-pop { from { transform: translateY(6px); opacity: 0; } }
@keyframes chat-dots { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-panel .chat-top { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line, #e3e8e1); }
.chat-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--forest, #253c30); color: var(--lime, #c8f46c); font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-panel .chat-top .chat-title { font-weight: 700; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-state { font-size: 12px; color: #56645a; display: flex; align-items: center; gap: 6px; }
.chat-state .dot { margin: 0; width: 8px; height: 8px; background: #3fae5a; }
.chat-panel button.chat-close { flex: none; border: 0; background: #eef2e8; color: var(--ink, #14201a); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; padding: 0; }
.chat-panel button.chat-close:hover { background: #dfe6d9; }
.chat-panel #chat { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.chat-panel .chat-message { margin: 0; max-width: 86%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--ink, #14201a);
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; box-shadow: 0 1px 2px rgba(24, 35, 29, .06); animation: chat-pop .18s ease-out; }
.chat-panel .chat-message + .chat-message:not(.mine) { border-top-left-radius: 8px; }
.chat-panel .chat-message .chat-title { display: block; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.chat-panel .chat-message a { color: #2f5d3a; font-weight: 600; }
.chat-panel .chat-message.mine { align-self: flex-end; background: var(--forest, #253c30); color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: none; }
.chat-panel .chat-message.system { max-width: 100%; background: #fbfcf8; border: 1px dashed #b9c6b3; color: #3b4a3f; font-size: 14px; box-shadow: none; }
.chat-panel .chat-message.system .chat-title { display: none; }
.chat-panel .chat-message.system::before { content: "Вид администратора"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7a6f; margin-bottom: 6px; }
/* «✓ Вы записаны»: the moment of booking — a green edge and a tick drawn once */
.chat-panel .chat-message.done { border-left: 4px solid #3fae5a; }
/* A demo's closing card (the peak): the lime of the free start its button leads to */
.chat-panel .chat-message.closing { border-left: 4px solid #9ccc3c; }
.chat-panel .chat-message.closing .chat-title { color: #1f3d2a; }
.chat-panel .chat-message.done .chat-title { display: flex; align-items: center; gap: 8px; color: #1f6b35; }
.chat-panel .chat-message.done .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #3fae5a; padding: 3px; }
.chat-panel .chat-message.done .tick path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: chat-tick .4s ease-out .1s forwards; }
@keyframes chat-tick { to { stroke-dashoffset: 0; } }
.chat-panel .chat-message.typing { padding: 12px 16px; min-height: 0; }
.chat-panel .typing .dots { display: inline-flex; gap: 4px; }
.chat-panel .typing .dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7f72; animation: chat-dots 1.2s infinite ease-in-out; }
.chat-panel .typing .dots i:nth-child(2) { animation-delay: .15s; }
.chat-panel .typing .dots i:nth-child(3) { animation-delay: .3s; }
/* The keyboard under the last card */
.chat-panel #buttons { display: flex; flex-wrap: wrap; gap: 8px; max-width: 92%; padding: 0; }
.chat-panel #buttons:empty { display: none; }
/* A row of the keyboard: its buttons share the width equally, as in Telegram, so the keyboard reads as a grid */
.chat-panel .chat-row { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 8px; width: 100%; }
.chat-panel .chat-row .chip { width: 100%; justify-content: center; text-align: center; }
.chat-panel .chat-row .chip.success { flex: none; }
.chat-panel .chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; border: 1px solid #cfd8cb; border-radius: 14px; background: #fff; color: var(--ink, #14201a);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; padding: 10px 14px; text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(24, 35, 29, .05); transition: background .12s, border-color .12s, transform .12s; }
.chat-panel .chip:hover { background: #f5f8f0; border-color: #9fb58f; }
.chat-panel .chip:active { transform: translateY(1px); }
.chat-panel .chip:disabled { opacity: .55; cursor: progress; }
.chat-panel .chip.success { background: var(--lime, #c8f46c); border-color: var(--lime, #c8f46c); color: var(--ink, #14201a); flex: 1 1 100%; justify-content: center; padding: 13px 16px; font-size: 15px; }
.chat-panel .chip.success:hover { filter: brightness(.96); }
.chat-panel .chip.primary { background: var(--forest, #253c30); border-color: var(--forest, #253c30); color: #fff; }
.chat-panel .chip.primary:hover { background: #1a2d24; }
.chat-panel .chip.danger { color: #a83232; border-color: #e3c4c4; }
.chat-panel .chip.danger:hover { background: #fbf1f1; }
.chat-panel .chip.row { flex: 1 1 100%; justify-content: space-between; }
.chat-panel .chip.row b { font-weight: 700; white-space: nowrap; color: #2f3d33; }
.chat-panel .chip.time { flex: 0 0 calc(25% - 6px); justify-content: center; padding: 10px 6px; }
.chat-panel .chip.day { padding-inline: 6px; }  /* «Сегодня, 24 сентября»: one line in a two-column row */
@media (max-width: 420px) { .chat-panel .chip.day { font-size: 13px; } }
.chat-panel .chip.wide { flex: 1 1 100%; }
@media (max-width: 760px) { .chat-panel #buttons .chip { min-height: 44px; } }  /* a finger's tap target on a phone */
.chat-panel .chip.link::after { content: "↗"; font-weight: 500; color: #56645a; }
.chat-panel .chip.next::after { content: "→"; font-weight: 500; color: #56645a; }
.chat-panel .chat-nav { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.chat-panel .chip.nav { background: transparent; border-color: transparent; box-shadow: none; color: #4f5d54; padding: 7px 8px; }
.chat-panel .chip.nav:hover { background: #e2e8dc; }
/* In the demo the visitor is also the administrator: their buttons sit under the administrator's notice */
.chat-panel .chat-buttons.own { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px 6px; max-width: 100%; }
.chat-panel .chat-buttons.own .chip { font-size: 13px; padding: 8px 12px; }
/* The composer */
.chat-panel #status { flex: 0 0 auto; margin: 0; padding: 6px 16px 0; font-size: 13px; color: #a83232; background: #fff; }
.chat-panel #status:empty { display: none; }
.chat-panel #form { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line, #e3e8e1); }
.chat-panel #form input { flex: 1; min-width: 0; border: 1px solid var(--line, #e3e8e1); border-radius: 999px; background: #f7f8f2; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink, #14201a); }
.chat-panel #form input::placeholder { color: #6b7a6f; }
.chat-panel #form input:focus, .chat-panel #form input:focus-visible { outline: none; border-color: #7f9c6a; background: #fff; box-shadow: 0 0 0 4px rgba(169, 203, 123, .28); }
.chat-panel #form button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--forest, #253c30); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .12s, transform .12s; }
.chat-panel #form button:hover { background: #1a2d24; }
.chat-panel #form button:active { transform: scale(.96); }
.chat-panel #form button:disabled { opacity: .45; cursor: progress; }
.chat-panel .chat-note { flex: 0 0 auto; margin: 0; padding: 0 16px calc(8px + env(safe-area-inset-bottom)); font-size: 11px; line-height: 1.4; color: #4f5d54; background: #fff; }
.chat-panel .chat-note a { color: inherit; }
.chat-panel .chat-note a:first-child:not(:last-child) { font-weight: 700; color: #2f5d3a; }
.chat-backdrop { position: fixed; inset: 0; background: rgba(20, 32, 26, .35); backdrop-filter: blur(2px); z-index: 50; }
.chat-backdrop[hidden] { display: none; }
body.chat-open { overflow: hidden; }
body.embed { background: #eef2e8; margin: 0; }
body.embed .chat-panel { position: static; width: 100%; height: 100dvh; box-shadow: none; animation: none; }
body.embed .chat-backdrop { display: none; }
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-panel .chat-message, .chat-panel .typing .dots i, .chat-panel .chat-message.done .tick path { animation: none; }
  .chat-panel .chat-message.done .tick path { stroke-dashoffset: 0; }
}

/* The way in when the panel is closed: a floating button on wide screens, a sticky bar on phones */
.control-main button.biz-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--lime, #c9f26b); color: var(--ink, #14201a); font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); cursor: pointer; }
.biz-sticky { display: none; }
body.chat-open .biz-fab, body.chat-open .biz-sticky { display: none; }
/* It steps aside while the hero's own button is on the screen (business_page.py SCRIPT): one ask at a time */
.biz-sticky { transition: transform .2s; }
.biz-sticky.away { transform: translateY(110%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .biz-sticky { transition: none; } }
@media (max-width: 899px) {
  .control-main button.biz-fab { display: none; }
  .biz-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 246, 237, .96); border-top: 1px solid var(--line, #e3e8e1); z-index: 40; }
  .control-main .biz-sticky button.btn.primary { width: 100%; padding: 14px; }
  .portal .control-main.biz { padding-bottom: 96px; }
  .chat-panel { width: 100vw; }
}
/* What customers said, with their consent */
.biz-review { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--lime, #c9f26b); background: #f7faf3; border-radius: 0 12px 12px 0; }
.biz-review .stars { color: #d9a300; letter-spacing: 1px; }
.biz-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #2f3d33; }
.biz-cert p { margin: 0 0 10px; font-size: 14px; }
.biz-sums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.biz-sum { position: relative; }
.biz-sum input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.biz-sum span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line, #e3e8e1); border-radius: 999px; font-weight: 600; background: #fff; cursor: pointer; }
.biz-sum input:checked + span { background: #1f3d2b; color: #fff; border-color: #1f3d2b; }
.biz-sum input:focus-visible + span { outline: 2px solid #1f3d2b; outline-offset: 2px; }
.biz-cert label { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.biz-cert input:not([type="radio"]) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line, #e3e8e1); border-radius: 10px; font: inherit; }

/* A gift certificate's page: the sum and the company, the term, the code in its frame with «Скопировать» */
.cert h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.cert-terms { font-size: 16px; margin: 0 0 12px; }
.cert-frame { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.control-main .cert-frame .cert-code { margin: 0; font-size: 24px; font-weight: 700; color: var(--ink, #14201a); }

/* The sign for the counter (/s/<slug>/qr): A5, printed as it is on the screen, without the buttons */
body.qr-page { background: #eef2e8; margin: 0; padding: 24px 16px 40px; }
.qr-sheet { box-sizing: border-box; width: min(100%, 148mm); min-height: min(210mm, 100vh); margin: 0 auto; padding: 40px 32px; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(24, 35, 29, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.qr-company { margin: 0 0 18px; font-size: 20px; font-weight: 800; color: var(--forest, #253c30); }
.qr-sheet h1 { margin: 0 0 8px; font-size: 38px; line-height: 1.1; }
.qr-lead { margin: 0 0 24px; font-size: 18px; color: #3b4a3f; }
.qr-code { width: min(100%, 90mm); padding: 6px; border: 3px solid var(--ink, #14201a); border-radius: 16px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-sheet .qr-address { margin: 18px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: .01em; color: var(--ink, #14201a); overflow-wrap: anywhere; }
.qr-remind { margin: 6px 0 0; font-size: 17px; color: #3b4a3f; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px auto 0; }
.qr-example { width: min(100%, 148mm); margin: 0 auto 14px; font-size: 14px; line-height: 1.5; color: #3b4a3f; text-align: center; }
.qr-example a { display: inline-block; padding: 12px 4px; margin: -12px 0; color: var(--ink, #14201a); font-weight: 650; white-space: nowrap; }
@media (max-width: 480px) {
  .qr-sheet { padding: 28px 18px; }
  .qr-sheet h1 { font-size: 30px; }
  .qr-sheet .qr-address { font-size: 19px; }
}
@media print {
  body.qr-page { background: #fff; padding: 0; }
  .qr-sheet { width: 100%; min-height: 0; box-shadow: none; border-radius: 0; padding: 6mm 0 0; }
  .qr-actions, .qr-example { display: none; }
}
