:root {
  --night: #07172f;
  --deep: #0b2d5c;
  --accent: #1668b3;
  --red: #d71920;
  --paper: #f4f7fb;
  --ink: #152033;
  --muted: #5c6b82;
  --line: #d9e2ee;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 31, 48, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.topline {
  height: 8px;
  background: linear-gradient(90deg, var(--red), #7f1431, var(--accent));
}

.site-header {
  min-height: 96px;
  padding: 0 clamp(24px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #03111f;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #02070d;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.brand-copy small {
  display: block;
  margin-top: 6px;
  color: #c9d5e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: #dce6f2;
  font-weight: 600;
}

.main-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .is-active { color: #fff; }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.nav-cta {
  min-height: 58px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(215,25,32,.25);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 38px rgba(215,25,32,.25);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.btn-light {
  background: #fff;
  color: #06111d;
}

.hero {
  background: linear-gradient(135deg, #07172f, #12395b 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  width: min(100%, 1440px);
  min-height: 610px;
  margin: 0 auto;
  padding: 72px clamp(24px, 5vw, 84px) 64px;
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #eef6ff;
  font-weight: 800;
  font-size: 14px;
}

.badge span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #20d98a;
  box-shadow: 0 0 0 6px rgba(32,217,138,.13);
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 34px 0 18px;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero h1 em {
  color: #65bdff;
  font-style: normal;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #d0dbea;
  font-size: clamp(19px, 2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.trust-grid {
  max-width: 640px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid div {
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
}

.trust-grid b {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  line-height: .9;
}

.trust-grid small {
  display: block;
  margin-top: 6px;
  color: #c4d2e2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: 470px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-photo {
  width: min(100%, 560px);
  height: 520px;
  margin: 0 auto;
  border-radius: 24px;
  object-fit: cover;
  object-position: 35% 42%;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.hero-photo-single {
  max-width: 560px;
}

.hero-chip {
  position: absolute;
  right: 0;
  top: 75px;
  padding: 17px 25px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.hero-card {
  position: static;
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
}

.hero-card-light {
  width: min(100%, 420px);
  padding: 25px 28px;
  border-radius: 21px;
  background: #fff;
  color: var(--ink);
}

.hero-card-light strong {
  display: block;
  color: var(--red);
  font-size: 48px;
  line-height: 1;
}

.hero-card-light span {
  display: block;
  margin-top: 5px;
  color: #132032;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-card-light p {
  margin-top: 15px;
  color: #66768a;
  font-size: 16px;
}

.hero-card-dark {
  width: min(100%, 360px);
  min-height: 110px;
  padding: 22px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #06111d;
}

.hero-card-dark img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #02070d;
}

.hero-card-dark b,
.hero-card-dark small {
  display: block;
}

.hero-card-dark b {
  font-size: 22px;
  line-height: 1.18;
}

.hero-card-dark small {
  margin-top: 8px;
  color: #c1ccd9;
  font-size: 12px;
}

.section {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) clamp(24px, 5vw, 84px);
}

.section-head {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 42px;
  align-items: end;
}

.kicker {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section h2,
.method-panel h2,
.cta-band h2,
.detail-copy h2,
.prose-grid h2,
.download-card h2,
.legal-content h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #071b31;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 28px 0 10px;
  font-size: 27px;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: #607087;
}

.service-card ul,
.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.service-card li,
.check-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 21px;
  font-weight: 800;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.method-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: stretch;
  padding-top: 24px;
}

.method-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.method-media img {
  width: 100%;
  height: 205px;
  border-radius: 16px;
  object-fit: cover;
}

.method-media .method-wide {
  grid-column: 1 / -1;
  height: 272px;
}

.method-panel {
  padding: clamp(36px, 5vw, 58px);
  border-radius: 24px;
  background: #06111d;
  color: #fff;
}

.method-panel h2 { color: #fff; }

.method-panel p {
  max-width: 660px;
  margin: 22px 0 28px;
  color: #d0d9e6;
  font-size: 19px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: .42em;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-list li { padding-left: 42px; }
.check-list.light li::before { background: var(--red); }

.cta-band {
  width: min(calc(100% - 48px), 1272px);
  margin: 0 auto 28px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 52px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #06111d;
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
}

.cta-band p {
  margin: 0;
  color: #c8d3df;
  font-size: 18px;
}

.contact-strip {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.contact-strip article,
.download-card,
.prose-grid article,
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-strip span,
.contact-aside span {
  display: block;
  color: #6d7b90;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-strip b,
.contact-aside b {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.page-hero {
  padding: clamp(62px, 7vw, 92px) clamp(24px, 5vw, 84px);
  background: linear-gradient(135deg, #07172f, #12395b);
  color: #fff;
}

.page-hero.compact h1 {
  margin: 16px 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
}

.page-hero p {
  max-width: 840px;
  color: #d2deec;
}

.detail-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 42px;
  align-items: start;
}

.detail-copy p,
.prose-grid p,
.legal-content p,
.download-card p {
  color: var(--muted);
  font-size: 18px;
}

.detail-grid img,
.contact-aside img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-grid img { height: 420px; }

.prose-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.field textarea { resize: vertical; }

.field small,
.form-error {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-weight: 700;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 700;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
}

.alert.success {
  color: #0b5132;
  background: #dff7eb;
}

.alert.error {
  color: #8b1015;
  background: #ffe1e3;
}

.contact-aside {
  display: grid;
  grid-template-columns: minmax(180px, .68fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-aside div {
  padding: 28px;
  border-radius: 16px;
  background: #06111d;
  color: #fff;
}

.contact-aside img {
  height: 100%;
  min-height: 282px;
}

.contact-aside b + span {
  margin-top: 22px;
}

.legal-content {
  max-width: 960px;
}

.site-footer {
  padding: 36px clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  background: #06111d;
  color: #cbd6e4;
}

.site-footer .brand-logo {
  width: 66px;
  height: 66px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  text-transform: uppercase;
}

.footer-brand small,
.footer-contact span {
  display: block;
}

.footer-contact em {
  display: block;
  margin-top: 8px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
}

.footer-contact {
  text-align: right;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

@media (max-width: 950px) {
  .hero-inner,
  .section-head,
  .method-section,
  .detail-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
    max-width: 720px;
  }

  .hero-photo {
    margin-left: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-contact { text-align: left; }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
    gap: 14px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    white-space: nowrap;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-copy small {
    max-width: 220px;
    font-size: 10px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px 0 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 12px 0;
  }

  .nav-cta {
    width: 100%;
  }

  .trust-grid,
  .contact-strip,
  .prose-grid,
  .download-grid,
  .field-row,
  .contact-aside {
    grid-template-columns: 1fr;
  }

  .contact-aside img {
    height: 280px;
    min-height: 0;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-photo {
    width: 100%;
    height: 430px;
  }

  .hero-chip,
  .hero-card {
    position: static;
    margin-top: 16px;
  }

  .hero-card-light,
  .hero-card-dark {
    width: 100%;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .btn-light,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .service-grid,
  .method-media {
    grid-template-columns: 1fr;
  }

  .method-media .method-wide,
  .method-media img,
  .detail-grid img {
    grid-column: auto;
    height: 230px;
  }

  .section,
  .page-hero,
  .hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }
}

.admin-body {
  margin: 0;
  background: #eef3f8;
  color: var(--ink);
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #06111d;
}

.admin-auth-card {
  width: min(100%, 440px);
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.admin-auth-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 18px;
}

.admin-auth-card h1,
.admin-title h1 {
  margin: 0 0 10px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #06111d;
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 900;
}

.admin-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar nav strong {
  margin-top: 18px;
  color: #7891ad;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-sidebar nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #dce7f4;
  font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: #132a42;
  color: #fff;
}

.admin-main {
  padding: 24px clamp(20px, 4vw, 48px) 48px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-topbar span,
.admin-title span,
.admin-stats span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-title {
  margin-bottom: 22px;
}

.admin-title p,
.admin-auth-card p {
  margin: 0;
  color: var(--muted);
}

.admin-stats,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stats article,
.admin-panel,
.admin-card-link {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10,35,66,.08);
}

.admin-stats article {
  padding: 20px;
}

.admin-stats b {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.admin-panel {
  margin-bottom: 22px;
  padding: 24px;
}

.admin-panel.narrow {
  max-width: 620px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form label,
.admin-account-row label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-account-row input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd9e6;
  border-radius: 9px;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex-direction: row;
  gap: 10px !important;
}

.admin-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.admin-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  font-weight: 800;
}

.admin-alert.success {
  color: #0b5132;
  background: #dff7eb;
}

.admin-alert.error {
  color: #8b1015;
  background: #ffe1e3;
}

.admin-card-link {
  padding: 22px;
  color: var(--ink);
}

.admin-card-link span,
.admin-card-link b {
  display: block;
}

.admin-card-link b {
  margin-top: 10px;
  color: var(--red);
}

.admin-fieldset {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.admin-account-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.chatbot-faq-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-stats,
  .admin-grid,
  .admin-form-grid,
  .admin-account-row {
    grid-template-columns: 1fr;
  }
}

.visual-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.visual-toolbar span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visual-toolbar h1 {
  margin: 0;
}

.visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.visual-preview-wrap {
  height: calc(100vh - 180px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10,35,66,.08);
}

.visual-preview-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.visual-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10,35,66,.08);
}

.visual-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.visual-help {
  margin-top: -6px;
  color: var(--muted);
}

.visual-image-tools {
  display: none;
  gap: 14px;
}

.visual-field-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.visual-field-list label {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.visual-field-list input,
.visual-field-list textarea,
.visual-panel select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  font: inherit;
}

.visual-status {
  min-height: 22px;
  margin-top: 14px;
  color: #0b5132;
  font-weight: 900;
}

.visual-status.is-error {
  color: #8b1015;
}

[data-editable-key] {
  outline: 0 solid transparent;
  outline-offset: 4px;
  transition: outline-color .15s ease, background .15s ease;
  cursor: pointer;
}

[data-editable-key]:hover {
  outline: 2px dashed rgba(215,25,32,.65);
  background: rgba(215,25,32,.06);
}

[data-editable-key].visual-selected {
  outline: 3px solid #d71920;
  background: rgba(215,25,32,.1);
}

@media (max-width: 1180px) {
  .visual-workspace {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    position: static;
    max-height: none;
  }
}

.jx-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.jx-chatbot-button {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: #06111d;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  cursor: grab;
  overflow: hidden;
}

.jx-chatbot-button:active {
  cursor: grabbing;
}

.jx-chatbot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jx-chatbot-window {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.jx-chatbot-window header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #06111d;
  color: #fff;
}

.jx-chatbot-window header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.jx-chatbot-window header strong,
.jx-chatbot-window header span {
  display: block;
}

.jx-chatbot-window header span {
  color: #cbd6e4;
  font-size: 13px;
}

.jx-chatbot-close {
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.jx-chatbot-messages {
  height: 300px;
  padding: 14px;
  overflow-y: auto;
  background: #f4f7fb;
}

.jx-message {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.jx-message.bot {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.jx-message.user {
  margin-left: auto;
  background: #06111d;
  color: #fff;
}

.jx-message-cta {
  display: inline-flex;
  margin: 0 0 12px 14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.jx-chatbot-quick {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.jx-chatbot-quick button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.jx-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.jx-chatbot-form input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  font: inherit;
}

.jx-chatbot-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.jx-chatbot-cta {
  display: block;
  padding: 12px;
  background: #06111d;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 620px) {
  .jx-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .jx-chatbot-button {
    width: 60px;
    height: 60px;
  }

  .jx-chatbot-window {
    right: -4px;
    bottom: 72px;
  }
}
