/* =================================================================
   Quale Capital — Main stylesheet
   Design system: navy + cream, Playfair Display + Be Vietnam Pro
   ================================================================= */

@font-face { font-family: 'Cygre'; src: url('../fonts/Cygre-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cygre'; src: url('../fonts/Cygre-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cygre'; src: url('../fonts/Cygre-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ============== Reset ============== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Cygre', sans-serif; color: var(--text); font-size: 16px; line-height: 1.7; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============== Variables ============== */
:root {
  --navy: #1E3252;
  --navy-d: #151f35;
  --accent: #4a6fa5;
  --teal: #3a6b7e;
  --blue-l: #C8E6F3;
  --bg: #f8f8f6;
  --bg2: #eef0ec;
  --white: #fff;
  --text: #282828;
  --muted: #6b7280;
  --border: rgba(30,50,82,.12);
  --header-h: 88px;
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5 { font-family: 'Cygre', sans-serif; color: var(--navy); line-height: 1.1; font-weight: 400; }
p { color: var(--muted); line-height: 1.75; }

.q-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.q-wrap--narrow { max-width: 980px; }
.q-wrap--wide { max-width: 1400px; }

/* ============== Header ============== */
.q-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.q-header.is-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(30,50,82,.06);
}
.q-header-inner { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.q-header-actions { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.q-logo { display: inline-flex; align-items: center; }
.q-logo svg, .q-logo img { height: 56px; width: auto; }
.q-nav { display: flex; gap: 40px; justify-content: center; align-items: center; }
.q-nav > a, .q-nav-item > a {
  position: relative;
  font-size: 16px; font-weight: 500; letter-spacing: 0.2px;
  color: var(--navy); padding: 8px 0;
  transition: color .3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.q-nav > a::after, .q-nav-item > a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--navy);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  transform: translateX(-50%);
}
.q-nav > a:hover, .q-nav-item > a:hover { color: var(--accent); }
.q-nav > a:hover::after, .q-nav > a.is-active::after,
.q-nav-item > a:hover::after, .q-nav-item > a.is-active::after { width: 100%; background: var(--accent); }

/* Dropdown */
.q-nav-item { position: relative; }
.q-nav-item > a > svg { width: 10px; height: 10px; transition: transform .3s; }
.q-nav-item:hover > a > svg { transform: rotate(180deg); }
.q-nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; padding: 12px 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(30,50,82,.10);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  z-index: 10;
}
.q-nav-item:hover .q-nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.q-nav-dropdown::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.q-nav-dropdown a {
  display: block; padding: 10px 22px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  transition: background .2s, color .2s; white-space: nowrap;
}
.q-nav-dropdown a:hover { background: var(--bg); color: var(--accent); }

.q-lang {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.q-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 26px; border-radius: 999px;
  color: var(--muted);
  transition: all .3s;
}
.q-lang a:hover { color: var(--navy); }
.q-lang a.is-active { background: var(--navy); color: var(--white); }

.q-burger { display: none; }
.q-mobile-menu { display: none; }

/* Header overlays the hero — no body padding so hero starts at top */
body.has-fixed-header { padding-top: 0; }

/* ============== Hero ============== */
.q-hero {
  min-height: 100vh;
  display: flex; align-items: flex-start;
  background: var(--bg);
  color: var(--navy); position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 24px) 0 60px;
}
.q-hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.q-hero-vline { position: absolute; top: 0; bottom: 0; right: 38%; width: 1px; background: rgba(30,50,82,.06); pointer-events: none; z-index: 1; }
.q-hero-orb {
  position: absolute; top: 10%; right: 5%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(30,50,82,.03) 0%, transparent 70%);
  border-radius: 50%; filter: blur(60px);
  animation: q-float 12s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
@keyframes q-float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
.q-hero .q-wrap { position: relative; z-index: 2; width: 100%; }
.q-hero-label { font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(30,50,82,.45); margin-bottom: 24px; }
.q-hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  color: var(--navy); letter-spacing: -2px;
  max-width: 980px; line-height: 1.05; margin-bottom: 28px;
}
.q-hero-sub { font-size: 18px; color: rgba(30,50,82,.6); max-width: 480px; line-height: 1.7; margin-bottom: 40px; }

/* Hero CTA buttons (3 buttons row) */
.q-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.q-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: all .4s cubic-bezier(.16,1,.3,1);
  border: 1px solid transparent;
}
.q-btn--primary { background: var(--navy); color: var(--white); }
.q-btn--primary:hover { background: var(--navy-d); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,50,82,.18); }
.q-btn--ghost { background: transparent; color: var(--navy); border-color: rgba(30,50,82,.2); }
.q-btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.q-btn svg { width: 14px; height: 14px; transition: transform .3s; }
.q-btn:hover svg { transform: translateX(3px); }

.q-hero-hline { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: rgba(30,50,82,.08); transition: width 2s cubic-bezier(.16,1,.3,1) .5s; z-index: 1; }
.q-hero.q-loaded .q-hero-hline { width: 100%; }

/* ============== Page hero (subpages) ============== */
.q-pagehero {
  position: relative; padding: calc(var(--header-h) + 64px) 0 80px;
  background: var(--bg);
  color: var(--navy); overflow: hidden;
}
.q-pagehero h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -2px; margin-bottom: 24px; max-width: 760px; }
.q-pagehero .q-hero-label { margin-bottom: 24px; }
.q-pagehero .q-hero-sub { max-width: 560px; }

/* ============== Footer (default — navy) ============== */
.q-footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 80px 0 32px; position: relative; overflow: hidden;
}
.q-footer::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(74,111,165,.08), transparent 70%); pointer-events: none;
}

/* Light footer — used on pages where the previous section is also navy (process),
   to provide visual contrast */
.q-footer--light {
  background: var(--white);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.q-footer--light::before { display: none; }
.q-footer--light .q-footer-logo svg, .q-footer--light .q-footer-logo img { filter: none; }
.q-footer--light .q-footer-tag { color: var(--muted); }
.q-footer--light .q-footer-col h4 { color: var(--navy); }
.q-footer--light .q-footer-col a { color: var(--muted); }
.q-footer--light .q-footer-col a:hover { color: var(--navy); }
.q-footer--light .q-footer-bottom { color: var(--muted); border-top-color: var(--border); }
.q-footer--light .q-footer-bottom a:hover { color: var(--navy); }
.q-footer--light .q-footer-social a { color: var(--muted); border-color: var(--border); }
.q-footer--light .q-footer-social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.q-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.q-footer-logo svg, .q-footer-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 24px; }
.q-footer-tag { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; }
.q-footer-col h4 { font-family: 'Cygre', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); margin-bottom: 24px; }
.q-footer-col ul li { margin-bottom: 12px; }
.q-footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .3s; }
.q-footer-col a:hover { color: var(--blue-l); }
.q-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.45); }
.q-footer-bottom a:hover { color: var(--blue-l); }
.q-footer-social { display: flex; gap: 16px; }
.q-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  transition: all .3s;
}
.q-footer-social a:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.q-footer-social svg { width: 16px; height: 16px; }

