/* =========================================================
   RIKIPAL · Homepage design · tokens din brandbook 2014
   ========================================================= */
:root {
  /* Culori brand (logo SVG + brandbook) */
  --navy: #262f62;
  --navy-deep: #1b1838;
  --navy-ink: #231e3c;
  --blue: #0077be;
  --blue-deep: #005591;
  --green: #adce01;
  --green-deep: #96af00;
  --wood: #e9d9bc;
  --wood-soft: #f4ecdc;
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #1a1d33;
  --muted: #5d6280;
  --line: #e3e1da;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Tipografie */
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Michroma", "Segoe UI", sans-serif;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --h2: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --h1: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);

  /* Spațiere și formă */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 3.2vw, 6rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sweep: 0 120px 0 28px;
  --shadow-sm: 0 2px 6px rgba(27, 24, 56, 0.06);
  --shadow: 0 18px 40px -18px rgba(27, 24, 56, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(27, 24, 56, 0.45);

  /* Mișcare */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
  --normal: 420ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

.container { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.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: 1rem; top: -4rem; z-index: 200; background: var(--green); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  display: block; width: fit-content; max-width: 100%;
  padding-left: 24px;
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 calc(.8em - 1px) / 16px 2px;
  font-family: var(--font-display); line-height: 1.6;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.h2 { font-size: var(--h2); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--navy); text-wrap: balance; }
.h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -.015em; font-weight: 800; color: var(--navy); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem 4rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head__text { max-width: 440px; color: var(--muted); font-size: var(--text-lg); }
.section-head--light .h2 { color: var(--white); }
.section-head--light .section-head__text { color: rgba(255, 255, 255, .72); }
.section-head--center { flex-direction: column; align-items: center; gap: 0; text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .005em; line-height: 1.1;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--fast), color var(--fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--green { --bg: var(--green); --fg: var(--navy-ink); box-shadow: 0 10px 24px -12px rgba(150, 175, 0, .9); }
.btn--green:hover { --bg: #bddd12; box-shadow: 0 16px 30px -12px rgba(150, 175, 0, .95); }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--blue-deep); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, .1); border-color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--blue); }
.link-arrow::after { content: "→"; transition: transform var(--fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--light { color: var(--green); }

.tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.tag--green { background: var(--green); color: var(--navy-ink); }
.tag--blue { background: var(--blue); color: var(--white); }
.tag--soft { background: var(--wood-soft); color: #7a5b22; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__contacts, .topbar__links { display: flex; gap: 1.5rem; align-items: center; }
.topbar__label { color: rgba(255, 255, 255, .5); margin-right: .25rem; }
.topbar a:hover { color: var(--green); }
.lang { display: flex; gap: .15rem; }
.lang a { padding: .2rem .45rem; border-radius: 6px; font-weight: 700; font-size: .75rem; }
.lang a.is-active { background: rgba(255, 255, 255, .12); color: var(--white); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow var(--normal), border-color var(--normal); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(27, 24, 56, .5); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 80px; }
.header__logo img { width: clamp(150px, 12vw, 200px); height: auto; }
.header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: 999px; border: 0; background: none; font-weight: 600; font-size: .95rem; color: var(--navy); cursor: pointer; transition: background var(--fast), color var(--fast); }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--paper); color: var(--blue); }
.nav__chev { width: 12px; height: 12px; transition: transform var(--fast); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cta-mobile { display: none; }

.nav__item--mega { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(100% - 8px); width: min(1100px, 100vw - 2rem);
  transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.25rem; transition: opacity var(--fast), transform var(--normal) var(--ease), visibility var(--fast);
}
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.mega__card { display: flex; flex-direction: column; padding: 1rem; border-radius: var(--radius); background: var(--paper); transition: background var(--fast), transform var(--fast) var(--ease); }
.mega__card:hover { background: var(--wood-soft); transform: translateY(-3px); }
.mega__card img { aspect-ratio: 728 / 640; object-fit: contain; margin-bottom: .75rem; transition: transform var(--normal) var(--ease); }
.mega__card:hover img { transform: scale(1.05) rotate(-1deg); }
.mega__title { font-weight: 800; color: var(--navy); }
.mega__meta { font-size: .82rem; color: var(--muted); }
.mega__foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding: 1rem .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--fast), opacity var(--fast); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy-deep); color: var(--white); overflow: hidden; min-height: min(860px, calc(100svh - 120px)); display: flex; align-items: center; padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(6rem, 4rem + 6vw, 9rem); }
.hero__media { position: absolute; inset: 0 0 0 34%; z-index: -2; clip-path: ellipse(100% 120% at 100% 50%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(27, 24, 56, .55) 30%, rgba(27, 24, 56, .05) 70%), linear-gradient(0deg, rgba(27, 24, 56, .6), transparent 40%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(60% 80% at 10% 20%, rgba(0, 119, 190, .35), transparent 60%), var(--navy-deep); }
.hero__sweep { position: absolute; z-index: -1; pointer-events: none; }
.hero__sweep--blue { top: 0; left: 0; width: 70%; height: clamp(70px, 9vw, 150px); fill: var(--blue); opacity: .95; }
.hero__sweep--green { right: 0; bottom: 0; width: clamp(160px, 22vw, 360px); height: clamp(160px, 22vw, 360px); fill: var(--green); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 3rem; }
.hero__content { max-width: 760px; }
.hero__title { font-size: var(--h1); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin-bottom: 1.5rem; }
.hero__title em { font-style: normal; color: var(--green); position: relative; }
.hero__lead { font-size: var(--text-lg); color: rgba(255, 255, 255, .8); max-width: 580px; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__card { margin-right: clamp(0px, 4vw, 56px); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--radius-sweep); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.hero__card-head { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: .9rem; }
.hero__card-title { font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin-bottom: .5rem; }
.hero__card-text { font-size: .92rem; color: rgba(255, 255, 255, .75); margin-bottom: 1.1rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(173, 206, 1, .7); animation: pulse 2s infinite; }
.callback { display: flex; gap: .5rem; }
.callback input { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .95); color: var(--ink); }
.callback__msg, .qform__msg, .newsletter__msg { font-size: .85rem; margin-top: .6rem; min-height: 1.2em; }
.callback__msg.is-error, .qform__msg.is-error, .newsletter__msg.is-error { color: #ff9b9b; }
.qform__msg.is-error { color: #ffb4b4; }
.is-ok { color: var(--green); }

.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: scrollDot 1.8s infinite; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -4.5rem; }
.stats__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat:first-child .stat__num { color: var(--blue); }
.stat__label { color: var(--muted); font-size: .9rem; line-height: 1.4; max-width: 240px; }

/* ---------- Products / tabs ---------- */
.tabs__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .5rem; background: var(--paper); border-radius: 999px; margin-bottom: 2.5rem; }
.tabs__tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .95rem 1rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); transition: color var(--fast); }
.tabs__tab:hover { color: var(--navy); }
.tabs__tab[aria-selected="true"] { color: var(--white); }
.tabs__num { font-family: var(--font-display); font-size: .7rem; opacity: .7; }
.tabs__indicator { position: absolute; z-index: 0; top: .5rem; bottom: .5rem; left: 0; width: 0; background: var(--navy); border-radius: 999px; transition: transform var(--normal) var(--ease), width var(--normal) var(--ease); }
.tabs__panel { animation: panelIn var(--normal) var(--ease); }

.cat-intro { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--wood-soft), var(--paper) 60%); overflow: hidden; }
.cat-intro::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(173, 206, 1, .35), transparent 65%); pointer-events: none; }
.cat-intro__text { max-width: 560px; position: relative; z-index: 1; }
.cat-intro__text p { color: var(--muted); margin: .75rem 0 1.1rem; }
.cat-intro__img { width: clamp(160px, 18vw, 260px); position: relative; z-index: 1; filter: drop-shadow(0 24px 24px rgba(27, 24, 56, .25)); }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--normal) var(--ease), box-shadow var(--normal), border-color var(--fast); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--normal) var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media .tag { position: absolute; top: .85rem; left: .85rem; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.pcard__title { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.specs { margin: 0 0 1rem; display: grid; gap: .35rem; font-size: .84rem; }
.specs div { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .35rem; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.pcard__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-radius: 12px; background: var(--paper); font-weight: 700; font-size: .9rem; color: var(--navy); transition: background var(--fast), color var(--fast); }
.pcard__cta span { transition: transform var(--fast) var(--ease); }
.pcard:hover .pcard__cta { background: var(--navy); color: var(--white); }
.pcard:hover .pcard__cta span { transform: translateX(4px); }

/* ---------- Services ---------- */
.services { background: radial-gradient(70% 60% at 0% 100%, rgba(0, 119, 190, .4), transparent 70%), var(--navy); color: var(--white); overflow: hidden; }
.services__curve { position: absolute; top: -2px; left: 0; width: 100%; height: clamp(40px, 7vw, 110px); fill: var(--white); }
.services .container { position: relative; z-index: 1; padding-top: clamp(1rem, 3vw, 3rem); }
.services__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
.svc { border-radius: var(--radius-lg); overflow: hidden; }
.svc .h3 { color: inherit; margin-bottom: .75rem; }
.svc--buy { background: var(--green); color: var(--navy-ink); padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); display: flex; flex-direction: column; border-radius: var(--radius-sweep); }
.svc--buy p { color: rgba(35, 30, 60, .82); }
.svc__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--navy-ink); color: var(--green); margin-bottom: 1.5rem; }
.svc__icon svg { width: 32px; height: 32px; }
.steps-mini { display: grid; gap: .6rem; margin: 1.5rem 0 2rem; }
.steps-mini li { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.steps-mini span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-family: var(--font-display); font-size: .7rem; }
.svc--buy .btn { --bg: var(--navy-ink); --fg: var(--white); box-shadow: none; margin-top: auto; align-self: flex-start; }
.svc--buy .btn:hover { --bg: var(--navy); }
.svc--repair { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); display: flex; flex-direction: column; }
.svc__body { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.svc__body p { color: rgba(255, 255, 255, .72); margin-bottom: 1.25rem; }

/* Before / after */
.ba { --pos: 50%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #333; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { pointer-events: none; -webkit-user-drag: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label { position: absolute; top: 1rem; padding: .35rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(27, 24, 56, .75); color: var(--white); pointer-events: none; }
.ba__label--l { left: 1rem; }
.ba__label--r { right: 1rem; background: var(--green); color: var(--navy-ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-top: 2.5px solid var(--navy); border-left: 2.5px solid var(--navy); }
.ba__handle span::before { left: 11px; transform: translateY(-50%) rotate(-45deg); }
.ba__handle span::after { right: 11px; transform: translateY(-50%) rotate(135deg); }
.ba .ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--green); outline-offset: 2px; }
.ba.is-dragging .ba__handle span { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Why ---------- */
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius-lg) 160px var(--radius-lg) var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why__quote { position: absolute; left: clamp(-1rem, -2vw, -2.5rem); bottom: 2rem; max-width: 330px; padding: 1.5rem; background: var(--navy); color: var(--white); border-radius: var(--radius-sweep); box-shadow: var(--shadow-lg); }
.why__quote svg { width: 36px; height: 36px; color: var(--green); margin-bottom: .75rem; }
.why__quote p { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: .6rem; }
.why__quote span { font-family: var(--font-display); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.why__lead { font-size: var(--text-lg); color: var(--muted); margin: 1rem 0 2.25rem; }
.why__list { display: grid; gap: 1rem; }
.why__list li { display: flex; gap: 1.1rem; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color var(--fast), background var(--fast), transform var(--normal) var(--ease); }
.why__list li:hover { border-color: var(--green); background: #fbfdf2; transform: translateX(6px); }
.why__ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--paper); color: var(--blue); }
.why__ico svg { width: 24px; height: 24px; }
.why__list h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: .2rem; }
.why__list p { color: var(--muted); font-size: .93rem; }

