:root {
  --ink: #314a48;
  --muted: #667a77;
  --paper: #f8faf7;
  --surface: #ffffff;
  --primary: #559c92;
  --primary-strong: #397b73;
  --soft: #e8f3ef;
  --accent: #b9dce3;
  --sand: #e7d7bd;
  --line: rgba(49, 74, 72, .14);
  --shadow: 0 24px 70px rgba(54, 96, 91, .12);
  --radius: 30px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  color: #405b58;
  background: rgba(250, 252, 249, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  font-size: 13px;
}
.preview-bar > span { margin-right: 8px; color: var(--muted); }
.preview-bar a { padding: 7px 12px; border-radius: 999px; }
.preview-bar a.active { color: #fff; background: var(--primary-strong); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 500; letter-spacing: -.8px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 15px 15px 15px 6px;
  font-weight: 500;
}
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .9px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.main-nav a:not(.nav-cta):hover { color: var(--primary-strong); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  color: #fff;
  background: var(--primary-strong);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(57, 123, 115, .18);
}
.button.secondary { color: var(--ink); background: var(--surface); box-shadow: none; border: 1px solid var(--line); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 58px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 650px;
  margin: 20px auto 0;
  padding: 60px 64px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf6f1 0%, #f9faf4 58%, #eef6f7 100%);
  border: 1px solid rgba(85, 156, 146, .12);
  border-radius: 44px;
}
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--primary-strong); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin: 18px 0 22px; font-size: clamp(42px, 5.1vw, 72px); line-height: 1.02; letter-spacing: -3px; font-weight: 500; }
h1 em { color: var(--primary-strong); font-style: normal; }
.hero-copy > p { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microproof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.microproof span::before { content: "✓"; margin-right: 6px; color: var(--primary-strong); }
.hero-visual { position: relative; min-height: 500px; }
.mascot-window {
  position: absolute;
  inset: 0 0 0 5%;
  overflow: hidden;
  background: #fb5d14;
  border-radius: 49% 49% 34% 34% / 38% 38% 25% 25%;
  box-shadow: var(--shadow);
}
.mascot-window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.mascot-note {
  position: absolute;
  right: -18px;
  bottom: 36px;
  max-width: 210px;
  padding: 17px 19px;
  background: rgba(255,255,255,.94);
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.mascot-note strong { display: block; margin-bottom: 3px; color: var(--primary-strong); }

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.trust-row strong { display: block; font-size: 22px; font-weight: 500; }
.trust-row span { color: var(--muted); font-size: 12px; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 104px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 38px; }
.section-heading h2 { max-width: 650px; margin: 10px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -2px; font-weight: 500; }
.section-heading p { max-width: 450px; margin-bottom: 4px; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 285px; padding: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; transition: transform .2s ease; }
.service-card:hover { transform: translateY(-5px); }
.service-card .num { color: var(--primary); font-size: 12px; }
.service-card h3 { margin: 46px 0 10px; font-size: 23px; line-height: 1.1; font-weight: 500; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .arrow { position: absolute; right: 22px; bottom: 20px; display: grid; width: 36px; height: 36px; place-items: center; color: var(--primary-strong); background: var(--soft); border-radius: 50%; }
.service-card.featured { color: #fff; background: var(--primary); }
.service-card.featured p, .service-card.featured .num { color: rgba(255,255,255,.78); }
.service-card.featured .arrow { color: var(--primary-strong); background: #fff; }

.steps-wrap { padding: 75px 0; background: var(--soft); }
.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.steps h2 { margin: 12px 0 20px; font-size: clamp(35px, 4vw, 52px); line-height: 1.06; letter-spacing: -2px; font-weight: 500; }
.steps-copy p { color: var(--muted); }
.step-list { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px; background: rgba(255,255,255,.65); border-radius: 20px; }
.step b { display: grid; width: 42px; height: 42px; place-items: center; color: var(--primary-strong); background: #fff; border-radius: 50%; font-weight: 500; }
.step strong { display: block; margin-bottom: 3px; font-weight: 500; }
.step span { color: var(--muted); font-size: 13px; }

.gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 210px 210px; gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 26px; }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 12px 12px; padding: 10px 13px; color: #fff; background: rgba(35,60,57,.74); border-radius: 12px; backdrop-filter: blur(8px); font-size: 12px; }

.lead-section { width: min(var(--max), calc(100% - 40px)); margin: 20px auto 100px; padding: 60px; background: linear-gradient(130deg, #d9ece6, #f4f5ec); border-radius: 38px; }
.lead-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.lead-copy h2 { margin: 10px 0 18px; font-size: clamp(34px, 4vw, 52px); line-height: 1.07; letter-spacing: -2px; font-weight: 500; }
.lead-copy p { color: var(--muted); }
.mini-eso { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.mini-eso .face { width: 58px; height: 58px; overflow: hidden; background: #fb5d14; border-radius: 50%; }
.mini-eso img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transform: scale(2.5); }
.mini-eso span { color: var(--muted); font-size: 13px; }
.mini-eso strong { display: block; color: var(--ink); font-weight: 500; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; background: rgba(255,255,255,.8); border-radius: 26px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(85,156,146,.12); }
.lead-form .button { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-align: center; }
.consent-field label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; line-height: 1.45; }
.consent-field input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.lead-form button:disabled { cursor: wait; opacity: .72; }

.docs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; padding: 26px 20px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.docs strong { color: var(--ink); font-weight: 500; }
.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 55px 0; font-size: 13px; }
.site-footer p, .site-footer address { color: var(--muted); font-style: normal; }

.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 15px 8px 8px; color: #fff; background: var(--primary-strong); border: 0; border-radius: 999px; box-shadow: 0 16px 40px rgba(45,90,85,.28); cursor: pointer; }
.chat-launcher .face { width: 42px; height: 42px; overflow: hidden; background: #fb5d14; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; }
.chat-launcher img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transform: scale(2.6); }
.online-agent { position: fixed; right: 12px; bottom: 84px; z-index: 99998; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 104px)); }
.online-agent[hidden] { display: none; }
.online-agent iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.online-agent-close { position: absolute; top: 17px; right: 18px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); border-radius: 50%; cursor: pointer; font: 400 24px/1 Arial, sans-serif; }
.online-agent-close:hover { background: rgba(255,255,255,.28); }
.online-agent-open .chat-launcher { z-index: 99999; }

/* Koncept B - cistejsi, technictejsi */
.concept-b { --paper: #f7fafb; --primary: #71aeba; --primary-strong: #397b88; --soft: #e7f2f4; --accent: #c5e0e5; --radius: 10px; }
.concept-b .brand-mark { border-radius: 50%; background: transparent; border: 2px solid var(--primary-strong); color: var(--primary-strong); }
.concept-b .hero { grid-template-columns: .85fr 1.15fr; padding: 0; background: #fff; border-radius: 16px; }
.concept-b .hero-copy { padding: 64px 0 64px 58px; }
.concept-b .hero-visual { min-height: 650px; background: url('assets/foukana-1.jpg') center/cover; }
.concept-b .mascot-window { inset: auto 24px 24px auto; width: 210px; height: 270px; border: 8px solid #fff; border-radius: 120px 120px 22px 22px; }
.concept-b .mascot-note { left: 18px; right: auto; bottom: 28px; }
.concept-b .service-card, .concept-b .gallery figure { border-radius: 10px; }
.concept-b .services { grid-template-columns: repeat(2, 1fr); }
.concept-b .service-card { min-height: 220px; }
.concept-b .service-card h3 { margin-top: 25px; }
.concept-b .steps-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concept-b .step { background: var(--soft); border-radius: 8px; }
.concept-b .lead-section { border-radius: 14px; background: #e9f3f5; }

/* Koncept C - teplejsi a prirodni */
.concept-c { --paper: #faf8f3; --primary: #83a98e; --primary-strong: #527a61; --soft: #edf1e8; --accent: #dce4d2; --sand: #e9dbc5; }
.concept-c .brand-mark { color: var(--primary-strong); background: var(--sand); border-radius: 50% 50% 8px 50%; }
.concept-c .hero { background: #f1eee4; border-radius: 100px 30px 100px 30px; }
.concept-c .mascot-window { background: #fb5d14; border-radius: 50% 50% 14px 50%; transform: rotate(2deg); }
.concept-c .mascot-note { transform: rotate(-2deg); }
.concept-c .service-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.concept-c .service-card.featured { color: var(--ink); background: var(--sand); border-radius: 50px 12px 50px 12px; }
.concept-c .service-card.featured p, .concept-c .service-card.featured .num { color: var(--muted); }
.concept-c .steps-wrap { background: #e8eee5; }
.concept-c .step { background: rgba(255,255,255,.54); border-radius: 36px 10px 36px 10px; }
.concept-c .lead-section { background: #efe8dc; border-radius: 70px 24px 70px 24px; }

/* Koncept D - hravy hybrid A + C */
.concept-d {
  --paper: #fffdf7;
  --surface: #ffffff;
  --ink: #294b47;
  --muted: #617a75;
  --primary: #45b3a5;
  --primary-strong: #238d82;
  --soft: #e6f7f2;
  --accent: #8ed2e8;
  --sand: #f2da8d;
  --line: rgba(41, 75, 71, .13);
}
.concept-d .site-header { padding-top: 18px; }
.concept-d .brand { gap: 9px; }
.concept-d .brand-mark {
  position: relative;
  width: 47px;
  height: 47px;
  overflow: hidden;
  color: transparent;
  background: url('/assets/esolut-mark.svg') center / contain no-repeat;
  border-radius: 0;
  transform: none;
}
.concept-d .brand-mark::before,
.concept-d .brand-mark::after {
  display: none;
}
.concept-d .brand-mark::before { left: 3px; transform: rotate(-22deg); }
.concept-d .brand-mark::after { right: 3px; transform: scaleX(-1) rotate(-22deg); }
.concept-d .brand-word { font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: 29px; letter-spacing: -1.7px; }
.concept-d .brand-word i { color: var(--primary-strong); font-style: normal; }
.concept-d .nav-cta, .concept-d .button { background: linear-gradient(115deg, var(--primary-strong), #52a9c2); }
.concept-d .hero {
  grid-template-columns: 1fr .9fr;
  min-height: 690px;
  background: linear-gradient(140deg, #eaf8f3 0 58%, #eff8f9 58% 100%);
  border: 0;
  border-radius: 70px 28px 70px 28px;
  box-shadow: 0 28px 90px rgba(61, 143, 132, .12);
}
.concept-d .hero::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -105px;
  width: 280px;
  height: 280px;
  background: rgba(242, 218, 141, .48);
  border-radius: 43% 57% 61% 39% / 48% 41% 59% 52%;
  animation: blobMorph 10s ease-in-out infinite alternate;
}
.concept-d h1 em { position: relative; display: inline-block; color: var(--primary-strong); }
.concept-d h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 11px;
  z-index: -1;
  background: rgba(242, 218, 141, .7);
  border-radius: 50%;
  transform: rotate(-1deg);
}
.concept-d .hero-visual { min-height: 560px; isolation: isolate; }
.concept-d .hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 2% 3%;
  z-index: -2;
  background: linear-gradient(145deg, #9edfe0, #c9eee2 54%, #f4dfa0);
  border-radius: 52% 48% 36% 64% / 44% 38% 62% 56%;
  animation: blobMorph 8s ease-in-out infinite alternate;
}
.concept-d .hero-visual::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 12px;
  width: 98px;
  height: 98px;
  z-index: -1;
  background: #f0d572;
  border-radius: 50%;
  animation: softBounce 5s ease-in-out infinite;
}
.concept-d .mascot-window {
  inset: 1% 4% 0 5%;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .18s ease-out;
}
.concept-d .mascot-window img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 25px 18px rgba(45, 83, 78, .18));
  animation: esoFloat 4.8s ease-in-out infinite;
}
.concept-d .mascot-note { right: -22px; bottom: 62px; border-radius: 22px 22px 3px 22px; animation: noteNudge 7s ease-in-out infinite; }
.spark { position: absolute; z-index: 3; display: grid; place-items: center; color: var(--primary-strong); background: #fff; border-radius: 50%; box-shadow: 0 12px 30px rgba(45,100,92,.13); }
.spark.one { left: -8px; top: 22%; width: 58px; height: 58px; animation: softBounce 4s ease-in-out infinite reverse; }
.spark.two { right: 12px; top: 30%; width: 45px; height: 45px; color: #9b7b17; background: #fff4c5; animation: softBounce 4.7s ease-in-out infinite; }
.concept-d .trust-row { width: min(1100px, calc(100% - 40px)); border-bottom: 0; }
.concept-d .trust-row > div { position: relative; }
.concept-d .trust-row > div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 15%; width: 1px; height: 70%; background: var(--line); }
.concept-d .service-card { border: 0; box-shadow: 0 18px 55px rgba(53,104,97,.08); }
.concept-d .service-card:nth-child(1) { background: #dff5ee; }
.concept-d .service-card:nth-child(2) { background: #e7f4fa; transform: rotate(1deg); }
.concept-d .service-card:nth-child(3) { background: #fff3c9; transform: rotate(-1deg); }
.concept-d .service-card:nth-child(4) { background: #f7e9e2; }
.concept-d .service-card:hover { transform: translateY(-9px) rotate(0); }
.concept-d .service-card.featured { color: var(--ink); }
.concept-d .service-card.featured p, .concept-d .service-card.featured .num { color: var(--muted); }
.concept-d .service-card.featured .arrow { color: #fff; background: var(--primary-strong); }
.concept-d .steps-wrap { background: linear-gradient(130deg, #e8f7f1, #edf7fa); }
.concept-d .step { background: rgba(255,255,255,.75); border-radius: 30px 10px 30px 10px; transition: transform .2s ease; }
.concept-d .step:hover { transform: translateX(7px); }
.concept-d .lead-section { position: relative; overflow: hidden; background: linear-gradient(120deg, #dff5ed, #fff1c5); border-radius: 58px 22px 58px 22px; }
.concept-d .lead-section::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; background: rgba(142,210,232,.35); border-radius: 50%; }
.concept-d .docs { background: #eef8f5; }
.concept-d .chat-launcher { background: linear-gradient(115deg, var(--primary-strong), #52a9c2); animation: launcherPulse 5s ease-in-out infinite; }
.concept-d .chat-launcher .face, .concept-d .mini-eso .face { overflow: visible; background: #dff4ee; }
.concept-d .chat-launcher img, .concept-d .mini-eso img { object-fit: contain; object-position: center; transform: none; }
.concept-d .gallery .gallery-item {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 26px;
  cursor: zoom-in;
}
.concept-d .gallery .gallery-item:first-child { grid-row: 1 / 3; }
.concept-d .gallery .gallery-item figure { width: 100%; height: 100%; }
.concept-d .gallery .gallery-item figure:first-child { grid-row: auto; }
.concept-d .gallery .gallery-item:focus-visible { outline: 4px solid rgba(35, 141, 130, .35); outline-offset: 3px; }
.gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--primary-strong);
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(35,70,66,.16);
  transition: transform .2s ease;
}
.gallery-item:hover .gallery-zoom { transform: scale(1.1) rotate(8deg); }
.gallery[data-gallery-grid] { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
.concept-d .gallery[data-gallery-grid] .gallery-item, .concept-d .gallery[data-gallery-grid] .gallery-item:first-child { grid-row: auto; height: 250px; }
.gallery-more { display: flex; justify-content: center; margin-top: 24px; }
.gallery-more[hidden] { display: none; }

.lightbox {
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fffdf7;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(22, 54, 50, .28);
}
.lightbox::backdrop { background: rgba(25, 51, 48, .76); backdrop-filter: blur(8px); }
.lightbox-inner { position: relative; display: grid; grid-template-rows: minmax(260px, 72vh) auto; }
.lightbox-media { display: grid; place-items: center; min-height: 0; background: #edf4f1; }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.lightbox-meta strong { font-weight: 500; }
.lightbox-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(27,62,57,.18);
  cursor: pointer;
}
.lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 22px; }
.lightbox-nav { top: 50%; width: 50px; height: 50px; font-size: 24px; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.blog-section { padding-top: 70px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(49,95,88,.11); }
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card .tag { color: var(--primary-strong); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.blog-card h3 { margin: 11px 0 10px; font-size: 22px; line-height: 1.18; font-weight: 500; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card p { color: var(--muted); font-size: 13px; }
.blog-card .read-more { color: var(--primary-strong); font-size: 13px; font-weight: 500; }
.blog-more { display: flex; justify-content: center; margin-top: 28px; }
.legal-links { display: grid; gap: 7px; margin-top: 10px; color: var(--muted); }
.legal-links a:hover { color: var(--primary-strong); }
.concept-d .site-footer { grid-template-columns: 1.2fr .8fr 1fr 1.2fr; gap: 36px; }
.footer-credit { grid-column: 1 / -1; display: flex; justify-content: flex-start; align-items: center; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-credit a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; color: var(--primary-strong); background: rgba(125, 211, 201, .16); font-weight: 500; transition: transform .2s ease, background .2s ease; }
.footer-credit a:hover { transform: translateY(-2px); background: rgba(125, 211, 201, .28); }

.legal-body { background: #f8fbf9; }
.legal-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 90px; }
.back-link { display: inline-flex; margin-bottom: 26px; color: var(--primary-strong); font-size: 13px; }
.legal-content { padding: clamp(28px, 5vw, 64px); background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 24px 70px rgba(49,95,88,.08); }
.legal-content h1 { margin: 14px 0 34px; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; font-weight: 500; }
.legal-content h2 { margin: 38px 0 14px; font-size: 26px; font-weight: 500; }
.legal-content h3 { margin: 28px 0 12px; font-size: 20px; font-weight: 500; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.legal-content th, .legal-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.document-card { display: flex; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbf9; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease; }
.document-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.document-card b { white-space: nowrap; font-size: 12px; }
.blog-list { display: grid; gap: 14px; }
.blog-list-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #f8fbf9; }
.blog-list-card h2 { margin: 9px 0 10px; font-size: 25px; }
.blog-list-card h2 a { color: var(--ink); text-decoration: none; }
.blog-list-card p { margin: 0 0 12px; }
.blog-list-card .tag { color: var(--primary-strong); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.quick-quiz {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 55px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 10px auto 100px;
  padding: 48px 55px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(54, 96, 91, .08);
}
.quick-quiz h2 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.07; letter-spacing: -2px; font-weight: 500; }
.quick-quiz p { margin-bottom: 0; color: var(--muted); }
.quiz-box { padding: 24px; background: var(--soft); border-radius: 24px; }
.quiz-progress { display: flex; gap: 7px; margin-bottom: 22px; }
.quiz-progress span { width: 34px; height: 5px; background: rgba(35,141,130,.18); border-radius: 99px; }
.quiz-progress span.active { background: var(--primary-strong); }
.quiz-question { margin-bottom: 16px; font-size: 21px; font-weight: 500; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quiz-options button { padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease; }
.quiz-options button:hover { transform: translateY(-3px); border-color: var(--primary); }
.quiz-result { display: none; }
.quiz-result.visible { display: block; animation: resultIn .35s ease both; }
.quiz-result .button { margin-top: 12px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes esoFloat { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-13px) rotate(.6deg); } }
@keyframes blobMorph { 0% { border-radius: 52% 48% 36% 64% / 44% 38% 62% 56%; transform: rotate(-1deg); } 100% { border-radius: 38% 62% 55% 45% / 58% 51% 49% 42%; transform: rotate(2deg); } }
@keyframes softBounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-11px) rotate(6deg); } }
@keyframes noteNudge { 0%,72%,100% { transform: translateX(0); } 78% { transform: translateX(-6px) rotate(-1deg); } 84% { transform: translateX(2px); } }
@keyframes launcherPulse { 0%,78%,100% { box-shadow: 0 16px 40px rgba(45,90,85,.28); } 84% { box-shadow: 0 16px 40px rgba(45,90,85,.28), 0 0 0 10px rgba(69,179,165,.12); } }
@keyframes resultIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .main-nav a:not(.nav-cta) { display: none; }
  .hero, .concept-b .hero { grid-template-columns: 1fr; min-height: auto; padding: 44px 34px; }
  .concept-b .hero-copy { padding: 0; }
  .concept-b .hero-visual { min-height: 500px; margin: 0 -34px -44px; }
  .hero-visual { min-height: 480px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps, .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .concept-d .site-footer { grid-template-columns: 1fr 1fr; }
  .quick-quiz { grid-template-columns: 1fr; gap: 28px; }
  .concept-d .hero { grid-template-columns: 1fr; min-height: auto; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .gallery[data-gallery-grid] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .preview-bar > span { display: none; }
  .preview-bar { justify-content: flex-start; overflow-x: auto; }
  .site-header { width: min(100% - 28px, var(--max)); }
  .brand small { display: none; }
  .nav-cta { min-height: 42px; padding: 0 14px; font-size: 12px; }
  .hero, .concept-b .hero, .concept-c .hero { width: calc(100% - 20px); margin-top: 6px; padding: 34px 24px; border-radius: 28px; }
  h1 { letter-spacing: -2px; }
  .hero-visual { min-height: 410px; }
  .mascot-window { inset: 10px 0 0; }
  .mascot-note { right: 4px; bottom: 16px; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 22px; }
  .section { width: calc(100% - 28px); padding: 74px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .services, .concept-b .services { grid-template-columns: 1fr; }
  .steps { width: calc(100% - 28px); }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; height: 270px; }
  .lead-section { width: calc(100% - 20px); padding: 40px 22px; border-radius: 28px; }
  .lead-form { grid-template-columns: 1fr; padding: 16px; }
  .field.full, .lead-form .button, .form-note { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .concept-d .site-footer { grid-template-columns: 1fr; }
  .footer-credit { justify-content: flex-start; }
  .chat-launcher span { display: none; }
  .online-agent { right: 4px; bottom: 78px; width: calc(100vw - 8px); height: min(620px, calc(100dvh - 86px)); }
  .concept-d .hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
  .concept-d .hero-copy { position: relative; z-index: 5; min-width: 0; }
  .concept-d .hero-actions .button { width: 100%; padding-right: 14px; padding-left: 14px; }
  .concept-d .hero-visual { min-height: 470px; }
  .concept-d .mascot-window { inset: 0; }
  .concept-d .mascot-note { right: 4px; bottom: 34px; }
  .concept-d .trust-row > div::after { display: none; }
  .quick-quiz { width: calc(100% - 20px); margin-bottom: 70px; padding: 34px 22px; border-radius: 28px; }
  .quiz-options { grid-template-columns: 1fr; }
  .concept-d .gallery .gallery-item, .concept-d .gallery .gallery-item:first-child { grid-column: auto; grid-row: auto; height: 270px; }
  .gallery[data-gallery-grid] { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .lightbox { width: calc(100% - 16px); border-radius: 20px; }
  .lightbox-inner { grid-template-rows: minmax(240px, 67vh) auto; }
  .lightbox-meta { align-items: flex-start; padding: 15px 16px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .legal-main { width: min(100% - 24px, 920px); padding-top: 24px; }
  .legal-content { border-radius: 22px; }
  .document-grid { grid-template-columns: 1fr; }
}

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

.blog-list-card { overflow: hidden; padding: 0; }
.blog-list-copy { padding: 24px; }
.blog-list-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.blog-list-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-list-card:hover .blog-list-image img { transform: scale(1.035); }
.article-hero { position: relative; overflow: hidden; margin: 28px 0 34px; border-radius: 22px; background: var(--soft); }
.article-hero img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-hero figcaption { position: absolute; right: 16px; bottom: 16px; display: grid; padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 10px 25px rgba(31,55,52,.16); color: var(--ink); font-size: 10px; line-height: 1.3; }
.article-brand { color: var(--primary-strong); font-size: 14px; font-weight: 800; }
.article-content > p, .article-content > ul, .article-content > ol, .article-content > blockquote { max-width: 760px; }
.article-content h2 { margin-top: 38px; }
.article-content li { margin-bottom: 8px; }
.article-verification { margin: 36px 0 22px; padding: 18px 20px; border: 1px solid #d5e8e4; border-radius: 15px; background: #eff8f6; }
.article-verification p { margin: 5px 0 0; }
.article-sources { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-sources h2 { margin-top: 0; font-size: 22px; }
.article-sources a { overflow-wrap: anywhere; color: var(--primary-strong); }

@media (max-width: 620px) {
  .blog-list-copy { padding: 20px; }
  .article-hero { margin-right: -12px; margin-left: -12px; border-radius: 16px; }
  .article-hero figcaption { right: 10px; bottom: 10px; }
}