/* ============== Reveal animations ============== */
.q-r { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.q-r.q-v { opacity: 1; transform: translateY(0); }
.q-r-d1 { transition-delay: .1s; }
.q-r-d2 { transition-delay: .2s; }
.q-r-d3 { transition-delay: .3s; }
.q-r-d4 { transition-delay: .4s; }
.q-r-d5 { transition-delay: .5s; }
.q-r-d6 { transition-delay: .6s; }

/* ============== Generic section ============== */
.q-section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.q-section--bg { background: var(--bg); }
.q-section--navy { background: var(--navy); color: var(--white); }
.q-section--navy h2, .q-section--navy h3 { color: var(--white); }
.q-section--navy p { color: rgba(255,255,255,.6); }

.q-section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.q-section-head--center { text-align: center; }
.q-section-head--center .q-section-sub { margin-left: auto; margin-right: auto; }
.q-section-label { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(30,50,82,.55); margin-bottom: 20px; }
.q-section-label::before { content: ''; width: 28px; height: 1px; background: rgba(30,50,82,.5); }
.q-section--navy .q-section-label { color: rgba(200,230,243,.55); }
.q-section--navy .q-section-label::before { background: rgba(200,230,243,.5); }
.q-section-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 20px; }
.q-section-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.q-section-sub { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 640px; }
.q-section--navy .q-section-sub { color: rgba(255,255,255,.6); }

/* ============== Service cards (Key Directions) ============== */
.q-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.q-service-card {
  position: relative; padding: 40px;
  background: var(--white); border-radius: 16px; border: 1px solid var(--border);
  transition: all .5s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.q-service-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, rgba(74,111,165,.06), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.q-service-card:hover { transform: translateY(-6px); border-color: rgba(74,111,165,.3); box-shadow: 0 24px 64px rgba(30,50,82,.08); }
.q-service-card:hover::before { opacity: 1; }
.q-service-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(30,50,82,.04); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: all .5s; }
.q-service-icon svg { width: 28px; height: 28px; color: var(--navy); }
.q-service-card:hover .q-service-icon { background: var(--navy); }
.q-service-card:hover .q-service-icon svg { color: var(--white); }
.q-service-card h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; letter-spacing: -0.3px; }
.q-service-card p { font-size: 14px; line-height: 1.75; }
.q-service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); transition: gap .3s; }
.q-service-link svg { width: 12px; height: 12px; transition: transform .3s; }
.q-service-card:hover .q-service-link { gap: 12px; }

/* ============== Stat / metric (numbers) ============== */
.q-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.q-metric { padding: 0 8px; position: relative; padding-top: 32px; }
.q-metric::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: rgba(200,230,243,.4); transition: width .8s cubic-bezier(.16,1,.3,1); }
.q-metric:hover::before { width: 72px; }
.q-metric-num { font-family: 'Cygre', sans-serif; font-size: clamp(56px, 7vw, 100px); font-weight: 400; line-height: .95; color: var(--white); letter-spacing: -3px; margin-bottom: 14px; white-space: nowrap; }
.q-metric h3 { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue-l); margin-bottom: 10px; font-family: 'Cygre', sans-serif; }
.q-metric p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 240px; }

/* ============== Image break (parallax) ============== */
.q-imgbreak { height: 60vh; min-height: 420px; position: relative; overflow: hidden; }
.q-imgbreak-bg { position: absolute; top: -40px; left: 0; right: 0; bottom: -40px; background-size: cover; background-position: center; transition: transform .1s linear; }
.q-imgbreak-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,27,49,.05) 0%, rgba(24,27,49,.3) 100%); pointer-events: none; }

/* ============== Big statement (scroll fill) ============== */
.q-statement { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.q-statement-text {
  font-family: 'Cygre', sans-serif;
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1.3;
  font-weight: 400; letter-spacing: -0.6px;
  color: rgba(30,50,82,.15);
}
.q-char { display: inline; color: rgba(30,50,82,.15); transition: color .15s ease; }
.q-char.q-filled { color: var(--navy); }

/* ============== Sail symbol — scroll-driven sequence ============== */
.q-sail-scroll {
  position: relative;
  height: 480vh;            /* 4 phases × ~120vh + final celebration ~100vh */
  background: var(--white);
}
.q-sail-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.q-sail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: 100%;
}
.q-sail-text { max-width: 520px }
.q-sail-text h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 24px; letter-spacing: -1.5px; }
.q-sail-text p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
.q-sail-stage {
  position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto;
  width: 100%;
}
.q-sail-stage {
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.q-sail-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transform: scale(0.985);
}
.q-sail-stage img.is-active {
  opacity: 1;
  transform: scale(1);
}
/* Final celebration — all 4 visible + soft scale-up + glow */
.q-sail-stage.is-complete { transform: scale(1.06); }
.q-sail-stage.is-complete img { opacity: 1; transform: scale(1); }
.q-sail-stage.is-complete::before {
  content: ''; position: absolute; inset: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(74,111,165,.18), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  animation: q-sail-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes q-sail-pulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.05); }
}
.q-sail-stage { position: relative; }
.q-sail-progress {
  display: flex; align-items: center; gap: 18px;
  margin-top: 36px; max-width: 320px;
}
.q-sail-progress-num {
  font-family: 'Cygre', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; color: var(--navy);
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 56px;
}
.q-sail-progress-num [data-sail-current] {
  display: inline-block; min-width: 22px; text-align: right;
  color: var(--accent);
}
.q-sail-progress-sep { color: rgba(30,50,82,.35); }
.q-sail-progress-bar {
  flex: 1; height: 2px; background: rgba(30,50,82,.1); border-radius: 999px;
  overflow: hidden;
}
.q-sail-progress-fill {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
@media (max-width: 900px) {
  .q-sail-scroll { height: auto; }
  .q-sail-pin { position: static; height: auto; padding: 80px 0; }
  .q-sail-grid { grid-template-columns: 1fr; gap: 48px; }
  .q-sail-stage { max-width: 360px; }
}

/* ============== About — philosophy (typographic editorial) ============== */
.q-philo {
  position: relative; overflow: hidden;
  padding: clamp(100px, 12vw, 180px) 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--white) 0%, var(--bg) 30%, var(--bg) 70%, var(--white) 100%);
}
.q-philo-bg-mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cygre', sans-serif; font-weight: 600;
  font-size: clamp(220px, 38vw, 600px);
  letter-spacing: -0.06em; line-height: 1;
  color: rgba(30, 50, 82, 0.04);
  pointer-events: none; user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.q-philo .q-wrap { position: relative; z-index: 1; }