/* ---------- Industries ---------- */
.industries { background: var(--paper); }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(330px, 1fr)); gap: 1.25rem; }
.ind { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); isolation: isolate; min-height: 260px; display: flex; align-items: flex-end; }
.ind--xl { grid-row: span 2; border-radius: var(--radius-lg) 160px var(--radius-lg) var(--radius-lg); }
.ind--wide { grid-column: span 2; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 24, 56, 0) 25%, rgba(27, 24, 56, .88)); transition: background var(--normal); }
.ind:hover img { transform: scale(1.07); }
.ind:hover::after { background: linear-gradient(180deg, rgba(38, 47, 98, .2) 0%, rgba(27, 24, 56, .92)); }
.ind__body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); max-width: 520px; }
.ind__num { font-family: var(--font-display); font-size: .72rem; color: var(--green); letter-spacing: .15em; }
.ind h3 { font-size: var(--h3); font-weight: 800; margin: .35rem 0 .4rem; line-height: 1.15; }
.ind p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.ind__more { display: inline-flex; gap: .4rem; margin-top: .9rem; font-weight: 700; color: var(--green); opacity: 0; transform: translateY(8px); transition: opacity var(--normal), transform var(--normal) var(--ease); }
.ind:hover .ind__more, .ind:focus-visible .ind__more { opacity: 1; transform: none; }

