/* DARBEEN design system — v2 layer (audit redesign, 26.11.2026). Loaded after site.css.
   Same tokens and motion rules (Emil Kowalski): transform/opacity, --ease-out, UI ≤ 250ms, hover gated. */

/* Hero: text + real product preview. Fits a low 1440×700 window above the fold. */
.hero2 { padding: clamp(28px, 4.5vw, 64px) 0 clamp(40px, 6vw, 88px); }
.hero2__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero2__text { display: grid; gap: 20px; align-content: start; }
.hero2 h1 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.04; font-weight: 680; max-width: 16ch; }
html:lang(ru) .hero2 h1, html:lang(es-US) .hero2 h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 20ch; }
html:lang(hy) .hero2 h1 { font-size: clamp(1.75rem, 1.15rem + 1.7vw, 2.7rem); line-height: 1.16; letter-spacing: -0.005em; max-width: 22ch; }
.hero2 .lead { max-width: 52ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
html:lang(hy) .hero2 .lead, html:lang(ru) .hero2 .lead { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem); }
.hero2__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2__media { display: grid; gap: 14px; }
.hero2__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.hero2__caption p { margin: 0; max-width: 46ch; }
@media (max-width: 960px) { .hero2__grid { grid-template-columns: 1fr; } .hero2 h1 { max-width: 20ch; } }
.page-head { padding: clamp(28px, 4.5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-head__inner { display: grid; gap: 18px; max-width: 820px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); letter-spacing: -0.028em; line-height: 1.06; }
html:lang(ru) .page-head h1, html:lang(hy) .page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -0.012em; }

/* Device frames for real screenshots (fixed aspect ratios → no layout shift) */
.device { position: relative; display: block; text-decoration: none; }
.device--pad { padding: 0 7% 10% 0; }
.browser { border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(12, 13, 16, 0.35), 0 2px 6px rgba(12, 13, 16, 0.06); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__bar span { margin-left: 10px; font-size: 11px; color: var(--ink-3); background: var(--white); border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; min-width: 104px; border-radius: 22px; padding: 6px; background: var(--night); box-shadow: 0 24px 48px -20px rgba(12, 13, 16, 0.5); }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; display: block; }
@media (hover: hover) and (pointer: fine) {
  a.device .browser { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
  a.device:hover .browser { transform: translateY(-3px); box-shadow: 0 40px 70px -30px rgba(12, 13, 16, 0.4), 0 2px 6px rgba(12, 13, 16, 0.06); }
}

/* Three directions */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .dir-grid { grid-template-columns: 1fr; } }
.dir { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: clamp(22px, 2.6vw, 30px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.dir h3 { font-size: var(--fs-xl); display: flex; align-items: center; gap: 10px; }
.dir__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); margin: 0 0 8px; }
.dir ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir li { font-size: var(--fs-xs); padding: 5px 10px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.dir__get { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.dir__links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Work showcase */
.work-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .work-feature { grid-template-columns: 1fr; } }
.work-copy { display: grid; gap: 14px; align-content: start; }
.work-copy h3 { font-size: var(--fs-2xl); letter-spacing: -0.025em; }
.kind { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); margin: 0; }
.task { font-weight: 600; color: var(--ink); margin: 0; }
.work-copy p, .work-card p { margin: 0; color: var(--ink-2); }
.work-copy .btn { width: fit-content; margin-top: 6px; }
.work-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 760px) { .work-pair { grid-template-columns: 1fr; } }
.work-card { display: grid; gap: 12px; align-content: start; }
.work-card h3 { font-size: var(--fs-xl); }
.work-card .btn { width: fit-content; margin-top: 4px; }
.shot { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot--dark { background: var(--night); border-color: var(--night-line); }
@media (hover: hover) and (pointer: fine) { .shot img { transition: transform 400ms var(--ease-out); } a.shot:hover img { transform: scale(1.015); } }
.note-line { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }

/* Module services with deliverables */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding: clamp(28px, 3.6vw, 40px) 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { font-size: var(--fs-xl); }
.svc__when { font-size: var(--fs-sm); color: var(--ink-3); margin: 0 0 8px; }
.svc__desc { color: var(--ink-2); margin: 12px 0 0; max-width: 44ch; }
.svc__out { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); max-width: 48ch; }
.svc__out b { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }

/* Creative hero sample */
.sample { display: grid; gap: 20px; }
.sample__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.sample__meta h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.sample__meta p { margin: 4px 0 0; color: var(--ink-2); font-size: var(--fs-sm); max-width: 70ch; }
@media (max-width: 760px) { .sample__meta { grid-template-columns: 1fr; } .sample__meta .btn { width: fit-content; } }