.q-philo-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.q-philo-head .q-section-label { display: inline-flex; }
.q-philo-title { font-size: clamp(36px, 5vw, 68px); letter-spacing: -1.5px; margin-top: 18px; }
.q-philo-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.q-philo-equation {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: stretch; gap: 24px;
  max-width: 1080px; margin: 0 auto clamp(48px, 6vw, 88px);
}
.q-philo-word {
  position: relative;
  padding: 48px 40px 56px;
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s;
}
.q-philo-word:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(30,50,82,.06); }
.q-philo-word-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(74,111,165,.1);
  margin-bottom: 28px;
}
.q-philo-word-name {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -3px; line-height: 1;
  color: var(--navy); font-weight: 500;
  margin-bottom: 24px;
}
.q-philo-word p { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 380px; }
.q-philo-plus {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cygre', sans-serif; font-weight: 300;
  font-size: clamp(60px, 8vw, 100px);
  color: var(--navy); opacity: 0.4; padding: 0 12px;
}
.q-philo-narrative { text-align: center; max-width: 720px; margin: 0 auto; }
.q-philo-narrative p {
  font-size: clamp(18px, 2.2vw, 24px); line-height: 1.6;
  color: var(--text); font-weight: 400;
}
.q-philo-quote {
  margin: clamp(56px, 7vw, 96px) auto 0;
  max-width: 720px; text-align: center;
  padding-top: 56px; position: relative;
}
.q-philo-quote::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 1px; background: rgba(30,50,82,.25);
}
.q-philo-quote blockquote {
  font-family: 'Cygre', sans-serif; font-style: italic;
  font-size: clamp(22px, 3vw, 36px); line-height: 1.4;
  color: var(--navy); letter-spacing: -0.5px;
  font-weight: 400;
}
.q-philo-quote figcaption {
  margin-top: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
  .q-philo-equation { grid-template-columns: 1fr; gap: 12px; }
  .q-philo-plus { padding: 4px 0; }
}

/* ============== About — principles (4 icons) ============== */
.q-principles { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.q-principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
.q-principle { display: flex; gap: 24px; align-items: flex-start; }
.q-principle-icon {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.q-principle-icon svg { width: 28px; height: 28px; }
.q-principle h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; letter-spacing: -0.3px; }
.q-principle p { font-size: 14px; line-height: 1.7; }

/* ============== Universe section ============== */
.q-universe { position: relative; background: var(--white); height: 70vh; min-height: 500px; max-height: 800px; overflow: hidden; }
.q-universe-canvas { position: absolute; inset: 0; }
.q-universe-label { position: absolute; top: 32px; left: 32px; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(30,50,82,.5); z-index: 2; }
.q-universe-label::before { content: ''; width: 28px; height: 1px; background: rgba(30,50,82,.5); }
.q-universe-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(30,50,82,.35); z-index: 2; }

/* ============== Sticky stacking services (subpages) ============== */
.q-acc { background: var(--white); }
.q-acc-wrap { position: relative; }
.q-acc-item {
  position: sticky;
  display: grid; grid-template-columns: 56px 1fr 45%; gap: 0 32px;
  padding: 48px 40px; background: var(--white);
  border-top: 1px solid var(--border);
  align-items: start; width: 100%;
}
.q-acc-item:nth-child(1) { top: calc(var(--header-h) + 20px); z-index: 1; }
.q-acc-item:nth-child(2) { top: calc(var(--header-h) + 80px); z-index: 2; }
.q-acc-item:nth-child(3) { top: calc(var(--header-h) + 200px); z-index: 3; }
.q-acc-item:nth-child(4) { top: calc(var(--header-h) + 280px); z-index: 4; }
.q-acc-item:nth-child(5) { top: calc(var(--header-h) + 400px); z-index: 5; }
.q-acc-item:nth-child(6) { top: calc(var(--header-h) + 540px); z-index: 6; }
.q-acc-num { font-family: 'Cygre', sans-serif; font-size: 13px; color: var(--muted); padding-top: 6px; }
.q-acc-title { font-family: 'Cygre', sans-serif; font-size: clamp(24px, 3vw, 38px); color: var(--navy); line-height: 1.15; letter-spacing: -0.3px; margin-bottom: 20px; }
.q-acc-desc { grid-column: 2; grid-row: 2; }
.q-acc-desc p { font-size: 15px; line-height: 1.8; max-width: 460px; }
.q-acc-img { grid-column: 3; grid-row: 1/4; border-radius: 8px; overflow: hidden; height: 380px; background-size: cover; background-position: center; }

/* ============== Process steps (4 cols on navy) ============== */
.q-process { background: var(--navy); color: var(--white); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.q-process::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.q-process .q-wrap { position: relative; z-index: 1; }
.q-process h2 { color: var(--white); }
.q-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.q-step { border-left: 1px solid rgba(255,255,255,.1); padding-left: 24px; transition: all .5s cubic-bezier(.16,1,.3,1); }
.q-step:hover { border-left-color: var(--accent); padding-left: 32px; }
.q-step-num { font-family: 'Cygre', sans-serif; font-size: 48px; font-weight: 700; color: rgba(200,230,243,.15); line-height: 1; margin-bottom: 20px; transition: color .4s; }
.q-step:hover .q-step-num { color: rgba(200,230,243,.4); }
.q-step h3 { color: var(--white); font-size: 18px; font-weight: 500; margin-bottom: 12px; font-family: 'Cygre', sans-serif; letter-spacing: 0; }
.q-step p { color: rgba(240,246,252,.45); font-size: 14px; line-height: 1.7; }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .q-nav { gap: 24px; }
  .q-nav a { font-size: 13px; }
}

@media (max-width: 900px) {
  .q-nav { display: none; }
  .q-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; }
  .q-burger span { display: block; width: 22px; height: 1px; background: var(--navy); position: relative; transition: all .3s; }
  .q-burger span::before, .q-burger span::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--navy); transition: all .3s; }
  .q-burger span::before { top: -7px; }
  .q-burger span::after { top: 7px; }
  .q-burger.is-open span { background: transparent; }
  .q-burger.is-open span::before { top: 0; transform: rotate(45deg); }
  .q-burger.is-open span::after { top: 0; transform: rotate(-45deg); }

  .q-mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); z-index: 99; padding: 32px; flex-direction: column; gap: 8px; overflow-y: auto; }
  .q-mobile-menu.is-open { display: flex; }
  .q-mobile-menu a { padding: 16px 0; border-bottom: 1px solid var(--border); font-family: 'Cygre', sans-serif; font-size: 24px; color: var(--navy); }

  .q-hero h1 { max-width: 100%; }
  .q-hero-vline { display: none; }
  .q-services-grid { grid-template-columns: 1fr; }
  .q-metrics-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .q-process-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .q-sail-grid { grid-template-columns: 1fr; gap: 48px; }
  .q-sail-stage { max-width: 360px; }
  .q-principles-grid { grid-template-columns: 1fr; gap: 40px; }
  .q-acc-item { grid-template-columns: 40px 1fr; gap: 0 16px; padding: 32px 16px; margin-bottom: 6rem; }
  .q-acc-img { grid-column: 1/-1; grid-row: 3; height: 220px; margin-top: 16px; }
  .q-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}