/* ---------- Custom select ---------- */
.cselect { position: relative; }
.cselect__native { display: none; }
.cselect__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); text-align: left; cursor: pointer; transition: border-color var(--fast), box-shadow var(--fast); }
.cselect__btn:hover { border-color: #c9c6bb; }
.cselect__btn:focus-visible, .cselect.is-open .cselect__btn { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 119, 190, .15); }
.cselect__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__chev { flex: none; width: 12px; height: 12px; color: var(--navy); transition: transform var(--normal) var(--ease); }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }
.cselect__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 290px; overflow-y: auto; padding: .4rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity var(--fast), transform var(--normal) var(--ease), visibility var(--fast); }
.cselect.is-open .cselect__list { opacity: 1; visibility: visible; transform: none; }
.cselect__opt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; border-radius: 10px; cursor: pointer; font-size: .95rem; color: var(--ink); }
.cselect__opt.is-active { background: var(--paper); }
.cselect__opt[aria-selected="true"] { color: var(--blue); font-weight: 700; }
.cselect__opt[aria-selected="true"]::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10.5 4 4 8-9' fill='none' stroke='%230077be' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Calculator ---------- */
.calc__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 2rem + 3vw, 5rem); align-items: start; }
.calc__intro > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-lg); margin: 1rem 0 2rem; max-width: 480px; }
.calc__facts { display: grid; gap: .75rem; }
.calc__facts li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--paper); color: var(--muted); font-size: .93rem; }
.calc__facts strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); min-width: 52px; }
.calc__form { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1.25rem; }

