/* =========================================================
   ВЛАСТА-КОНСАЛТИНГ — Design System
   Premium corporate styling inspired by Chang Tsi & KPMG
   ========================================================= */

/* ---------- Fonts (brandbook typeface: Montserrat) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* original brand navy (#253b5c) family */
  --navy-900: #1b2c49;
  --navy-800: #253b5c;
  --navy-700: #2f4a72;
  --navy-600: #3a5a88;
  --navy-500: #4a6fa5;

  /* brandbook accent: Pantone 877 C — metallic silver (#8C9091) */
  --gold: #8C9091;          /* primary silver accent */
  --gold-light: #C7CBCF;    /* light platinum — for dark backgrounds */
  --gold-dark: #6C7177;     /* deep silver — readable accent text on white */
  --silver-grad: linear-gradient(135deg, #b7bcc0 0%, #d6dadd 100%);

  --ink: #253b5c;
  --slate: #5f6b7e;
  --slate-light: #9c9aaf;
  --line: #e7e8ee;
  --line-soft: #f1f2f6;

  --bg: #FFFFFF;
  --bg-alt: #f6f7fa;
  --cream: #F4F5F6;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: 'Montserrat', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-light: 'Montserrat', 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(37, 59, 92, .07), 0 1px 2px rgba(37, 59, 92, .05);
  --shadow-md: 0 14px 40px -14px rgba(37, 59, 92, .28);
  --shadow-lg: 0 26px 60px -18px rgba(37, 59, 92, .32);

  --ease: cubic-bezier(.16, .84, .44, 1);
  --tr: .45s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.16; letter-spacing: -.005em; color: var(--navy-800); overflow-wrap: break-word; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--cream { background: var(--cream); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark);
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.section--navy .kicker,
.hero .kicker,
.page-hero .kicker,
.cta .kicker { color: var(--gold-light); }
.hero .kicker::before,
.page-hero .kicker::before,
.cta .kicker::before { background: var(--gold-light); }
.center .kicker::before { display: none; }

/* ---------- Headings scale ---------- */
.h-display { font-size: clamp(40px, 6.2vw, 78px); }
.h1 { font-size: clamp(32px, 4.6vw, 56px); }
.h2 { font-size: clamp(27px, 3.4vw, 42px); }
.h3 { font-size: clamp(21px, 2vw, 27px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--slate); line-height: 1.6; }
.section--navy .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  padding: 15px 30px; border-radius: 8px;
  transition: var(--tr); position: relative;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--silver-grad); color: var(--navy-900); border: 1px solid rgba(108,113,119,.4); box-shadow: 0 6px 18px -8px rgba(37,59,92,.5); }
.btn--primary:hover { background: linear-gradient(135deg, #c2c7ca 0%, #e2e5e7 100%); transform: translateY(-1px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--outline { border: 1px solid var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.66);
  font-size: 13px; letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 24px; }
.topbar a:hover { color: var(--gold-light); }
.topbar .tb-left { display: flex; gap: 26px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .7; }
.lang { display: flex; gap: 4px; align-items: center; }
.lang a { padding: 2px 6px; border-radius: 2px; font-weight: 600; }
.lang a.is-active { color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: auto; height: 50px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy-800); letter-spacing: .01em; }
.brand__sub { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--navy-900); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 18px; }

.burger { display: none; width: 30px; height: 22px; position: relative; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--navy-900); transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 10px; } .burger span:nth-child(3) { top: 20px; }
.burger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
  padding-block: clamp(90px, 14vw, 180px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content:""; position:absolute; inset:0; background:
  radial-gradient(120% 90% at 82% 8%, rgba(140,144,145,.14), transparent 52%),
  linear-gradient(180deg, rgba(27,44,73,.62), rgba(27,44,73,.92)); }
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 860px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__lead { color: rgba(255,255,255,.74); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index:1;
  color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll .line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.5), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 30px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); color: var(--gold-light); font-weight: 600; line-height: 1; }
.stat__num .sup { font-size: .5em; vertical-align: super; font-weight: 600; margin-left: 1px; }
.stat__num .unit { font-size: .4em; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: .01em; }
.stat__label { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.62); letter-spacing: .02em; }

/* ---------- Section header ---------- */
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; }
.sec-head .h2 { margin-top: 16px; }
.sec-head .lead { margin-top: 18px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media { position: relative; }
.figure {
  position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure svg { width: 100%; height: 100%; }
.figure__badge {
  position: absolute; right: -22px; bottom: 34px; background: var(--gold); color: var(--navy-900);
  padding: 22px 26px; box-shadow: var(--shadow-md); max-width: 220px;
}
.figure__badge b { font-family: var(--font-display); font-size: 34px; display: block; line-height: 1; }
.figure__badge span { font-size: 13px; font-weight: 600; }
.prose p + p { margin-top: 18px; }

/* value list */
.vlist { display: grid; gap: 14px; margin-top: 28px; }
.vlist li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.vlist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(140,144,145,.14);
  display: grid; place-items: center; margin-top: 2px; }
.vlist .tick svg { width: 13px; height: 13px; stroke: var(--gold-dark); }

/* ---------- Services grid ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  padding: 42px 38px; border-radius: 12px; overflow: hidden;
  transition: var(--tr); display: flex; flex-direction: column;
}
.card::before { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--gold); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { width: 100%; }
.card__num { font-family: var(--font-display); font-size: 15px; color: var(--gold-dark); letter-spacing: .1em; }
.card__icon { width: 56px; height: 56px; margin-bottom: 26px; color: var(--navy-700); }
.card__icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.card h3 { font-size: 23px; }
.card p { margin-top: 14px; color: var(--slate); font-size: 16px; }
.card__more { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--navy-700); letter-spacing: .02em; }
.card__more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }
.card:hover .card__more { color: var(--gold-dark); }

/* ---------- Geography / global ---------- */
.geo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.geo__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin-top: 30px; }
.geo__list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-size: 16px; }
.geo__list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.geo__map svg { width: 100%; height: auto; }

