:root {
  --brand-teal: #49bcc6;
  --brand-teal-dark: #3aa8b2;
  --brand-bg: #f0f4f7;
  --border: #c8d0d8;
  --muted: #5c6670;
  --text: #2a3a40;
  --surface: #fff;
  --shadow: 0 12px 32px rgba(42, 58, 64, 0.08);
  --accent: #3a7a72;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--brand-bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 244, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 2px 8px rgba(73, 188, 198, 0.35);
}
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative;
}
.nav-toggle span:before, .nav-toggle span:after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--accent); background: #fff; border: 1px solid var(--border);
  text-decoration: none; flex-shrink: 0;
}
.phone:hover { border-color: var(--brand-teal); color: var(--brand-teal-dark); }
.phone-footer {
  background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); color: #fff;
}
.phone-footer:hover { background: rgba(255,255,255,0.28); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; padding: 12px 20px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand-teal); color: #fff; }
.btn-primary:hover { background: var(--brand-teal-dark); }
.btn-ghost {
  background: #fff; color: var(--accent); border: 1px solid var(--border);
}
.hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(73, 188, 198, 0.22), transparent 32%),
    linear-gradient(180deg, #e7f4f6 0%, var(--brand-bg) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1;
}
.hero h1 em { font-style: normal; color: var(--brand-teal-dark); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card h2 { margin: 0 0 8px; font-size: 20px; }
.hero-card p { margin: 0 0 16px; color: var(--muted); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
.form-status { min-height: 22px; font-size: 13px; margin: 8px 0 0; }
.form-status.ok { color: #1e6b4f; }
.form-status.err { color: #c0392b; }
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 2px 0 14px; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.consent input {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--brand-teal);
}
.consent a { color: var(--accent); }
.privacy h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.privacy h2 { margin: 28px 0 8px; font-size: 20px; }
.privacy p, .privacy li { color: var(--text); }
.privacy ul { margin: 0 0 16px; padding-left: 20px; }
.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; font-size: 32px; }
.section .sub { margin: 0 0 28px; color: var(--muted); }
.lead-copy .sub { margin-bottom: 12px; }
.lead-mascot {
  display: block;
  width: min(280px, 72%);
  height: auto;
  margin: 4px 0 0;
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; min-height: 180px;
}
.card.main { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(73, 188, 198, 0.16); }
.card small { color: var(--brand-teal-dark); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card h3 { margin: 8px 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: var(--surface); border-radius: 14px; padding: 18px; border: 1px solid var(--border);
}
.step span {
  display: inline-flex; width: 32px; height: 32px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--brand-teal); color: #fff; font-weight: 800;
}
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof { margin-top: 40px; }
.proof-title { margin: 0 0 8px; font-size: 26px; }
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  max-width: 1080px; margin: 0 auto; align-items: stretch;
}
.proof-frame { margin: 0; }
.proof-frame figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center;
}
.chat-app, .portal-app, .proof-shot, .client-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
  height: 220px;
}
.proof-shot img {
  display: block; width: 100%; height: 100%; vertical-align: middle;
  object-fit: cover; object-position: top left;
  image-rendering: -webkit-optimize-contrast;
}
.proof-portal .proof-shot { height: 220px; }
.proof-portal .proof-shot img { height: 100%; min-height: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.proof-zoom {
  position: relative; display: block; width: 100%; padding: 0;
  font: inherit; color: inherit; cursor: zoom-in; text-align: left;
}
.chat-zoom, .form-zoom { height: 220px; border: none; background: transparent; }
.chat-zoom .chat-app, .form-zoom .client-form { height: 100%; pointer-events: none; }
.chat-app-full {
  height: auto; width: min(440px, 92vw); max-height: 86dvh;
}
.chat-app-full .chat-thread {
  max-height: min(70dvh, 560px); overflow: auto;
}
.proof-zoom-icon {
  position: absolute; inset: 0; margin: auto;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 42, 48, 0.72); color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.proof-zoom:hover .proof-zoom-icon,
.proof-zoom:focus-visible .proof-zoom-icon {
  opacity: 1;
  background: rgba(31, 42, 48, 0.72);
  color: #fff;
}
@media (hover: none) {
  .proof-zoom-icon { opacity: 1; }
}
.shot-lightbox[hidden] { display: none !important; }
.shot-lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.shot-lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(10, 16, 20, 0.86);
}
.shot-lightbox-sheet {
  position: relative; z-index: 1; max-width: min(1024px, 96vw);
  max-height: 92dvh;
}
.shot-lightbox.is-chat .shot-lightbox-sheet,
.shot-lightbox.is-form .shot-lightbox-sheet { max-width: min(440px, 92vw); }
.shot-lightbox-sheet img {
  display: block; width: 100%; height: auto; max-height: 92dvh;
  object-fit: contain; border-radius: 10px;
  image-rendering: -webkit-optimize-contrast;
}
.shot-lightbox-sheet img[hidden],
.shot-lightbox-sheet .chat-app-full[hidden],
.shot-lightbox-sheet .client-form-full[hidden] {
  display: none !important;
}
.client-form { display: flex; flex-direction: column; text-align: left; }
.client-form-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #1f2a30; color: #fff;
}
.client-form-bar img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff;
}
.client-form-bar div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.client-form-bar strong { font-size: 14px; }
.client-form-bar span { font-size: 11px; opacity: 0.75; }
.client-form-tabs { display: flex; gap: 0; background: #eef3f6; }
.client-form-tabs span {
  flex: 1; text-align: center; padding: 8px 6px; font-size: 12px; font-weight: 700;
  color: var(--muted);
}
.client-form-tabs span.on { background: var(--surface); color: var(--brand-teal-dark); }
.client-form-body { padding: 10px 12px 12px; overflow: auto; flex: 1; min-height: 0; }
.client-form-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.client-steps { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.client-steps b { color: var(--brand-teal-dark); }
.client-form-body label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin: 6px 0 3px;
}
.client-form-body input {
  width: 100%; box-sizing: border-box; padding: 7px 8px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; font-size: 13px; background: #fff; color: var(--text);
}
.client-form-cta {
  display: block; margin-top: 10px; text-align: center; padding: 8px 10px;
  border-radius: 8px; background: var(--brand-teal); color: #fff; font-size: 13px; font-weight: 700;
}
.client-form-full {
  height: auto; width: min(420px, 92vw); max-height: 86dvh;
}
.client-form-full .client-form-body { overflow: auto; }
.shot-lightbox-close {
  position: absolute; top: -10px; right: -10px; z-index: 2;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: #fff; color: var(--text); font-size: 26px; line-height: 1;
  cursor: pointer;
}
body.shot-open { overflow: hidden; }
.chat-bar, .portal-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: #1f2a30; color: #fff;
}
.chat-bar img, .portal-top img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff;
}
.chat-bar strong, .portal-top strong { display: block; font-size: 14px; line-height: 1.2; }
.chat-bar span, .portal-top span { display: block; font-size: 11px; opacity: 0.75; }
.portal-top b { margin-left: auto; font-size: 13px; font-weight: 600; color: #8fd9df; }
.chat-app { display: flex; flex-direction: column; }
.chat-thread {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  min-height: 0; flex: 1; overflow: auto; background: #eef3f6;
}
.bubble { margin: 0; max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.bubble.in { align-self: flex-end; background: var(--brand-teal); color: #fff; border-bottom-right-radius: 4px; }
.bubble.out { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.portal-body { display: grid; grid-template-columns: 148px 1fr; min-height: 280px; }
.portal-menu { padding: 12px 10px; background: #f6f8fa; border-right: 1px solid var(--border); font-size: 12px; }
.portal-menu small {
  display: block; margin: 10px 8px 4px; color: var(--brand-teal-dark);
  font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px;
}
.portal-menu small:first-child { margin-top: 0; }
.portal-menu span { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.portal-menu span.on { background: rgba(73, 188, 198, 0.18); color: var(--brand-teal-dark); font-weight: 700; }
.portal-main { padding: 14px 16px; overflow: auto; }
.portal-main p { margin: 0 0 10px; font-weight: 700; }
.portal-main table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-main th, .portal-main td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.portal-main th { color: var(--muted); font-size: 11px; }
.portal-main td { vertical-align: middle; }
.portal-main td img {
  width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 6px;
}
.partners-section { padding-bottom: 56px; }
.partners-section .wrap { text-align: center; }
.partners-section .sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.partners-marquee {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 200px;
}
.partners-track {
  display: flex; width: max-content;
  animation: partners-scroll 22s linear infinite;
}
.partners-row {
  display: flex; align-items: center; gap: 64px; padding: 24px 48px;
}
.partners-row img {
  height: 52px; width: auto; max-width: 200px; object-fit: contain;
}
.partners-row img.partner-wide {
  height: 34px; max-width: 240px;
}
.partners-row img.partner-large {
  height: 156px; max-width: 600px;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.footer {
  background: linear-gradient(180deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #fff; padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer-policy { font-size: 13px; text-underline-offset: 3px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.footer-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.footer-brand span { display: block; font-size: 12px; opacity: 0.9; }
.fab {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 10px 24px rgba(73, 188, 198, 0.4);
}
.fab[hidden] { display: none !important; }
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-sheet {
  position: relative; width: min(480px, 100vw); background: #fff;
  border-radius: 16px 16px 0 0; padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  max-height: min(92dvh, 100%); overflow: auto;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partners-track { animation: none; }
}
@media (max-width: 1100px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .header-inner { flex-wrap: wrap; min-height: 56px; gap: 8px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 16px; }
  .btn-header-lead { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; order: 3; width: 100%; flex-direction: column; gap: 0;
    padding: 4px 0 8px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .lead { font-size: 16px; margin-bottom: 16px; }
  .hero-actions { display: none; }
  .hero-grid, .cards, .steps, .why, .proof-grid, .portal-body { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .section { padding: 32px 0; }
  .section h2 { font-size: 26px; }
  .section .sub { margin-bottom: 18px; }
  .card { min-height: 0; padding: 16px; }
  .proof { margin-top: 28px; }
  .proof-title { font-size: 22px; }
  .proof-grid { max-width: 420px; }
  .chat-app, .portal-app, .proof-shot, .proof-portal .proof-shot, .chat-zoom,
  .client-form, .form-zoom { height: 200px; }
  .chat-thread { min-height: 0; }
  .portal-body { min-height: 0; }
  .portal-menu { display: flex; flex-wrap: wrap; gap: 4px 8px; border-right: none; border-bottom: 1px solid var(--border); }
  .portal-menu small { margin: 4px 0 0; }
  .portal-top b { display: none; }
  .portal-main { overflow-x: auto; }
  .lead-mascot { width: 140px; margin: 8px auto 0; }
  .partners-section { padding-bottom: 36px; }
  .partners-marquee { min-height: 88px; }
  .partners-row { gap: 28px; padding: 16px 24px; }
  .partners-row img,
  .partners-row img.partner-wide,
  .partners-row img.partner-large {
    height: 44px; max-width: 140px;
  }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-policy { width: 100%; }
  .fab { width: calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); right: calc(16px + env(safe-area-inset-right)); left: calc(16px + env(safe-area-inset-left)); }
  .btn, .phone, .nav-toggle { min-height: 44px; }
  .consent input { width: 22px; height: 22px; }
}
