/* ThinkLikeAI — site styles */

:root {
  --wine: #49110B;
  --wine-2: #5c1a12;
  --wood: #56483B;
  --marble: #C8C2B7;
  --charcoal: #191A1E;
  --sand: #AD9E89;
  --milk: #E7E5DB;
  --milk-2: #EFEDE5;

  --ink: var(--charcoal);
  --muted: var(--wood);
  --line: rgba(25, 26, 30, .16);
  --line-light: rgba(231, 229, 219, .16);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--wine); color: var(--milk); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--milk); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ---------- type ---------- */
.display {
  font: 300 clamp(52px, 8.4vw, 132px)/.94 var(--serif);
  letter-spacing: -.02em;
}
.display em { color: var(--wine); font-weight: 300; }
.display.sm { font-size: clamp(42px, 6vw, 84px); line-height: 1; }
.h2 {
  font: 300 clamp(38px, 5vw, 72px)/1.02 var(--serif);
  letter-spacing: -.015em;
}
.h2 em { font-style: italic; color: var(--wine); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 560px; }
.label {
  display: flex; align-items: center; gap: 14px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.label span { color: var(--wine); letter-spacing: .04em; }
.label.light, .label.light span { color: var(--sand); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 36px;
}
.star { width: 12px; height: 12px; fill: currentColor; flex: none; }
.eyebrow .star { color: var(--wine); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 100px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-wine { background: var(--wine); color: var(--milk); }
.btn-wine:hover { background: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--milk); }
.btn-dark:hover { background: var(--wine); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--milk); color: var(--charcoal); }
.btn-light:hover { background: var(--sand); }
.link { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link:hover { color: var(--wine); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(231, 229, 219, 0);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(231, 229, 219, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand img { width: 168px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; font: 600 12px/1 var(--sans); letter-spacing: .08em; }
.lang a, .lang span { padding: 8px 8px; border-radius: 100px; }
.lang span { background: var(--charcoal); color: var(--milk); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; position: relative; }
.burger span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 84px 0 0; background: var(--milk); overflow-y: auto; border-top: 1px solid var(--line); }
.mobile-nav nav { display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 40px; }
.mobile-nav nav > a { font: 300 36px/1.1 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-foot { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; font-weight: 500; }
.mobile-foot a { display: flex; gap: 10px; align-items: center; }
.mobile-foot .lang a, .mobile-foot .lang span { padding: 10px 14px; }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero .display { margin-bottom: 36px; }
.hero .lead { margin-bottom: 44px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.flow {
  margin: 0; background: var(--charcoal); color: var(--milk);
  padding: 28px 28px 22px; border-radius: var(--radius);
  position: relative;
}
.flow::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid var(--line-light); pointer-events: none;
}
.flow figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand);
  padding: 0 4px 20px; border-bottom: 1px solid var(--line-light);
}
.flow .tag { border: 1px solid var(--line-light); padding: 6px 10px; border-radius: 100px; letter-spacing: .08em; white-space: nowrap; }
.flow ol { position: relative; padding: 8px 4px; }
.flow ol::before { content: ''; position: absolute; left: 61px; top: 30px; bottom: 30px; width: 1px; background: var(--line-light); }
.flow li {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 26px; row-gap: 2px;
  padding: 16px 0; position: relative;
}
.flow li::before {
  content: ''; position: absolute; left: 54px; top: 22px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--charcoal); border: 1px solid var(--sand);
}
.flow li:last-child::before { background: var(--sand); }
.f-time { grid-row: span 2; font: 500 13px/1.6 var(--sans); color: var(--sand); font-variant-numeric: tabular-nums; }
.f-src { font: 600 11px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--marble); padding-left: 10px; }
.f-text { font: 400 22px/1.25 var(--serif); padding-left: 10px; }
.flow-foot {
  display: flex; justify-content: space-between; padding: 18px 4px 0; border-top: 1px solid var(--line-light);
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand);
}
.flow-foot span { display: inline-flex; gap: 10px; align-items: center; }