/* ---------- Case rows ---------- */
.cases-list { border-top: 1px solid var(--line); }
.case-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 30px; align-items: center;
  padding: 32px 8px; border-bottom: 1px solid var(--line); transition: .35s var(--ease); position: relative;
}
.case-row:hover { background: var(--bg-alt); padding-inline: 26px; }
.case-row__no { font-family: var(--font-display); font-size: 22px; color: var(--gold-dark); }
.case-row__body h3 { font-size: 21px; }
.case-row__body p { color: var(--slate); margin-top: 8px; font-size: 15.5px; max-width: 760px; }
.case-row__tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-light); white-space: nowrap; }

/* card-style cases on cases page */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: var(--tr); display:flex; flex-direction:column; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card__top { height: 140px; position: relative; overflow: hidden; background: var(--navy-800); }
.case-card__top svg { position:absolute; inset:0; width:100%; height:100%; }
.case-card__no { position: absolute; left: 24px; bottom: 16px; font-family: var(--font-display); font-size: 30px; color: var(--gold-light); z-index:1; }
.case-card__body { padding: 28px 26px 30px; flex:1; display:flex; flex-direction:column; }
.case-card__tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.case-card__body h3 { font-size: 20px; margin-top: 12px; }
.case-card__body p { color: var(--slate); font-size: 15px; margin-top: 12px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: var(--tr); display:flex; flex-direction:column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-card__img { height: 190px; overflow: hidden; background: var(--bg-alt); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold-dark); text-transform: uppercase; }
.news-card h3 { font-size: 18.5px; margin-top: 14px; line-height: 1.32; }
.news-card p { color: var(--slate); font-size: 15px; margin-top: 14px; }
.news-card__more { margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 600; color: var(--navy-700); display:inline-flex; gap:8px; align-items:center; }
.news-card__more svg { width: 15px; height: 15px; }

