/* =========================================================
   DGTL Market — Design System
   ========================================================= */

:root {
  --ink: #141820;
  --ink-90: #1F242F;
  --ink-80: #2B313D;
  --ink-50: rgba(20, 24, 32, 0.55);
  --ink-25: rgba(20, 24, 32, 0.25);
  --ink-10: rgba(20, 24, 32, 0.10);
  --lime: #C9F24D;
  --lime-dark: #9BC72E;
  --cyan: #19C7D4;
  --warm: #F6F3EC;
  --warm-2: #EFEBE0;
  --coral: #FF6B57;
  --soft: #DADFE5;
  --white: #FFFFFF;

  --container: 1280px;
  --gutter: 32px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --t-fast: 0.18s ease;
  --t-mid: 0.32s ease;
}

/* ------------ Reset ------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ------------ Typography ------------ */
h1, h2, h3, h4 { font-family: inherit; letter-spacing: -0.02em; line-height: 1.05; font-weight: 800; }
h1 { font-size: clamp(48px, 7vw, 104px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4vw, 60px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 700; }
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 18px;
}
.kicker--light { color: var(--warm); opacity: 0.7; }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-50); max-width: 56ch; }
.lead--light { color: rgba(246, 243, 236, 0.7); }
.lime-dot { color: var(--lime); }

/* ------------ Layout ------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }
.section--tight { padding: 70px 0; }
.section--ink { background: var(--ink); color: var(--warm); }
.section--ink h2, .section--ink h3 { color: var(--warm); }
.section--lime { background: var(--lime); color: var(--ink); }
.section--white { background: var(--white); }
.section--warm { background: var(--warm); }

.row { display: grid; gap: 24px; }
.row-2 { grid-template-columns: repeat(2, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------ Header ------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
}
.site-header.is-light {
  background: var(--warm);
  border-bottom: 1px solid var(--soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 32px;
}
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--warm);
  opacity: 0.7;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.is-light .nav a { color: var(--ink); opacity: 0.65; }
.nav a:hover { opacity: 1; }
.nav a.is-current { opacity: 1; font-weight: 700; }
.nav a.is-current::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--lime);
  margin-top: 4px;
}
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 264px;
  background: var(--ink); border: 1px solid rgba(246,243,236,0.12);
  border-radius: var(--radius-md); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 200; box-shadow: 0 24px 48px rgba(0,0,0,0.34);
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); white-space: nowrap; color: var(--warm); opacity: 0.78; }
.nav-dropdown a:hover { background: rgba(246,243,236,0.07); opacity: 1; }
.nav-dropdown a.is-current { opacity: 1; }
.nav-dropdown a.is-current::after { display: none; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; }

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-arrow { display: inline-block; transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: #D6FF66; }
.btn--ghost-light { background: transparent; color: var(--warm); border: 1px solid rgba(246, 243, 236, 0.25); }
.btn--ghost-light:hover { background: rgba(246, 243, 236, 0.06); }
.btn--ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink-25); }
.btn--ghost-dark:hover { background: var(--ink-10); }
.btn--ink { background: var(--ink); color: var(--warm); }
.btn--ink:hover { background: var(--ink-90); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 15px; }

/* ------------ Hero ------------ */
.hero {
  background: var(--ink);
  color: var(--warm);
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 28px;
}
.hero h1 { color: var(--warm); }
.hero h1 .lime-dot { color: var(--lime); }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.72);
  max-width: 50ch;
}
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 52px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(246, 243, 236, 0.5);
}
.hero-trust span::before { content: '— '; }

/* Hero visual (metrics card) */
.hero-vis {
  background: var(--ink-90);
  border: 1px solid rgba(246, 243, 236, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 20px;
}
.metric {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
}
.metric:last-child { border-bottom: none; }
.metric-label { font-size: 12px; color: rgba(246, 243, 236, 0.55); letter-spacing: 0.05em; text-transform: uppercase; }
.metric-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--warm); }
.metric-value .up { color: var(--lime); font-size: 14px; font-weight: 700; margin-left: 6px; }
.metric-value .down { color: var(--coral); font-size: 14px; font-weight: 700; margin-left: 6px; }