.field { display: grid; gap: .45rem; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field input:not([type="range"]), .field select, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); transition: border-color var(--fast), box-shadow var(--fast); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23262f62' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 119, 190, .15); }
.field textarea { resize: vertical; }
.field.is-invalid input { border-color: #d94a4a; }
.field output { font-family: var(--font-display); color: var(--blue); }
.field__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue) var(--fill, 10%), var(--line) var(--fill, 10%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 4px solid var(--blue); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--blue); }

.calc__result { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.calc__row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .93rem; color: rgba(255, 255, 255, .75); }
.calc__row strong { color: var(--white); font-variant-numeric: tabular-nums; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); font-weight: 700; }
.calc__total strong { font-family: var(--font-display); white-space: nowrap; font-size: clamp(1.15rem, 0.9rem + 1vw, 1.75rem); color: var(--green); font-variant-numeric: tabular-nums; }
.calc__note { margin-top: .75rem; font-size: .75rem; color: rgba(255, 255, 255, .55); }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--white), var(--wood-soft)); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.about__content > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-lg); margin: 1.25rem 0 2rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
.value { padding-top: 1rem; border-top: 3px solid var(--green); }
.value:nth-child(2) { border-color: var(--blue); }
.value:nth-child(3) { border-color: var(--navy); }
.value h3 { font-size: .98rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.value p { font-size: .88rem; color: var(--muted); }
.about__media { position: relative; padding: 0 0 18% 0; }
.about__img { object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 88%; aspect-ratio: 4 / 3; border-radius: 160px var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 6px solid var(--white); }
.about__stamp { position: absolute; left: 4%; bottom: 4%; width: 132px; height: 132px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; }
.about__stamp svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 24s linear infinite; }
.about__stamp text { font-family: var(--font-display); font-size: 8.6px; letter-spacing: 2.2px; fill: var(--navy); }
.about__stamp img { width: 44px; position: relative; }