/* news list (full page) */
.news-list { display:flex; flex-direction:column; }
.news-item { display:grid; grid-template-columns: 160px 1fr; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); transition:.3s var(--ease); }
.news-item:hover { background: var(--bg-alt); }
.news-item__date { font-size: 14px; font-weight: 600; color: var(--gold-dark); padding-top: 4px; }
.news-item__date span { display:block; font-size: 12px; color: var(--slate-light); font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.news-item h3 { font-size: 21px; line-height: 1.32; }
.news-item p { color: var(--slate); margin-top: 10px; font-size: 16px; }

/* ---------- Values cards (about) ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: #fff; padding: 40px 32px; transition: .35s var(--ease); }
.value:hover { background: var(--navy-900); color: #fff; }
.value__no { font-family: var(--font-display); font-size: 14px; color: var(--gold-dark); letter-spacing: .1em; }
.value:hover .value__no { color: var(--gold-light); }
.value h3 { font-size: 20px; margin-top: 18px; transition: color .3s; }
.value:hover h3 { color: #fff; }
.value p { color: var(--slate); font-size: 15px; margin-top: 12px; }
.value:hover p { color: rgba(255,255,255,.72); }

/* ---------- Process / approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; }
.step__no { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-dark);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 21px; margin-bottom: 24px; background:#fff; }
.step::before { content:""; position:absolute; left: 54px; top: 27px; right: 28px; height:1px; background: var(--line); }
.step:last-child::before { display:none; }
.section--navy .step__no { background: var(--navy-900); }
.section--navy .step::before { background: rgba(255,255,255,.14); }
.step h3 { font-size: 19px; }
.section--navy .step h3 { color:#fff; }
.step p { color: var(--slate); font-size: 15px; margin-top: 10px; }
.section--navy .step p { color: rgba(255,255,255,.66); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: 4px; padding: clamp(48px, 7vw, 84px);
  position: relative; overflow: hidden; text-align: center;
}
.cta__glow { position:absolute; inset:0; background: radial-gradient(60% 120% at 50% 0%, rgba(140,144,145,.18), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.74); max-width: 560px; margin: 18px auto 34px; }
.cta .btn--ghost { border-color: rgba(255,255,255,.4); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; padding-block: clamp(70px, 9vw, 120px); }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(90% 120% at 90% 0%, rgba(140,144,145,.14), transparent 55%); }
.page-hero .wrap { position: relative; z-index:1; }
.page-hero h1 { color:#fff; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.72); max-width: 640px; margin-top: 20px; }
.crumbs { display:flex; gap:10px; align-items:center; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 24px; letter-spacing:.02em; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { color: var(--gold-light); }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block + .svc-block { margin-top: clamp(60px, 8vw, 110px); }
.svc-block__media .figure { aspect-ratio: 5/4; }
.svc-block__num { font-family: var(--font-display); font-size: 16px; color: var(--gold-dark); letter-spacing:.1em; }
.svc-block h2 { margin-top: 14px; }
.svc-block .sub { display:grid; gap:12px; margin-top: 26px; }
.svc-block .sub li { display:flex; gap:14px; align-items:flex-start; font-size:16px; }
.svc-block .sub .tick { flex:none; width:22px; height:22px; border-radius:4px; background: var(--navy-900); display:grid; place-items:center; margin-top:3px; }
.svc-block .sub .tick svg { width:12px; height:12px; stroke:var(--gold-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,70px); }
.contact-info { display: grid; gap: 26px; }
.ci-item { display:flex; gap:18px; align-items:flex-start; }
.ci-item__ico { flex:none; width:48px; height:48px; border-radius:3px; background: var(--bg-alt); display:grid; place-items:center; color: var(--navy-700); }
.ci-item__ico svg { width:21px; height:21px; }
.ci-item h4 { font-family: var(--font-sans); font-weight:600; font-size:14px; letter-spacing:.08em; text-transform:uppercase; color: var(--slate); }
.ci-item p, .ci-item a { font-size: 18px; color: var(--ink); margin-top:4px; display:block; }
.ci-item a:hover { color: var(--gold-dark); }

.form { background:#fff; border:1px solid var(--line); border-radius:4px; padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display:block; font-size: 13px; font-weight:600; letter-spacing:.04em; color: var(--slate); margin-bottom: 8px; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width:100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border:1px solid var(--line); border-radius:2px; background:#fff; transition:.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(140,144,145,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__note { font-size: 13px; color: var(--slate-light); margin-top: 8px; }
.form__success { display:none; padding:16px; background: rgba(140,144,145,.12); border:1px solid var(--gold); border-radius:2px; color: var(--navy-900); font-size:15px; margin-bottom:20px; }
.form__success.show { display:block; }

.map-embed { margin-top: 0; border-radius:4px; overflow:hidden; border:1px solid var(--line); height: 380px; background: var(--bg-alt); }
.map-embed iframe { width:100%; height:100%; border:0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding-top: clamp(60px,8vw,90px); }
.footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color:#fff; }
.footer h4 { font-family: var(--font-sans); font-weight:600; font-size: 13px; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.5); margin-bottom: 22px; }
.footer__links { display:grid; gap: 13px; }
.footer__links a { font-size: 15px; color: rgba(255,255,255,.78); transition: color .25s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__about p { font-size: 15px; line-height:1.7; margin-top: 20px; max-width: 320px; }
.footer__contact p { font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 12px; display:flex; gap:10px; align-items:flex-start; }
.footer__contact svg { width:16px; height:16px; flex:none; margin-top:4px; opacity:.6; }
.footer__bottom { display:flex; justify-content:space-between; align-items:center; padding-block: 28px; font-size: 13.5px; gap:20px; flex-wrap:wrap; }
.footer__bottom a:hover { color: var(--gold-light); }
.footer__social { display:flex; gap: 12px; }
.footer__social a { width:38px; height:38px; border:1px solid rgba(255,255,255,.16); border-radius:3px; display:grid; place-items:center; transition:.3s; }
.footer__social a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-900); }
.footer__social svg { width:17px; height:17px; }

/* ---------- Service directions (pillars + cards) ---------- */
.pillar + .pillar { margin-top: clamp(50px, 6vw, 86px); }
.pillar__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gold-dark); letter-spacing: .12em; white-space: nowrap; }
.pillar__title { font-size: clamp(22px, 2.4vw, 31px); }
.pillar__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 34px; transition: var(--tr); display: flex; flex-direction: column; scroll-margin-top: 110px; }
.dir-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.dir-card__head { display: flex; gap: 18px; align-items: flex-start; }
.dir-card__icon { flex: none; width: 54px; height: 54px; border-radius: 13px; background: var(--bg-alt); display: grid; place-items: center; color: var(--navy-700); }
.dir-card__icon svg { width: 27px; height: 27px; stroke-width: 1.4; }
.dir-card__num { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--gold-dark); letter-spacing: .12em; }
.dir-card h3 { font-size: 21px; margin-top: 5px; line-height: 1.2; }
.dir-card__intro { color: var(--slate); font-size: 15.5px; margin-top: 20px; }
.dir-card__list { margin-top: 22px; display: grid; gap: 12px; }
.dir-card__list li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.dir-card__list li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.dir-card__note { margin-top: auto; padding-top: 22px; font-size: 13.5px; color: var(--slate-light); font-style: italic; }

