/* cookie consent */
.cc { position: fixed; left: 24px; bottom: 24px; z-index: 80; width: 400px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px 22px 20px; transform: translateY(16px); opacity: 0; visibility: hidden; transition: transform .5s var(--cm-ease), opacity .5s var(--cm-ease), visibility .5s; }
.cc.on { transform: none; opacity: 1; visibility: visible; }
.cc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 600 15px/1.3 var(--font-sans); }
.cc__head i { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); flex: none; }
.cc p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cc p a, .cc__set { color: var(--violet-text); }
.cc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc__btns .cm-btn { justify-content: center; padding: 0 14px; }
.cc__set { all: unset; cursor: pointer; display: block; margin: 12px auto 0; font: 500 13px/1.3 var(--font-sans); color: var(--violet-text); text-decoration: underline; text-underline-offset: 2px; }
.cc__set:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.cc__opts { display: none; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cc.settings .cc__opts { display: block; }
.cc.settings .cc__set { display: none; }
.cc__opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cc__opt b { font: 500 14px/1.3 var(--font-sans); }
.cc__opt small { grid-column: 1; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cc__opt input { grid-row: 1 / span 2; grid-column: 2; appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--surface-2); border: 1.5px solid var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .2s, border-color .2s; }
.cc__opt input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--cm-ease), background .2s; }
.cc__opt input:checked { background: var(--action); border-color: var(--action); }
.cc__opt input:checked::after { transform: translateX(16px); background: var(--on-action); }
.cc__opt input:disabled { opacity: .55; cursor: not-allowed; }
.cc__opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }


/* Shared navigation, footer and reading controls on every Calmerry page. */
html { scroll-padding-top: 0; }
[hidden] { display: none !important; }
body { --gut: 48px; --max: 1280px; }
.wrap { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.navwrap { position: fixed; inset: max(16px, env(safe-area-inset-top)) 0 auto; z-index: 120; margin: 0; pointer-events: none; }
.navwrap .wrap { position: relative; }
.cm-nav { pointer-events: auto; gap: 24px; height: 68px; padding: 0 10px 0 28px; background: #1f1d2a; border: 1px solid #7a778e; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.cm-nav__logo { flex: none; }
.cm-nav__logo img { display: block; width: 154px; height: auto; }
.cm-nav__links { margin-left: auto; }
.cm-nav__links a { color: #d4d1e1; }
.cm-nav__links a:hover, .cm-nav__links a[aria-current] { color: #fff; }
.navwrap .cm-btn { margin-left: 0; }
.nav-toggle { flex: none; width: 46px; height: 46px; padding: 12px; display: none; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid #7a778e; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav-panel { display: none; pointer-events: auto; position: absolute; top: 78px; left: var(--gut); right: var(--gut); max-height: calc(100vh - 116px); max-height: calc(100svh - 116px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #1f1d2a; border: 1px solid #7a778e; border-radius: 24px; box-shadow: var(--shadow-card); }
.nav-panel a { display: block; padding: 13px 18px; border-radius: 12px; color: #f5f4f0; font-size: 18px; font-weight: 500; text-decoration: none; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: #363347; }
.nav-panel .nav-panel__contact { margin-top: 8px; background: #7b3dff; color: #fff; }
.hero { margin-top: 0; padding-top: 100px; }
.pp { padding-top: 100px; padding-bottom: 96px; }
.pp section, .sec, #form { scroll-margin-top: 112px; }
.up { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #7a778e; background: #282636; color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 1; visibility: visible; transform: none; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.up:hover { background: #7b3dff; border-color: #7b3dff; }
.up svg { width: 22px; height: 22px; }
.up svg, .totop svg { transform: none; }
body.cc-open .up { bottom: calc(var(--consent-height, 300px) + 36px); opacity: 1; visibility: visible; }
.foot { padding: 80px 0 40px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot__top nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 12px 40px; }
.foot__top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot__top nav a:hover { color: var(--ink); }
.foot__brand { display: grid; gap: 20px; align-content: start; }
.foot__brand img { height: 22px; width: auto; display: block; }
.foot__brand p { max-width: 22em; font-size: 18px; }
.foot__bot { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; color: var(--muted); font-size: 13px; padding-bottom: 48px; }
.foot__bot b { color: var(--ink); font-weight: 500; }
.totop { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.totop svg { width: 16px; height: 16px; }
.totop:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* The demo must keep its footprint while time labels and steps update. */
.cm-step { grid-template-columns: 24px minmax(0, 1fr) 4.5ch; }
.cm-step time { min-width: 4.5ch; text-align: right; }
.console__foot { min-height: 76px; }
.tab[aria-selected="true"] .tab__prog { width: 100%; animation: none; }
.rot__words { width: 8em !important; max-width: 100%; transition: none; }
.form__ok { display: none; position: static; background: #f5f4f0; color: #17151f; opacity: 1; pointer-events: auto; padding: 40px 24px; min-height: 360px; min-height: clamp(360px, 50svh, 520px); }
.form.sent { padding: 0; background: #f5f4f0; }
.form.sent > :not(.form__ok) { display: none; }
.form.sent .form__ok { display: grid; }
.form__ok .cm-h2 { font-size: clamp(30px, 5vw, 40px); }
.form__ok p { color: #56554f; font-size: 18px; line-height: 1.6; max-width: 28em; }
.form__ok .big { width: 64px; height: 64px; margin-bottom: 22px; }
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .nav-toggle { display: flex; }
  .nav-panel { display: block; }
  .cm-nav__links { display: none; }
  .navwrap .cm-btn { margin-left: auto; }
}
@media (max-width: 1100px) {
  body { --gut: 28px; }
  .cm-nav__links { display: none; }
  .navwrap .cm-btn { margin-left: auto; }
  .foot__top { flex-direction: column; }
}
@media (max-width: 680px) {
  body { --gut: 16px; }
  .navwrap { top: max(12px, env(safe-area-inset-top)); }
  .cm-nav { height: 64px; padding-left: 22px; gap: 12px; justify-content: space-between; }
  .cm-nav__logo img { width: 138px; height: auto; }
  .nav-toggle { margin-left: auto; }
  .navwrap .cm-btn { display: none; }
  .nav-panel { top: 74px; }
  .up { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  body.cc-open .up { bottom: calc(var(--consent-height, 300px) + 28px); }
  .foot { padding-top: 56px; }
  .foot__top { gap: 32px; margin-bottom: 32px; }
  .foot__top nav { gap: 14px 20px; }
  .foot__bot { flex-direction: column; }
  .console__foot { min-height: 100px; }
  .form__ok .big { transform: none; }
  .rv { transform: none; }
  .cur { display: none; }
  .pcard__meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