/* ---------- Process ---------- */
.process__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.process__list::before { content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.pstep { position: relative; padding: 0 .5rem; }
.pstep__n { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); font-family: var(--font-display); font-size: .9rem; color: var(--navy); margin-bottom: 1.25rem; transition: background var(--normal), color var(--normal), border-color var(--normal); }
.pstep:hover .pstep__n { background: var(--green); border-color: var(--green); color: var(--navy-ink); }
.pstep:nth-child(2) .pstep__n { border-color: var(--blue); }
.pstep h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.pstep p { color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 2rem + 3vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head > p:last-child { color: var(--muted); margin-top: 1rem; }
.faq__head a { color: var(--blue); font-weight: 700; }
.faq__list { display: grid; gap: .75rem; }
.qa { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow var(--normal), border-color var(--fast); }
.qa[open] { border-color: transparent; box-shadow: var(--shadow); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.5v7M2.5 6h7' stroke='%230077be' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform var(--normal) var(--ease), background-color var(--fast); }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--green); }
.qa.is-closing summary::after { transform: none; background-color: var(--paper); }
.qa.is-closing { box-shadow: none; border-color: var(--line); }
.qa__a { overflow: hidden; color: var(--muted); }
.qa__a > p { padding: 0 1.4rem 1.3rem; }
.qa__a a { color: var(--blue); font-weight: 700; }

/* ---------- Blog ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { display: flex; flex-direction: column; }
.post__media { display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 11; margin-bottom: 1.25rem; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__meta { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.post h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: var(--navy); margin-bottom: .5rem; }
.post h3 a { background: linear-gradient(var(--green), var(--green)) 0 100% / 0 3px no-repeat; transition: background-size var(--normal) var(--ease); }
.post:hover h3 a { background-size: 100% 3px; }
.post p { color: var(--muted); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote { background: var(--navy-deep); color: var(--white); overflow: hidden; isolation: isolate; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 70% at 0% 0%, rgba(0, 119, 190, .5), transparent 60%), radial-gradient(40% 60% at 100% 100%, rgba(38, 47, 98, .9), transparent 70%); }
.quote__sweep { position: absolute; right: 0; bottom: 0; z-index: -1; width: clamp(140px, 20vw, 320px); height: clamp(140px, 20vw, 320px); fill: var(--green); }
.quote__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 2rem + 3vw, 5rem); align-items: start; }
.quote .h2 { color: var(--white); }
.quote__intro > p:not(.eyebrow) { color: rgba(255, 255, 255, .72); font-size: var(--text-lg); margin: 1rem 0 2rem; }
.quote__contacts { display: grid; gap: .6rem; }
.quote__contacts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); }
.quote__contacts span { color: rgba(255, 255, 255, .6); }
.quote__contacts a { font-weight: 800; }
.quote__contacts a:hover { color: var(--green); }
.qform { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); display: grid; gap: 1.25rem; }
.qform__type { display: flex; flex-wrap: wrap; gap: .5rem; }
.qform__type label { cursor: pointer; }
.qform__type input { position: absolute; opacity: 0; pointer-events: none; }
.qform__type span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--muted); transition: all var(--fast); }
.qform__type input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.qform__type input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }
.qform__msg.is-ok { color: var(--green-deep); font-weight: 700; }
.qform__msg.is-error { color: #c93b3b; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-ink); color: rgba(255, 255, 255, .7); padding: clamp(3.5rem, 3rem + 3vw, 6rem) 0 0; overflow: hidden; font-size: .93rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { width: 200px; margin-bottom: 1.25rem; }
.footer__brand > p { max-width: 340px; margin-bottom: 1.75rem; }
.footer h3 { font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer a:hover { color: var(--green); }
.footer address { color: var(--white); margin-bottom: 1rem; }
.footer__phones { margin-bottom: 1.25rem; }
.footer__phones li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-dark); padding-bottom: .45rem; }
.footer__phones a { color: var(--white); font-weight: 700; }
.footer__dist { font-size: .85rem; }
.footer__dist strong { color: var(--white); }
.newsletter label { display: block; font-weight: 700; color: var(--white); margin-bottom: .6rem; font-size: .88rem; }
.newsletter__row { display: flex; gap: .5rem; max-width: 400px; }
.newsletter input { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06); color: var(--white); }
.newsletter input::placeholder { color: rgba(255, 255, 255, .4); }
.footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ---------- Side rail + chat ---------- */
.rail { position: fixed; right: 1rem; top: 50%; z-index: 90; display: grid; gap: .5rem; transform: translateY(-50%); }
.rail__btn { position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); color: var(--navy); box-shadow: var(--shadow); cursor: pointer; transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.rail__btn svg { width: 22px; height: 22px; }
.rail__btn:hover { background: var(--navy); color: var(--white); transform: translateX(-3px); }
.rail__btn--ai { background: var(--green); border-color: var(--green); color: var(--navy-ink); }
.rail__btn::before { content: attr(data-tip); position: absolute; right: calc(100% + .6rem); top: 50%; padding: .4rem .7rem; border-radius: 8px; background: var(--navy-ink); color: var(--white); font-size: .78rem; font-weight: 700; white-space: nowrap; transform: translate(6px, -50%); opacity: 0; pointer-events: none; transition: opacity var(--fast), transform var(--fast) var(--ease); }
.rail__btn:hover::before, .rail__btn:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

.chat { position: fixed; right: 5rem; bottom: 1.5rem; z-index: 95; width: min(360px, calc(100vw - 2rem)); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: panelIn var(--normal) var(--ease); }
.chat__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--navy); color: var(--white); }
.chat__head div { display: grid; line-height: 1.25; flex: 1; }
.chat__head span { font-size: .78rem; color: rgba(255, 255, 255, .65); }
.chat__close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 1.3rem; cursor: pointer; }
.chat__body { padding: 1.1rem; display: grid; gap: .9rem; }
.chat__bubble { background: var(--paper); padding: .9rem 1rem; border-radius: 4px 16px 16px 16px; font-size: .93rem; }
.chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat__chips a { padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue); font-size: .82rem; font-weight: 700; }
.chat__chips a:hover { background: var(--blue); color: var(--white); }
.chat__foot { padding: .75rem 1.1rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(173, 206, 1, .7); } 70% { box-shadow: 0 0 0 10px rgba(173, 206, 1, 0); } 100% { box-shadow: 0 0 0 0 rgba(173, 206, 1, 0); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: .55rem .6rem; font-size: .9rem; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 440px; }
  .hero__media { inset: 0 0 0 20%; }
}