/* Hero process timeline */
.hero-flow { padding: 30px 28px; gap: 0; }
.flow-cap {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(246, 243, 236, 0.45); margin-bottom: 22px;
}
.flow { list-style: none; margin: 0; padding: 0; }
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  min-height: 58px;
}
/* connecting line between dot centers */
.flow-step::before {
  content: "";
  position: absolute;
  left: 22px; width: 2px;
  top: calc(50% + 23px);
  height: calc(100% - 46px);
  background: linear-gradient(var(--cyan), var(--lime));
  opacity: 0.4;
  z-index: 0;
}
.flow-step:last-child::before { display: none; }
.flow-dot {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(25, 199, 212, 0.5);
  color: var(--warm);
  font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
}
.flow-step--start .flow-dot { border-color: rgba(246, 243, 236, 0.35); }
.flow-step--final .flow-dot {
  background: var(--lime); border-color: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 5px rgba(201, 242, 77, 0.12);
}
.flow-label {
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(246, 243, 236, 0.62); line-height: 1.4;
}
.flow-step--final .flow-label { color: var(--warm); font-weight: 600; }

.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 8px 0; }
.mini-chart span { flex: 1; background: var(--lime); border-radius: 2px; opacity: 0.7; }
.mini-chart span:last-child { opacity: 1; background: var(--lime); }

/* ------------ Page header (non-home) ------------ */
.page-head { padding: 80px 0 60px; background: var(--ink); color: var(--warm); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(40px, 5vw, 80px); }
.page-head .lead { color: rgba(246, 243, 236, 0.7); margin-top: 24px; }

/* ---- Texture on the dark bands (dot grid + faint lime ring) ---- */
.hero::before, .page-head::before, .cta-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(246, 243, 236, 0.05) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
/* Bold tilted zigzag (2–3 bends), behind the top dark band — unique per page, same concept. */
.hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: no-repeat; background-position: center; background-size: 100% auto;
}
.hero::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,260%20360,130%20740,200%201240,45'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z2::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,70%20330,210%20730,120%201240,235'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z3::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,230%20410,90%20780,180%201240,55'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z4::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,90%20380,225%20790,120%201240,250'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z5::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,250%20340,120%20720,195%201240,60'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z6::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,80%20360,215%20745,110%201240,240'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z7::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,235%20430,70%20820,180%201240,50'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z8::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,100%20350,240%20770,130%201240,250'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head--z9::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3Cpolyline%20points='-40,150%20400,40%20800,200%201240,90'%20fill='none'%20stroke='%23C9F24D'%20stroke-opacity='0.1'%20stroke-width='46'%20stroke-linejoin='round'%20stroke-linecap='round'/%3E%3C/svg%3E"); }
.cta-strip { position: relative; overflow: hidden; }
.hero > .container, .page-head > .container, .cta-strip > .container { position: relative; z-index: 1; }

/* ---- Direction card icons ---- */
.svc-ic { width: 34px; height: 34px; color: var(--ink); margin-bottom: 18px; display: block; }
.svc:hover .svc-ic { color: var(--warm); }

/* ---- Scroll-reveal (only with JS + when motion is allowed) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ------------ Pain cards ------------ */
.pain-grid { grid-template-columns: repeat(4, 1fr); }
.pain {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--soft);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.pain:hover { transform: translateY(-2px); border-color: var(--ink); }
.pain-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-50);
  margin-bottom: 18px;
}
.pain h3 { margin-bottom: 10px; }
.pain p { font-size: 14px; color: var(--ink-50); line-height: 1.55; }

/* ------------ Services grid ------------ */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.svc--cat { min-height: 200px; text-decoration: none; color: var(--ink); }
.svc {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  min-height: 260px;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  position: relative;
}
.svc:hover { background: var(--ink); color: var(--warm); border-color: var(--ink); }
.svc:hover .svc-num { color: var(--lime); }
.svc:hover .svc-sub { color: rgba(246, 243, 236, 0.7); }
.svc:hover .svc-link { color: var(--lime); }
.svc-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-50);
  margin-bottom: 24px;
}
.svc h3 { margin-bottom: 12px; }
.svc-sub { font-size: 14px; color: var(--ink-50); flex-grow: 1; }
.svc-link { font-size: 13px; font-weight: 700; margin-top: 22px; color: var(--ink); }