@media (max-width: 600px) {
  .q-wrap { padding: 0 20px; }
  .q-metrics-grid { grid-template-columns: 1fr; }
  .q-process-grid { grid-template-columns: 1fr; gap: 24px; }
  .q-footer-grid { grid-template-columns: 1fr; }
  .q-footer-bottom { flex-direction: column; align-items: flex-start; }
  .q-hero-cta { flex-direction: column; }
  .q-hero-cta .q-btn { width: 100%; justify-content: center; }
  .q-logo svg, .q-logo img { height: 44px; }
  .q-footer-logo svg, .q-footer-logo img { height: 44px; }
}

/* ==================== SAIL + DIRECTIONS (homepage) ==================== */
.q-sail-dir {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.q-sail-dir__img {
  position: relative;
  background-color: #000;
  background-image: var(--sail-bg, none);
  background-position: 45% center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.q-sail-dir__img::after {
  /* soft right-edge gradient — moved further right so sail is not cropped */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 78%, rgba(30,50,82,.4) 94%, var(--navy) 100%);
  pointer-events: none;
}
.q-sail-dir__img-caption {
  position: absolute;
  left: 40px; bottom: 32px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 12px;
}
.q-sail-dir__img-caption::before {
  content: ""; width: 32px; height: 1px; background: rgba(255,255,255,.45);
}

.q-sail-dir__panel {
  position: relative;
  padding: 96px 80px 96px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.q-sail-dir__head {
  margin-bottom: 56px;
  max-width: 480px;
}
.q-sail-dir__label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(200,230,243,.6);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.q-sail-dir__label::before {
  content: ""; width: 32px; height: 1px; background: rgba(200,230,243,.5);
}
.q-sail-dir__title {
  font-family: 'Cygre', sans-serif;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--white);
  font-weight: 400;
  margin: 0 0 16px;
}
.q-sail-dir__sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

.q-sail-dir__carousel {
  position: relative;
  max-width: 560px;
}
.q-sail-dir__viewport {
  overflow: hidden;
  position: relative;
}
.q-sail-dir__track {
  display: flex;
  transition: transform .65s cubic-bezier(.22,.7,.18,1);
  will-change: transform;
}
.q-sail-dir__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px 4px 8px;
}
.q-sail-dir__num {
  font-family: 'Playfair Display', 'Cygre', serif;
  font-size: clamp(80px, 11vw, 140px);
  line-height: 1;
  color: rgba(200,230,243,.12);
  letter-spacing: -3px;
  font-weight: 400;
  margin: 0 0 -36px;
  pointer-events: none;
  user-select: none;
}
.q-sail-dir__name {
  font-family: 'Cygre', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -.5px;
  color: var(--white);
  margin: 0 0 18px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}
.q-sail-dir__desc {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 480px;
}
.q-sail-dir__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.35);
  transition: gap .25s ease, border-color .25s ease, color .25s ease;
}
.q-sail-dir__link:hover { gap: 16px; border-color: var(--white); }
.q-sail-dir__link svg { width: 14px; height: 14px; }

/* Controls: arrows + dots + counter */
.q-sail-dir__controls {
  margin-top: 44px;
  display: flex; align-items: center; gap: 24px;
}
.q-sail-dir__arrows { display: flex; gap: 12px; }
.q-sail-dir__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.q-sail-dir__arrow:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.q-sail-dir__arrow:active { transform: scale(.94); }
.q-sail-dir__arrow svg { width: 16px; height: 16px; }
.q-sail-dir__dots { display: flex; gap: 10px; flex: 1; }
.q-sail-dir__dot {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.18);
  border: none; padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.q-sail-dir__dot::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--white);
  transition: width .25s ease;
}
.q-sail-dir__dot.is-active::after { width: 100%; }
.q-sail-dir__dot.is-active.is-running::after {
  width: 100%;
  transition: width 6s linear;
}
.q-sail-dir__dot.is-active.is-resetting::after {
  width: 0;
  transition: width 0s;
}
.q-sail-dir__counter {
  font-family: 'Cygre', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.q-sail-dir__counter strong { color: var(--white); font-weight: 500; }

/* Tablet */
@media (max-width: 1100px) {
  .q-sail-dir__panel { padding: 80px 56px 80px 48px; }
}

/* Mobile: stack */
@media (max-width: 900px) {
  .q-sail-dir { grid-template-columns: 1fr; min-height: auto; }
  .q-sail-dir__img { min-height: 56vh; }
  .q-sail-dir__img::after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(30,50,82,.6) 90%, var(--navy) 100%);
  }
  .q-sail-dir__img-caption { left: 24px; bottom: 24px; }
  .q-sail-dir__panel { min-height: auto; padding: 56px 24px 72px; }
  .q-sail-dir__head { margin-bottom: 36px; }
  .q-sail-dir__num { margin-bottom: -24px; }
  .q-sail-dir__controls { margin-top: 32px; }
}
@media (max-width: 600px) {
  .q-sail-dir__arrow { width: 42px; height: 42px; }
  .q-sail-dir__counter { font-size: 12px; }
}

/* ================== COMPACT TUNING (per client feedback) ================== */
/* Reduce hero/page-hero font size + section paddings — "сжато и информативно" */
.q-pagehero h1 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 16px; }
.q-pagehero { padding: calc(var(--header-h) + 32px) 0 48px; }
.q-pagehero .q-hero-sub { font-size: 16px; }
.q-section { padding: 72px 0; }
.q-section-title { font-size: clamp(28px, 3.6vw, 44px); }
.q-section-sub { font-size: 15px; }
.q-statement { padding: 80px 0; }
.q-statement-text { font-size: clamp(22px, 2.8vw, 36px); }
.q-philo { padding: 56px 0 48px; }
.q-philo-title { font-size: clamp(24px, 3vw, 36px); }
.q-philo-word-name { font-size: clamp(26px, 3.2vw, 38px); }
.q-philo-word { padding: 24px 22px !important; }
.q-philo-word-tag { font-size: 10px !important; padding: 3px 9px !important; margin-bottom: 10px !important; }
.q-philo-word p { font-size: 13.5px !important; line-height: 1.5 !important; margin-top: 8px !important; }
.q-philo-plus { font-size: 26px !important; }
.q-philo-bg-mark { font-size: clamp(100px, 18vw, 220px) !important; }
.q-philo-narr p { font-size: 14.5px !important; line-height: 1.6 !important; }
.q-philo-quote p { font-size: clamp(18px, 2.4vw, 26px) !important; }
.q-philo-quote { padding: 22px 0 !important; margin-top: 28px !important; }
.q-philo-equation { gap: 18px !important; margin: 28px 0 !important; }

