/* =========================================================================
   Barton Enterprise
   All colour, type and spacing values live in :root below. Change one there
   and it updates across every page of the site.
   ========================================================================= */

:root {
  /* Surfaces */
  --paper:    #FFFFFF;
  --surface:  #F5F5F7;
  --surface-2:#FAFAFC;
  --ink:      #1D1D1F;
  --ink-soft: #2B2B30;
  --line:     #D2D2D7;
  --line-soft:#E8E8ED;

  /* Text */
  --text:   #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #86868B;
  --on-dark:      #F5F5F7;
  --on-dark-soft: #A1A1A6;

  /* Accent */
  --blue:       #0071E3;
  --blue-press: #0058B0;
  --blue-wash:  #EAF3FE;

  /* Category accents (used only as small markers) */
  --c-cloud:  #0071E3;
  --c-data:   #00A3B1;
  --c-ai:     #7D4BD6;
  --c-sec:    #C7361F;
  --c-euc:    #1E8E4E;
  --c-auto:   #C77700;

  /* Status */
  --ok:   #1E8E4E;
  --warn: #B26A00;

  /* Type */
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --wrap-wide: 1320px;
  --gut: 22px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow: 0 4px 24px rgba(0,0,0,.07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #000000;
    --surface:  #101012;
    --surface-2:#0A0A0C;
    --ink:      #F5F5F7;
    --line:     #2C2C2E;
    --line-soft:#1F1F22;
    --text:   #F5F5F7;
    --text-2: #A1A1A6;
    --text-3: #86868B;
    --blue:      #2997FF;
    --blue-press:#63B4FF;
    --blue-wash: #0F2135;
    --c-cloud: #2997FF; --c-data: #35C4D3; --c-ai: #B18AF5;
    --c-sec: #FF6B57; --c-euc: #43CE7F; --c-auto: #FFB020;
    --ok: #43CE7F; --warn: #FFB020;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.6);
    --shadow: 0 4px 24px rgba(0,0,0,.65);
  }
}
:root[data-theme="dark"] {
  --paper:#000000; --surface:#101012; --surface-2:#0A0A0C; --ink:#F5F5F7;
  --line:#2C2C2E; --line-soft:#1F1F22;
  --text:#F5F5F7; --text-2:#A1A1A6; --text-3:#86868B;
  --blue:#2997FF; --blue-press:#63B4FF; --blue-wash:#0F2135;
  --c-cloud:#2997FF; --c-data:#35C4D3; --c-ai:#B18AF5;
  --c-sec:#FF6B57; --c-euc:#43CE7F; --c-auto:#FFB020;
  --ok:#43CE7F; --warn:#FFB020;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.6);
  --shadow: 0 4px 24px rgba(0,0,0,.65);
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.02em; }
h4 { font-size: 1.06rem; letter-spacing: -0.015em; font-weight: 600; }
p  { margin: 0; }

strong { font-weight: 600; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--wide { max-width: var(--wrap-wide); }

.section { padding-block: clamp(56px, 6.5vw, 108px); }
.section--tight { padding-block: clamp(40px, 4.5vw, 68px); }
.section--grey { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-soft); }
.section--dark a { color: #6FB8FF; }

.stack { display: flex; flex-direction: column; }
.stack-6{gap:6px}.stack-10{gap:10px}.stack-14{gap:14px}.stack-20{gap:20px}
.stack-28{gap:28px}.stack-40{gap:40px}.stack-56{gap:56px}

.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.32rem); color: var(--text-2); line-height: 1.45; max-width: 60ch; }
.measure { max-width: 66ch; }
.body-text { color: var(--text-2); }
.body-text strong { color: var(--text); }

.head { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }

