/* ===========================================================
   AI dev — site styles
=========================================================== */
/* Layout: night sky behind everything; one centered 1180px column; the moon anchors the hero and its phases drive the process section */
:root {
  --bg: #0E1015;          /* soft night black, slight blue bias */
  --bg-2: #141720;
  --bg-3: #1B1F2A;
  --fg: #E8EBF0;          /* moonlit white */
  --fg-2: #B3B9C5;
  --muted: #7E8596;
  --line: rgba(214, 222, 236, .10);
  --line-2: rgba(214, 222, 236, .20);
  --accent: #C4D1E8;      /* moonlight silver-blue */
  --glow: rgba(190, 208, 240, .17);
  --moon: #EFECE3;
  --moon-shade: #CBC6B8;
  --crater: rgba(118, 112, 98, .38);
  --earthshine: .88;
  --star: 232, 236, 244;
  --star-k: 1;
  --btn-bg: #E8EBF0;
  --btn-fg: #0E1015;
  --logo-fill: #E8EBF0;
  --logo-stroke: transparent;
  --logo-crater: 0;
  --logo-shift: 9px;
  --hero-shift: 112px;
  --danger: #E08A7E;

  --f-display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 18px;
  --maxw: 1180px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #E9ECF0; --bg-2: #F2F4F7; --bg-3: #F8F9FB;
    --fg: #161A22; --fg-2: #3D4351; --muted: #646B7B;
    --line: rgba(22, 26, 34, .10); --line-2: rgba(22, 26, 34, .20);
    --accent: #3A4F75; --glow: rgba(120, 140, 180, .22);
    --moon: #F7F5EE; --moon-shade: #D6D1C3; --crater: rgba(110, 104, 90, .24);
    --star: 44, 54, 74; --star-k: .45;
    --btn-bg: #161A22; --btn-fg: #EEF0F3;
    --logo-fill: #F7F5EE; --logo-stroke: #161A22; --logo-crater: 1;
    --logo-shift: 40px; --hero-shift: 420px; --danger: #B5483A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #E9ECF0; --bg-2: #F2F4F7; --bg-3: #F8F9FB;
  --fg: #161A22; --fg-2: #3D4351; --muted: #646B7B;
  --line: rgba(22, 26, 34, .10); --line-2: rgba(22, 26, 34, .20);
  --accent: #3A4F75; --glow: rgba(120, 140, 180, .22);
  --moon: #F7F5EE; --moon-shade: #D6D1C3; --crater: rgba(110, 104, 90, .24);
  --star: 44, 54, 74; --star-k: .45;
  --btn-bg: #161A22; --btn-fg: #EEF0F3;
  --logo-fill: #F7F5EE; --logo-stroke: #161A22; --logo-crater: 1;
  --logo-shift: 40px; --hero-shift: 420px; --danger: #B5483A;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--bg);
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

.wrap {
  max-width: calc(var(--maxw) + 2 * 32px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5.6vw, 64px); line-height: 1.06; font-weight: 300; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12; font-weight: 300; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--fg-2); max-width: 60ch; }
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, background-color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px var(--glow); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg-2); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .6s ease;
}
.hdr-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo .disc { fill: var(--logo-fill); stroke: var(--logo-stroke); stroke-width: 1.5; transition: fill .6s, stroke .6s; }
.logo .lc { fill: var(--logo-stroke); opacity: calc(var(--logo-crater) * .18); transition: opacity .6s; }
.logo .shade { fill: var(--bg); transform: translateX(var(--logo-shift)); transition: transform 1s cubic-bezier(.6,0,.2,1), fill .6s; }
.logo .spark { fill: var(--fg); transition: fill .6s; }
.logo b { font-weight: 300; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--fg-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--fg); background: var(--line); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.hdr-act .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

.theme-btn {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; color: var(--fg);
}
.theme-btn span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background-color .4s; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .t-dark { background: var(--line-2); }
.theme-btn .t-light { background: transparent; }
:root[data-theme="light"] .theme-btn .t-dark { background: transparent; }
:root[data-theme="light"] .theme-btn .t-light { background: var(--line-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .t-dark { background: transparent; }
  :root:not([data-theme="dark"]) .theme-btn .t-light { background: var(--line-2); }
}

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; place-items: center; }
.burger svg { width: 18px; height: 18px; }