/* ================== INTRO BLOCK ON HOMEPAGE ================== */
.q-intro { padding: 96px 0 64px; background: var(--white); }
.q-intro__wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.q-intro__eyebrow {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.q-intro__eyebrow::before, .q-intro__eyebrow::after {
  content: ""; width: 28px; height: 1px; background: rgba(74,111,165,.4);
}
.q-intro__title {
  font-family: 'Cygre', sans-serif; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15;
  color: var(--navy); margin: 0 0 28px; letter-spacing: -1px;
}
.q-intro__title em { font-style: italic; color: var(--accent); font-weight: 400; }
.q-intro__text { font-size: 17px; line-height: 1.7; color: rgba(40,40,40,.78); max-width: 760px; margin: 0 auto 16px; }
.q-intro__text:last-child { margin-bottom: 0; }

/* ================== VALUES (About) ================== */
.q-values { padding: 90px 0; background: var(--bg); }
.q-values__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.q-values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.q-value {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 6px;
  border: 1px solid rgba(30,50,82,.07);
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
.q-value:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,50,82,.06); }
.q-value__num {
  font-family: 'Playfair Display', serif;
  font-size: 14px; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 18px;
}
.q-value__name {
  font-family: 'Cygre', sans-serif; font-weight: 400;
  font-size: 26px; color: var(--navy); margin: 0 0 14px;
  letter-spacing: -.5px;
}
.q-value__lead { font-size: 15px; color: rgba(40,40,40,.78); line-height: 1.65; margin: 0 0 18px; }
.q-value__list { list-style: none; padding: 0; margin: 0; }
.q-value__list li {
  font-size: 14px; color: rgba(40,40,40,.65);
  padding: 6px 0 6px 18px; position: relative; line-height: 1.5;
}
.q-value__list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 1px; background: var(--accent);
}
@media (max-width: 760px) {
  .q-values__grid { grid-template-columns: 1fr; }
  .q-value { padding: 28px 22px; }
}

/* ================== MISSION & VISION ================== */
.q-mvv { padding: 80px 0; background: var(--white); }
.q-mvv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1120px; margin: 0 auto; }
.q-mvv__card { padding: 8px 0; }
.q-mvv__label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.q-mvv__label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.q-mvv__title { font-family: 'Cygre', sans-serif; font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--navy); margin: 0 0 18px; letter-spacing: -.5px; }
.q-mvv__text { font-size: 16px; line-height: 1.7; color: rgba(40,40,40,.78); margin: 0; }
@media (max-width: 760px) {
  .q-mvv__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ================== ABOUT-COMPANY (multi-paragraph block) ================== */
.q-about-co { padding: 80px 0; background: var(--bg); }
.q-about-co__wrap { max-width: 880px; margin: 0 auto; }
.q-about-co__head { text-align: center; margin-bottom: 48px; }
.q-about-co__text { font-size: 16px; line-height: 1.75; color: rgba(40,40,40,.78); margin: 0 0 18px; }
.q-about-co__jur {
  margin-top: 32px; padding: 24px;
  background: var(--white); border-left: 3px solid var(--accent);
  font-size: 14px; line-height: 1.7; color: rgba(40,40,40,.7);
}
.q-about-co__jur strong { color: var(--navy); display: block; margin-bottom: 6px; font-weight: 500; }

/* ================== TEAM CARDS (3 person) ================== */
.q-team-cards { padding: 80px 0; background: var(--white); }
.q-team-cards__head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.q-team-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1120px; margin: 0 auto; }
.q-team-card {
  background: var(--bg); padding: 36px 28px; border-radius: 6px;
  border: 1px solid rgba(30,50,82,.06);
  display: flex; flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}
.q-team-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,50,82,.06); }
.q-team-card__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cygre', sans-serif; font-size: 28px; font-weight: 400;
  margin-bottom: 22px; letter-spacing: -1px;
}
.q-team-card__name { font-family: 'Cygre', sans-serif; font-weight: 400; font-size: 22px; color: var(--navy); margin: 0 0 6px; }
.q-team-card__role { font-size: 13px; color: rgba(40,40,40,.6); margin: 0 0 18px; letter-spacing: .2px; }
.q-team-card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); text-decoration: none; padding-top: 16px;
  border-top: 1px solid rgba(30,50,82,.08);
  transition: color .25s ease, gap .25s ease;
}
.q-team-card__link:hover { color: var(--navy); gap: 12px; }
.q-team-card__link svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .q-team-cards__grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ================== CAREER CTA ================== */
.q-career { padding: 72px 0; background: var(--navy); color: var(--white); text-align: center; }
.q-career__label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(200,230,243,.6); margin-bottom: 18px; }
.q-career__title { font-family: 'Cygre', sans-serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); color: var(--white); margin: 0 0 18px; line-height: 1.15; letter-spacing: -.5px; }
.q-career__text { max-width: 580px; margin: 0 auto 28px; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.65; }
.q-career__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.q-career__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.q-career__btn svg { width: 14px; height: 14px; }

/* ================== SERVICE LIST (compact 6-item lists) ================== */
.q-svc-list { padding: 80px 0; background: var(--bg); }
.q-svc-list__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.q-svc-list__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1080px; margin: 0 auto; }
.q-svc-item {
  background: var(--white); padding: 24px 28px;
  border-left: 3px solid var(--accent);
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.q-svc-item:hover { transform: translateX(3px); box-shadow: 0 12px 28px rgba(30,50,82,.06); }
.q-svc-item__num {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--accent); font-weight: 400; line-height: 1;
  min-width: 36px;
}
.q-svc-item__body { flex: 1; }
.q-svc-item__title { font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 16px; color: var(--navy); margin: 0 0 4px; line-height: 1.3; }
.q-svc-item__desc { font-size: 14px; color: rgba(40,40,40,.7); line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .q-svc-list__grid { grid-template-columns: 1fr; } }

/* Single-column variant */
.q-svc-list__grid--single { grid-template-columns: 1fr; max-width: 760px; }

