/* ==========================================================================
   Doina Consulting — stylesheet
   ========================================================================== */

:root {
  --navy-950: #081330;
  --navy-900: #0B1A3D;
  --navy-800: #13285A;
  --navy-700: #1D3773;
  --ink: #0E1A33;
  --text: #33405A;
  --muted: #5A6680;
  --line: #E2E6F0;
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --accent: #5B2BB5;
  --accent-700: #481581;
  --accent-500: #8A5CE6;
  --accent-300: #BBA5F2;
  --accent-50: #F2EDFC;
  --danger: #B42318;
  --success: #17754A;
  --whatsapp: #25D366;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 61, .05), 0 4px 12px rgba(11, 26, 61, .04);
  --shadow: 0 2px 6px rgba(11, 26, 61, .04), 0 16px 36px rgba(11, 26, 61, .08);
  --shadow-lg: 0 6px 12px rgba(11, 26, 61, .05), 0 28px 64px rgba(11, 26, 61, .14);
  --glow: 0 24px 48px -24px rgba(72, 21, 129, .45);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 80px;
  --header-h-sm: 66px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-700); }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.125rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; isolation: isolate; padding-block: clamp(80px, 9vw, 128px); }
.section--tight { padding-block: clamp(64px, 7vw, 96px); }
.section--alt { background: var(--bg); }
.section--dark {
  color: #B9C4DB;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(91, 43, 181, .38), transparent 60%),
    radial-gradient(800px 460px at 0% 100%, rgba(29, 55, 115, .7), transparent 60%),
    var(--navy-900);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-300); }

/* Decorative section backdrops: ledger grid on dark, dot grid on light */
.section--dark::before,
.section--alt::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
}
.section--dark::before {
  inset: 0;
  background: url(../assets/illustrations/pattern-grid.svg);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
}
.section--alt::before {
  top: 0; right: 0; width: min(46%, 560px); height: 70%;
  background: url(../assets/illustrations/pattern-dots.svg);
  -webkit-mask-image: radial-gradient(closest-side at 72% 28%, #000 10%, transparent);
  mask-image: radial-gradient(closest-side at 72% 28%, #000 10%, transparent);
}

.section-head { max-width: 780px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head > :last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }

.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--muted); }

/* Buttons & links
   ========================================================================== */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), border-color .25s, color .25s, box-shadow .3s;
}
/* A second fill slides in from the left on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, transparent);
  transform: translateX(-101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn .icon-arrow { transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(91, 43, 181, .65);
  --btn-fill: linear-gradient(100deg, var(--accent-700), #3A0E6E);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 32px -12px rgba(72, 21, 129, .75); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); --btn-fill: var(--accent-50); }
.btn--outline:hover { border-color: var(--accent-300); color: var(--ink); }
.btn--outline .icon { color: var(--accent); }
.btn--light { background: #fff; color: var(--navy-900); --btn-fill: var(--accent-50); }
.btn--light:hover { color: var(--navy-900); }
.btn--light .icon { color: var(--accent); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; --btn-fill: rgba(255, 255, 255, .1); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn .icon-wa { color: var(--whatsapp); }
.btn--lg { min-height: 58px; padding-inline: 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Press feedback, added by main.js */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%;
  background: currentColor; opacity: .22; pointer-events: none;
  transform: scale(0); animation: ripple .7s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-chip {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-50); color: var(--accent);
}
.icon-chip .icon { width: 22px; height: 22px; }
.service-card .icon-chip .icon, .domain-card .icon-chip .icon, .step-icon .icon { width: 27px; height: 27px; }

/* Line icons redraw themselves: on card hover, and once when the card is revealed */
.icon--draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
[data-reveal].is-visible .icon--draw path { animation: draw 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 250ms); }
.domain-card:hover .icon--draw path,
.service-card:hover .icon--draw path,
.step:hover .icon--draw path { animation: draw .9s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* Cards: lift, pointer-following border glow (--mx/--my from main.js) */
[data-glow] { --mx: 50%; --my: 0%; }
[data-glow]::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(138, 92, 230, .95), rgba(91, 43, 181, .28) 42%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
[data-glow]:hover::after { opacity: 1; }

/* Header
   ========================================================================== */

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-700), var(--accent), var(--accent-500));
  transform: scaleX(0); transform-origin: 0 50%;
}