/* ------------ Process timeline ------------ */
.process-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  padding: 28px 22px;
  border: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: var(--radius-md);
}
.step-num {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--lime);
  margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; color: var(--warm); font-size: 18px; }
.step p { font-size: 13px; color: rgba(246, 243, 236, 0.6); }

/* ------------ Mini cases ------------ */
.cases-grid { grid-template-columns: repeat(3, 1fr); }
.case-card {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast);
}
.case-card:hover { transform: translateY(-3px); }
.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-50);
  padding: 22px 24px 0;
  text-transform: uppercase;
}
.case-card h3 { padding: 8px 24px 16px; }
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--soft);
  margin-top: auto;
}
.case-stat {
  background: var(--white);
  padding: 20px 22px 22px;
  min-width: 0;
}
.case-stat-num {
  font-size: 17px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.3;
  overflow-wrap: break-word;
  /* Reserve two lines so the labels below always start on the same line,
     even when one value wraps and another doesn't. */
  min-height: 2.6em;
}
.case-stat-num .up { color: var(--lime-dark); font-size: 14px; margin-left: 4px; }
.case-stat-label { font-size: 12px; color: var(--ink-50); margin-top: 7px; line-height: 1.4; overflow-wrap: break-word; }
/* Card cover image (portfolio) + short summary */
.case-cover {
  display: block; width: 100%; aspect-ratio: 3 / 1;
  object-fit: cover; background: var(--ink);
}
.case-summary {
  padding: 0 24px 18px; margin: 0;
  font-size: 15px; line-height: 1.55; color: var(--ink-50);
}
/* Case detail — metrics band (descriptive, not invented numbers) */
.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--soft); border: 1px solid var(--soft);
  border-radius: var(--radius-md); overflow: hidden; margin: 0 0 40px;
}
.case-metric { background: var(--white); padding: 24px 24px 26px; min-width: 0; }
.case-metric .v { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; overflow-wrap: break-word; min-height: 2.5em; }
.case-metric .l { font-size: 13px; color: var(--ink-50); margin-top: 8px; line-height: 1.45; overflow-wrap: break-word; }
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-md); display: block; border: 1px solid var(--soft); }
.article-body figcaption { font-size: 13px; color: var(--ink-50); margin-top: 10px; text-align: center; }

/* ------------ Principles ------------ */
.principles-grid { grid-template-columns: repeat(3, 1fr); }
.principle {
  padding: 32px;
  background: var(--warm);
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.principle:hover {
  background: var(--white);
  transform: translateY(-2px);
  border-color: var(--ink);
}
.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.principle h3 { margin-bottom: 10px; font-size: 20px; }
.principle p { font-size: 14px; color: var(--ink-50); line-height: 1.6; }

/* ------------ CTA strip ------------ */
.cta-strip {
  padding: 100px 0;
  background: var(--ink);
  color: var(--warm);
  text-align: center;
}
.cta-strip h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 28px; color: var(--warm); }
.cta-strip h2 .lime-dot { color: var(--lime); }
.cta-strip p { color: rgba(246, 243, 236, 0.7); max-width: 56ch; margin: 0 auto 32px; }

/* ------------ Footer ------------ */
.site-footer {
  background: #0D1117;
  color: rgba(246, 243, 236, 0.75);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
}
.footer-brand img { width: 200px; height: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 14px; color: rgba(246, 243, 236, 0.55); max-width: 32ch; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(246, 243, 236, 0.6); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(246, 243, 236, 0.4);
}
.footer-bottom a { color: rgba(246, 243, 236, 0.55); }
.footer-bottom a:hover { color: var(--warm); }