/* ================== BENCHMARK BLOCK (investments) ================== */
.q-benchmark { padding: 80px 0; background: var(--navy); color: var(--white); }
.q-benchmark__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.q-benchmark__head .q-section-label { color: rgba(200,230,243,.6); }
.q-benchmark__head h2 { color: var(--white); }
.q-benchmark__head p { color: rgba(255,255,255,.65); }
.q-benchmark__grid { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 20px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.q-bm-label {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 28px; border-radius: 6px;
  font-family: 'Cygre', sans-serif; font-weight: 500;
  font-size: 18px; color: var(--white); letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-width: 140px;
}
.q-bm-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  padding: 28px; border-radius: 6px;
}
.q-bm-item__name { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(200,230,243,.6); margin-bottom: 12px; }
.q-bm-item__num { font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1; color: var(--white); margin-bottom: 16px; font-weight: 400; }
.q-bm-item__desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.55; margin: 0; }
.q-benchmark__note { text-align: center; margin-top: 28px; font-size: 12px; color: rgba(255,255,255,.4); }
@media (max-width: 900px) {
  .q-benchmark__grid { grid-template-columns: 1fr 1fr; }
  .q-bm-label { grid-column: 1 / -1; padding: 20px; }
}
@media (max-width: 560px) {
  .q-benchmark__grid { grid-template-columns: 1fr; }
  .q-bm-label { grid-column: 1; }
}

/* ================== SATOSHI QUOTE (crypto page) ================== */
.q-quote { padding: 80px 0; background: var(--bg); }
.q-quote__card {
  max-width: 760px; margin: 0 auto;
  position: relative; background: var(--navy);
  border-radius: 8px; padding: 56px 56px 40px;
  color: var(--white); box-shadow: 0 24px 60px rgba(30,50,82,.18);
}
.q-quote__mark {
  position: absolute; top: -28px; left: 32px;
  font-family: 'Playfair Display', serif; font-size: 140px;
  color: rgba(200,230,243,.18); line-height: 1; font-weight: 400;
  pointer-events: none; user-select: none;
}
.q-quote__text {
  font-family: 'Cygre', sans-serif; font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4;
  margin: 0 0 28px; color: var(--white); position: relative; z-index: 1;
  font-weight: 500;
}
.q-quote__author { display: flex; flex-direction: column; align-items: flex-end; }
.q-quote__author-name { font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 18px; color: var(--white); }
.q-quote__author-date { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
@media (max-width: 600px) { .q-quote__card { padding: 44px 28px 32px; } .q-quote__mark { font-size: 100px; left: 16px; } }

/* ================== CRYPTO SECTORS (6-card grid) ================== */
.q-sectors { padding: 80px 0; background: var(--white); }
.q-sectors__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.q-sectors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1180px; margin: 0 auto; }
.q-sector {
  background: var(--bg); padding: 28px;
  border-radius: 6px; border: 1px solid rgba(30,50,82,.06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.q-sector:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,50,82,.08); }
.q-sector__tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.q-sector__name { font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 22px; color: var(--navy); margin: 0 0 12px; letter-spacing: -.5px; }
.q-sector__desc { font-size: 14px; color: rgba(40,40,40,.72); line-height: 1.55; margin: 0 0 14px; }
.q-sector__example { font-size: 12px; color: rgba(40,40,40,.5); padding-top: 12px; border-top: 1px solid rgba(30,50,82,.08); }
.q-sector__example strong { color: var(--navy); font-weight: 500; }
@media (max-width: 900px) { .q-sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .q-sectors__grid { grid-template-columns: 1fr; } }

/* ================== TIMELINE (crypto history) ================== */
.q-timeline { padding: 64px 0; background: var(--bg); }
.q-timeline__wrap { max-width: 980px; margin: 0 auto; }
.q-timeline__head { text-align: center; margin-bottom: 48px; }
.q-timeline__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.q-timeline__items::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px;
  background: rgba(74,111,165,.25);
}
.q-tl-item { position: relative; text-align: center; }
.q-tl-item__dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent);
  margin: 0 auto 16px; position: relative; z-index: 1;
}
.q-tl-item__year {
  font-family: 'Cygre', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.5px;
  color: var(--navy);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.q-tl-item__txt { font-size: 13px; color: rgba(40,40,40,.7); line-height: 1.55; }
@media (max-width: 760px) {
  .q-timeline__items { grid-template-columns: 1fr 1fr; }
  .q-timeline__items::before { display: none; }
}

/* ================== RISKS LIST ================== */
.q-risks { padding: 72px 0; background: var(--white); }
.q-risks__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.q-risks__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.q-risk {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 28px; background: var(--bg);
  border-radius: 6px; border-left: 3px solid #c97a3a;
}
.q-risk__icon { color: #c97a3a; font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.q-risk__text { font-size: 15px; color: rgba(40,40,40,.78); line-height: 1.55; margin: 0; }
.q-risk__text strong { color: var(--navy); display: block; margin-bottom: 4px; font-weight: 500; }
@media (max-width: 760px) { .q-risks__grid { grid-template-columns: 1fr; } }

/* ================== PUBLICATIONS LIST ================== */
.q-pubs { padding: 72px 0; background: var(--bg); }
.q-pubs__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.q-pubs__list { max-width: 920px; margin: 0 auto; }
.q-pub {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid rgba(30,50,82,.1);
  transition: background .25s ease;
  text-decoration: none; color: inherit;
}
.q-pub:hover { background: rgba(255,255,255,.4); padding-left: 8px; padding-right: 8px; }
.q-pub__num { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--accent); min-width: 40px; }
.q-pub__title { font-size: 15px; line-height: 1.55; color: var(--navy); flex: 1; }
.q-pub__arrow { color: var(--accent); flex-shrink: 0; }
.q-pub__arrow svg { width: 14px; height: 14px; }

/* ================== USEFUL LINKS ================== */
.q-useful { padding: 56px 0; background: var(--white); }
.q-useful__wrap { max-width: 880px; margin: 0 auto; }
.q-useful__title { font-family: 'Cygre', sans-serif; font-weight: 400; font-size: 22px; color: var(--navy); margin: 0 0 22px; }
.q-useful__list { display: flex; flex-direction: column; gap: 12px; }
.q-useful__item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 20px; background: var(--bg);
  border-radius: 4px; text-decoration: none; color: inherit;
  transition: background .25s ease, transform .25s ease;
  font-size: 14px;
}
.q-useful__item:hover { background: #eef0ec; transform: translateX(3px); }
.q-useful__tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 500; min-width: 60px; }
.q-useful__name { color: rgba(40,40,40,.78); flex: 1; }
.q-useful__name strong { color: var(--navy); font-weight: 500; }