@media (max-width: 1140px) {
  .nav, .hdr-act .btn { display: none; }
  .burger { display: grid; }
  .hdr-act { margin-left: auto; }
}
@media (max-width: 600px) {
  .hdr-act .theme-btn { display: none; }
  .hdr-in { gap: 12px; }
  .hdr-act { gap: 8px; }
  .lang-sw button { padding: 0 8px; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.sheet nav { display: grid; }
.sheet nav a {
  font-family: var(--f-display); font-weight: 300; font-size: 28px; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
}
.sheet nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.sheet .btn { width: 100%; }
.sheet-contacts { display: grid; gap: 6px; color: var(--fg-2); font-size: 15px; margin-top: auto; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 300; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

.moon-wrap { position: relative; aspect-ratio: 1; max-width: 100%; width: min(460px, 100%); justify-self: end; }
.moon-wrap::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  transition: background .6s;
}
.moon { position: relative; width: 100%; height: 100%; animation: rise 1.8s cubic-bezier(.2,.7,.2,1) both; }
.moon .m-shade { fill: var(--bg); opacity: var(--earthshine); transform: translateX(var(--hero-shift)); transition: transform 1.4s cubic-bezier(.6,0,.2,1), fill .6s; }
.moon-meta {
  position: absolute; left: 0; bottom: 4%; display: grid; gap: 2px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted);
}
.moon-meta strong { color: var(--fg-2); font-weight: 500; }
@keyframes rise { from { transform: translateY(40px); opacity: .2; } to { transform: none; opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .moon-wrap { order: -1; width: min(300px, 78vw); justify-self: center; margin-bottom: 8px; }
  .moon-meta { position: static; text-align: center; margin-top: 8px; }
}

/* ---------- promises (marquee) ---------- */
.promises {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.promises-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.promises:hover .promises-track { animation-play-state: paused; }
.promises ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.promises li {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px; white-space: nowrap;
  font-size: 14px; color: var(--fg-2);
}
.promises svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .promises li { padding: 16px 20px; font-size: 13px; }
  .promises-track { animation-duration: 24s; }
}
@media (prefers-reduced-motion: reduce) {
  .promises { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .promises ul[aria-hidden="true"] { display: none; }
}

/* ---------- language switch ---------- */
.lang-sw { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; height: 40px; }
.lang-sw button {
  font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 0 10px; cursor: pointer; transition: background-color .25s, color .25s;
}
.lang-sw button:hover { color: var(--fg); }
.lang-sw button[aria-pressed="true"] { background: var(--line-2); color: var(--fg); }
.sheet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc {
  padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start; min-width: 0;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  transition: background-color .3s;
}
.svc:hover { background: color-mix(in srgb, var(--bg-2) 90%, transparent); }
.svc p { color: var(--fg-2); font-size: 15px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-family: var(--f-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.svc.feat { background: color-mix(in srgb, var(--bg-2) 85%, transparent); }
.svc.feat h3 { color: var(--accent); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 22px 20px 24px; }
}

/* ---------- industries ---------- */
.ind { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.ind-tabs { display: grid; gap: 4px; align-content: start; }
.ind-tab {
  text-align: left; background: transparent; border: 1px solid transparent; color: var(--fg-2);
  font: 400 16px/1.3 var(--f-body); padding: 14px 18px; border-radius: 14px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.ind-tab:hover { color: var(--fg); }
.ind-tab[aria-selected="true"] { background: color-mix(in srgb, var(--bg-2) 92%, transparent); border-color: var(--line); color: var(--fg); }
.ind-tab i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.ind-panel {
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); display: grid; gap: 24px; min-width: 0;
}
.ind-panel h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.ind-panel > p { color: var(--fg-2); max-width: 62ch; }
.ind-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ind-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; display: grid; gap: 4px; min-width: 0; }
.ind-list li b { font-weight: 500; }
.ind-list li span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .ind { grid-template-columns: 1fr; gap: 16px; }
  .ind-tabs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .ind-tabs::-webkit-scrollbar { display: none; }
  .ind-tab { flex: none; scroll-snap-align: start; border-color: var(--line); padding: 10px 16px; border-radius: 999px; font-size: 15px; }
  .ind-tab i { display: none; }
  .ind-list { grid-template-columns: 1fr; }
}

/* ---------- akylai ---------- */
.ak { position: relative; }
.ak-card {
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--glow), transparent 55%),
    color-mix(in srgb, var(--bg-2) 88%, transparent);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: clamp(24px, 5vw, 64px);
}
.ak-copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ak-name { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ak-name h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 300; }
.ak-etym { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.ak-etym b { color: var(--fg-2); font-weight: 500; }
.ak-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.ak-feats li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.ak-feats b { font-weight: 500; font-size: 15px; }
.ak-feats span { color: var(--muted); font-size: 14px; }
.ak-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.phone {
  justify-self: center; width: min(340px, 100%); border-radius: 36px; padding: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
  align-self: center;
}
.phone-in { border-radius: 28px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; height: 520px; }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ph-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; border: 1px solid var(--line); }
.ph-ava svg { width: 20px; height: 20px; }
.ph-top b { font-size: 14px; font-weight: 500; display: block; line-height: 1.2; }
.ph-top small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ph-top small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5FBF8A; }
.langs { margin-left: auto; display: flex; gap: 4px; }
.langs button { font: 500 11px/1 var(--f-mono); padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--fg); border-color: var(--line-2); background: var(--line); }
.chat { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: pop .35s ease both; }
.msg.c { align-self: flex-end; background: var(--btn-bg); color: var(--btn-fg); border-bottom-right-radius: 5px; }
.msg.a { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: none; padding: 2px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.ph-input { margin: 10px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 900px) {
  .ak-card { grid-template-columns: 1fr; border-radius: 22px; }
  .phone-in { height: 460px; }
}
@media (max-width: 520px) { .ak-feats { grid-template-columns: 1fr; } }

/* ---------- process (moon phases) ---------- */
.proc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.proc::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: var(--line-2); }
.proc li { display: grid; gap: 12px; padding-right: 20px; align-content: start; min-width: 0; position: relative; }
.phase { width: 56px; height: 56px; background: var(--bg); border-radius: 50%; position: relative; z-index: 1; transition: background-color .6s; }
.phase svg { width: 100%; height: 100%; }
.phase .ring { fill: none; stroke: var(--line-2); }
.phase .lit { fill: var(--fg); transition: fill .6s; }
.proc .ph-name { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.proc p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) {
  .proc { grid-template-columns: 1fr; gap: 0; }
  .proc::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .proc li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding: 0 0 28px; }
  .proc li .phase { grid-row: span 3; }
}