/* ------------ Tariff cards ------------ */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tariff {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex; flex-direction: column;
  position: relative;
}
.tariff.is-featured { background: var(--ink); color: var(--warm); border-color: var(--ink); }
.tariff.is-featured h3 { color: var(--warm); }
.tariff.is-featured .tariff-price { color: var(--lime); }
.tariff.is-featured .tariff-features li { color: rgba(246, 243, 236, 0.75); }
.tariff.is-featured .tariff-features li::before { color: var(--lime); }
.tariff-badge {
  position: absolute;
  top: -10px; left: 22px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}
.tariff h3 { margin-bottom: 6px; }
.tariff-for { font-size: 13px; color: var(--ink-50); margin-bottom: 22px; min-height: 36px; }
.tariff.is-featured .tariff-for { color: rgba(246, 243, 236, 0.6); }
.tariff-price { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 22px; color: var(--ink); }
.tariff-features { display: grid; gap: 10px; margin-bottom: 24px; flex-grow: 1; }
.tariff-features li {
  font-size: 13px;
  color: var(--ink-80);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.tariff-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--lime-dark);
  font-weight: 700;
}
.tariff .btn { width: 100%; }

/* ------------ Service detail cards (uslugi page) ------------ */
.svc-detail {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-bottom: 24px;
}
.svc-detail-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-50);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.svc-detail h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 16px; }
.svc-detail-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.45;
}
.svc-detail-desc { font-size: 15px; color: var(--ink-50); line-height: 1.6; }
.svc-detail-includes h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 18px;
}
.svc-detail-includes ul { display: grid; gap: 18px; }
.svc-detail-includes li {
  font-size: 14px;
  padding-left: 32px;
  position: relative;
  line-height: 1.5;
}
.svc-detail-includes li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--ink);
  background: var(--lime);
  border-radius: 6px;
}
.svc-detail-includes li strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.svc-detail-includes li .li-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-50);
  line-height: 1.5;
}

/* ------------ Plain-language explainers (uslugi subpages) ------------ */
.plain-grid { display: grid; gap: 14px; }
.plain-item {
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.plain-item:hover { border-color: var(--ink); }
.plain-item[open] { border-color: var(--ink); box-shadow: 0 10px 30px rgba(20, 24, 32, 0.06); }
.plain-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.plain-item summary::-webkit-details-marker { display: none; }
.plain-q { font-weight: 800; font-size: 16px; letter-spacing: -0.015em; color: var(--ink); }
.plain-tag { color: var(--ink-50); font-size: 14px; line-height: 1.45; }
.plain-mark {
  position: absolute;
  right: 20px; top: 18px;
  width: 26px; height: 26px;
  border: 1px solid var(--soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; line-height: 1; color: var(--ink);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.plain-item[open] .plain-mark { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); }
.plain-body { padding: 2px 24px 22px; }
.plain-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--ink-80); }
.plain-body p:last-child { margin-bottom: 0; }
.plain-label { display: inline-block; font-weight: 700; color: var(--ink); margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .plain-mark { transition: none; } }
@media (max-width: 600px) {
  .plain-item summary { padding: 18px 50px 18px 18px; }
  .plain-body { padding: 2px 18px 18px; }
}

/* ------------ Pricelist (uslugi page) ------------ */
.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--soft);
  border-left: 1px solid var(--soft);
}
.pricelist-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  background: var(--white);
  transition: background var(--t-fast);
}
.pricelist-item:hover { background: var(--warm); }
.pricelist-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pricelist-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ------------ FAQ ------------ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--soft);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700;
}
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform var(--t-mid);
  flex-shrink: 0;
}
.faq-item.is-open .faq-toggle { transform: rotate(45deg); background: var(--lime); color: var(--ink); }
.faq-a {
  font-size: 15px;
  color: var(--ink-50);
  line-height: 1.6;
  padding-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid), padding-top var(--t-mid);
}
.faq-item.is-open .faq-a { max-height: 320px; padding-top: 14px; }

