/* The chat window of the directory assistant, open in the page (irodopi assistant, stage 1): the front page's section under the hero and «Попитай».
   Linked ONLY by those two pages while the window is on (AssetCopier::PAGE_CSS 'assistant_launcher'), so no other page - and no stylesheet name - changes.
   Lane D tunes the look on top of this. The height is reserved before the frame loads; svh so a phone's browser bar does not make it jump. */
.assistant-inline{background:var(--bg,#f6f2ea);padding:clamp(20px,3vw,40px) 0}
.assistant-inline .container{max-width:760px;margin:0 auto;padding:0 16px}
.assistant-inline h1,.assistant-inline h2{margin:0 0 6px}
.assistant-inline__lead{margin:0 0 14px}
.assistant-inline__frame{--iska-assistant-height:min(640px,78svh);height:var(--iska-assistant-height);position:relative;background:#fff;border-radius:22px;box-shadow:0 6px 24px rgba(20,30,40,.10);overflow:hidden}
.assistant-inline__frame iframe{display:block;width:100%;height:100%;border:0}
.assistant-inline__frame [data-iska-status]{margin:0;padding:18px 20px}
@media (max-width:640px){
  .assistant-inline .container{padding:0 10px}
  .assistant-inline__frame{--iska-assistant-height:min(82svh,700px);border-radius:16px;box-shadow:0 3px 14px rgba(20,30,40,.08)}
}
@supports not (height:1svh){
  .assistant-inline__frame{--iska-assistant-height:min(640px,78vh)}
  @media (max-width:640px){.assistant-inline__frame{--iska-assistant-height:min(82vh,700px)}}
}

/* ---- lane D (owner 27.11): «Попитай» in the header and the page that is only the chat window. This file is linked by the layout on EVERY page while the
   assistant is on (the header's button is on every page) and by none while it is off, so public.css and every off page stay byte for byte. ---- */
.head-tools .ask-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-width: 48px; padding: 0 14px; border-color: var(--pine, #12342b); background: var(--pine, #12342b); color: #fff; font: 600 16px/1 var(--sans, system-ui, sans-serif); text-decoration: none; }
.head-tools .ask-btn svg { width: 20px; height: 20px; flex: none; }
.head-tools .ask-btn[aria-current="page"] { background: var(--pine-2, #1b4a3d); border-color: var(--pine-2, #1b4a3d); }
@media (min-width: 1000px) { .head-tools .ask-btn { display: none; } }
/* below 400 px the word does not fit next to the logo and the menu: the icon alone, still 48 px, its name in aria-label */
@media (max-width: 399px) { .head-tools .ask-btn { width: 48px; padding: 0; } .head-tools .ask-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.page-ask .foot { display: none; }
.ask-page { padding: 0; }
.ask-page__frame { position: relative; display: grid; place-items: center; height: calc(100svh - 77px); background: #f3f4f7; }
.ask-page__frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.ask-page__status { margin: 0; padding: 0 var(--pad, 20px); color: var(--muted, #4f5953); font: 500 16px/1.5 var(--sans, system-ui, sans-serif); text-align: center; }
.ask-page__frame[data-iska-state="ready"] .ask-page__status { display: none; }
@supports not (height: 1svh) { .ask-page__frame { height: calc(100vh - 77px); } }
@media (min-width: 760px) {
    .ask-page { padding: 16px var(--pad, 24px) 24px; background: var(--bg, #f6f2ea); }
    .ask-page__frame { max-width: 760px; height: calc(100svh - 77px - 40px); margin: 0 auto; border-radius: var(--r-lg, 22px); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(10, 30, 25, .45); }
}
