/* ==========================================================================
   Med-Valley — Design System & Site Styles
   Palette derived from the official logo:
     Navy  #0F4A81  (the "M" — primary brand color)
     Blue  #1689C7  (the "M" highlight — secondary)
     Green #03AD09 → #117002 (the leaf — accent)
   ========================================================================== */

:root {
  /* Brand — taken directly from the logo artwork */
  --navy-950: #071d33;
  --navy-900: #0a2c4e;
  --navy-800: #0c3a66;
  --navy-700: #0f4a81; /* logo navy — primary */
  --navy-600: #135d9c;
  --blue-500: #1689c7; /* logo blue — secondary */
  --blue-600: #1270a6; /* AA-safe text variant of logo blue */
  --blue-200: #bfdcf0;
  --blue-100: #dcebf7;
  --blue-50: #eef6fc;
  --green-400: #03ad09; /* logo leaf (bright) — decorative */
  --green-600: #097a0d; /* AA-safe accent for buttons & text */
  --green-700: #117002; /* logo leaf (deep) */
  --green-100: #d9f2da;
  --green-50: #eef9ef;

  /* Neutrals (cool-tinted toward the brand navy) */
  --ink: #0b1f33;
  --body: #3d5064;
  --muted: #5d6f82;
  --line: #e2e9f0;
  --line-strong: #cfdbe6;
  --surface: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-tint: #eef4f9;

  /* Semantic */
  --primary: var(--navy-700);
  --accent: var(--green-600);
  --danger: #b42318;
  --danger-bg: #fef3f2;

  /* Type */
  --font-head: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.35rem, 1.6rem + 3.4vw, 4.1rem);
  --fs-h1: clamp(2.1rem, 1.55rem + 2.4vw, 3.4rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.65rem);
  --fs-h3: clamp(1.15rem, 1.07rem + 0.35vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);

  /* Space, shape, depth */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-leaf: 140px 28px 140px 28px; /* echoes the leaf in the logo */
  --shadow-sm: 0 1px 2px rgba(10, 44, 78, 0.06), 0 2px 8px rgba(10, 44, 78, 0.05);
  --shadow: 0 2px 4px rgba(10, 44, 78, 0.04), 0 12px 32px -8px rgba(10, 44, 78, 0.14);
  --shadow-lg: 0 4px 10px rgba(10, 44, 78, 0.05), 0 30px 60px -20px rgba(10, 44, 78, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
  text-wrap: balance;
}
h3 { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy-700); color: #fff; padding: 0.75rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(10, 44, 78, 0.55); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--navy-800); }
.btn--accent { --btn-bg: var(--green-600); }
.btn--accent:hover { --btn-bg: var(--green-700); box-shadow: 0 10px 22px -10px rgba(9, 122, 13, 0.6); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--surface); --btn-bd: var(--navy-700); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-700); }
.btn--light:hover { --btn-bg: var(--blue-50); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: #fff; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-700); text-decoration: none;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); width: 1.1em; height: 1.1em; }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ''; width: 34px; height: 3px; border-radius: 3px; flex: none;
  background: linear-gradient(90deg, var(--navy-700) 0 58%, transparent 58% 66%, var(--green-400) 66%);
}
.eyebrow--light { color: #9fd0f0; }
.eyebrow--light::before { background: linear-gradient(90deg, #fff 0 58%, transparent 58% 66%, var(--green-400) 66%); }

.section { padding-block: var(--section); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--body); }
.section-head--split {
  max-width: none; display: grid; gap: 1.25rem 3rem; align-items: end;
}
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { --header-h: 68px; border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(10, 44, 78, 0.35); background: rgba(255, 255, 255, 0.94); }
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: height 0.3s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; flex: none; }
.brand__mark { height: 46px; width: auto; transition: height 0.3s var(--ease), transform 0.4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-3deg) scale(1.03); }
.is-scrolled .brand__mark { height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; color: var(--navy-700); letter-spacing: -0.02em; }
.brand__tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); margin-top: 4px; }

