/* =========================================================
   SMARTLAB LLC — styles
   ========================================================= */

:root {
  --bg: #f2f7f8;
  --bg-soft: #e6f0f2;
  --bg-card: #ffffff;
  --ink: #0c1f38;
  --ink-soft: #4a5d72;
  --line: #c8d6de;
  --accent: #0b7782;
  --accent-dark: #086069;
  --accent-soft: #d7eef0;
  --accent-bright: #5cd0d9;
  --dark: #0c1f38;
  --dark-2: #17406f;
  --success: #1a7a4c;
  --danger: #b42318;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow: 0 12px 40px rgba(12, 31, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 31, 56, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(92, 208, 217, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(11, 119, 130, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 119, 130, 0.28);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(11, 119, 130, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(11, 119, 130, 0.06);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--accent-bright);
  color: var(--ink);
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent-dark); }
.link-btn--footer {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  text-decoration: none;
}
.link-btn--footer:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    height 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(242, 247, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(200, 214, 222, 0.7);
  box-shadow: 0 4px 24px rgba(12, 31, 56, 0.06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.logo__text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.logo__text b { font-weight: 700; color: var(--accent); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text b { color: var(--accent-bright); }
.logo--light .logo__mark { color: var(--accent-bright); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}
.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 20px; }
.nav-toggle__bar:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(230, 244, 246, 0.9) 0%, transparent 48%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero__copy h1 {
  margin-bottom: 1.15rem;
  max-width: 16ch;
  animation: rise-in 0.8s var(--ease) both;
}
.hero__lead {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
  animation: rise-in 0.8s var(--ease) 0.1s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  animation: rise-in 0.8s var(--ease) 0.18s both;
}
.hero__note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 32rem;
  animation: rise-in 0.8s var(--ease) 0.26s both;
}

/* Directory panel in hero */
.directory {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.15rem 1.15rem;
  animation: rise-in 0.85s var(--ease) 0.2s both;
}
.directory__head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem 0.35rem;
}
.directory__list { display: grid; gap: 0.35rem; }
.directory__list > li {
  animation: rise-in 0.55s var(--ease) both;
  animation-delay: calc(0.28s + var(--i, 0) * 0.07s);
}
.directory__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.directory__row:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}
.directory__row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.directory__row small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.directory__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}
.directory__row:hover .directory__icon {
  background: var(--accent);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-6) 0;
}
.section--soft {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #edf4f6 100%);
}
.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(11, 119, 130, 0.35), transparent 55%),
    linear-gradient(145deg, #0c1f38 0%, #143456 55%, #0b7782 140%);
  color: rgba(255, 255, 255, 0.88);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(255, 255, 255, 0.72); }

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-4);
}
.section__head h2 { margin-bottom: 0.75rem; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about__copy h2 { margin-bottom: 1rem; }
.about__copy .lede { margin-bottom: 1rem; }
.about__copy > p { color: var(--ink-soft); margin-bottom: 1.5rem; }

.checklist {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.98rem;
}
.checklist .icon {
  color: var(--accent);
  margin-top: 0.15rem;
}

.kved {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0;
  overflow: hidden;
}
.kved summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.kved summary::-webkit-details-marker { display: none; }
.kved summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.kved[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}
.kved__intro {
  padding: 0 1.15rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.kved__list {
  padding: 0 1.15rem 1.15rem;
  display: grid;
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
}
.kved__list li {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(200, 214, 222, 0.6);
}
.kved__list li span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.about__media {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #cddfee;
}
.about__art {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 450;
}
.about__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(12, 31, 56, 0.12);
}
.about__badge .icon { width: 1.05rem; height: 1.05rem; color: var(--accent); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.service {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 119, 130, 0.35);
}
.service__icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.service h3 { margin: 0; }
.service > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.service__codes {
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent) !important;
  margin-top: 0.25rem;
}
.service__link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  margin-top: 0.35rem;
  align-self: start;
  position: relative;
}
.service__link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.25s var(--ease);
}
.service__link:hover::after { transform: translateX(4px); }

/* ---------- Why us ---------- */
.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.why__intro h2 { margin-bottom: 0.9rem; max-width: 16ch; }
.why__intro .lede { margin-bottom: 1.5rem; }

.why__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.why__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.why__list li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(92, 208, 217, 0.35);
  transform: translateY(-2px);
}
.why__list .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-bright);
  margin-top: 0.1rem;
}
.why__list h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.why__list p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: start;
}
.contact__info h2 { margin-bottom: 0.85rem; }
.contact__info .lede { margin-bottom: 1.75rem; }

.contact__list {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}
.contact__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.contact__item .icon {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent);
  margin-top: 0.15rem;
}
.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.contact__value {
  display: block;
  font-weight: 500;
}
a.contact__value {
  color: var(--accent);
  font-weight: 600;
}
a.contact__value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__map {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.contact__map:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 1rem 1.1rem;
  background: rgba(11, 119, 130, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.req { color: var(--accent); }
.opt { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a8bcc8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 119, 130, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.field-error {
  min-height: 1.2em;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}
.field__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.counter {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.field--check { margin-top: 0.25rem; }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form__status {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  min-height: 1.3em;
}
.form__status.is-success { color: var(--success); font-weight: 600; }
.form__status.is-error { color: var(--danger); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #081628;
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.75rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand p {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer__col h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer__disclaimer {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(11, 119, 130, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }
.to-top .icon { width: 1.2rem; height: 1.2rem; }

/* ---------- Dialogs ---------- */
.dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(640px, calc(100% - 2rem));
  max-height: min(85vh, 720px);
  box-shadow: var(--shadow-lg);
}
.dialog::backdrop {
  background: rgba(8, 22, 40, 0.55);
  backdrop-filter: blur(4px);
}
.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
}
.dialog__head h2 {
  font-size: 1.25rem;
  margin: 0;
}
.dialog__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s;
}
.dialog__close:hover { background: var(--line); }
.dialog__body {
  padding: 1.25rem 1.35rem 1.75rem;
  overflow: auto;
}
.dialog__body h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.45rem;
}
.dialog__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.dialog__body a {
  color: var(--accent);
  font-weight: 600;
}
.dialog__body a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .about__grid,
  .why,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy h1 { max-width: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .why__intro h2 { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(242, 247, 248, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0.35s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav__link {
    display: block;
    padding: 0.7rem 0.5rem;
    font-size: 1.05rem;
  }
  .nav__cta { margin-top: 0.5rem; }
  .nav__cta .btn { width: 100%; }

  body.nav-open { overflow: hidden; }

  .services,
  .why__list,
  .steps,
  .form__row,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: calc(var(--header-h) + 2.25rem) 0 3rem; }
  .section { padding: 3.5rem 0; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { width: min(1120px, 100% - 1.5rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