/* pillar quick-nav chips */
.svc-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.svc-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; font-weight: 500; color: var(--navy-800); background: #fff; transition: .3s var(--ease); }
.svc-chip:hover { border-color: var(--navy-800); background: var(--navy-900); color: #fff; }
.svc-chip b { font-family: var(--font-display); color: var(--gold-dark); font-size: 13px; }
.svc-chip:hover b { color: var(--gold-light); }

/* directions inside homepage pillar card */
.card__dirs { margin-top: 18px; display: grid; gap: 9px; }
.card__dirs li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink); }
.card__dirs li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Results infographic (rings + big numbers) ---------- */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.result { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 36px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: var(--tr); }
.result:hover { background: rgba(255,255,255,.07); transform: translateY(-5px); }
.ring { position: relative; width: 132px; height: 132px; margin-bottom: 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 8; }
.ring__fill { fill: none; stroke: var(--gold-light); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease); }
.reveal.in .ring__fill { stroke-dashoffset: var(--off, 0); }
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; }
.ring__val small { font-size: .55em; font-weight: 600; }
.result__big { font-family: var(--font-display); font-weight: 700; font-size: 54px; line-height: 1; color: var(--gold-light); margin-bottom: 22px; height: 132px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.result__big small { font-size: .42em; color: rgba(255,255,255,.6); }
.result__label { font-size: 15px; color: rgba(255,255,255,.74); line-height: 1.5; }

/* ---------- Timeline (история компании) ---------- */
.timeline { position: relative; margin-top: 20px; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.tl-item { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 40px; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy-800); text-align: right; padding-top: 22px; }
.tl-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; transition: var(--tr); }
.tl-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.tl-card::before { content: ""; position: absolute; left: -41px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.tl-card h3 { font-size: 18px; }
.tl-card p { color: var(--slate); font-size: 15px; margin-top: 8px; line-height: 1.55; }

/* ---------- Single-window (служба одного окна) ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sw-item { background: #fff; padding: 34px 30px; transition: .35s var(--ease); }
.sw-item:hover { background: var(--navy-900); }
.sw-item__ico { width: 50px; height: 50px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; color: var(--navy-700); margin-bottom: 20px; transition: .35s; }
.sw-item:hover .sw-item__ico { background: rgba(255,255,255,.1); color: var(--gold-light); }
.sw-item__ico svg { width: 24px; height: 24px; stroke-width: 1.5; }
.sw-item h3 { font-size: 17px; transition: color .35s; }
.sw-item:hover h3 { color: #fff; }
.sw-item p { font-size: 14px; color: var(--slate); margin-top: 9px; line-height: 1.5; transition: color .35s; }
.sw-item:hover p { color: rgba(255,255,255,.7); }

/* ---------- Algorithm (vertical numbered flow) ---------- */
.algo { display: grid; gap: 0; }
.algo-step { display: grid; grid-template-columns: 64px 1fr; gap: 26px; position: relative; padding-bottom: 30px; }
.algo-step:last-child { padding-bottom: 0; }
.algo-step::before { content: ""; position: absolute; left: 31px; top: 60px; bottom: -2px; width: 2px; background: var(--line); }
.algo-step:last-child::before { display: none; }
.algo-step__no { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); color: var(--navy-800); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; background: #fff; z-index: 1; }
.algo-step__body { padding-top: 14px; }
.algo-step__body h3 { font-size: 18px; }
.algo-step__body p { color: var(--slate); font-size: 15px; margin-top: 7px; line-height: 1.55; }
.section--alt .algo-step__no { background: var(--bg-alt); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: var(--tr); }
.ind:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.ind__ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-alt); display: grid; place-items: center; color: var(--navy-700); }
.ind__ico svg { width: 22px; height: 22px; stroke-width: 1.5; }
.ind h3 { font-size: 16px; font-weight: 600; font-family: var(--font-sans); color: var(--ink); }

@media (max-width: 1080px) {
  .results { grid-template-columns: repeat(2, 1fr); }
  .sw-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .results, .sw-grid, .ind-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-year { text-align: left; padding-top: 0; padding-left: 28px; }
  .tl-card::before { left: -28px; top: 8px; }
  .tl-card { margin-left: 28px; }
}

/* ---------- Case study page ---------- */
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 44px; }
.case-fact { background: #fff; padding: 24px 26px; }
.case-fact span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-light); font-weight: 600; }
.case-fact strong { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy-800); line-height: 1.25; }
@media (max-width: 700px) { .case-facts { grid-template-columns: 1fr; } }

/* rich case hero */
.case-hero { position: relative; overflow: hidden; }
.case-hero__num { position: absolute; right: 1%; bottom: -14%; font-family: var(--font-display); font-weight: 700; font-size: clamp(150px, 24vw, 340px); line-height: 1; color: rgba(255,255,255,.05); z-index: 0; pointer-events: none; user-select: none; }
.case-hero .wrap { position: relative; z-index: 1; }
.case-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.case-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 30px; color: var(--gold-light); }

/* KPI band */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 54px; }
.kpi { padding: 30px 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-top: 3px solid var(--gold); transition: var(--tr); }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.kpi__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); color: var(--navy-800); line-height: 1.08; }
.kpi__label { margin-top: 12px; font-size: 14.5px; color: var(--slate); line-height: 1.45; }

/* case body prose */
.case-body h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 50px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.case-body h2:first-child { margin-top: 0; }
.case-body h2 .step-badge { flex: none; font-family: var(--font-display); font-size: 15px; color: var(--gold-dark); border: 1.5px solid var(--gold); border-radius: 8px; padding: 3px 11px; }
.case-body p { color: var(--slate); font-size: 16.5px; line-height: 1.78; margin-bottom: 16px; }
.case-body ul { display: grid; gap: 13px; margin: 6px 0 16px; }
.case-body ul li { position: relative; padding-left: 28px; color: var(--ink); line-height: 1.6; font-size: 16px; }
.case-body ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.pullquote { border-left: 3px solid var(--gold); padding: 8px 0 8px 32px; margin: 44px 0; }
.pullquote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.42; color: var(--navy-800); margin: 0; }