.nav__list { list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); text-decoration: none; padding: 0.5rem 0.2rem;
}
.nav__link::after {
  content: ''; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.15rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--navy-700); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--navy-700); }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--navy-700);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile navigation panel */
@media (max-width: 959.98px) {
  .site-header__cta { display: none; }
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(10, 44, 78, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__link { display: flex; width: 100%; padding: 0.95rem 0.25rem; font-size: 1.12rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current='page'] { color: var(--blue-600); }
  .nav__link[aria-current='page']::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); margin-right: 0.7rem;
  }
  .nav__mobile-cta { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
  .nav__mobile-contact { display: flex; align-items: center; gap: 0.6rem; color: var(--body); text-decoration: none; font-weight: 500; padding: 0.35rem 0; }
  .nav__mobile-contact .icon { color: var(--blue-600); }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 98; background: rgba(7, 29, 51, 0.35);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
  }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: #fff; }
}
@media (min-width: 960px) {
  .nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.4rem); }
  .nav__mobile-cta { display: none; }
  .nav-toggle { display: none; }
}
@media (max-width: 380px) {
  .brand__tag { display: none; }
  .brand__mark { height: 40px; }
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='left'] { transform: translateX(-26px); }
.js [data-reveal='right'] { transform: translateX(26px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal='image'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.1s var(--ease); }
.js [data-reveal='image'].is-visible { clip-path: inset(0 0 0 0 round 0); }

/* Hero entrance (on load) */
.js .hero [data-enter] { opacity: 0; transform: translateY(22px); animation: enter 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(4rem, 3rem + 4vw, 6.5rem);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(22, 137, 199, 0.1), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(3, 173, 9, 0.06), transparent 60%),
    linear-gradient(180deg, #f7fafd 0%, #fff 100%);
}
.hero::before { /* subtle precision grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 74, 129, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 74, 129, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem; margin-bottom: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--body);
}
.hero__badge-dot {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
}
.hero__badge-dot .icon { width: 16px; height: 16px; }
.hero__title { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 1.4rem; isolation: isolate; }
.hero__title em { font-style: normal; color: var(--blue-600); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em; border-radius: 1em;
  background: linear-gradient(90deg, var(--green-400), rgba(3, 173, 9, 0.25)); opacity: 0.5; z-index: -1;
}
.hero__lead { font-size: var(--fs-lead); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.75rem; }
.hero__trust { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 560px; }
.hero__trust li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__trust strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-700); font-weight: 800; letter-spacing: -0.01em; }
.hero__trust span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__trust { grid-template-columns: 1fr 1fr; }
  .hero__trust li:last-child { grid-column: 1 / -1; }
  .hero__badge-extra { display: none; }
}

.hero__visual { position: relative; max-width: 600px; width: 100%; margin-inline: auto; padding: 1.5rem 0; }
.hero__frame {
  position: relative; aspect-ratio: 1 / 0.94; border-radius: var(--radius-leaf); overflow: hidden;
  background: linear-gradient(160deg, #e9f3fb 0%, #d7e8f6 55%, #cfe3f3 100%);
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.hero__frame::before {
  content: ''; position: absolute; inset: auto -20% -35% auto; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 65%); z-index: -1;
}
.hero__frame img { width: 100%; height: 100%; object-fit: contain; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.1rem; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(226, 233, 240, 0.9);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(6px);
  animation: bob 7s ease-in-out infinite;
}
.float-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.float-card__icon--green { background: var(--green-50); color: var(--green-600); }
.float-card__icon--blue { background: var(--blue-50); color: var(--blue-600); }
.float-card strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--ink); line-height: 1.2; }
.float-card span { font-size: 0.8rem; color: var(--muted); }
.float-card--a { top: 9%; left: -6%; }
.float-card--b { bottom: 7%; right: -4%; animation-delay: -3.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 640px) {
  .float-card { padding: 0.65rem 0.8rem; gap: 0.6rem; }
  .float-card__icon { width: 34px; height: 34px; }
  .float-card--a { left: 0; top: 2%; }
  .float-card--b { right: 0; bottom: 2%; }
  .float-card strong { font-size: 0.85rem; }
  .float-card span { font-size: 0.72rem; }
}

/* ---------- Split / media layouts ---------- */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
}
.split__body h2 { font-size: var(--fs-h2); }
.split__body .lead { font-size: var(--fs-lead); color: var(--ink); font-weight: 500; }
.media-frame { position: relative; }
.media-frame__img {
  border-radius: var(--radius-leaf); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg-tint); aspect-ratio: 8 / 7;
}
.media-frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover .media-frame__img img { transform: scale(1.03); }
.media-frame::before { /* offset brand outline */
  content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-leaf);
  border: 2px solid var(--blue-100); z-index: -1;
}
.media-badge {
  position: absolute; left: -12px; bottom: 28px; display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.25rem; background: var(--navy-700); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.media-badge strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.media-badge span { font-size: 0.82rem; line-height: 1.35; color: #cfe5f5; }
.media-badge .icon { color: var(--green-400); width: 28px; height: 28px; }
@media (max-width: 520px) { .media-badge { left: 8px; bottom: 12px; padding: 0.75rem 1rem; } .media-badge strong { font-size: 1.6rem; } }

.check-list { list-style: none; display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list .icon { color: var(--green-600); margin-top: 0.15rem; width: 1.3em; height: 1.3em; background: var(--green-50); border-radius: 50%; padding: 3px; stroke-width: 2.5; }

/* ---------- Cards: What we offer ---------- */
.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative; padding: clamp(1.75rem, 1.4rem + 1vw, 2.4rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.feature-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500) 60%, var(--green-400));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card h3 { margin-top: 1.5rem; }
.feature-card p { color: var(--body); }
.icon-tile {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px 18px 18px 6px;
  background: var(--blue-50); color: var(--navy-700);
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.icon-tile .icon { width: 28px; height: 28px; }
.icon-tile--green { background: var(--green-50); color: var(--green-600); }
.feature-card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); background: var(--navy-700); color: #fff; }
.feature-card:hover .icon-tile--green { background: var(--green-600); }
.feature-card__num {
  position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-head); font-weight: 800;
  font-size: 0.85rem; color: var(--line-strong); letter-spacing: 0.08em;
}

/* ---------- Why choose (dark) ---------- */
.section--navy {
  background: var(--navy-900); color: #c9dcee; overflow: hidden;
  background-image:
    radial-gradient(800px 420px at 100% 0%, rgba(22, 137, 199, 0.28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(3, 173, 9, 0.12), transparent 60%);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section-head p { color: #b8cfe4; }
.why-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(3, 173, 9, 0.5); background-color: rgba(255, 255, 255, 0.04); }
.why-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px 16px 16px 5px;
  background: rgba(3, 173, 9, 0.16); color: #5fd864; margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease);
}
.why-card:hover .why-card__icon { transform: translateY(-3px) rotate(-6deg); }
.why-card__icon .icon { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.why-card p { font-size: 0.97rem; color: #b8cfe4; }
.why-card__index { position: absolute; top: 1.75rem; right: 1.6rem; font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; color: rgba(255, 255, 255, 0.28); letter-spacing: 0.1em; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.category-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.category-card:hover .category-card__media img { transform: scale(1.06); }
.category-card__body { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1.25rem; align-items: end; padding: 1.6rem 1.75rem 1.75rem; }
.category-card__label { grid-column: 1 / -1; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); }
.category-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin: 0; }
.category-card p { grid-column: 1; margin: 0; font-size: 0.97rem; }
.category-card__arrow {
  grid-column: 2; grid-row: 2 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--navy-700);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.category-card:hover .category-card__arrow { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: rotate(-45deg); }
.category-card__cta { grid-column: 1; margin-top: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--navy-700); }

/* ---------- CTA panel ---------- */
.section--cta { padding-block: 0 var(--section); }
.section--soft + .section--cta, .section--tint + .section--cta { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: 32px; color: #d5e6f5;
  background: linear-gradient(120deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 85% 20%, rgba(22, 137, 199, 0.45), transparent 70%);
}
@media (min-width: 960px) { .cta-panel { grid-template-columns: 1.3fr auto; } }
.cta-panel__title { font-size: var(--fs-h2); color: #fff; margin-bottom: 0.5rem; }
.cta-panel__text { font-size: var(--fs-lead); color: #cfe2f3; max-width: 560px; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta-panel__contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cta-panel__contact a { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 500; }
.cta-panel__contact a:hover { color: #9fd0f0; }
.cta-panel__contact .icon { color: var(--green-400); }
.cta-panel__leaf { position: absolute; right: -40px; bottom: -60px; width: 300px; z-index: -1; opacity: 0.12; }
.cta-panel__leaf path:first-child { fill: var(--green-400); }
.cta-panel__leaf path:last-child { stroke: var(--navy-900); stroke-width: 6; }
@media (max-width: 520px) { .cta-panel__actions .btn { flex: 1 1 100%; } .cta-panel { border-radius: 24px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(22, 137, 199, 0.12), transparent 65%),
    linear-gradient(180deg, #f5f9fc, #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero::after { /* leaf silhouette accent */
  content: ''; position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190 10C110 6 40 40 20 120c-4 18-6 40-4 70 30-6 70-24 100-60C160 80 186 40 190 10Z' fill='%2303AD09'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.06; pointer-events: none;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-700); }
.breadcrumb [aria-current] { color: var(--navy-700); font-weight: 600; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 820px; margin-bottom: 0.4em; }
.page-hero__subtitle { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); color: var(--blue-600); margin-bottom: 1rem; letter-spacing: -0.01em; }
.page-hero__lead { font-size: var(--fs-lead); max-width: 720px; }
.page-hero__lead + .page-hero__lead { margin-top: 0.75rem; }

/* ---------- About page ---------- */
.facts { display: grid; gap: 1rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  display: flex; gap: 1rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.fact .icon-tile { width: 52px; height: 52px; }
.fact strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; letter-spacing: -0.01em; }
.fact span { font-size: 0.9rem; color: var(--muted); }

.mv-grid { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  position: relative; overflow: hidden; padding: clamp(2rem, 1.6rem + 2vw, 3rem); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mv-card--mission { background: var(--navy-700); border-color: var(--navy-700); color: #d5e6f5; }
.mv-card--mission h2 { color: #fff; }
.mv-card--mission .icon-tile { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mv-card h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin: 1.5rem 0 0.75rem; }
.mv-card p { font-size: 1.08rem; line-height: 1.7; }
.mv-card__quote { position: absolute; right: 1.5rem; top: 0.5rem; font-family: Georgia, serif; font-size: 7rem; line-height: 1; opacity: 0.08; color: currentColor; }

.commit-grid { display: grid; gap: 1rem; counter-reset: c; }
@media (min-width: 680px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .commit-grid { grid-template-columns: repeat(3, 1fr); } }
.commit-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.commit-item:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.commit-item__check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--green-50); color: var(--green-600); }
.commit-item__check .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.commit-item p { margin: 0.35rem 0 0; color: var(--ink); font-weight: 600; font-family: var(--font-head); font-size: 1.04rem; line-height: 1.4; }
.commit-intro h2 { font-size: var(--fs-h2); }
.commit-intro { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0.5rem 1.5rem 0; }

.steps { list-style: none; display: grid; gap: 1.5rem; position: relative; }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps::before {
    content: ''; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px);
  }
}
.step { position: relative; text-align: left; padding: 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step__num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-700); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--blue-100); margin-bottom: 1.5rem;
}
.step:nth-child(2) .step__num { background: var(--blue-600); }
.step:nth-child(3) .step__num { background: var(--green-600); }
.step h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.6rem; }
.step h3 .icon { color: var(--blue-500); }

/* ---------- Products page ---------- */
.cat-nav {
  position: sticky; top: 68px; z-index: 50; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.cat-nav__list { list-style: none; display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.85rem; scrollbar-width: none; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__link {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--body); text-decoration: none; background: #fff;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cat-nav__link .icon { width: 1.05em; height: 1.05em; }
.cat-nav__link:hover { border-color: var(--navy-700); color: var(--navy-700); }
.cat-nav__link.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.product-section { scroll-margin-top: 150px; }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-section__head { display: grid; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; align-items: center; }
@media (min-width: 900px) { .product-section__head { grid-template-columns: auto 1fr auto; } }
.product-section__icon { width: 72px; height: 72px; border-radius: 22px 22px 22px 8px; }
.product-section__icon .icon { width: 34px; height: 34px; }
.product-section__head h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.2rem); margin-bottom: 0.35rem; }
.product-section__head p { max-width: 640px; margin: 0; }
.product-section__count { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--blue-50) 55%, var(--blue-100) 100%);
}
.product-card__media::before { /* subtle grid behind placeholder */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 74, 129, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 74, 129, 0.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.product-card__media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px 28px 28px 10px;
  background: #fff; color: var(--navy-700); box-shadow: var(--shadow); transition: transform 0.5s var(--ease);
}
.product-card__placeholder .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.product-card:hover .product-card__placeholder { transform: scale(1.08) rotate(-4deg); }
.product-card__tag {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
.product-card__tag .icon { width: 13px; height: 13px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.product-card__cat { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 0.4rem; }
.product-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.94rem; margin-bottom: 1.25rem; }
.product-card__actions { display: flex; gap: 0.6rem; margin-top: auto; }
.product-card__actions .btn { flex: 1; min-height: 44px; padding-inline: 0.75rem; font-size: 0.86rem; }

.devices-wide { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .devices-wide { grid-template-columns: 1.1fr 1fr; } }
.devices-wide__media { align-self: start; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tint); box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .devices-wide__media { position: sticky; top: 150px; } }
.devices-wide__media img { width: 100%; height: 100%; object-fit: cover; }
.devices-wide .product-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 899.98px) { .devices-wide .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card--row { flex-direction: row; }
.product-card--row .product-card__media { aspect-ratio: auto; width: 34%; flex: none; }
.product-card--row .product-card__placeholder { width: 72px; height: 72px; }
.product-card--row .product-card__placeholder .icon { width: 34px; height: 34px; }
@media (max-width: 480px) { .product-card--row { flex-direction: column; } .product-card--row .product-card__media { width: 100%; aspect-ratio: 16 / 9; } }

.inquiry-band {
  display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 1.5rem + 3vw, 3.75rem);
  border-radius: 32px; background: var(--bg-tint); border: 1px solid var(--line); position: relative; overflow: hidden;
}
@media (min-width: 900px) { .inquiry-band { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }
.inquiry-band__icon { width: 84px; height: 84px; border-radius: 26px 26px 26px 8px; background: var(--navy-700); color: #fff; }
.inquiry-band__icon .icon { width: 38px; height: 38px; }
.inquiry-band h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 0.6rem; }
.inquiry-band p { max-width: 640px; }

/* Product dialog */
.dialog { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(100% - 2rem, 680px); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow-lg); color: var(--body); }
.dialog::backdrop { background: rgba(7, 29, 51, 0.55); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in 0.35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dialog__media { aspect-ratio: 16 / 7; }
.dialog__media .product-card__placeholder { width: 88px; height: 88px; }
.dialog__body { padding: 1.75rem 2rem 2rem; }
.dialog__body h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.dialog__note { display: flex; gap: 0.65rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--navy-800); font-size: 0.9rem; margin: 1.25rem 0 1.5rem; }
.dialog__note .icon { color: var(--blue-600); margin-top: 0.1rem; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dialog__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); z-index: 1;
}
.dialog__close:hover { background: var(--bg-soft); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card .icon-tile { width: 50px; height: 50px; flex: none; }
.contact-card .icon-tile .icon { width: 24px; height: 24px; }
.contact-card h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.4rem; font-weight: 700; }
.contact-card a { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-700); text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-card address { color: var(--ink); line-height: 1.6; }
.contact-aside-note { display: flex; gap: 0.75rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--green-50); color: #0c4d10; font-size: 0.95rem; }
.contact-aside-note .icon { color: var(--green-600); margin-top: 0.15rem; }