/* Eyebrow: small blue label above a heading */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--blue); margin: 0;
}
.section--dark .eyebrow { color: #6FB8FF; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .97rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 12px 23px; border-radius: 980px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-press); }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn--quiet { background: var(--surface); color: var(--text); }
.btn--quiet:hover { background: var(--line-soft); }
.section--dark .btn--secondary { color: #6FB8FF; border-color: #6FB8FF; }
.section--dark .btn--secondary:hover { background: #6FB8FF; color: #0B0B0C; }
.btn--sm { padding: 8px 17px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Chevron link, used for "learn more" style links */
.clink { font-weight: 500; font-size: .97rem; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.clink::after { content: "\203A"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.clink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; }

.logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo b { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.035em; }
.logo span { font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: var(--text-3); }

.mainnav { display: flex; align-items: center; gap: 2px; }
.mainnav__item { position: relative; }
.mainnav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .87rem; font-weight: 500; color: var(--text-2);
  padding: 8px 12px; border-radius: 8px; background: none; border: 0;
  font-family: inherit; cursor: pointer; letter-spacing: -0.005em;
}
.mainnav__link:hover { color: var(--text); text-decoration: none; }
.mainnav__link[aria-current="page"], .mainnav__link.is-active { color: var(--text); font-weight: 600; }
.mainnav__link .caret { width: 8px; height: 8px; transition: transform .2s ease; opacity: .55; }
.mainnav__item.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 12px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow); display: none; flex-direction: column; gap: 2px;
}
.mainnav__item.is-open .dropdown { display: flex; }
.dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.dropdown a:hover { background: var(--surface); text-decoration: none; }
.dropdown a b { font-size: .93rem; font-weight: 600; }
.dropdown a span { font-size: .82rem; color: var(--text-3); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }
  .mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px; max-height: 76vh; overflow-y: auto;
  }
  .mainnav.is-open { display: flex; }
  .mainnav__link { width: 100%; justify-content: space-between; padding: 13px 4px; font-size: 1rem; }
  .dropdown {
    position: static; transform: none; box-shadow: none; border: 0;
    min-width: 0; padding: 0 0 8px 14px; background: none;
  }
  .header-actions .btn { display: none; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(64px, 8vw, 128px) clamp(48px, 5vw, 80px); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 56ch; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lede { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

/* Page hero for interior pages */
.pagehero { padding-block: clamp(44px, 5vw, 76px) clamp(28px, 3vw, 44px); }
.pagehero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); max-width: 20ch; }

.crumbs { font-size: .82rem; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text-2); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---- Grids & cards ---------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } .grid--sidebar { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 700px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card p { color: var(--text-2); font-size: .97rem; }
.card--outline { background: var(--paper); border: 1px solid var(--line-soft); }
.card--paper { background: var(--paper); }
.section--grey .card { background: var(--paper); }
.section--dark .card { background: #1F1F23; }
.section--dark .card p { color: var(--on-dark-soft); }

.card--link { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.card--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }

/* Icon tile */
.itile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); margin-bottom: 4px; }
.itile svg { width: 20px; height: 20px; }