@media (max-width: 820px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / long-form text ---------- */
.legal { max-width: 820px; }
.legal__note { background: var(--bg-alt); border-left: 3px solid var(--gold); border-radius: 4px; padding: 18px 22px; font-size: 14.5px; color: var(--slate); margin-bottom: 40px; }
.legal h2 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 44px; margin-bottom: 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .legal__no { font-family: var(--font-display); color: var(--gold-dark); margin-right: 10px; }
.legal p { color: var(--slate); margin-bottom: 14px; line-height: 1.7; }
.legal ul { margin: 0 0 16px; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 24px; color: var(--slate); line-height: 1.6; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.legal a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--gold-dark); }
.legal__updated { font-size: 14px; color: var(--slate-light); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Service detail page (sub-services) ---------- */
.svc-intro { max-width: 820px; }
.svc-intro p + p { margin-top: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat { display: flex; gap: 18px; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: var(--tr); }
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.feat__ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-alt); display: grid; place-items: center; color: var(--navy-700); }
.feat__ico svg { width: 21px; height: 21px; stroke-width: 1.5; }
.feat h3 { font-size: 17px; line-height: 1.3; }
.feat p { font-size: 14.5px; color: var(--slate); margin-top: 8px; line-height: 1.55; }
.svc-foot-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-foot-nav .svc-chip.is-current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.svc-foot-nav .svc-chip.is-current b { color: var(--gold-light); }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Mobile nav panel ---------- */
.mnav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); background: var(--navy-900); color:#fff;
  z-index: 200; transform: translateX(100%); transition: transform .42s var(--ease); padding: 30px 32px;
  display:flex; flex-direction:column; box-shadow: var(--shadow-lg); }
.mnav.is-open { transform: none; }
.mnav__head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 36px; }
.mnav__close { color:#fff; font-size: 30px; line-height:1; }
.mnav a.mnav__link { font-family: var(--font-display); font-size: 26px; padding: 14px 0; border-bottom:1px solid rgba(255,255,255,.08); display:block; color:#fff; transition:.25s; }
.mnav a.mnav__link:hover { color: var(--gold-light); padding-left: 8px; }
.mnav__foot { margin-top: auto; font-size: 14px; color: rgba(255,255,255,.6); }
.mnav__foot a { color:#fff; }
.overlay { position: fixed; inset:0; background: rgba(10,26,47,.55); backdrop-filter: blur(2px); z-index:150; opacity:0; visibility:hidden; transition:.35s; }
.overlay.is-open { opacity:1; visibility:visible; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right:none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom:1px solid rgba(255,255,255,.1); }
  .values { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 40px 0; }
  .step::before { display:none; }
}
@media (max-width: 920px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .hero__scroll { display: none; }
  .split, .geo, .svc-block, .contact-grid, .pillar__grid { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
  .cards, .case-cards, .news-grid { grid-template-columns: repeat(2,1fr); }
  .figure__badge { right: 20px; }
  .topbar .tb-left { gap: 16px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .case-cards, .news-grid, .geo__list { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 40px 1fr; }
  .case-row__tag { display:none; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .form .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .topbar .tb-left .tb-item:nth-child(2) { display:none; }
  .values { grid-template-columns: 1fr; }
}

/* =========================================================
   Interactive layer — smooth scroll · heading reveal · magnetic
   ========================================================= */

/* Lenis smooth scroll (recommended base styles) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--silver-grad);
  box-shadow: 0 0 12px rgba(199, 203, 207, .5);
  pointer-events: none;
}

/* Masked word reveal for headings */
.reveal-text .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.reveal-text .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.reveal-text.in .w > span { transform: translateY(0); }

/* Magnetic buttons */
.magnetic { transition: transform .35s var(--ease); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal-text .w > span { transform: none !important; transition: none !important; }
  .magnetic { transition: none !important; }
}

/* =========================================================
   Photographic cards & clip reveal
   ========================================================= */

/* Photo service cards */
.pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pcard {
  position: relative; overflow: hidden; border-radius: 16px;
  min-height: 360px; display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow-md); transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pcard__img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pcard__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) contrast(1.02) brightness(.92); /* unified navy grade */
  transform: scale(1.03); transition: transform 1s var(--ease);
}
.pcard:hover .pcard__img img { transform: scale(1.1); }
.pcard__img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,44,73,.10) 0%, rgba(27,44,73,.50) 45%, rgba(10,22,40,.93) 100%),
    linear-gradient(120deg, rgba(37,59,92,.35), transparent 60%);
}
.pcard__body { position: relative; z-index: 1; padding: 32px; width: 100%; }
.pcard__num { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.pcard h3 { color: #fff; font-size: clamp(21px, 2vw, 27px); margin-top: 10px; }
.pcard__slogan { color: rgba(255,255,255,.78); margin-top: 10px; font-size: 15px; line-height: 1.5; max-width: 46ch; }
.pcard__more { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #fff; }
.pcard__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pcard:hover .pcard__more svg { transform: translateX(5px); }

/* Photographic section background */
.photo-cta { position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: clamp(40px, 6vw, 80px); }
.photo-cta__img { position: absolute; inset: 0; z-index: 0; }
.photo-cta__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.8); }
.photo-cta__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,22,40,.92), rgba(27,44,73,.7) 60%, rgba(27,44,73,.5)); }
.photo-cta__body { position: relative; z-index: 1; max-width: 620px; }
.photo-cta h2 { color: #fff; }

/* Floating scroll-to-top button (glassmorphism) */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(27, 44, 73, .28);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff; cursor: pointer; z-index: 190; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  box-shadow: 0 6px 22px rgba(10, 22, 40, .25);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(27, 44, 73, .5); box-shadow: 0 10px 30px rgba(10, 22, 40, .4); transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s linear; transform: none; }
  .to-top:hover { transform: none; }
}