.form-card { padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.form-card__head h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin-bottom: 0.4rem; }
.form-card__head p { margin-bottom: 1.75rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.req { color: var(--danger); margin-left: 2px; }
.consent-field .consent { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--body); }
.section--map { padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.input {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: #fbfdfe; color: var(--ink); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: #8a9aab; }
.input:hover { border-color: #b4c6d6; }
.input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(22, 137, 199, 0.16); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
.field.is-invalid .input { border-color: var(--danger); background: var(--danger-bg); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }
.field.is-valid .input { border-color: #7fc483; }
.field__error { display: none; align-items: center; gap: 0.4rem; color: var(--danger); font-size: 0.86rem; font-weight: 500; }
.field__error .icon { width: 1rem; height: 1rem; }
.field.is-invalid .field__error { display: flex; }
.field__hint { font-size: 0.82rem; color: var(--muted); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; color: var(--body); }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--navy-700); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-actions small { color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 12px; font-size: 0.95rem; margin-bottom: 1.5rem; }
.alert .icon { margin-top: 0.1rem; }
.alert--error { background: var(--danger-bg); color: #7a271a; border: 1px solid #fecdca; }
.alert--error .icon { color: var(--danger); }
.alert strong { display: block; color: inherit; }
.alert a { color: inherit; font-weight: 600; }

.form-success { text-align: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0.5rem; }
.form-success__icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: var(--green-50); color: var(--green-600); box-shadow: 0 0 0 10px rgba(3, 173, 9, 0.06);
  animation: pop 0.6s var(--ease);
}
.form-success__icon .icon { width: 40px; height: 40px; stroke-width: 2.2; }
.form-success h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.form-success p { max-width: 460px; margin-inline: auto; }
.form-success .btn { margin-top: 1.5rem; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-tint); }
.map-wrap iframe { display: block; width: 100%; height: clamp(360px, 45vw, 500px); border: 0; filter: saturate(0.85); }
.map-card {
  position: absolute; left: 1.25rem; bottom: 1.25rem; max-width: 360px; padding: 1.4rem 1.5rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.map-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.map-card h3 .icon { color: var(--green-600); }
.map-card address { font-size: 0.92rem; margin-bottom: 1rem; }
@media (max-width: 640px) {
  .map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9bfd4; padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr; gap: 3rem; } }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: #5fd864; }
.brand__badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px 18px 18px 6px; background: #fff; flex: none; }
.brand__badge .brand__mark { height: 38px; }
.site-footer__tagline { margin: 1.25rem 0 0.75rem; color: #e4eef8; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; max-width: 300px; }
.site-footer__since { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.site-footer__since .icon { color: #5fd864; }
.site-footer__heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; margin-bottom: 1.25rem; font-weight: 700; }
.site-footer__links { list-style: none; display: grid; gap: 0.35rem; }
.site-footer a { color: #c7d8e8; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer__links a { display: inline-block; padding: 0.3rem 0; transition: color 0.2s, transform 0.25s var(--ease); }
.site-footer__links a:hover { transform: translateX(4px); }
.site-footer__contact { list-style: none; display: grid; gap: 0.85rem; margin-bottom: 1.5rem; }
.site-footer__contact li, .site-footer__address { display: flex; gap: 0.7rem; align-items: flex-start; }
.site-footer__contact .icon, .site-footer__address .icon { color: #5fd864; margin-top: 0.2rem; }
.site-footer__contact a { word-break: break-word; }
.site-footer__address { line-height: 1.7; }
.site-footer .btn--accent { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; }
.site-footer__bar { display: flex; gap: 6px; }
.site-footer__bar span { display: block; height: 4px; border-radius: 4px; }
.site-footer__bar span:first-child { width: 42px; background: var(--blue-500); }
.site-footer__bar span:last-child { width: 22px; background: var(--green-400); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-700); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--navy-800); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: var(--section); }
.not-found__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--blue-100); margin-bottom: 0.5rem; }
.not-found .hero__actions { justify-content: center; margin-top: 2rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-enter] { opacity: 1; transform: none; clip-path: none; animation: none; }
}