@media (max-width: 980px) {
  .hide-md { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 80px); border-top: 1px solid var(--line); margin: 0; background: var(--white); padding: 1rem var(--gutter) 5rem; overflow-y: auto; opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity var(--fast), transform var(--normal) var(--ease), visibility var(--normal); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; }
  .mega { position: static; width: 100%; transform: none; box-shadow: none; border: 0; padding: .75rem 0; display: none; opacity: 1; visibility: visible; }
  .mega.is-open { display: block; transform: none; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .mega__foot { display: none; }
  .nav__cta-mobile { display: flex; width: 100%; margin-top: 1.5rem; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services__grid, .why__inner, .calc__inner, .about__inner, .faq__inner, .quote__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .calc { padding-bottom: 1.5rem; }
  .about { padding-top: 3rem; }
  .why__media img { aspect-ratio: 4 / 3; }
  .why__quote { left: 1rem; }
  .ind-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ind--xl { grid-row: auto; grid-column: span 2; min-height: 360px; }
  .ind--wide { grid-column: span 2; }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .blog__grid .post:last-child { display: none; }
  .process__list { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .process__list::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .rail { top: auto; bottom: 1rem; transform: none; }
  .rail__btn:not(.rail__btn--ai) { display: none; }
  .chat { right: 1rem; bottom: 5rem; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .topbar__contacts { gap: 1rem; }
  .header__inner { min-height: 68px; gap: 1rem; }
  .nav { height: calc(100dvh - 68px); }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero__media { inset: 0; clip-path: none; }
  .hero__media::after { background: linear-gradient(180deg, rgba(27, 24, 56, .55), rgba(27, 24, 56, .92) 60%); }
  .hero__sweep--blue { width: 100%; height: 56px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .callback { flex-direction: column; }
  .stats { margin-top: -3rem; }
  .stat { padding: 1.25rem 1rem; }
  .stat__num { font-size: 1.3rem; }
  .stat__label { font-size: .8rem; }
  .tabs__list { grid-template-columns: 1fr 1fr; border-radius: var(--radius); }
  .tabs__tab { border-radius: 12px; padding: .8rem .75rem; font-size: .85rem; gap: .45rem; justify-content: flex-start; text-align: left; }
  .tabs__indicator { border-radius: 12px; }
  .cat-intro { grid-template-columns: 1fr; }
  .cat-intro__img { width: 150px; position: absolute; right: -10px; bottom: -10px; opacity: .35; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard { display: grid; grid-template-columns: 136px 1fr; }
  .pcard__media { aspect-ratio: auto; }
  .pcard__body { border-top: 0; border-left: 1px solid var(--line); padding: .9rem 1rem; }
  .pcard__media img { object-fit: contain; padding: 1.6rem .25rem .25rem; }
  .pcard__media .tag { top: .55rem; left: .55rem; right: .55rem; width: fit-content; font-size: .6rem; line-height: 1.25; padding: .25rem .45rem; border-radius: 6px; }
  .specs div:nth-child(n+3) { display: none; }
  .values { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind--xl, .ind--wide { grid-column: auto; }
  .ind__more { opacity: 1; transform: none; }
  .blog__grid { grid-template-columns: 1fr; }
  .blog__grid .post:last-child { display: flex; }
  .process { padding-bottom: 2.5rem; }
  .process__list { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .pstep { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; align-items: start; padding: 0; }
  .pstep__n { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: .8rem; }
  .pstep h3 { margin-top: .2rem; }
  .services__curve { display: none; }
  .services .container { padding-top: 0; }
  .qform__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .footer__brand, .footer__col--contacts { grid-column: 1 / -1; }
  .about__stamp { width: 100px; height: 100px; }
  .about__stamp text { font-size: 10.5px; }
  .about__stamp img { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