/* Clip reveal on scroll — only hides when JS is present (progressive enhancement) */
.has-js .clip-reveal { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path 1.05s var(--ease), transform 1.05s var(--ease); }
.has-js .clip-reveal.in { clip-path: inset(0 0 0 0); transform: none; }

@media (max-width: 860px) { .pcards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .clip-reveal { clip-path: none !important; transform: none !important; transition: none !important; }
  .pcard__img img, .pcard, .pcard__more svg { transition: none !important; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: var(--ink); border: 1px solid var(--line); background: transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle { color: #e4e9f1; border-color: rgba(255, 255, 255, .22); }
[data-theme="dark"] .theme-toggle:hover { color: var(--gold-light); border-color: var(--gold-light); }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* =========================================================
   Dark theme
   ========================================================= */
:root { color-scheme: light; }
html { transition: background-color .4s var(--ease); }

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7ecf4;
  --slate: #a6b1c4;
  --slate-light: #7e8aa0;
  --line: rgba(255, 255, 255, .11);
  --line-soft: rgba(255, 255, 255, .06);
  --bg: #0e1a2e;
  --bg-alt: #15243f;
  --cream: #15243f;
  --gold-dark: #aeb6bd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-md: 0 14px 40px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 26px 60px -18px rgba(0, 0, 0, .7);
}

[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #eef2f8; }

/* elements that hardcoded the navy ink colour for text */
[data-theme="dark"] .brand__name,
[data-theme="dark"] .tl-year,
[data-theme="dark"] .case-fact strong,
[data-theme="dark"] .kpi__num,
[data-theme="dark"] .pullquote p,
[data-theme="dark"] .svc-chip,
[data-theme="dark"] .algo-step__no { color: #eef2f8; }

/* surfaces that were hardcoded white */
[data-theme="dark"] .card,
[data-theme="dark"] .case-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .value,
[data-theme="dark"] .form,
[data-theme="dark"] .dir-card,
[data-theme="dark"] .svc-chip,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .sw-item,
[data-theme="dark"] .ind,
[data-theme="dark"] .case-fact,
[data-theme="dark"] .kpi,
[data-theme="dark"] .feat,
[data-theme="dark"] .step__no,
[data-theme="dark"] .algo-step__no { background: var(--bg-alt); border-color: var(--line); }

[data-theme="dark"] .tl-card::before { border-color: var(--bg-alt); }

/* icon tiles: lift off the card + light glyph */
[data-theme="dark"] .card__icon,
[data-theme="dark"] .card__more,
[data-theme="dark"] .news-card__more { color: var(--gold-light); }
[data-theme="dark"] .dir-card__icon,
[data-theme="dark"] .ci-item__ico,
[data-theme="dark"] .sw-item__ico,
[data-theme="dark"] .ind__ico,
[data-theme="dark"] .feat__ico { background: rgba(255, 255, 255, .06); color: var(--gold-light); }

/* header */
[data-theme="dark"] .header { background: rgba(14, 26, 46, .85); border-bottom-color: var(--line); }
[data-theme="dark"] .nav__links a:hover,
[data-theme="dark"] .nav__links a.is-active { color: #fff; }
[data-theme="dark"] .burger span { background: #fff; }

/* forms */
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select { background: var(--bg); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: var(--slate-light); }
[data-theme="dark"] .form__success { color: var(--gold-light); }

/* misc links / accents */
[data-theme="dark"] .legal a { color: var(--gold-light); }
[data-theme="dark"] .case-card__top { background: #0b1526; }

/* =========================================================
   Task 1 — 3D interactive globe
   ========================================================= */
.geo-globe {
  position: relative; width: 100%; height: min(62vw, 470px);
  cursor: grab; touch-action: pan-y;
}
.geo-globe canvas { display: block; width: 100% !important; height: 100% !important; }
.geo-globe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 55%, rgba(10,22,40,.35) 100%);
}

/* =========================================================
   Task 2 — Scroll "flashlight" vignette
   ========================================================= */
.scroll-vignette {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: .55; transition: opacity .5s var(--ease);
  background: linear-gradient(to bottom,
    rgba(6, 13, 26, .78) 0%,
    rgba(6, 13, 26, .28) 12%,
    transparent 26%, transparent 74%,
    rgba(6, 13, 26, .28) 88%,
    rgba(6, 13, 26, .78) 100%);
  -webkit-mask-image: none;
}
.scroll-vignette.is-active { opacity: 1; }
[data-theme="dark"] .scroll-vignette {
  background: linear-gradient(to bottom,
    rgba(2, 7, 16, .9) 0%,
    rgba(2, 7, 16, .35) 13%,
    transparent 27%, transparent 73%,
    rgba(2, 7, 16, .35) 87%,
    rgba(2, 7, 16, .9) 100%);
}
@media (prefers-reduced-motion: reduce) { .scroll-vignette { transition: none; } }

/* =========================================================
   Task 3 — Clients / trusted brands
   ========================================================= */
.clients-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 46px;
}
.client {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 100px; padding: 20px 22px; border-radius: 14px;
  border: 1px solid rgba(15, 30, 50, .10); background: #ffffff;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: .01em; color: var(--navy-700);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.client span { display: inline-block; opacity: .82; transition: opacity .35s var(--ease); }
.client img {
  max-height: 46px; max-width: 100%; width: auto; object-fit: contain;
  display: block; pointer-events: none;
  filter: grayscale(1); opacity: .6;   /* monochrome by default */
  transition: filter .45s var(--ease), opacity .45s var(--ease);
}
.client:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(15, 30, 50, .16);
}
.client:hover span { opacity: 1; }
.client:hover img { filter: none; opacity: 1; }   /* reveal full brand colour */
[data-theme="dark"] .client { background: #f4f6fa; border-color: rgba(255, 255, 255, .08); }
.clients-note {
  margin-top: 28px; text-align: center; font-size: 15.5px; color: var(--slate);
}
.clients-note b { color: var(--gold-dark); font-weight: 700; }
@media (max-width: 920px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } .client { min-height: 82px; padding: 16px 12px; } .client img { max-height: 40px; } }
@media (max-width: 380px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Task 4 — Accent, animated icons
   ========================================================= */
.card__icon, .dir-card__icon, .ci-item__ico, .sw-item__ico, .ind__ico, .feat__ico {
  color: var(--navy-700);
  transition: transform .45s var(--ease), color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.dir-card__icon, .ci-item__ico, .sw-item__ico, .ind__ico, .feat__ico {
  background: linear-gradient(150deg, rgba(140,144,145,.16), rgba(140,144,145,.05));
}
.card:hover .card__icon,
.dir-card:hover .dir-card__icon,
.ci-item:hover .ci-item__ico,
.sw-item:hover .sw-item__ico,
.ind:hover .ind__ico,
.feat:hover .feat__ico {
  color: var(--gold-dark);
  animation: icon-wobble .6s var(--ease);
}
.dir-card:hover .dir-card__icon,
.ind:hover .ind__ico,
.feat:hover .feat__ico {
  background: linear-gradient(150deg, rgba(140,144,145,.32), rgba(140,144,145,.1));
  box-shadow: 0 8px 20px -10px rgba(37,59,92,.5);
}
@keyframes icon-wobble {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(6deg) scale(1.08); }
  100% { transform: rotate(0) scale(1); }
}
[data-theme="dark"] .card:hover .card__icon,
[data-theme="dark"] .dir-card:hover .dir-card__icon,
[data-theme="dark"] .ci-item:hover .ci-item__ico,
[data-theme="dark"] .sw-item:hover .sw-item__ico,
[data-theme="dark"] .ind:hover .ind__ico,
[data-theme="dark"] .feat:hover .feat__ico { color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) {
  .card:hover .card__icon, .dir-card:hover .dir-card__icon, .ci-item:hover .ci-item__ico,
  .sw-item:hover .sw-item__ico, .ind:hover .ind__ico, .feat:hover .feat__ico { animation: none; }
}

/* =========================================================
   Task 5 — Number accents + gradient dividers
   ========================================================= */
.result__big, .ring__val {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.result__big { font-size: clamp(60px, 6vw, 76px); letter-spacing: -.02em; }
.result__big small,
.ring__val small {
  -webkit-text-fill-color: var(--gold-light); color: var(--gold-light);
  font-size: .46em; font-weight: 700; vertical-align: super; margin-left: 2px;
  white-space: nowrap;
}
.ring__val { font-size: 34px; display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.result__label { font-weight: 600; color: rgba(255,255,255,.82); }
.stat__num { text-shadow: 0 0 26px rgba(199,203,207,.28); }

/* gradient divider under every section header */
.sec-head .h2::after,
.split__body > .h2::after {
  content: ""; display: block; width: 78px; height: 2px; margin-top: 20px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.sec-head.center .h2::after { margin-inline: auto; }
.section--navy .sec-head .h2::after { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
/* standalone reusable divider */
.grad-divider { height: 2px; width: 100%; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* =========================================================
   Task 6 — "Our history" — glass shield + spotlights
   ========================================================= */
.section--history {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #14294a 0%, #0c1a30 60%, #081426 100%);
  color: #fff;
}
.section--history::before,
.section--history::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: .55; z-index: 0;
}
.section--history::before {
  width: 460px; height: 460px; left: 8%; top: -120px;
  background: radial-gradient(circle, rgba(120,160,220,.5), transparent 70%);
}
.section--history::after {
  width: 520px; height: 520px; right: 2%; bottom: -160px;
  background: radial-gradient(circle, rgba(199,203,207,.32), transparent 70%);
}
.section--history .wrap { position: relative; z-index: 1; }
.section--history h2, .section--history .kicker { color: #fff; }
.section--history .kicker { color: var(--gold-light); }
.section--history .prose, .section--history .lead { color: rgba(255,255,255,.8); }

.hist-shield { position: relative; display: grid; place-items: center; padding: 20px; min-height: 420px; }
.hist-shield svg { width: min(78%, 340px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.hist-shield::after {
  content: ""; position: absolute; width: 70%; height: 70%; left: 15%; top: 12%;
  background: radial-gradient(circle, rgba(150,190,255,.35), transparent 65%);
  filter: blur(30px); z-index: -1;
}

/* founding year — boxless dynamic treatment */
.founded { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-top: 30px; }
.founded__num {
  font-family: var(--font-display); font-weight: 700; line-height: .9;
  font-size: clamp(64px, 9vw, 104px);
  background: linear-gradient(135deg, #ffffff, var(--gold-light) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 0 40px rgba(150,190,255,.25);
}
.founded__label {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7); max-width: 130px; line-height: 1.4;
  border-left: 2px solid var(--gold); padding-left: 14px;
}

/* directional reveal for history block */
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* =========================================================
   General micro-interactions polish
   ========================================================= */
.topbar .lang a, .topbar .tb-item { transition: color .25s var(--ease), transform .25s var(--ease); }
.topbar .lang a:hover { transform: translateY(-1px); }
.footer__links a { display: inline-block; }
.footer__links a:hover { transform: translateX(4px); }
.case-row__no, .case-card__no, .news-card__date { transition: color .3s var(--ease); }
.crumbs a { transition: color .25s var(--ease); }
.svc-chip { will-change: transform; }
.svc-chip:hover { transform: translateY(-2px); }
a, button { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .reveal--left, .reveal--right { transform: none; }
}

/* =========================================================
   Associations / memberships
   ========================================================= */
.assoc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.assoc {
  display: flex; gap: 22px; align-items: flex-start; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.assoc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.assoc__logo {
  flex: none; width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--gold-light);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em;
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.assoc:hover .assoc__logo { transform: scale(1.05); box-shadow: var(--shadow-sm); }
.assoc__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; }
.assoc__logo span { padding: 0 6px; }
.assoc__body h3 { font-size: 19px; line-height: 1.25; }
.assoc__role {
  display: inline-block; margin: 8px 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark);
  padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px;
}
.assoc__body p { color: var(--slate); font-size: 15px; line-height: 1.55; }
[data-theme="dark"] .assoc { background: var(--bg-alt); border-color: var(--line); }
[data-theme="dark"] .assoc__logo { background: #fff; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .assoc__role { color: var(--gold-light); }
@media (max-width: 720px) {
  .assoc-grid { grid-template-columns: 1fr; }
  .assoc { padding: 22px; gap: 16px; }
  .assoc__logo { width: 60px; height: 60px; font-size: 15px; }
}

/* compact client strip (about page) */
.clients-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.clients-strip .client { min-height: 88px; padding: 16px 14px; }
.clients-strip .client img { max-height: 40px; }
@media (max-width: 920px) { .clients-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .clients-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .clients-strip { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Thank-you letters gallery
   ========================================================= */
.letters-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.letter {
  display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: transform .4s var(--ease);
}
.letter:hover { transform: translateY(-4px); }
.letter:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; border-radius: 14px; }
.letter__thumb {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: #f4f6f9; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.letter:hover .letter__thumb { box-shadow: var(--shadow-md); border-color: transparent; }
.letter__thumb img {
  width: 100%; height: 100%; object-fit: contain; object-position: center top; display: block;
  transition: transform .5s var(--ease);
}
.letter:hover .letter__thumb img { transform: scale(1.03); }
.letter__thumb--doc {
  display: grid; place-items: center; padding: 28px 20px;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
}
.letter__thumb--doc img {
  width: auto; height: auto; max-width: 72%; max-height: 42%; object-fit: contain;
  filter: none; opacity: 1; transform: none;
}
.letter:hover .letter__thumb--doc img { transform: none; }
.letter__pdf-tag {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700); background: rgba(255,255,255,.92); border: 1px solid var(--line);
}
.letter__name {
  font-size: 14px; font-weight: 600; color: var(--navy-700); letter-spacing: .02em;
}
.letter-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10, 20, 35, .88); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overscroll-behavior: contain;
}
.letter-lightbox.is-open { opacity: 1; visibility: visible; }
.letter-lightbox__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
}
.letter-lightbox.is-open .letter-lightbox__panel { transform: none; }
.letter-lightbox__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.letter-lightbox__title { font-size: 16px; font-weight: 600; color: var(--navy-800); }
.letter-lightbox__close {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-alt);
  color: var(--navy-700); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.letter-lightbox__close:hover { background: var(--line); transform: scale(1.04); }
.letter-lightbox__body {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px 16px; background: #f4f6f9;
}
.letter-lightbox__body img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}
.letter-lightbox__pdf { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
.letter-lightbox__pdf canvas { display: block; max-width: 100%; width: auto; height: auto; box-shadow: var(--shadow-sm); border-radius: 4px; background: #fff; }
.letter-lightbox__loading,
.letter-lightbox__fallback { padding: 48px 24px; text-align: center; color: var(--slate); font-size: 15px; }
.letter-lightbox__body iframe { display: none; }
html.is-letter-lightbox-open,
html.is-letter-lightbox-open body { overflow: hidden; height: 100%; }
[data-theme="dark"] .letter__thumb { background: #fff; }
[data-theme="dark"] .letter__thumb--doc { background: linear-gradient(165deg, #f8fafc 0%, #e8edf4 100%); }
[data-theme="dark"] .letter__name { color: var(--text); }
@media (max-width: 1100px) { .letters-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) { .letters-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 560px) { .letters-grid { grid-template-columns: repeat(2, 1fr); } }