/* ------------ Blog ------------ */
.blog-featured {
  background: var(--ink);
  color: var(--warm);
  border-radius: var(--radius-lg);
  padding: 56px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.blog-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.blog-featured h2 { font-size: clamp(28px, 3.4vw, 48px); margin-bottom: 18px; color: var(--warm); }
.blog-featured-meta { font-size: 13px; color: rgba(246, 243, 236, 0.6); margin-top: 18px; }
.blog-featured-vis {
  background: var(--ink-90);
  border-radius: var(--radius-md);
  border: 1px solid rgba(246, 243, 236, 0.1);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
}
.blog-vis-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(246, 243, 236, 0.5);
}
.blog-vis-number {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--lime);
  line-height: 0.9;
}
.blog-vis-bottom { font-size: 14px; color: rgba(246, 243, 236, 0.7); }

.blog-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: var(--warm); border-color: var(--ink); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: transform var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.post-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-50);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-card h3 { margin-bottom: 12px; line-height: 1.25; }
.post-excerpt { font-size: 14px; color: var(--ink-50); flex-grow: 1; line-height: 1.55; }
.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--soft);
  font-size: 12px;
  color: var(--ink-50);
}
.post-readtime::before { content: '· '; }

.newsletter {
  background: var(--lime);
  border-radius: var(--radius-lg);
  padding: 56px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 { color: var(--ink); font-size: clamp(28px, 3vw, 42px); margin-bottom: 12px; }
.newsletter p { color: var(--ink-80); font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: var(--ink-50); }

/* ------------ Contact form ------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.contact-form { display: grid; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15px;
  transition: border-color var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-consent {
  font-size: 12px;
  color: var(--ink-50);
  line-height: 1.5;
}
.form-consent a { text-decoration: underline; }
.form-success {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.4;
}

.contact-info {
  background: var(--ink);
  color: var(--warm);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info h3 { color: var(--warm); margin-bottom: 24px; font-size: 22px; }
.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.1);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.5);
  margin-bottom: 6px;
}
.contact-item-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--warm);
}
.contact-item a:hover { color: var(--lime); }

.contact-channels {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
.channel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(246, 243, 236, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--warm);
  transition: background var(--t-fast);
}
.channel-btn:hover { background: rgba(246, 243, 236, 0.15); }

/* ------------ Legal section ------------ */
.legal {
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.legal h2 { font-size: 28px; margin-bottom: 28px; }
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.legal-item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 4px;
}
.legal-item dd { font-size: 15px; color: var(--ink); }

/* ------------ Legal modal ------------ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px;
  background: rgba(20, 24, 32, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 760px; margin: auto 0;
  background: var(--white); border-radius: var(--radius-lg); padding: 48px;
  box-shadow: 0 40px 90px rgba(20, 24, 32, 0.35);
  transform: translateY(14px); transition: transform var(--t-mid);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 4px; }
.modal-head h2 { font-size: 26px; letter-spacing: -0.02em; }
.modal-updated { font-size: 13px; color: var(--ink-50); margin-bottom: 26px; }
.modal-close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--soft); background: var(--white); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.modal-close:hover { background: var(--warm); border-color: var(--ink); }
.modal-body h3 { font-size: 17px; margin: 22px 0 8px; }
.modal-body p { font-size: 14px; line-height: 1.65; color: var(--ink); margin-bottom: 10px; }
.modal-body ul { margin: 0 0 12px; padding-left: 20px; }
.modal-body li { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 6px; }
.modal-body a { color: var(--cyan); text-decoration: underline; }
body.modal-open { overflow: hidden; }

/* ------------ Stats strip ------------ */
.stats-strip {
  background: var(--lime);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  margin-top: 10px;
}

/* ------------ Responsive ------------ */
@media (max-width: 1024px) {
  .row-3, .row-4, .services-grid, .cases-grid, .posts-grid, .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs-grid[style] { grid-template-columns: repeat(2, 1fr) !important; max-width: none !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricelist-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .blog-featured, .newsletter, .contact-grid, .svc-detail, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 36px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding: 60px 0; }
  .nav { display: none; position: fixed; top: 78px; left: 0; right: 0; background: var(--ink); flex-direction: column; padding: 12px 20px; gap: 0; border-bottom: 1px solid rgba(246, 243, 236, 0.1); }
  .nav.is-open { display: flex; }
  .is-light .nav { background: var(--warm); border-bottom-color: var(--soft); }
  .nav a { padding: 14px 0; }
  .nav a.is-current::after { display: none; }
  .nav-item.has-dropdown { flex-direction: column; align-items: stretch; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 8px 18px; min-width: 0; gap: 0;
  }
  .nav-dropdown a { padding: 12px 0; font-size: 13px; opacity: 0.6; }
  .header-cta .btn { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 28px; height: 18px;
    cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--warm); border-radius: 1px; }
  .is-light .burger span { background: var(--ink); }
  .row-2, .services-grid, .cases-grid, .posts-grid, .principles-grid, .pain-grid, .process-grid, .tariffs-grid, .stats-grid, .legal-grid, .form-row, .pricelist-grid, .cat-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; }
  .tariffs-grid[style] { grid-template-columns: 1fr !important; max-width: none !important; }
  .blog-featured, .newsletter, .svc-detail { padding: 32px; gap: 28px; }
  .hero { padding: 60px 0 70px; }
  .newsletter-form { flex-direction: column; }
  .modal { padding: 32px 22px; }
  .modal-head h2 { font-size: 21px; }
}