/* ================== SO-CALLOUT (Second Opinion big blocks) ================== */
.q-so { padding: 80px 0; background: var(--bg); }
.q-so__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.q-so__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.q-so-card {
  background: var(--navy); color: var(--white);
  padding: 32px 24px; border-radius: 6px; position: relative;
  min-height: 220px; display: flex; flex-direction: column;
  overflow: hidden; transition: transform .4s ease;
}
.q-so-card:hover { transform: translateY(-3px); }
.q-so-card__num {
  position: absolute; right: 20px; top: 18px;
  font-family: 'Playfair Display', serif; font-size: 56px;
  color: rgba(200,230,243,.08); line-height: 1; pointer-events: none;
}
.q-so-card__title { font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 17px; color: var(--white); margin: 0 0 14px; line-height: 1.3; position: relative; z-index: 1; }
.q-so-card__text { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.7); margin: 0; position: relative; z-index: 1; }
@media (max-width: 1000px) { .q-so__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .q-so__grid { grid-template-columns: 1fr; } }

/* ================== SO-NUMBERED (5-step list) ================== */
.q-so2 { padding: 80px 0; background: var(--white); }
.q-so2__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.q-so2__list { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.q-so2-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px;
  padding: 22px 28px; background: var(--bg); border-radius: 6px;
  align-items: center; transition: transform .3s ease;
}
.q-so2-row:hover { transform: translateX(3px); }
.q-so2-row__num {
  background: var(--navy); color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 18px;
}
.q-so2-row__text { font-size: 14px; line-height: 1.6; color: rgba(40,40,40,.78); margin: 0; }
.q-so2-row__text strong { color: var(--navy); font-weight: 500; }

/* ================== PROCEDURE (Second Opinion part 3) ================== */
.q-proc { padding: 80px 0; background: var(--navy); color: var(--white); }
.q-proc__wrap { max-width: 1020px; margin: 0 auto; }
.q-proc__head { text-align: center; margin-bottom: 48px; }
.q-proc__head .q-section-label { color: rgba(200,230,243,.6); }
.q-proc__head h2 { color: var(--white); }
.q-proc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.q-proc-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 32px 28px;
}
.q-proc-card__label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(200,230,243,.6); margin-bottom: 14px; }
.q-proc-card__title { font-family: 'Cygre', sans-serif; font-weight: 500; font-size: 20px; color: var(--white); margin: 0 0 16px; }
.q-proc-card__text { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 760px) { .q-proc__grid { grid-template-columns: 1fr; } }

/* ================== INDEX 3-BUTTON HERO ================== */
.q-hero-cta .q-btn--outline {
  background: transparent; color: var(--navy);
  border: 1px solid rgba(30,50,82,.25);
}
.q-hero-cta .q-btn--outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ================== LUCIDE ICONS — UTILITY ================== */
[data-lucide] { display: inline-flex; }
.q-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(74,111,165,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.q-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.q-icon--lg { width: 56px; height: 56px; }
.q-icon--lg svg { width: 26px; height: 26px; }
.q-icon--ghost { background: transparent; border: 1px solid rgba(74,111,165,.25); }

/* Override q-svc-item to accept icon */
.q-svc-item { gap: 14px !important; }
.q-svc-item__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(74,111,165,.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.q-svc-item__icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
.q-svc-item:hover .q-svc-item__icon { background: var(--accent); color: var(--white); }
.q-svc-item__icon, .q-svc-item__num { transition: all .25s ease; }

/* Value cards icon — top-right */
.q-value__icon {
  position: absolute; top: 28px; right: 28px;
  color: var(--accent); opacity: .35;
}
.q-value__icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.q-value:hover .q-value__icon { opacity: .9; transform: scale(1.05); }
.q-value__icon { transition: all .35s ease; }

/* Sector card icon */
.q-sector__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(74,111,165,.1);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.q-sector__icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.q-sector:hover .q-sector__icon { background: var(--navy); color: var(--white); }
.q-sector__icon { transition: all .35s ease; }

/* Risk icon — override emoji */
.q-risk__icon svg { width: 24px; height: 24px; stroke-width: 1.7; }

/* Timeline icon inside dot */
.q-tl-item__dot {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.q-tl-item__dot svg { width: 16px; height: 16px; stroke-width: 1.7; }

/* MVV labels — small icon */
.q-mvv__label-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); margin-right: 6px;
}
.q-mvv__label-icon svg { width: 14px; height: 14px; stroke-width: 2; }

/* SO-card icon */
.q-so-card__icon {
  position: absolute; top: 22px; right: 22px;
  color: rgba(200,230,243,.4);
}
.q-so-card__icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.q-so-card:hover .q-so-card__icon { color: rgba(200,230,243,.85); transform: scale(1.1); }
.q-so-card__icon { transition: all .35s ease; }

/* News section card icon */
.q-news-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(74,111,165,.12);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.q-news-card__icon svg { width: 22px; height: 22px; stroke-width: 1.7; }

/* Sail-dir slide number — keep but allow icon next to it */
.q-sail-dir__icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(200,230,243,.5); margin-bottom: 12px;
}
.q-sail-dir__icon svg { width: 32px; height: 32px; stroke-width: 1.5; }

/* Contact-info icon */
.q-ci__icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(74,111,165,.1);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 14px; flex-shrink: 0;
}
.q-ci__icon svg { width: 18px; height: 18px; stroke-width: 1.7; }