.site-header {
  --hh: var(--header-h);
  position: sticky; top: 0; z-index: 50;
  height: var(--hh);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), margin-bottom .4s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
}
/* Compact state: the bar gets shorter and the margin takes up the difference, so the page doesn't jump */
.site-header.is-scrolled {
  --hh: var(--header-h-sm);
  margin-bottom: calc(var(--header-h) - var(--header-h-sm));
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(11, 26, 61, .3);
}

.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 48px; transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 42px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border: 0; border-radius: 999px;
  background: none; color: var(--ink);
  font-size: .96875rem; font-weight: 550; line-height: 1.3; white-space: nowrap;
  cursor: pointer; transition: color .2s;
}
/* Underline that grows from the centre */
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active, .has-dropdown.is-open > .nav-link { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after, .has-dropdown.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 340px; padding: 10px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .nav-link .icon,
.has-dropdown.is-open .nav-link .icon { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 12px;
  color: var(--ink); font-size: .9375rem; font-weight: 550; line-height: 1.3;
  transition: background-color .2s, color .2s;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--bg); color: var(--accent); }
.dd-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent);
  transition: background-color .2s, color .2s;
}
.dd-icon .icon { width: 18px; height: 18px; }
.dropdown a:hover .dd-icon { background: var(--accent); color: #fff; }

.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }
.header-phone .icon-chip { width: 42px; height: 42px; border-radius: 50%; transition: background-color .2s, color .2s; }
.header-phone:hover .icon-chip { background: var(--accent); color: #fff; }
.header-phone .icon { width: 19px; height: 19px; }
.header-cta { min-height: 46px; padding: 10px 22px; font-size: .9375rem; white-space: nowrap; }

/* RO | RU */
.lang-switch {
  display: inline-flex; align-items: center; flex: none; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.lang-opt {
  display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 9px;
  border-radius: 999px; color: var(--muted);
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
  transition: background-color .2s, color .2s;
}
.lang-opt:hover { color: var(--accent); }
.lang-opt.is-current { background: var(--navy-900); color: #fff; }

.nav-toggle {
  display: none; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero
   ========================================================================== */

.hero,
.page-hero {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, #F6F7FC 0%, #FFFFFF 100%);
}
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(96px, 10vw, 150px); }

/* Animated gradient backdrop: soft blobs drifting on long loops */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob--1 {
  width: 820px; height: 820px; right: -260px; top: -340px;
  background: radial-gradient(closest-side, rgba(91, 43, 181, .2), rgba(91, 43, 181, 0));
  animation: drift-a 19s ease-in-out infinite alternate;
}
.blob--2 {
  width: 680px; height: 680px; left: -280px; top: -220px;
  background: radial-gradient(closest-side, rgba(29, 55, 115, .13), rgba(29, 55, 115, 0));
  animation: drift-b 23s ease-in-out infinite alternate;
}
.blob--3 {
  width: 600px; height: 600px; left: 32%; bottom: -360px;
  background: radial-gradient(closest-side, rgba(187, 165, 242, .34), rgba(187, 165, 242, 0));
  animation: drift-c 21s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-140px, 110px, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(160px, 70px, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-110px, -80px, 0) scale(1.16); } }

.hero-dots {
  position: absolute; right: 0; top: 0; width: 50%; height: 78%;
  background: url(../assets/illustrations/pattern-dots.svg);
  -webkit-mask-image: radial-gradient(closest-side at 62% 34%, #000 20%, transparent);
  mask-image: radial-gradient(closest-side at 62% 34%, #000 20%, transparent);
}

/* Floating shapes: the outer span takes the parallax offset, the <i> floats */
.shape { position: absolute; will-change: transform; transition: transform .9s var(--ease-out); }
.shape > i { display: block; animation: float 9s ease-in-out infinite; }
.shape--ring { left: 45%; top: 9%; }
.shape--ring i { width: 128px; height: 128px; border: 1.5px solid rgba(91, 43, 181, .18); border-radius: 50%; }
.shape--plus { left: 4%; top: 72%; }
.shape--plus i {
  width: 22px; height: 22px; animation-duration: 7s;
  background:
    linear-gradient(var(--accent-300), var(--accent-300)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent-300), var(--accent-300)) center / 2px 100% no-repeat;
}
.shape--dots { right: 2%; bottom: 10%; }
.shape--dots i {
  width: 96px; height: 96px; animation-duration: 11s;
  background: radial-gradient(circle, rgba(91, 43, 181, .32) 1.6px, transparent 2px) 0 0 / 16px 16px;
}
.shape--square { left: 51%; bottom: 13%; }
.shape--square i {
  width: 26px; height: 26px; border: 1.5px solid rgba(29, 55, 115, .24); border-radius: 7px;
  animation-name: float-turn; animation-duration: 10s;
}
.shape--dot { left: 49%; top: 66%; }
.shape--dot i {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  animation-duration: 6s;
}
.hero-bg--page .shape--ring { left: auto; right: 38%; top: 14%; }
.hero-bg--page .shape--plus { top: auto; bottom: 18%; }
.hero-bg--page .shape--dot { left: 56%; top: 70%; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes float-turn { 0%, 100% { transform: rotate(18deg); } 50% { transform: translateY(-12px) rotate(42deg); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 1.03; letter-spacing: -.038em;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { max-width: 580px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Heading enters line by line: each phrase slides up out of its own mask */
.split-lines .line { display: block; overflow: hidden; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.split-lines .line-inner {
  display: block;
  animation: line-up 1s var(--ease-out) both;
  animation-delay: calc(140ms + var(--i, 0) * 120ms);
}
@keyframes line-up { from { transform: translateY(112%); } }

.badge-list {
  display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.badge-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.badge-list .icon {
  width: 24px; height: 24px; padding: 4px; border-radius: 50%;
  background: var(--accent); color: #fff; stroke-width: 2.5;
}

.hero-media { position: relative; isolation: isolate; }
.hero-media::before {
  content: ""; position: absolute; inset: 48px -28px -28px 48px; z-index: -1;
  border-radius: 36px;
  background: linear-gradient(140deg, var(--navy-800), var(--accent-700));
}
.hero-photo { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--line); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }

/* Illustrated cards floating around the photo */
.hero-float { position: absolute; z-index: 2; will-change: transform; transition: transform .9s var(--ease-out); }
.hero-float--docs { z-index: -1; left: -86px; top: -40px; width: 200px; }
.hero-float--docs img { width: 100%; }
.hero-float--chart { right: -40px; top: 44px; }
.hero-float--card { left: -40px; bottom: 48px; }
.float { animation: float 8s ease-in-out infinite; }
.float--slow { animation-duration: 12s; }
.float--delay { animation-delay: -4s; }
.float-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }

.chart-card { width: 224px; padding: 16px 18px 14px; }
.chart-card-label { display: block; color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.chart-card-meta {
  display: flex; align-items: center; gap: 6px; margin: 3px 0 12px;
  color: var(--success); font-size: .8125rem; font-weight: 600; line-height: 1.3;
}
.chart-card-meta .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.mini-chart { display: block; width: 100%; height: auto; overflow: visible; }

.hero-card {
  display: flex; align-items: center; gap: 14px;
  max-width: 290px; padding: 16px 20px;
  color: var(--ink); font-weight: 600; line-height: 1.4;
}
.shield-badge { flex: none; width: 40px; height: 44px; filter: drop-shadow(0 8px 10px rgba(72, 21, 129, .28)); }

/* Illustration parts (hero chart, "Cum lucrăm" scene, contact scene) */
.ill-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.ill-shield { transform-box: fill-box; transform-origin: 50% 50%; }
.ill-pulse, .ill-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: pulse-ring 2.6s var(--ease) infinite; }
.ill-ring--2 { animation-delay: -1.3s; }
.ill-twinkle { animation: twinkle 3.4s ease-in-out infinite; }
.ill-twinkle:nth-of-type(2n) { animation-delay: -1.7s; }
@keyframes pulse-ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes twinkle { 50% { opacity: .3; } }

.hero .ill-bar { animation: bar-grow .9s var(--ease-out) both; animation-delay: calc(700ms + var(--i, 0) * 90ms); }
.hero .ill-line { stroke-dasharray: 1; animation: line-draw 1.5s var(--ease) 1.15s both; }
@keyframes bar-grow { from { transform: scaleY(0); } }
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.js [data-inview] .ill-bar { transform: scaleY(0); transition: transform .9s var(--ease-out); }
.js [data-inview] .ill-bar:nth-child(2) { transition-delay: .08s; }
.js [data-inview] .ill-bar:nth-child(3) { transition-delay: .16s; }
.js [data-inview] .ill-bar:nth-child(4) { transition-delay: .24s; }
.js [data-inview] .ill-bar:nth-child(5) { transition-delay: .32s; }
.js [data-inview] .ill-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .45s; }
.js [data-inview] .ill-shield { opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .8s var(--ease-out) .25s; }
.js [data-inview] .ill-donut { stroke-dasharray: 1 0; }
.js [data-inview].is-inview .ill-bar { transform: none; }
.js [data-inview].is-inview .ill-line { stroke-dashoffset: 0; }
.js [data-inview].is-inview .ill-shield { opacity: 1; transform: none; }

[data-anim] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Stats (count-up)
   ========================================================================== */

.stats { position: relative; z-index: 2; margin-top: clamp(-84px, -6vw, -48px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.stat {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 36px);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  grid-row: span 2; min-width: 1.3em;
  color: var(--accent); font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); font-weight: 800;
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.stat-label { align-self: end; color: var(--ink); font-weight: 700; line-height: 1.3; }
.stat-text { align-self: start; margin-top: 3px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* Advantages
   ========================================================================== */

.split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 104px); align-items: start;
}
.split-head { position: sticky; top: calc(var(--header-h) + 40px); }
.split-head h2 { margin-bottom: 32px; }

.adv-list { display: grid; gap: 16px; list-style: none; }
.adv-item {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.adv-item:hover { transform: translateX(6px); box-shadow: var(--shadow), var(--glow); border-color: transparent; }
.adv-num {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent);
  font-size: .875rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.adv-item:hover .adv-num { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.06); }
.adv-item p { flex: 1; margin: 0; color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.45; }

/* About
   ========================================================================== */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 104px); align-items: center;
}
.about-media { position: relative; padding: 0 14% 72px 0; }
.about-main {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.about-secondary {
  position: absolute; right: 0; bottom: 0; width: 54%;
  aspect-ratio: 3 / 2; object-fit: cover;
  border: 6px solid #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.about-stat {
  position: absolute; top: 36px; left: -24px;
  padding: 18px 24px; border-radius: 20px;
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); line-height: 1;
}
.about-stat span {
  display: block; margin-bottom: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-300);
}
.about-stat strong { font-size: 2.625rem; font-weight: 800; letter-spacing: -.03em; }
.about-content .lead { color: var(--text); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 36px; list-style: none; }
.pill-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: .9375rem; font-weight: 600;
}
.pill-list .icon { width: 20px; height: 20px; color: var(--accent); }

/* Services (dark)
   ========================================================================== */

.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 36px 28px 32px; border-radius: 22px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, box-shadow .4s;
}
/* Soft spotlight that follows the pointer */
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(187, 165, 242, .14), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.service-card { isolation: isolate; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.service-card:hover::before { opacity: 1; }
.service-card .icon-chip {
  width: 56px; height: 56px; margin-bottom: 28px; border-radius: 16px;
  background: rgba(187, 165, 242, .14); color: var(--accent-300);
  transition: background-color .3s, color .3s;
}
.service-card:hover .icon-chip { background: var(--accent); color: #fff; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin: 0; color: #B9C4DB; font-size: 1rem; line-height: 1.65; }

.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; list-style: none; }
.chip-nav a {
  display: inline-flex; padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  color: #DCE3F2; font-size: .9375rem; font-weight: 550;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.chip-nav a:hover { background: #fff; border-color: #fff; color: var(--navy-900); transform: translateY(-2px); }

/* How we work
   ========================================================================== */

.process-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media head" "media steps";
  column-gap: clamp(40px, 6vw, 96px); align-items: start;
}
.process-head { grid-area: head; margin-bottom: 36px; }
/* The scene stays in view while the steps scroll past */
.process-media { grid-area: media; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.process-illustration { display: block; width: 100%; height: auto; overflow: visible; }

.steps { grid-area: steps; position: relative; display: grid; gap: 14px; list-style: none; }
/* Connector drawn through the step icons once the list is in view */
.steps::before {
  content: ""; position: absolute; left: 52px; top: 48px; bottom: 48px; width: 2px;
  background: linear-gradient(var(--accent-300), var(--accent));
  transform-origin: 50% 0; transform: scaleY(0);
  transition: transform 1.6s var(--ease) .3s;
}
.steps.is-inview::before, html:not(.js) .steps::before { transform: none; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--glow); border-color: transparent; }
.step-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-50); color: var(--accent);
  transition: background-color .3s, color .3s;
}
.step:hover .step-icon { background: var(--accent); color: #fff; }
.step-num { display: block; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.step h3 { margin: 2px 0 6px; font-size: 1.1875rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Domains
   ========================================================================== */

.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.domain-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 36px 32px 32px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.domain-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--navy-700));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow); border-color: transparent; color: var(--text); }
.domain-card:hover::before { transform: scaleX(1); }
.domain-card .icon-chip { width: 56px; height: 56px; margin-bottom: 24px; border-radius: 16px; transition: background-color .3s, color .3s; }
.domain-card:hover .icon-chip { background: var(--accent); color: #fff; }
.domain-card h3 { margin-bottom: 10px; }
.domain-card p { margin-bottom: 28px; color: var(--muted); font-size: 1rem; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent); font-size: .9375rem; font-weight: 600; }
.card-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.domain-card:hover .card-link .icon { transform: translateX(5px); }