/* Blog article body (rendered from admin editor) */
.article-body { font-size: 17px; line-height: 1.7; color: var(--ink); }
.article-body h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; margin: 40px 0 14px; }
.article-body h3 { font-size: 21px; margin: 30px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.article-body li { line-height: 1.6; }
.article-body a { color: var(--cyan); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); margin: 24px 0; }
.article-body strong { font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--lime); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--ink-80); font-style: italic; }
.article-body .article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--soft); }
.article-body .article-tags span {
  font-size: 13px; font-weight: 600; line-height: 1;
  color: var(--ink); background: var(--lime);
  padding: 8px 13px; border-radius: 999px;
}

/* ------------ Generated blog covers (no image → geometric motif) ------------ */
.post-card { overflow: hidden; }
.post-cover {
  height: 132px;
  margin: -28px -28px 22px;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.post-cover::before { content: ''; position: absolute; inset: 0; }
/* Загруженная обложка статьи (SVG/растровая) — заполняет баннер карточки */
.post-cover--img { background-size: cover; background-position: center; }
/* 0 — lime dot grid */
.post-cover--0::before {
  background-image: radial-gradient(var(--lime) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.5;
}
/* 1 — cyan diagonal lines */
.post-cover--1::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(25, 199, 212, 0.5) 12px 14px);
}
/* 2 — lime concentric rings */
.post-cover--2::before {
  background-image: radial-gradient(circle at 80% 26%, transparent 0 14px, rgba(201, 242, 77, 0.5) 14px 16px, transparent 16px 32px, rgba(201, 242, 77, 0.45) 32px 34px, transparent 34px 52px, rgba(201, 242, 77, 0.35) 52px 54px, transparent 54px);
}
/* 3 — corner wedge (cyan + lime) */
.post-cover--3::before {
  background: conic-gradient(from 200deg at 84% 14%, var(--cyan) 0 26deg, transparent 26deg 332deg, var(--lime) 332deg 360deg);
  opacity: 0.55;
}
/* 4 — lime cross-hatch */
.post-cover--4::before {
  background-image:
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(201, 242, 77, 0.38) 16px 18px),
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(201, 242, 77, 0.38) 16px 18px);
}
/* 5 — cyan vertical bars */
.post-cover--5::before {
  background-image: repeating-linear-gradient(90deg, transparent 0 15px, rgba(25, 199, 212, 0.4) 15px 19px);
}
/* 6 — coral diagonal slashes */
.post-cover--6::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 107, 87, 0.38) 10px 13px, transparent 13px 26px);
}
/* 7 — lime + cyan offset dot grid */
.post-cover--7::before {
  background-image:
    radial-gradient(rgba(201, 242, 77, 0.5) 1.6px, transparent 1.6px),
    radial-gradient(rgba(25, 199, 212, 0.45) 1.6px, transparent 1.6px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.post-cover--wide {
  height: 240px;
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
}

/* ------------ Language switch ------------ */
.lang-switch { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a { color: var(--warm); opacity: 0.55; padding: 2px 3px; transition: opacity var(--t-fast), color var(--t-fast); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.is-active { opacity: 1; color: var(--lime); }
.lang-switch span { color: var(--warm); opacity: 0.3; }
.is-light .lang-switch a, .is-light .lang-switch span { color: var(--ink); }
.is-light .lang-switch a.is-active { color: var(--lime-dark, #9BC72E); }
@media (max-width: 768px) { .lang-switch { margin-right: 8px; } }

/* ------------ Cost calculator ------------ */
.calc-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.calc-section { background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 18px; }
.calc-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-50); margin-bottom: 8px; }
.calc-opt { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--soft); cursor: pointer; }
.calc-section .calc-opt:first-of-type { border-top: none; }
.calc-opt input[type=radio], .calc-opt input[type=checkbox] { flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.calc-opt-main { flex: 1; display: flex; flex-direction: column; }
.calc-opt-label { font-weight: 600; font-size: 15px; }
.calc-opt-note { font-size: 13px; color: var(--ink-50); margin-top: 2px; }
.calc-opt-price { font-size: 13px; font-weight: 600; color: var(--ink-50); white-space: nowrap; }
.calc-opt--num { cursor: default; justify-content: space-between; }
.calc-opt-right { display: flex; align-items: center; gap: 10px; }
.calc-qty { width: 72px; padding: 8px 10px; border: 1px solid var(--soft); border-radius: 8px; font: inherit; }
.calc-result { position: sticky; top: 96px; }
.calc-result-inner { background: var(--ink); color: var(--warm); border-radius: var(--radius-md); padding: 28px; }
.calc-result-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; margin-bottom: 14px; }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(246, 243, 236, 0.12); }
.calc-result-row span { font-size: 14px; opacity: 0.7; }
.calc-result-row strong { font-size: 19px; font-weight: 800; color: var(--lime); text-align: right; }
.calc-note { font-size: 12px; line-height: 1.55; color: rgba(246, 243, 236, 0.5); margin-top: 16px; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ------------ Lead magnet ------------ */
.magnet { background: var(--ink); color: var(--warm); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; margin-top: 36px; position: relative; overflow: hidden; }
.magnet h3 { color: var(--warm); font-size: 26px; margin-bottom: 12px; }
.magnet > div { position: relative; z-index: 1; }
.magnet p { color: rgba(246, 243, 236, 0.7); margin-bottom: 16px; line-height: 1.6; }
.magnet ul { display: grid; gap: 8px; }
.magnet li { font-size: 14px; color: rgba(246, 243, 236, 0.8); padding-left: 22px; position: relative; }
.magnet li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-weight: 800; }
.magnet-form { display: flex; flex-direction: column; gap: 10px; }
.magnet-form input { padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(246, 243, 236, 0.2); background: rgba(246, 243, 236, 0.06); color: var(--warm); font: inherit; }
.magnet-form input::placeholder { color: rgba(246, 243, 236, 0.45); }
.magnet-msg { font-size: 13px; margin-top: 2px; min-height: 18px; }
.magnet-msg.ok { color: var(--lime); }
.magnet-msg.err { color: var(--coral); }
@media (max-width: 760px) { .magnet { grid-template-columns: 1fr; padding: 28px; } }

/* ------------ Tech / stack band ------------ */
.tech-band { background: var(--ink); color: var(--warm); padding: 60px 0; }
.tech-band .kicker { color: var(--warm); opacity: 0.6; }
.tech-band h2 { color: var(--warm); margin-bottom: 10px; }
.tech-band p { color: rgba(246, 243, 236, 0.6); font-size: 15px; max-width: 640px; margin-bottom: 30px; line-height: 1.6; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip {
  font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  color: var(--warm);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.tech-chip:hover { border-color: var(--lime); color: var(--lime); }