/* AI flow: request → action → result → person */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); }
.flow__step { padding: clamp(18px, 2vw, 26px); display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--night-line); }
.flow__step:last-child { border-right: 0; }
.flow__n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--night-ink-2); }
.flow__step h3 { font-size: var(--fs-md); color: var(--night-ink); letter-spacing: -0.005em; }
.flow__step p { margin: 0; font-size: var(--fs-sm); color: var(--night-ink-2); }
.flow__step--in p { background: var(--night); border: 1px solid var(--night-line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; color: var(--night-ink); }
.flow__step--out p { background: rgba(127, 224, 181, 0.08); border: 1px solid rgba(127, 224, 181, 0.25); border-radius: 12px; padding: 10px 12px; color: var(--night-ink); }
.flow__step--human p { border-left: 2px solid #e0a43a; padding-left: 12px; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } .flow__step:nth-child(2) { border-right: 0; } .flow__step:nth-child(-n+2) { border-bottom: 1px solid var(--night-line); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow__step { border-right: 0; border-bottom: 1px solid var(--night-line); } .flow__step:last-child { border-bottom: 0; } }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.fit li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.fit .card--no li::before { content: "—"; color: var(--ink-4); }

/* Digital: try tiles */
.tries { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .tries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .tries { grid-template-columns: 1fr; } }
.try { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.try:active { transform: scale(0.98); }
.try strong { font-size: var(--fs-sm); }
.try span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .try:hover { border-color: var(--digital); } }

/* Start (end of home) */
.start { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }
.start ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.start li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--night-line); color: var(--night-ink); }
.start li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--night-ink-2); padding-top: 2px; }

/* Forms: compact header, form first */
.form-head { padding: clamp(24px, 3.5vw, 48px) 0 clamp(20px, 2.5vw, 32px); }
.form-head h1 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); letter-spacing: -0.025em; }
.form-head .lead { margin-top: 12px; max-width: 60ch; font-size: var(--fs-md); }
.form-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: var(--fs-sm); color: var(--ink-3); }
.form-head__meta a, .form-head__meta button { color: var(--ink-2); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote-layout--v2 { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 900px) { .quote-layout--v2 { grid-template-columns: 1fr; } }
.req { color: var(--danger); margin-left: 2px; }

/* Legal: table of contents */
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.legal-toc p { font-weight: 600; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 8px; color: var(--ink-3); }
.legal-toc a { text-decoration: none; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--ink); text-decoration: underline; } }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); } }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Assistant: honest mode indicator, readable wrapped suggestions */
[data-da-mode] { display: inline-flex; align-items: center; gap: 6px; }
.da-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
[data-da-mode][data-mode="ai"] .da-mode-dot { background: #2fb58f; }
[data-da-mode][data-mode="faq"] .da-mode-dot { background: #e0a43a; }
.da-quick { flex-wrap: wrap; overflow: visible; padding: 0 14px 12px; }
.da-quick button { white-space: normal; text-align: left; line-height: 1.25; padding: 7px 12px; }
.da-launcher__dot { background: #c9ccd3; box-shadow: none; }
/* No floating launcher where it would compete or cover content: forms and the AI demo. Buttons on those pages open the chat. */
body[data-page="quote"] .da-launcher, body[data-page="contact"] .da-launcher, body[data-page="demo-assistant"] .da-launcher { display: none; }
/* Desktop: floating pill. Below 1180px (no inline nav): a chat button in the sticky header, next to the
   menu button — always reachable and never covers text, fields or buttons. */
.da-launcher__icon { display: none; }
@media (max-width: 1180px) {
  .da-launcher { top: calc(10px + env(safe-area-inset-top)); bottom: auto; right: calc(var(--gutter) + 52px); width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .da-launcher__label, .da-launcher__dot { display: none; }
  .da-launcher__icon { display: block; }
  body[data-page="quote"] .da-launcher, body[data-page="contact"] .da-launcher { display: inline-flex; }
}
[data-demo-modeline] { margin: 0; padding: 10px 14px; font-size: var(--fs-xs); color: var(--ink-2); background: var(--paper); border-top: 1px solid var(--line); text-align: left; }
[data-demo-modeline]:empty { display: none; }
.chat-frame .badge:not(.badge--live):not(.badge--fallback):not(.badge--demo) { background: var(--paper-2); }

/* Programmatic focus targets (tabindex=-1) never draw a big ring; interactive elements keep :focus-visible */
[tabindex="-1"]:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  a.device:hover .browser, a.shot:hover img { transform: none; }
  .try:active { transform: none; }
}