.js .flow li { opacity: 0; transform: translateY(8px); }
.js .flow.in li { animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--d) * .45s + .2s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- ticker ---------- */
.ticker { background: var(--charcoal); color: var(--milk); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: tick 48s linear infinite; }
.ticker span { font: 300 italic clamp(24px, 2.4vw, 34px)/1 var(--serif); white-space: nowrap; }
.ticker .star { color: var(--sand); width: 14px; height: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: clamp(48px, 6vw, 88px); max-width: 900px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.sec-lead { margin-top: 28px; color: var(--muted); font-size: 18px; max-width: 600px; }
.num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--wine); }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--ink); }
.tabs { display: flex; flex-direction: column; position: sticky; top: 100px; align-self: start; }
.tabs button {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: baseline; gap: 12px;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 24px 0; transition: color .25s;
  color: var(--muted);
}
.tab-name { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.tabs .count { font: 500 12px/1 var(--sans); color: var(--sand); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"] .tab-name { font-style: italic; color: var(--wine); }
.panel-head { display: none; }
.panel[data-inactive] { display: none; }
.svc-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.svc-list h4 { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin-bottom: 6px; }
.svc-list p { color: var(--muted); font-size: 15px; }
.svc-link {
  display: inline-flex; gap: 8px; align-items: center; flex: none;
  font: 600 13px/1 var(--sans); padding: 12px 16px; border: 1px solid var(--line); border-radius: 100px;
  transition: background .25s, color .25s, border-color .25s;
}
.svc-list li:hover .svc-link, .svc-link:focus-visible { background: var(--wine); border-color: var(--wine); color: var(--milk); }
.js .panel.enter li { animation: rise .55s var(--ease) both; }
.js .panel.enter li:nth-child(2) { animation-delay: .05s; }
.js .panel.enter li:nth-child(3) { animation-delay: .1s; }
.js .panel.enter li:nth-child(4) { animation-delay: .15s; }
.js .panel.enter li:nth-child(5) { animation-delay: .2s; }
.js .panel.enter li:nth-child(6) { animation-delay: .25s; }
.js .panel.enter li { opacity: 0; transform: translateY(8px); }

/* ---------- approach ---------- */
.approach { background: var(--wine); color: var(--milk); }
.approach .h2 em { color: var(--sand); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.approach .h2 { margin-bottom: 36px; }
.ap-text { color: rgba(231, 229, 219, .82); font-size: 18px; max-width: 560px; margin-bottom: 20px; }
.approach .btn { margin-top: 16px; }

.crm { margin: 0; background: var(--milk); color: var(--charcoal); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); transform: rotate(-1.2deg); }
.crm-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--sans); letter-spacing: .06em; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--marble); }
.dots i:first-child { background: var(--wine); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; background: var(--milk-2); }
.kcol { display: flex; flex-direction: column; gap: 10px; }
.kh { display: flex; justify-content: space-between; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--wood); padding: 4px 2px 6px; }
.kh i { font-style: normal; color: var(--sand); }
.kcard { display: flex; flex-direction: column; gap: 7px; padding: 12px; background: #fff; border: 1px solid rgba(25,26,30,.08); border-radius: 2px; }
.kcard b { display: block; height: 6px; border-radius: 3px; background: var(--marble); width: var(--w); }
.kcard b + b { width: 45%; background: var(--milk); }
.kcol:first-child .kcard:first-of-type { border-left: 2px solid var(--wine); }
.crm figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 13px; color: var(--wood); border-top: 1px solid var(--line); }
.crm figcaption span { font-weight: 600; color: var(--wine); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line-light); }
.principles li { padding: 32px 28px 0 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
.principles .num { color: var(--sand); }
.principles h3 { font: 400 26px/1.15 var(--serif); margin: 20px 0 12px; }
.principles p { color: rgba(231, 229, 219, .72); font-size: 15px; }

/* ---------- process ---------- */
.process { background: var(--marble); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 36px 36px 48px 0; border-bottom: 1px solid rgba(25,26,30,.22); position: relative; }
.steps li:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid rgba(25,26,30,.22); }
.step-n { display: block; font: 300 clamp(56px, 6vw, 88px)/1 var(--serif); color: var(--wine); margin-bottom: 28px; letter-spacing: -.03em; }
.steps h3 { font: 500 24px/1.2 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--wood); font-size: 15px; max-width: 320px; }