/* ---- Stat figures ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.stat span { font-size: .92rem; color: var(--text-2); }
.section--dark .stat span { color: var(--on-dark-soft); }
.stat em { font-style: normal; font-size: .8rem; color: var(--text-3); }

/* ---- Lists ------------------------------------------------------------ */
.ticklist { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticklist li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: .99rem; }
.ticklist li::before {
  content: ""; flex: none; width: 19px; height: 19px; margin-top: 3px; border-radius: 50%;
  background: var(--blue-wash) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230071E3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticklist li strong { color: var(--text); font-weight: 600; }

.numlist { counter-reset: n; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.numlist li:last-child { border-bottom: 1px solid var(--line-soft); }
.numlist li::before { content: counter(n, decimal-leading-zero); font-size: .84rem; font-weight: 600; color: var(--text-3); padding-top: 3px; }
.numlist h4 { margin-bottom: 5px; }
.numlist p { color: var(--text-2); font-size: .97rem; }

/* Definition rows */
.drows { display: flex; flex-direction: column; margin: 0; }
.drow { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.drow:last-child { border-bottom: 1px solid var(--line-soft); }
.drow dt { font-weight: 600; font-size: .95rem; }
.drow dd { margin: 0; color: var(--text-2); font-size: .97rem; }
@media (max-width: 640px) { .drow { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Table ------------------------------------------------------------ */
.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; background: var(--paper); }
table.data th, table.data td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.data thead th { font-size: .8rem; font-weight: 600; color: var(--text-3); background: var(--surface); letter-spacing: 0; }
table.data tbody th { font-weight: 600; color: var(--text); }
table.data tbody td { color: var(--text-2); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }

/* ---- Pills & tags ----------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; padding: 5px 12px; border-radius: 980px; background: var(--surface); color: var(--text-2); }
.section--grey .pill { background: var(--paper); }
.pill--blue { background: var(--blue-wash); color: var(--blue); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--text-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- Timeline (delivery ramp) ----------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .timeline { grid-template-columns: 1fr; } }
.tl-step { padding: 24px 22px 26px; border-left: 2px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; position: relative; }
.tl-step:first-child { border-left-color: var(--blue); }
.tl-step::before { content: ""; position: absolute; top: -5px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.tl-step__when { font-size: .8rem; font-weight: 600; color: var(--blue); }
.tl-step h4 { font-size: 1rem; }
.tl-step p { font-size: .92rem; color: var(--text-2); }
@media (max-width: 900px) { .tl-step { border-left: 2px solid var(--line-soft); padding-left: 22px; } .tl-step::before { top: 26px; } }

/* ---- Accordion -------------------------------------------------------- */
.acc { border-top: 1px solid var(--line-soft); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.03rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; transition: transform .2s ease;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 2v12M2 8h12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.acc details[open] summary::after { transform: rotate(135deg); }
.acc__body { padding: 0 0 22px; color: var(--text-2); font-size: .99rem; display: flex; flex-direction: column; gap: 12px; }

/* ---- Tech stack directory --------------------------------------------- */
.ts-controls { display: flex; flex-direction: column; gap: 16px; }
.ts-search { position: relative; max-width: 460px; width: 100%; }
.ts-search input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid transparent; border-radius: 980px;
  padding: 13px 18px 13px 46px;
}
.section--grey .ts-search input { background: var(--paper); border-color: var(--line-soft); }
.ts-search input::placeholder { color: var(--text-3); }
.ts-search::before {
  content: ""; position: absolute; left: 17px; top: 50%; margin-top: -8px; width: 16px; height: 16px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386868B' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.5 10.5L14 14' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.ts-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: .87rem; font-weight: 500; cursor: pointer;
  padding: 7px 15px; border-radius: 980px; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); transition: all .15s ease;
}
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.ts-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .ts-layout { grid-template-columns: 1fr; } }

.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.ts-item {
  text-align: left; font-family: inherit; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 14px 15px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s ease, background .15s ease;
}
.section--grey .ts-item { background: var(--paper); }
.ts-item:hover { border-color: var(--text-3); }
.ts-item[aria-selected="true"] { border-color: var(--blue); background: var(--blue-wash); }
.ts-item__name { font-size: .95rem; font-weight: 600; color: var(--text); }
.ts-item__meta { font-size: .8rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.ts-item__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.ts-panel {
  position: sticky; top: 78px;
  background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.section--grey .ts-panel { background: var(--paper); border: 1px solid var(--line-soft); }
.ts-panel__empty { color: var(--text-3); font-size: .95rem; }
.ts-panel h3 { font-size: 1.3rem; }
.ts-bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.ts-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.ts-count { font-size: .84rem; color: var(--text-3); }

/* ---- Callout ---------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--blue); padding: 4px 0 4px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.callout p { color: var(--text-2); }
.callout strong { color: var(--text); }

/* ---- Guarantee cards -------------------------------------------------- */
.guarantee {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
}
.guarantee__figure { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--blue); }
.guarantee p { color: var(--text-2); font-size: .97rem; }

/* ---- Forms ------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form__note { font-size: .85rem; color: var(--text-3); }
.form__status { font-size: .95rem; font-weight: 600; }
.form__status[data-state="ok"] { color: var(--ok); }
.form__status[data-state="err"] { color: #C7361F; }

/* ---- Blog ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 700px)  { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 26px;
  background: var(--surface); border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card__meta { font-size: .82rem; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h3 { font-size: 1.16rem; }
.post-card p { color: var(--text-2); font-size: .95rem; flex: 1; }

.article { max-width: 40rem; margin-inline: auto; }
.article__header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.article__meta { font-size: .85rem; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.article__body { display: flex; flex-direction: column; gap: 22px; font-size: 1.08rem; line-height: 1.6; }
.article__body h2 { font-size: 1.6rem; margin-top: 18px; }
.article__body h3 { font-size: 1.2rem; margin-top: 8px; }
.article__body ul, .article__body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.article__body blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); color: var(--text-2); font-size: 1.14rem; }
.article__body img { border-radius: var(--r); margin-block: 8px; }
.article__body pre { background: var(--surface); padding: 18px; border-radius: var(--r-sm); overflow-x: auto; font-size: .88rem; }

/* ---- CTA band --------------------------------------------------------- */
.ctaband { background: var(--surface); }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(44px, 5vw, 72px); }
.ctaband h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); max-width: 22ch; }
.ctaband p { color: var(--text-2); margin-top: 10px; max-width: 46ch; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--surface); padding-block: 48px 32px; font-size: .84rem; color: var(--text-2); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .84rem; font-weight: 600; color: var(--text); margin: 0 0 3px; }
.footer-bottom {
  margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-3); font-size: .8rem;
}
.footer-note { margin-top: 26px; color: var(--text-3); font-size: .79rem; max-width: 72ch; line-height: 1.5; }