/* ---------- work ---------- */
.work { display: grid; border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding-block: 32px; border-bottom: 1px solid var(--line); align-items: start; }
.case .yr { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.case h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.case .badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 4px 8px; border-radius: 999px; font-weight: 500; }
.case p { color: var(--fg-2); }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
}

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; color: var(--muted); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-2); padding-bottom: 22px; max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- contact ---------- */
.ct { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
.ct-copy { display: grid; gap: 22px; align-content: start; }
.direct { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.direct div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.direct dt { color: var(--muted); font-size: 14px; }
.direct dd { margin: 0; user-select: all; font-variant-numeric: tabular-nums; }
.direct dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.form {
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); display: grid; gap: 18px; min-width: 0;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: 13px; color: var(--muted); padding: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form input[type="text"], .form textarea {
  width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { width: 100%; min-height: 54px; font-size: 16px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-ok { font-size: 14px; color: var(--fg-2); text-align: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 14px; }
@media (max-width: 860px) { .ct { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 13px; color: var(--muted); }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
.ftr-legal { display: grid; gap: 4px; }
.ftr-legal address { font-style: normal; }
.ftr-links { display: flex; gap: 20px; flex-wrap: wrap; align-content: start; }
.ftr-links a { text-decoration: none; }
.ftr-links a:hover { color: var(--fg); }
@media (max-width: 700px) { .ftr-in { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transition: transform .35s ease;
  }
  .mbar.hide { transform: translateY(110%); }
  .mbar .btn { min-height: 50px; }
  .mbar .btn-ghost { padding: 0 18px; }
  .page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- base reset ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }

/* ---------- form validation ---------- */
.form input.invalid { border-color: var(--danger); }
.sec--flush { padding-top: 0; }
.sec-head--flush { margin-bottom: 0; }
.burger--show { display: grid; }

/* ---------- messenger contacts (WhatsApp, Telegram, Instagram): plain text links ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.soc { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.soc:hover { color: var(--fg); }
.sheet-contacts .socials { margin-top: 10px; }
.ftr-contacts a { text-decoration: none; }
.ftr-contacts a:hover { color: var(--fg); }
