/* =========================================================================
   Arete Intralogistics — site stylesheet
   Sections:
     1. Fonts & tokens      6. Shape dividers      11. Accordions / bands
     2. Base                7. Home                12. Industries
     3. Layout helpers      8. Page intro          13. Expertise tabs
     4. Header & nav        9. CTA band            14. Forms
     5. Footer & buttons   10. Timeline cards      15. Misc pages
   ========================================================================= */

/* ---------- 1. Fonts & tokens ---------- */
@font-face { font-family: "Montserrat"; src: url(/assets/fonts/montserrat-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/assets/fonts/montserrat-latin-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/assets/fonts/opensans-latin.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  /* brand palette (from the original Blocksy theme) */
  --blue: #417b9a;        /* primary accent, buttons */
  --blue-dark: #315f77;
  --slate: #3a4f66;       /* body text, dark sections */
  --navy: #192a3d;        /* headings */
  --mist: #e1e8ed;        /* soft section background */
  --cloud: #f2f5f7;       /* footer background */
  --snow: #fafbfc;        /* page background */
  --white: #ffffff;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sys: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --shadow: 0 0 10px rgba(0, 0, 0, .5);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--slate);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1.25em; padding-left: 1.4em; }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
h4 { font-size: 22px; font-weight: 500; }
strong, b { font-weight: 700; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { 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: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main > section { position: relative; }
.section { padding: 80px 0; }
.bg-white { background: var(--white); }
.bg-snow { background: var(--snow); }
.bg-cloud { background: var(--cloud); }
.bg-mist { background: var(--mist); }
.bg-slate { background: var(--slate); }
.bg-navy { background: var(--navy); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.center { text-align: center; }
.lead-italic { font-style: italic; font-size: 15px; line-height: 1.7; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

/* ---------- 4. Header & nav ---------- */
.site-header { background: var(--white); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.logo img { width: 252px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; height: 100%; }
.menu { list-style: none; display: flex; margin: 0; padding: 0; height: 100%; }
.menu > li { position: relative; display: flex; align-items: center; height: 100%; }
.menu > li > a {
  display: flex; align-items: center; height: 100%; padding: 0 12px;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .01em;
  color: var(--navy); position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--slate);
  transform: scaleX(0); transition: transform .2s;
}
.menu > li > a:hover::after, .menu > li > a[aria-current="page"]::after { transform: scaleX(1); }
.menu > li > a[aria-current="page"], .menu > li > a:hover { color: var(--slate); }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { background: none; border: 0; padding: 0 12px 0 2px; height: 100%; color: var(--navy); cursor: pointer; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); box-shadow: 0 10px 20px rgba(41, 51, 61, .1); border-top: 2px solid var(--slate);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 20px; font-family: var(--font-ui); font-size: 14px; color: var(--navy); }
.sub-menu a:hover { background: var(--cloud); color: var(--blue); }
.header-cta { padding: 5px 16px !important; font-size: 15px !important; }
.header-cta[aria-current="page"] { background: var(--blue); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 999px) {
  .header-inner { height: 70px; }
  .logo img { width: 170px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: auto; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px;
    background: var(--white); box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; height: auto; }
  .menu > li { flex-wrap: wrap; height: auto; border-bottom: 1px solid var(--mist); }
  .menu > li > a { height: auto; padding: 14px 0; flex: 1; }
  .menu > li > a::after { display: none; }
  .sub-toggle { height: 48px; padding: 0 12px; }
  .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open:hover .sub-menu { display: block; }
  .header-cta { margin-top: 18px; align-self: flex-start; }
}

/* ---------- 5. Footer & buttons ---------- */
.site-footer { background: var(--cloud); font-family: var(--font-sys); font-size: 13px; line-height: 1.55; color: var(--slate); padding: 70px 0 30px; }
.site-footer strong { color: var(--navy); font-weight: 700; }
.site-footer a { color: inherit; text-decoration: underline; text-decoration-color: rgba(58, 79, 102, .35); }
.site-footer a:hover { color: var(--blue); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 80px; font-size: 12px; }
.footer-links a { text-decoration: none; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; margin-top: 40px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-ui); font-weight: 500; font-size: 17px; line-height: 1.3;
  padding: 10px 22px; border-radius: 3px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); box-shadow: none; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; box-shadow: none; }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); }
.btn-flat { box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Shape dividers (ported from Elementor) ----------
   Usage: <div class="shape shape-top" style="--fill:#fff;--h:50px">{{> shapes/mountains}}</div>
   The filled area is at the top of the SVG, so --fill = colour of the section ABOVE. */
.shape { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; z-index: 1; }
.shape-top { top: -1px; }
.shape-bottom { bottom: -1px; transform: rotate(180deg); }
.shape svg { display: block; position: relative; left: 50%; transform: translateX(-50%); width: calc(var(--w, 100%) + 1.3px); height: var(--h, 50px); }
.shape.flip svg { transform: translateX(-50%) rotateY(180deg); }
.shape path { fill: var(--fill, #fff); }
.has-shape-top { padding-top: calc(var(--pad, 80px) + var(--h, 50px)); }

/* ---------- 7. Home ---------- */
.hero {
  position: relative; color: #fff; min-height: 810px; display: flex; align-items: center; overflow: hidden;
  background: var(--navy) url(/assets/img/hero-warehouse.webp) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(32, 56, 88, .82); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 37px); font-weight: 800; line-height: 1.25; margin-bottom: 1.2em; }
.hero h1 .light { display: block; font-weight: 500; }
.hero p { font-size: 15px; line-height: 1.75; max-width: 540px; }
.hero .btn-row { margin-top: 40px; }
.hero .btn { font-family: var(--font); font-size: 14px; padding: 10px 24px; }
.hero-3d { height: 640px; position: relative; }
.hero-3d spline-viewer { width: 100%; height: 100%; display: block; }
@media (max-width: 1024px) {
  .hero { min-height: 0; padding: 90px 0 110px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-3d { display: none; }
}

.vision { padding: 60px 0 60px; }
.vision-media video, .vision-media img { width: 100%; max-width: 440px; margin: 0 auto; }
.vision h2 { font-size: 32px; margin-bottom: .5em; }
.vision p { font-size: 15px; line-height: 1.75; }
.vision em a { font-style: italic; }
@media (max-width: 860px) { .vision .vision-media { order: 2; } }

.clients { padding: 60px 0 110px; }
.clients h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-dup { display: contents; }
.marquee-track img { width: 150px; height: 150px; margin: -40px 20px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

.solutions { --h: 45px; padding: 110px 0 150px; }
.solutions > .container > h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 60px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 180px; padding: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--blue-dark) var(--img) center / cover no-repeat; text-align: center;
}
.tile::before { content: ""; position: absolute; inset: 0; background: var(--blue-dark); opacity: .66; transition: opacity .3s, background .3s; }
.tile:hover::before, .tile:focus-visible::before { background: var(--blue); opacity: .9; }
.tile > * { position: relative; }
.tile img { width: 56px; height: 56px; object-fit: contain; }
.tile h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; margin: 0; text-shadow: 0 0 10px rgba(0, 0, 0, .3); line-height: 1.1; }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- 8. Page intro ---------- */
.intro { padding: 80px 0 60px; }
.intro h1 { margin-bottom: .5em; }
.intro p { font-style: italic; font-size: 15px; line-height: 1.75; }

/* ---------- 9. CTA band ---------- */
.cta { text-align: center; padding: 150px 0 170px; color: #fff; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; max-width: 1000px; margin: 0 auto 50px; }
.cta .btn { font-size: 17px; }
.cta-slate { background: var(--slate); }

/* ---------- 10. Timeline cards (engineering / project oversight) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 40px; position: relative; }
.timeline > li { position: relative; display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: center; padding: 50px 20px; margin-bottom: 24px; background: #f7f9fa; border-radius: 4px; transition: box-shadow .3s, background .3s; }
.timeline h2 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 500; margin-bottom: .6em; }
.timeline p { font-size: 15px; line-height: 1.7; }
.timeline img { width: 230px; border-radius: 4px; box-shadow: 0 0 4px rgba(0, 0, 0, .25); }
.timeline > li::before {
  content: ""; position: absolute; left: -58px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 2px solid #000; border-radius: 50%; background: #fff; transition: background .3s, border-color .3s;
}
.timeline > li:not(:last-child)::after {
  content: ""; position: absolute; left: -49px; top: calc(50% + 20px); height: calc(100% - 16px); width: 1px; background: #000; transition: background .3s, width .3s;
}
.timeline > li.is-active { background: #f1f5f8; box-shadow: 0 0 10px rgba(0, 0, 0, .08); }
.timeline > li.is-active::before { background: var(--blue); border-color: var(--blue); }
.timeline > li.is-active::after { background: var(--blue); width: 3px; left: -50px; }
@media (max-width: 1240px) { .timeline > li::before, .timeline > li::after { display: none; } }
@media (max-width: 700px) { .timeline > li { grid-template-columns: 1fr; padding: 30px 20px; } .timeline img { width: 100%; } }

/* ---------- 11. Accordions / bands ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Colour bands with a big accordion title (implementation, training) */
.band { position: relative; padding: 70px 0 60px; color: #fff; }
.band + .band { margin-top: 0; }
.band .container { position: relative; z-index: 2; }
.band-acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .75); padding: 0 16px 6px;
}
.band-acc > summary h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 600; margin: 0; }
.band-acc > summary .caret { flex: none; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 11px solid #fff; transition: transform .25s; }
.band-acc[open] > summary .caret { transform: rotate(180deg); }
.band-acc.caret-left > summary { justify-content: flex-start; }
.band-acc.caret-left > summary .caret { order: -1; border: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid #fff; }
.band-acc.caret-left[open] > summary .caret { transform: rotate(90deg); }
.band-body { padding: 30px 16px 10px; font-size: 15px; line-height: 1.7; }
.band-body > p:first-child, .band-body .phase-intro { font-style: italic; }
.band-body h3 { color: #fff; font-size: 19px; font-weight: 700; margin: 0 0 .35em; }
.band-body h4 { color: #fff; font-size: 22px; font-weight: 700; margin: 1.4em 0 .5em; }
.band-body a { color: #fff; text-decoration: underline; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 40px; margin-top: 26px; }
.feature-grid p { margin: 0; }
.band-media { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.band-media img { border-radius: 6px; }
@media (max-width: 860px) { .band-media { grid-template-columns: 1fr; } }

/* List accordion with icons (ramp-up) */
.acc-list { margin: 0; padding: 0; }
.acc-item { border-bottom: 1px solid #d9dfe4; margin: 0 10px; transition: background .2s; }
.acc-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 15px 14px; }
.acc-item > summary h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; margin: 0; }
.acc-item > summary svg { width: 26px; height: 26px; flex: none; color: var(--navy); }
.acc-item:hover, .acc-item[open] { background: #d4e2ec; margin: 0; padding: 0 10px; border-radius: 3px; }
.acc-item .acc-body { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 10px 15px 30px; font-size: 15px; line-height: 1.75; }
.acc-item .acc-body img { border-radius: 4px; }
@media (max-width: 700px) { .acc-item .acc-body { grid-template-columns: 1fr; } }

/* Small "More" toggles (quality page, industries) */
.more { border-bottom: 1px solid #c7d2db; margin-top: 18px; }
.more > summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 14px; font-weight: 700; color: var(--navy); font-size: 15px; }
.more > summary::before { content: ""; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid currentColor; transition: transform .2s; }
.more[open] > summary::before { transform: rotate(90deg); }
.more > div { padding: 0 14px 18px; font-size: 15px; line-height: 1.75; }

/* Quality cards */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 44px; }
.q-card { background: var(--mist); border: 1px solid #cfd8df; border-radius: 10px; padding: 36px 10px 40px; }
.q-card h2 { text-align: center; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; margin-bottom: 36px; }
.q-card img { border-radius: 10px; width: 100%; }
.q-card .q-lead { font-style: italic; font-size: 15px; line-height: 1.7; margin-top: 26px; }
@media (max-width: 800px) { .q-grid { grid-template-columns: 1fr; } }

/* ---------- 12. Industries ---------- */
.ind-section { padding: 80px 0 130px; --h: 50px; }
.slideshow { position: relative; height: 430px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.slideshow img.active { opacity: 1; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 80px; padding: 0 10px; margin-top: -50px; position: relative; }
.ind-card { position: relative; background: #fff; border-radius: var(--radius); padding: 50px 12px 30px; text-align: center; font-size: 15px; line-height: 1.75; }
.ind-card .ind-icon { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 6px; background: var(--navy); display: grid; place-items: center; transition: background .3s; }
.ind-card .ind-icon img { width: 42px; height: 42px; object-fit: contain; }
.ind-card:hover .ind-icon { background: var(--blue); }
.ind-card h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin-bottom: .55em; }
.ind-card .more { border: 0; margin-top: 8px; text-align: left; }
.ind-card .more > summary { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); padding: 6px 0; }
.ind-card .more > div { padding: 8px 0 0; font-size: 14px; }
.ind-grid .ind-card:last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 960px) {
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 60px 30px; margin-top: 60px; }
  .ind-grid .ind-card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .slideshow { height: 300px; }
}
@media (max-width: 620px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- 13. Expertise tabs ---------- */
.xp-section { --h: 50px; padding: 110px 0 120px; }
.xp-section > .container > h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; margin-bottom: 70px; }
.tabs { display: grid; grid-template-columns: 235px 1fr; box-shadow: var(--shadow); background: #eceef0; }
.tablist { display: flex; flex-direction: column; background: var(--slate); }
.tablist button {
  text-align: left; background: transparent; border: 0; color: #fff; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.05; padding: 20px 25px;
  transition: background .2s, color .2s;
}
.tablist button:hover { color: #c7dbe7; }
.tablist button[aria-selected="true"] { background: #eceef0; color: var(--blue); }
.tabpanel { padding: 22px 20px 40px; color: var(--navy); font-size: 15.5px; line-height: 1.75; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 22px; margin-bottom: .6em; }
.tabpanel .xp-img { float: right; width: 300px; margin: 0 0 16px 24px; }
.tabpanel ul { margin-bottom: 1.25em; }
.tabpanel::after { content: ""; display: block; clear: both; }
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; flex-wrap: wrap; }
  .tablist button { flex: 1 1 50%; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .tabpanel .xp-img { float: none; width: 220px; margin: 0 auto 16px; }
}

/* ---------- 14. Forms ---------- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 30px; margin-top: 50px; }
.contact-form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-family: var(--font-ui); font-size: 16px; color: var(--navy);
  background: transparent; border: 0; border-bottom: 1px solid #777; border-radius: 0; padding: 26px 0 10px; outline: 0;
}
.field textarea { border: 1px solid #777; padding: 28px 10px 10px; min-height: 170px; resize: vertical; }
.field label { position: absolute; left: 0; top: 26px; font-family: var(--font-ui); font-size: 16px; color: #888; pointer-events: none; transition: all .15s; }
.field textarea + label { left: 10px; top: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 12px; font-weight: 700; color: var(--navy); }
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; }
.field-select label { position: static; display: block; font-size: 12px; font-weight: 700; color: var(--navy); }
.field-select select { padding-top: 8px; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 15 15'%3E%3Cpath d='M2.1 3.2l5.4 5.4 5.4-5.4L14.3 4.6l-6.8 6.8L.7 4.6z' fill='%23192a3d'/%3E%3C/svg%3E") right 4px center no-repeat; }
.req { color: #c00; }
.counter { text-align: right; font-size: 12px; color: #888; margin-top: 4px; font-family: var(--font-ui); }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status.ok { color: #1f7a3a; }
.form-status.err { color: #b00020; }
.contact-form .btn { justify-self: start; font-family: var(--font); font-weight: 700; font-size: 15px; padding: 9px 12px; border-radius: 2px; box-shadow: none; }
@media (max-width: 700px) { .contact-form { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap > * { max-width: 900px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.faq-toc a { padding: 6px 14px; border: 1px solid #cfd8df; border-radius: 20px; font-size: 14px; color: var(--navy); background: #fff; }
.faq-toc a:hover { border-color: var(--blue); color: var(--blue); }
.faq-wrap > h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 50px 0 10px; scroll-margin-top: 20px; }
.faq { border-bottom: 1px solid #d9dfe4; }
.faq > summary { position: relative; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.4; }
.faq > summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.faq > summary:hover { color: var(--blue); }
.faq > div { padding: 0 0 22px; font-size: 15.5px; line-height: 1.75; }
.faq ul { margin-top: 0; }
.faq li { margin-bottom: .4em; }

/* ---------- 15. Misc pages ---------- */
.services-list { list-style: none; padding: 30px 0 60px; margin: 0; }
.services-list a { display: inline-flex; align-items: center; gap: 18px; padding: 25px 0; color: var(--navy); }
.services-list img { width: 60px; height: 60px; object-fit: contain; }
.services-list span { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; transition: color .2s; }
.services-list a:hover span { color: var(--blue); }

.about { padding: 80px 0 110px; }
.about-photo { float: left; width: 225px; height: 225px; border-radius: 50%; object-fit: cover; margin: 0 30px 20px 0; shape-outside: circle(50%); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.about h1 { font-size: clamp(28px, 3.2vw, 36px); margin: 0 0 1.6em; padding-top: 0; }
.about p { font-size: 16.5px; line-height: 1.6; text-align: justify; }
.about .signature { text-align: right; font-style: italic; clear: both; }
@media (max-width: 600px) { .about-photo { float: none; margin: 0 auto 30px; } .about h1 { text-align: center; } .about p { text-align: left; } }

.prose { max-width: 1120px; font-family: var(--font-sys); font-size: 16px; }
.prose h2 { font-family: var(--font-sys); font-size: clamp(26px, 3vw, 36px); margin-top: 1.1em; }
.prose h3 { font-family: var(--font-sys); font-size: 30px; }

.tool-card { max-width: 742px; border: 1px solid #ddd; border-radius: 10px; padding: 20px 20px 40px; font-family: var(--font-sys); background: var(--snow); }
.tool-card h1 { font-family: var(--font-sys); font-size: 34px; margin: 10px 0 30px; }
.tool-card label { display: block; font-size: 15px; margin-bottom: 8px; }
.tool-card input, .tool-card textarea { width: 100%; padding: 10px 15px; font: inherit; font-size: 16px; border: 1px solid #e0e5e9; border-radius: 3px; background: #fff; margin-bottom: 14px; }
.tool-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card .btn { box-shadow: none; font-family: var(--font-sys); font-weight: 700; font-size: 15px; padding: 9px 18px; margin-bottom: 12px; }
.tool-card canvas { margin-top: 20px; }
.error-text { color: #b00020; }