/* ---------- blog cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s;
}
.card a:hover { background: var(--milk-2); border-color: var(--ink); }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--wood); margin-bottom: 40px; }
.card-meta span::before { content: '·'; margin-right: 10px; color: var(--sand); }
.card h3 { font: 400 28px/1.15 var(--serif); margin-bottom: 16px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 36px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--wine); }

/* ---------- faq ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); padding-top: var(--sec); background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--ink); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font: 400 clamp(22px, 2vw, 27px)/1.25 var(--serif);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, border-color .25s; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 11px; right: 11px; top: 17px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa details[open] summary i { background: var(--wine); border-color: var(--wine); color: var(--milk); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa summary:hover { color: var(--wine); }
.qa details p { padding: 0 64px 28px 0; color: var(--muted); max-width: 680px; }

/* ---------- contact ---------- */
.contact { background: var(--charcoal); color: var(--milk); }
.contact .h2 { font-size: clamp(38px, 4.2vw, 62px); }
.contact .h2 em { color: var(--sand); }
.contact .sec-lead { color: rgba(231, 229, 219, .72); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); }
.direct-label { margin-top: 56px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.direct { margin-top: 20px; border-top: 1px solid var(--line-light); }
.direct a { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-light); font: 400 24px/1.2 var(--serif); transition: color .25s, padding .3s var(--ease); }
.direct a:hover { color: var(--sand); padding-left: 8px; }
.direct .i { color: var(--sand); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--milk);
  border: 0; border-bottom: 1px solid rgba(231, 229, 219, .3); border-radius: 0;
  font: 400 18px/1.4 var(--sans); padding: 10px 0 14px;
  transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AD9E89' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center / 18px;
}
.field select option, .field select optgroup { background: var(--charcoal); color: var(--milk); }
.field input::placeholder, .field textarea::placeholder { color: rgba(231, 229, 219, .35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); }
.field.invalid input { border-color: #d9826f; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form .btn-wine:hover { background: var(--milk); color: var(--charcoal); }
.consent { flex: 1; min-width: 220px; font-size: 12px; color: rgba(231, 229, 219, .5); }
.form-status { font-size: 15px; min-height: 1px; }
.form-status.ok { color: var(--milk); padding: 16px 20px; border: 1px solid var(--sand); }
.form-status.err { color: #e9b4a6; }
.form-status a { text-decoration: underline; }
.form.sending button { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--milk); border-top: 1px solid var(--line-light); padding: 88px 0 32px; font-size: 14px; }
.f-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 56px; }
.f-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.f-brand img { width: 170px; margin-bottom: 18px; }
.f-brand p { color: rgba(231, 229, 219, .62); margin-bottom: 18px; max-width: 280px; }
.f-brand a { color: rgba(231, 229, 219, .82); }
.f-brand a:hover { color: var(--sand); }
.f-brand .f-phone { font: 400 26px/1.2 var(--serif); color: var(--milk); }
.f-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.f-col h3 { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.f-col h3.mt { margin-top: 32px; }
.f-col li { margin-bottom: 10px; line-height: 1.4; }
.f-col a { color: rgba(231, 229, 219, .7); transition: color .2s; }
.f-col a:hover { color: var(--milk); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-light); color: rgba(231, 229, 219, .5); font-size: 13px; }
.to-top { display: inline-flex; gap: 6px; align-items: center; }
.to-top:hover { color: var(--milk); }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(48px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero .display { margin-bottom: 28px; }
.section.flush { padding-top: 0; }
.post-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 48px; margin-bottom: 56px; background: linear-gradient(var(--line), var(--line)) no-repeat center bottom / calc(100% - 2 * var(--gutter)) 1px; }
.back { display: inline-block; font-weight: 600; font-size: 14px; color: var(--wine); margin-bottom: 48px; }
.back:hover { text-decoration: underline; }
.post-head .card-meta { margin-bottom: 24px; }
.post-head .display { margin-bottom: 28px; }
.post-body { padding-bottom: var(--sec); font-size: 18px; line-height: 1.75; }
.post-body p { margin-bottom: 24px; }
.post-body h2 { font: 400 clamp(30px, 3vw, 40px)/1.15 var(--serif); margin: 56px 0 20px; }
.post-body ul { margin: 0 0 28px; }
.post-body li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.post-body li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--wine); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.post-body strong { font-weight: 600; }
.cta-band { background: var(--wine); color: var(--milk); padding: clamp(64px, 8vw, 104px) 0; }
.cta-band .h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 16px; max-width: 760px; }
.cta-band p { color: rgba(231, 229, 219, .8); font-size: 18px; }
.cta-in { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.nf { padding: clamp(64px, 10vw, 140px) 0 var(--sec); }
.nf-code { display: flex; align-items: center; gap: 12px; font: 300 clamp(96px, 16vw, 200px)/1 var(--serif); color: var(--wine); margin-bottom: 24px; }
.nf-code .star { width: .5em; height: .5em; }
.nf .lead { margin: 28px 0 40px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .f-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .header-actions > .btn, .header-actions > .lang { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid, .ap-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .flow { max-width: 560px; }
  .crm { max-width: 560px; transform: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li { padding-bottom: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(2n) { padding-left: 32px; border-left: 1px solid rgba(25,26,30,.22); }
  .cards { grid-template-columns: 1fr 1fr; }
  .f-top { grid-template-columns: 1fr; }

  /* Services: show every group stacked, no tabs */
  .svc { grid-template-columns: 1fr; border-top: 0; }
  .tabs { display: none; }
  .panel, .panel[data-inactive] { display: block; }
  .panel + .panel { margin-top: 64px; }
  .panel-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
  .panel-head h3 { font: 400 32px/1.1 var(--serif); }
  .panel-head p { grid-column: 2; color: var(--muted); font-size: 15px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .header-in { height: 72px; }
  .mobile-nav { inset: 72px 0 0; }
  .brand img { width: 128px; }
  .hero-cta .btn { width: 100%; }
  .flow { padding: 22px 18px 18px; }
  .flow figcaption { flex-direction: column; align-items: flex-start; }
  .f-text { font-size: 19px; }
  .svc-list li { flex-direction: column; align-items: flex-start; gap: 16px; }
  .principles, .steps, .cards, .cards.two { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .principles li:first-child { border-top: 0; }
  .steps li, .steps li:nth-child(2n) { padding: 28px 0 32px; border-left: 0; }
  .step-n { margin-bottom: 16px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .card a { padding: 24px; }
  .kanban { gap: 8px; padding: 12px; }
  .kh { font-size: 9px; letter-spacing: .04em; }
  .qa details p { padding-right: 0; }
  .form { grid-template-columns: 1fr; }
  .direct a { font-size: 20px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .cta-in .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .flow li, .js .panel.enter li { opacity: 1; transform: none; }
}
