/* Betki premium layer: tokens, fonts, buttons, header + Services mega + phone sheet,
   consultation form, footer. Shared by the homepage and the premium service pages.
   Loads after the scroll-craft engine (scrollcraft.css) for the --sc-ease-* tokens. */
@font-face { font-family: "Instrument Sans"; src: url("InstrumentSans.woff2") format("woff2");
    font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
  @font-face { font-family: "Instrument Serif"; src: url("InstrumentSerif.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap; }
  @view-transition { navigation: auto; }

  :root {
    --sc-canvas:     #FFFFFF;
    --sc-surface:    #F5F5F3;
    --sc-ink:        #16171A;
    --sc-ink-soft:   #5E6168;
    --sc-accent:     #F2A81D;
    --sc-accent-ink: #16171A;
    --sc-font-display: "Instrument Sans", system-ui, sans-serif;
    --sc-font-text:    "Instrument Sans", system-ui, sans-serif;
    --sc-font-mono:    "Instrument Sans", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --sc-shadow-color: 30 8% 30%;
    --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.08);
    --sc-e2: 0 1px 2px hsl(var(--sc-shadow-color) / 0.06), 0 6px 16px -4px hsl(var(--sc-shadow-color) / 0.12);
    --sc-e3: 0 2px 4px hsl(var(--sc-shadow-color) / 0.06), 0 16px 40px -12px hsl(var(--sc-shadow-color) / 0.22);
    --sc-edge: inset 0 0 0 1px rgb(22 23 26 / 0.06);
    --hair: rgb(22 23 26 / 0.09);
    --head-h: 72px;
    --maxw: 1240px;
    --gut: clamp(1rem, 4vw, 3rem);
  }

  body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); letter-spacing: 0; }
  h1, h2, h3, p { margin: 0; }
  .sc-display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.03; }
  em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
  .eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
  .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); box-sizing: border-box; }

  .cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 3rem; padding: 0 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--sc-accent); color: var(--sc-accent-ink);
    font: 600 0.98rem/1 var(--sc-font-text); text-decoration: none; white-space: nowrap;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 6px 16px -6px rgb(242 168 29 / 0.6);
    transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out);
  }
  .cta svg { transition: transform 200ms var(--sc-ease-out); }
  .cta:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) {
    .cta:hover { background: #F5B43A; box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 10px 22px -8px rgb(242 168 29 / 0.7); }
    .cta:hover svg { transform: translateX(3px); }
  }
  .cta--sm { height: 2.5rem; padding: 0 1.05rem; font-size: 0.9rem; }
  .link { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; font-weight: 500; }

  /* ---------------------------------------------------------- header ---- */
  .sentinel { position: absolute; top: 24px; height: 1px; width: 1px; }
  .head {
    position: fixed; inset: 0 0 auto; z-index: 70; height: var(--head-h);
    transition: height 240ms var(--sc-ease-out), background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out), backdrop-filter 240ms;
  }
  .head.is-solid { --head-h: 62px; background: rgb(255 255 255 / 0.82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 1px 0 var(--hair); }
  .head .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; max-width: 1360px; }
  .logo img { height: 46px; width: auto; max-width: none; transition: height 240ms var(--sc-ease-out); }
  .head.is-solid .logo img { height: 34px; }
  .nav { display: flex; align-items: center; gap: 2rem; }
  .nav > a, .nav > button {
    position: relative; padding: 0.4rem 0; border: 0; background: none; cursor: pointer;
    font: 500 0.94rem/1 var(--sc-font-text); color: rgb(22 23 26 / 0.72); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.35rem; transition: color 160ms var(--sc-ease-out);
  }
  .nav > a::after, .nav > button::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--sc-ink);
    transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--sc-ease-out);
  }
  .nav > button svg { transition: transform 200ms var(--sc-ease-out); }
  .nav > button[aria-expanded="true"] { color: var(--sc-ink); }
  .nav > button[aria-expanded="true"] svg { transform: rotate(180deg); }
  @media (hover: hover) and (pointer: fine) {
    .nav > a:hover, .nav > button:hover { color: var(--sc-ink); }
    .nav > a:hover::after, .nav > button:hover::after { transform: scaleX(1); }
  }
  .head__end { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
  .head__tel { font-weight: 500; font-size: 0.92rem; color: rgb(22 23 26 / 0.72); text-decoration: none; white-space: nowrap; }
  @media (hover: hover) and (pointer: fine) { .head__tel:hover { color: var(--sc-ink); } }
  .burger { display: none; }

  /* services panel */
  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #FFFFFF; box-shadow: 0 1px 0 var(--hair), 0 24px 48px -24px rgb(22 23 26 / 0.25);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out), visibility 0s linear 180ms;
  }
  .mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mega .wrap { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); gap: 2.5rem; padding-block: 2rem 2.25rem; max-width: 1360px; }
  .mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem 1rem; }
  .mega__item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.85rem; padding: 0.9rem; border-radius: 12px; text-decoration: none; transition: background-color 160ms var(--sc-ease-out); }
  @media (hover: hover) and (pointer: fine) { .mega__item:hover { background: var(--sc-surface); } }
  .mega__icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: #FFF4DE; color: #8A5A00; }
  .mega__item strong { display: block; font-weight: 600; font-size: 0.95rem; }
  .mega__item span { display: block; margin-top: 0.2rem; font-size: 0.84rem; line-height: 1.45; color: var(--sc-ink-soft); }
  .mega__aside { border-radius: 16px; background: var(--sc-surface); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
  .mega__aside h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
  .mega__aside p { font-size: 0.9rem; color: var(--sc-ink-soft); line-height: 1.5; }
  .mega__aside .cta { margin-top: auto; align-self: flex-start; }

  /* mobile sheet */
  .sheet-nav {
    position: fixed; inset: 0; z-index: 90; background: #FFFFFF; overflow-y: auto;
    padding: 1rem var(--gut) 7rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 250ms var(--sc-ease-out), transform 250ms var(--sc-ease-out), visibility 0s linear 250ms;
  }
  .sheet-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sheet-nav__top { display: flex; justify-content: space-between; align-items: center; height: 3rem; margin-bottom: 1.5rem; }
  .sheet-nav ul { list-style: none; margin: 0; padding: 0; }
  .sheet-nav > nav > ul > li { border-bottom: 1px solid var(--hair); }
  .sheet-nav > nav > ul > li > a, .sheet-nav summary {
    display: flex; justify-content: space-between; align-items: center; min-height: 3.75rem;
    font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; cursor: pointer; list-style: none;
  }
  .sheet-nav summary::-webkit-details-marker { display: none; }
  .sheet-nav details[open] summary svg { transform: rotate(180deg); }
  .sheet-nav details ul { padding-bottom: 1rem; }
  .sheet-nav details a { display: block; padding: 0.6rem 0; font-size: 1.05rem; color: var(--sc-ink-soft); text-decoration: none; }
  .sheet-nav .is-in { animation: rise 420ms var(--sc-ease-out) both; animation-delay: calc(var(--i) * 30ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  .sheet-nav__cta { position: fixed; left: var(--gut); right: var(--gut); bottom: max(1rem, env(safe-area-inset-bottom)); }
  .sheet-nav__cta .cta { width: 100%; }
  .icon-btn.burger { display: none; }
  @media (max-width: 960px) { .icon-btn.burger { display: inline-flex; } }
  .icon-btn { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--hair); background: #FFFFFF; font: 500 0.92rem/1 var(--sc-font-text); cursor: pointer; }


  /* ------------------------------------------------ consult + footer ---- */
  .consult { margin-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(1.75rem, 5vw, 4rem); border-radius: 24px; background: var(--sc-surface); scroll-margin-top: 5rem; }
  .consult h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); max-width: 11ch; }
  .consult .intro { margin-top: 1.25rem; color: var(--sc-ink-soft); max-width: 34ch; line-height: 1.6; }
  .reach { margin-top: 2rem; display: grid; gap: 0.9rem; }
  .reach a { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; text-decoration: none; }
  .reach a span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #FFFFFF; box-shadow: var(--sc-e1); color: #8A5A00; }
  @media (hover: hover) and (pointer: fine) { .reach a:hover { color: #8A5A00; } }
  .reach p { margin-top: 0.5rem; color: var(--sc-ink-soft); font-size: 0.92rem; }
  form.f { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; align-content: start; }
  .f label { display: grid; gap: 0.45rem; font-size: 0.88rem; font-weight: 500; }
  .f .full { grid-column: 1 / -1; }
  .f input, .f textarea { width: 100%; box-sizing: border-box; padding: 0.8rem 0.95rem; border-radius: 10px; border: 1px solid rgb(22 23 26 / 0.14); background: #FFFFFF; font-size: 1rem; line-height: 1.4; transition: border-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); }
  @media (hover: hover) and (pointer: fine) { .f input:hover, .f textarea:hover { border-color: rgb(22 23 26 / 0.28); } }
  .f input:focus-visible, .f textarea:focus-visible { outline: none; border-color: #C98A0A; box-shadow: 0 0 0 3px rgb(242 168 29 / 0.3); }
  .f textarea { min-height: 8rem; resize: vertical; }
  .f .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; color: var(--sc-ink-soft); line-height: 1.5; }
  .f .consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; accent-color: #C98A0A; }
  .f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .f button.cta { justify-self: start; }
  .f .note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--sc-ink-soft); min-height: 1.4em; }

  .foot { border-top: 1px solid var(--hair); padding-block: 2.5rem 3rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; font-size: 0.9rem; color: var(--sc-ink-soft); }
  .foot img { height: 30px; width: auto; max-width: none; }
  .foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: end; }
  .foot a { text-decoration: none; }
  @media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--sc-ink); } }
  :focus-visible { outline: 2px solid #C98A0A; outline-offset: 3px; }

  /* ----------------------------------------------------- responsive ---- */
  @media (max-width: 1080px) {
    .head__tel { display: none; }
    .nav { gap: 1.5rem; }
  }
  @media (max-width: 960px) {
    .nav { display: none; }
    .head .wrap { grid-template-columns: 1fr auto; }
    .burger { display: inline-flex; }
    .mega { display: none; }
  }
  @media (max-width: 760px) {
    :root { --head-h: 64px; }
    .head .cta--sm { display: none; }
    .logo img { height: 34px; }
    .consult { grid-template-columns: 1fr; }
    form.f { grid-template-columns: 1fr; }
    .foot { grid-template-columns: 1fr; }
    .foot nav { justify-content: start; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sheet-nav .is-in { animation: none; }
  }

  .mega__item[aria-current="page"] { background: var(--sc-surface); }

  /* ------------------------------------------------- real-number facts ---- */
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
  .fact { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
  .fact + .fact { border-left: 1px solid var(--hair); }
  .fact b { display: block; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .fact b i { font-style: normal; color: #C98A0A; }
  .fact > span { display: block; margin-top: 0.6rem; color: var(--sc-ink-soft); font-size: 0.95rem; }
  @media (max-width: 760px) {
    .facts { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--hair); }
  }

  [id^="svc-"] { scroll-margin-top: calc(var(--head-h) + 1.5rem); }