/* ==================== PRELOADER (sail-4-quadrants) ==================== */
.q-preloader {
  position: fixed; inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(110%);
  -webkit-backdrop-filter: blur(22px) saturate(110%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity .55s ease, visibility .55s ease;
}
.q-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.q-preloader__sail {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  filter: drop-shadow(0 4px 24px rgba(30, 50, 82, 0.08));
}
.q-preloader__sail path {
  fill: var(--navy);
  opacity: 0.16;
  transform-origin: center;
  transition: opacity .25s ease;
}
.q-preloader__sail .pa-1 { animation: q-sail-pulse 1.8s ease-in-out infinite; animation-delay: 0s; }
.q-preloader__sail .pa-2 { animation: q-sail-pulse 1.8s ease-in-out infinite; animation-delay: 0.45s; }
.q-preloader__sail .pa-3 { animation: q-sail-pulse 1.8s ease-in-out infinite; animation-delay: 0.9s; }
.q-preloader__sail .pa-4 { animation: q-sail-pulse 1.8s ease-in-out infinite; animation-delay: 1.35s; }

@keyframes q-sail-pulse {
  0%, 78%, 100% { opacity: 0.16; }
  18%, 32%     { opacity: 1; }
  50%          { opacity: 0.4; }
}

.q-preloader__label {
  margin-top: 28px;
  font-family: 'Cygre', sans-serif;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--navy);
  animation: q-label-pulse 1.8s ease-in-out infinite;
}
@keyframes q-label-pulse {
  0%, 100% { opacity: 0.32; }
  50%      { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  .q-preloader__sail path { animation: none; opacity: 0.7; }
  .q-preloader__label { animation: none; opacity: 0.6; }
}

/* ==================== MOBILE NAV / BURGER / MOBILE MENU ==================== */
@media (max-width: 1024px) {
  /* Hide desktop nav, show burger */
  .q-nav { display: none; }

  .q-header-inner { gap: 16px; grid-template-columns: auto 1fr auto; }
  .q-header-actions { gap: 10px; }
  .q-lang { padding: 3px; font-size: 10px; }
  .q-lang a { min-width: 32px; height: 22px; }

  /* Burger button — animated hamburger → X */
  .q-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(30,50,82,.06);
    cursor: pointer; transition: background .25s ease;
    position: relative;
  }
  .q-burger:hover { background: rgba(30,50,82,.12); }
  .q-burger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--navy); position: relative;
    transition: background .25s ease;
  }
  .q-burger span::before,
  .q-burger span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 1.5px;
    background: var(--navy);
    transition: transform .3s cubic-bezier(.16,1,.3,1), top .3s, bottom .3s;
  }
  .q-burger span::before { top: -7px; }
  .q-burger span::after  { bottom: -7px; }
  .q-burger.is-open span { background: transparent; }
  .q-burger.is-open span::before { top: 0; transform: rotate(45deg); }
  .q-burger.is-open span::after  { bottom: 0; transform: rotate(-45deg); }

  /* Mobile menu — slide-down full-screen panel */
  .q-mobile-menu {
    display: flex !important; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 32px 28px 64px;
    overflow-y: auto;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s ease;
    z-index: 99;
    box-shadow: 0 24px 48px rgba(30,50,82,.08);
  }
  .q-mobile-menu.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .q-mobile-menu > a,
  .q-mobile-menu .q-mobile-menu__group {
    display: block; padding: 16px 0;
    border-bottom: 1px solid rgba(30,50,82,.08);
  }
  .q-mobile-menu > a {
    font-family: 'Cygre', sans-serif; font-size: 22px; font-weight: 400;
    color: var(--navy);
    transition: color .25s ease, padding-left .25s ease;
  }
  .q-mobile-menu > a:hover, .q-mobile-menu > a:active { color: var(--accent); padding-left: 6px; }

  .q-mobile-menu__group-label {
    font-family: 'Cygre', sans-serif;
    font-size: 22px; font-weight: 400; color: var(--navy);
    margin-bottom: 14px;
  }
  .q-mobile-menu__sub {
    display: flex; flex-direction: column;
    padding-left: 16px; border-left: 2px solid rgba(74,111,165,.2);
    margin-top: 4px;
  }
  .q-mobile-menu__sub a {
    display: block; padding: 8px 0 8px 4px;
    font-size: 15px; color: rgba(40,40,40,.7);
    transition: color .25s ease;
  }
  .q-mobile-menu__sub a:hover, .q-mobile-menu__sub a:active { color: var(--accent); }

  /* Body scroll lock when menu open */
  body.q-menu-open { overflow: hidden; }
}

/* ==================== SAIL-DIR: mobile text overflow fix ==================== */
@media (max-width: 900px) {
  .q-sail-dir__carousel { max-width: 100% !important; width: 100%; }
  .q-sail-dir__head     { max-width: 100%; }
  .q-sail-dir__desc     { max-width: 100%; }
  .q-sail-dir__sub      { max-width: 100%; }
  .q-sail-dir__slide    { padding: 4px 0 8px; }
  .q-sail-dir__title,
  .q-sail-dir__sub,
  .q-sail-dir__name,
  .q-sail-dir__desc {
    overflow-wrap: break-word; word-wrap: break-word;
    hyphens: auto;
  }
  .q-sail-dir__title    { font-size: clamp(28px, 7vw, 36px); }
  .q-sail-dir__name     { font-size: clamp(24px, 6vw, 30px); }
  .q-sail-dir__num      { font-size: clamp(60px, 18vw, 90px); margin: 0 0 -24px; }
  .q-sail-dir__controls { margin-top: 24px; gap: 14px; }
  .q-sail-dir__counter  { font-size: 11px; }
  .q-sail-dir__arrow    { width: 38px; height: 38px; }
  .q-sail-dir__panel    { padding: 48px 20px 56px; }
}

@media (max-width: 600px) {
  .q-sail-dir__panel { padding: 40px 18px 48px; }
  .q-sail-dir__head  { margin-bottom: 28px; }
}

/* ===================================================================
   Po Plan footer credit — accent under host site palette
   =================================================================== */
.po-plan-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* font-family inherits from site */
  font-size: 13px;
  letter-spacing: .01em;
  color: #b9c5cf;            /* default — dark footer (q-footer = navy) */
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s ease;
}
.po-plan-credit:hover { opacity: 1; }

.po-plan-credit__logo {
  height: 12px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.po-plan-credit__text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.po-plan-credit__prefix { color: inherit; }

.po-plan-credit__brand {
  /* Quale accent — same as links/primary throughout the site */
  color: var(--accent);
  text-decoration: underline dashed;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.po-plan-credit:hover .po-plan-credit__brand { filter: brightness(1.15); }

/* Light footer variant — used on home / second-opinion / services etc */
.q-footer--light .po-plan-credit         { color: #5b6e7a; }
.q-footer--light .po-plan-credit__prefix { color: #5b6e7a; }
/* brand stays var(--accent) in both variants */

/* Mobile: stack footer-bottom items */
@media (max-width: 600px) {
  .q-footer-bottom .po-plan-credit { margin-left: 0; }
}

/* ===================================================================
   Footer reorg: social moved under logo+tag, Po Plan pushed right
   =================================================================== */

/* Social icons under footer logo */
.q-footer-social--brand {
  display: flex; gap: 10px;
  margin-top: 22px;
}
.q-footer-social--brand a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.q-footer-social--brand a svg { width: 16px; height: 16px; }
.q-footer-social--brand a:hover {
  background: var(--white); color: var(--navy);
  transform: translateY(-2px);
}

/* Light footer variant */
.q-footer--light .q-footer-social--brand a {
  background: rgba(30,50,82,.06);
  color: var(--navy);
}
.q-footer--light .q-footer-social--brand a:hover {
  background: var(--navy); color: var(--white);
}

/* Footer bottom: copyright left + Po Plan credit right */
.q-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.q-footer-bottom .po-plan-credit { margin-left: auto; }

@media (max-width: 600px) {
  .q-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .q-footer-bottom .po-plan-credit { margin-left: 0; }
}

/* ===== Team card avatar — photo variant (larger circle, image cover) ===== */
.q-team-card__avatar--photo {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--bg);
  padding: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(30, 50, 82, 0.08);
}
@media (max-width: 600px) {
  .q-team-card__avatar--photo { width: 104px; height: 104px; }
}