/* Gallery
   ========================================================================== */

.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 18vw, 240px); grid-auto-flow: dense; gap: 16px;
}
.g-item { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 26, 61, .3));
  opacity: 0; transition: opacity .4s;
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-big { grid-column: span 2; grid-row: span 2; }

/* FAQ
   ========================================================================== */

.faq { max-width: 880px; margin-inline: auto; }
.faq-item {
  margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  transition: box-shadow .3s, border-color .3s;
}
.faq-item.is-open { border-color: transparent; box-shadow: var(--shadow); }
.faq-q { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 24px 28px;
  border: 0; border-radius: 20px; background: none; cursor: pointer;
  color: var(--ink); font-size: 1.1875rem; font-weight: 650; line-height: 1.4; text-align: left;
  transition: color .2s;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.faq-icon .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.faq-item.is-open .faq-icon { transform: rotate(180deg); background: var(--accent); color: #fff; }
/* Height animates by interpolating the grid row from 0fr to 1fr */
.faq-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p { margin: 0; padding: 0 28px 26px; color: var(--muted); }
.js .faq-panel { grid-template-rows: 0fr; }
.js .faq-panel-inner { visibility: hidden; opacity: 0; transition: visibility 0s .45s, opacity .3s; }
.js .faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.js .faq-item.is-open .faq-panel-inner { visibility: visible; opacity: 1; transition: visibility 0s, opacity .45s .1s; }

.faq-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  max-width: 880px; margin: 32px auto 0; padding: 28px 32px;
  border-radius: 22px;
  background:
    url(../assets/illustrations/pattern-waves.svg) 50% 100% / 150% auto no-repeat,
    radial-gradient(500px 240px at 100% 0%, rgba(91, 43, 181, .45), transparent 65%),
    var(--navy-900);
}
.faq-cta p { margin: 0; color: #C9D2E6; font-size: 1.0625rem; }
.faq-cta strong { display: block; color: #fff; font-size: 1.25rem; }

/* Contact
   ========================================================================== */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-list { display: grid; gap: 14px; margin-top: 36px; list-style: none; }
.contact-list li {
  position: relative;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.contact-list li:hover { border-color: transparent; box-shadow: var(--shadow-sm), var(--glow); transform: translateY(-2px); }
.contact-label {
  display: block; margin-bottom: 4px;
  color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.contact-list p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.55; }
.contact-list a { font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.form-card {
  padding: clamp(28px, 4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -.02em; }
.form-intro { margin-bottom: 28px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.field label small { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A94AA; }
.field input:hover, .field textarea:hover { border-color: #C9D0DF; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 43, 181, .14);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #FEF4F3; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: .875rem; font-weight: 500; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { margin-top: 6px; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 18px; border-radius: 14px; background: #E9F6EF; color: var(--success); }
.form-status.is-error { padding: 14px 18px; border-radius: 14px; background: #FEF4F3; color: var(--danger); }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: .9375rem; text-align: center; }

/* Map placeholder */
.map {
  position: relative; overflow: hidden;
  height: 400px; margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #E8EDF6;
}
.map-canvas {
  position: absolute; inset: 0; overflow: hidden;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(11, 26, 61, .045) 58px 60px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(11, 26, 61, .045) 58px 60px);
}
.map-park { position: absolute; left: 8%; top: 8%; width: 24%; height: 34%; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; background: #D3E6D5; }
.map-water { position: absolute; right: -6%; bottom: -24%; width: 34%; height: 62%; border-radius: 50%; background: #CEDCF1; }
.map-road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(11, 26, 61, .06); }
.map-road--1 { left: -10%; right: -10%; top: 48%; height: 18px; transform: rotate(-9deg); }
.map-road--2 { top: -20%; bottom: -20%; left: 58%; width: 16px; transform: rotate(14deg); }
.map-road--3 { left: -10%; right: -10%; top: 20%; height: 10px; transform: rotate(4deg); }
.map-road--4 { top: -20%; bottom: -20%; left: 30%; width: 10px; transform: rotate(-8deg); }
.map-road--5 { left: 40%; right: -10%; top: 78%; height: 10px; transform: rotate(-3deg); }
.map-pin {
  position: absolute; left: 61%; top: 47%; z-index: 1;
  color: var(--accent); transform: translate(-50%, -100%);
  filter: drop-shadow(0 10px 14px rgba(72, 21, 129, .35));
}
.map-pin svg { display: block; width: 56px; height: 56px; }
.map-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; z-index: -1;
  width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: rgba(91, 43, 181, .35);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.map-card {
  position: absolute; left: 32px; bottom: 32px; z-index: 2;
  max-width: 360px; padding: 24px 26px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.map-card p { margin-bottom: 18px; color: var(--ink); line-height: 1.5; }

/* Inner pages
   ========================================================================== */

.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.page-hero h1 { margin-bottom: 22px; font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.875rem); line-height: 1.05; letter-spacing: -.035em; }
.page-hero .lead { max-width: 600px; margin-bottom: 34px; }
.page-hero-media { position: relative; isolation: isolate; }
.page-hero-media::before {
  content: ""; position: absolute; inset: 32px -20px -20px 32px; z-index: -1;
  border-radius: 32px; background: linear-gradient(140deg, var(--navy-800), var(--accent-700));
}
.page-hero-media > img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.page-hero-badge { left: -26px; bottom: 30px; }
.badge-card { display: block; padding: 10px; }
.badge-card .icon-chip {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-700)); color: #fff;
}
.badge-card .icon { width: 28px; height: 28px; }

.page-hero--contact .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.contact-scene { display: block; width: 100%; height: auto; overflow: visible; }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  margin-bottom: 28px; color: var(--muted); font-size: .9375rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #B5BDCE; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.content-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.prose { color: var(--text); font-size: 1.125rem; line-height: 1.8; }
.prose h2 { margin-bottom: 28px; font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); }
.prose p { margin-bottom: 1.3em; }

.adv-box {
  margin-top: 44px; padding: clamp(28px, 4vw, 40px);
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
}
.adv-box h3 { margin-bottom: 22px; font-size: 1.375rem; }
.checklist { display: grid; gap: 14px; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-size: 1.0625rem; font-weight: 550; line-height: 1.5; }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; margin-top: -1px; border-radius: 50%;
  background: var(--accent); color: #fff; stroke-width: 2.5;
}

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-cta {
  padding: 32px 28px; border-radius: 24px; color: #C9D2E6;
  background:
    url(../assets/illustrations/pattern-waves.svg) 50% 100% / 260% auto no-repeat,
    radial-gradient(420px 260px at 100% 0%, rgba(91, 43, 181, .5), transparent 65%),
    var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.side-title { margin-bottom: 14px; color: #fff; font-size: 1.5rem; }
.side-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; list-style: none; }
.side-badges li {
  padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  color: #DCE3F2; font-size: .8125rem; font-weight: 600;
}
.side-cta .btn { margin-bottom: 10px; }
.side-cta .link-arrow { margin-top: 8px; color: var(--accent-300); }
.side-cta .link-arrow:hover { color: #fff; }

.side-nav { padding: 24px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.side-nav-title {
  margin: 0 10px 12px; color: var(--muted);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.side-nav ul { display: grid; gap: 2px; list-style: none; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 12px;
  color: var(--ink); font-size: .9375rem; font-weight: 550; line-height: 1.35;
  transition: background-color .2s, color .2s;
}
.side-nav a:hover { background: var(--bg); color: var(--accent); }
.side-nav a[aria-current="page"] { background: var(--accent-50); color: var(--accent); font-weight: 650; }
.side-nav a[aria-current="page"] .dd-icon { background: var(--accent); color: #fff; }

.quick-contacts { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA band */
.cta-band { padding-bottom: clamp(80px, 9vw, 120px); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 40px;
  padding: clamp(36px, 5vw, 56px); border-radius: var(--radius-lg); color: #C9D2E6;
  background:
    url(../assets/illustrations/pattern-waves.svg) 50% 100% / cover no-repeat,
    radial-gradient(640px 320px at 100% 0%, rgba(91, 43, 181, .5), transparent 62%),
    var(--navy-900);
}
.cta-band h2 { margin-bottom: 10px; color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.cta-band p { max-width: 520px; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer
   ========================================================================== */

.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  background: var(--navy-950); color: #A9B4CC; font-size: 1rem;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 380px; z-index: -1;
  background: url(../assets/illustrations/pattern-grid.svg);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.site-footer::after {
  content: ""; position: absolute; right: -220px; top: -300px; z-index: -1;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 43, 181, .3), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1.1fr);
  gap: 48px;
}
.footer-logo { display: inline-flex; }
.footer-logo img { width: auto; height: 48px; }
.footer-slogan { max-width: 340px; margin: 22px 0 24px; color: #C9D2E6; line-height: 1.65; }
.footer-cta { min-height: 48px; margin-bottom: 28px; padding: 11px 22px; font-size: .9375rem; }
.footer-title {
  margin-bottom: 20px; color: #fff;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.footer-links { display: grid; gap: 11px; list-style: none; }
.footer-links a { color: #A9B4CC; }
.footer-links a:hover { color: #fff; }
.footer-services a { font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-contact li { line-height: 1.55; }
.footer-contact strong { display: block; color: #fff; font-weight: 600; }

.social { display: flex; gap: 10px; list-style: none; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #fff;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }

.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-block: 24px;
  font-size: .875rem;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgba(255, 255, 255, .08);
}
.footer-bottom p { margin: 0; }

.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(18, 140, 74, .6);
  transition: transform .25s var(--ease);
}
.fab-wa:hover { color: #fff; transform: scale(1.08); }
.fab-wa .icon { width: 30px; height: 30px; }

/* Consultation popup
   ========================================================================== */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 19, 48, .5);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal-dialog {
  position: relative;
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  width: min(840px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -24px rgba(8, 19, 48, .5);
  opacity: 0; transform: translateY(28px) scale(.96);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.modal-dialog:focus { outline: none; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }

.modal-aside {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 40px 26px;
  background:
    radial-gradient(320px 240px at 0% 0%, rgba(187, 165, 242, .35), transparent 70%),
    linear-gradient(165deg, var(--accent-50), #E6ECF7);
}
.modal-aside img { width: 100%; }
.modal-badges { display: grid; gap: 10px; list-style: none; }
.modal-badges li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.modal-badges .icon {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--accent); color: #fff; stroke-width: 2.5;
}
.modal-body { padding: 40px 40px 34px; }
.modal-body .eyebrow { margin-bottom: 14px; }
.modal-title { margin-bottom: 10px; padding-right: 36px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -.025em; }
.modal-text { margin-bottom: 24px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.modal-body .field { margin-bottom: 14px; }
.modal-body .field textarea { min-height: 92px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, transform .35s var(--ease-out);
}
.modal-close:hover { background: var(--navy-900); color: #fff; transform: rotate(90deg); }
.modal-close .icon { width: 20px; height: 20px; }
.modal-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-or { margin: 0 0 12px; color: var(--muted); font-size: .875rem; font-weight: 600; text-align: center; }
.modal-alt-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modal-alt-actions .btn { min-height: 48px; padding-inline: 16px; font-size: .9375rem; }

html.modal-open, html.modal-open body { overflow: hidden; }

/* Scroll reveal
   ========================================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Section eyebrows draw their rule as the heading comes in */
.js [data-reveal] .eyebrow::before { width: 0; transition: width .7s var(--ease) .35s; }
.js [data-reveal].is-visible .eyebrow::before { width: 28px; }

/* Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .header-phone-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .header-inner { gap: 18px; }
  .header-actions { gap: 10px; }
  .nav-link { padding-inline: 11px; }
  .nav-link::after { left: 11px; right: 11px; }
}

@media (max-width: 1180px) {
  .services-grid { gap: 16px; }
  .service-card { padding-inline: 24px; }
  .hero-float--chart { right: -16px; }
}

/* Header collapses to the burger below 1100px: the full nav + RO|RU + CTA no longer fit */
@media (max-width: 1099px) {
  :root { --header-h: 68px; --header-h-sm: 60px; }

  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-scrolled { background: #fff; }
  .brand img { height: 40px; }
  .is-scrolled .brand img { height: 36px; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-grid; }

  /* In the bar the switch shrinks to one chip with the other language */
  .header-actions .lang-switch { padding: 0; border: 0; background: none; }
  .header-actions .lang-opt.is-current { display: none; }
  .header-actions .lang-opt {
    min-width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; color: var(--ink); font-size: .875rem;
  }

  .nav {
    position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0;
    margin: 0; padding: 12px var(--gutter) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    background: #fff;
    visibility: hidden; transform: translateX(100%);
    transition: transform .4s var(--ease-out), visibility .4s;
  }
  .nav.is-open { visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    justify-content: space-between; width: 100%;
    padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .nav-link::after { display: none; }

  .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown {
    position: static; display: none; min-width: 0;
    padding: 8px 0 12px; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown:hover .nav-link .icon { transform: none; }
  .has-dropdown.is-open .nav-link .icon { transform: rotate(180deg); }
  .dropdown::before { display: none; }
  .dropdown a { padding: 10px 4px; }

  .nav-extra { display: grid; gap: 12px; margin-top: 28px; }
  .nav-extra .lang-switch { justify-self: start; margin-bottom: 6px; }
  .nav-extra .lang-opt { min-width: 52px; height: 40px; font-size: .875rem; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }

  .process-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "steps"; }
  .process-media { position: static; width: 100%; max-width: 540px; margin: 0 auto 40px; }
}

@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .about-grid, .split, .contact-grid,
  .page-hero--contact .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media, .page-hero-media { max-width: 560px; margin-right: 20px; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 70%; }
  .hero-float--docs { left: -40px; top: -28px; width: 150px; }
  .hero-float--chart { right: -12px; top: 24px; }
  .hero-float--card { left: 16px; bottom: 16px; }
  .split-head { position: static; }
  /* Stacked hero: keep decoration away from the text column */
  .hero-bg .shape--ring, .hero-bg .shape--dot, .hero-bg .shape--square { display: none; }
  .hero-dots { width: 70%; height: 38%; opacity: .7; }
  .about-media { max-width: 560px; }
  .about-stat { left: 16px; top: 16px; }
  .contact-illustration { max-width: 480px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
  .g-big { grid-row: span 1; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 0; place-items: end center; }
  .modal-dialog {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92vh; max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    transform: translateY(48px);
  }
  .modal-aside { display: none; }
  .modal-body { padding: 30px 20px 24px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid, .domain-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta-band-actions .btn, .quick-contacts .btn { flex: 1 1 100%; }
  .hero-media::before, .page-hero-media::before { inset: 24px -14px -14px 24px; }
  .hero-float--docs { display: none; }
  .hero-float--chart { top: 16px; right: -8px; }
  .chart-card { width: 168px; padding: 12px 14px 10px; border-radius: 16px; }
  .chart-card-label { font-size: .8125rem; }
  .chart-card-meta { margin-bottom: 8px; font-size: .75rem; }
  .hero-float--card { right: 16px; }
  .hero-card { max-width: none; padding: 12px 14px; font-size: .9375rem; }
  .shield-badge { width: 34px; height: 38px; }
  .page-hero-badge { left: 14px; bottom: 14px; }
  .badge-card .icon-chip { width: 50px; height: 50px; }
  .badge-list { gap: 12px 20px; margin-top: 36px; }
  .stat { padding: 20px 22px; }
  .adv-item { gap: 16px; padding: 20px; }
  .adv-item p { font-size: 1.0625rem; }
  .about-media { padding: 0 8% 56px 0; }
  .about-stat { padding: 14px 18px; }
  .about-stat strong { font-size: 2rem; }
  .domain-card, .service-card { padding: 28px 24px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .step-icon { width: 48px; height: 48px; border-radius: 14px; }
  .steps::before { left: 44px; }
  .faq-btn { padding: 20px; font-size: 1.0625rem; }
  .faq-panel-inner p { padding: 0 20px 22px; }
  .faq-cta { padding: 24px; }
  .faq-cta .btn { width: 100%; }
  .contact-list li { padding: 18px; gap: 14px; }
  .map { height: auto; }
  .map-canvas { position: relative; height: 240px; }
  .map-card { position: relative; left: auto; bottom: auto; max-width: none; border-radius: 0; box-shadow: none; }
  .map-card .btn { width: 100%; }
  .prose { font-size: 1.0625rem; }
  .gallery { grid-auto-rows: 150px; }
  .fab-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .modal-alt-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Motion off: everything is shown in its final state, nothing loops or drifts */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .blob, .shape > i, .float, .ill-pulse, .ill-ring, .ill-twinkle, .map-pin::after { animation: none !important; }
  .shape, .hero-float { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal] .eyebrow::before { width: 28px; }
  .icon--draw path { animation: none !important; }
}
