: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 {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  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;
}

.realisations-grid {
  display: grid;
  gap: 34px;
}

.realisation-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.realisation-main-button {
  display: block;
  width: 100%;
  min-height: 430px;
  padding: 0;
  border: 0;
  background: #06111d;
  cursor: zoom-in;
}

.realisation-main-photo {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
}

.realisation-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}

.realisation-content > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.realisation-content h2 {
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
}

.realisation-content p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.realisation-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.realisation-thumbs button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #06111d;
  cursor: zoom-in;
  overflow: hidden;
}

.realisation-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

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

.partner-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.partner-logo-box {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.partner-logo-box span {
  color: var(--muted);
  font-weight: 900;
}

.partner-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, .82);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}

.gallery-modal-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  background: #06111d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.gallery-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(227, 20, 32, .32);
}

.has-gallery-modal {
  overflow: hidden;
}

.flash-info-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flash-info-modal.is-open {
  display: flex;
}

.flash-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, .78);
}

.flash-info-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

.flash-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.flash-info-image {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #06111d;
}

.flash-info-content {
  padding: clamp(24px, 4vw, 38px);
}

.flash-info-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.flash-info-content div {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.has-flash-info {
  overflow: hidden;
}

.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);
}

.download-card {
  display: flex;
  flex-direction: column;
}

.download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.download-cta:hover {
  background: #b8131c;
}

.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;
  flex: 0 0 46px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.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: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    flex: 1 1 0;
    min-width: 0;
    gap: 10px;
  }

  .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;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    flex: 1 0 100%;
    max-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: clamp(17px, 6vw, 20px);
  }

  .brand-copy small {
    display: none;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

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

}

.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: 292px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: linear-gradient(180deg, #06111d 0%, #0b1d30 100%);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-sidebar-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 22px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
}

.admin-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.16);
  background: #02070d;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-brand small {
  margin-top: 3px;
  color: #98acc4;
  font-size: 12px;
  font-weight: 800;
}

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

.admin-dashboard-link {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.admin-nav-group {
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.admin-nav-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #7891ad;
  font-family: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-nav-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.admin-nav-group.is-open .admin-nav-toggle {
  color: #fff;
}

.admin-nav-group.is-open .admin-nav-toggle::after {
  transform: rotate(225deg);
}

.admin-nav-panel {
  display: none;
  gap: 6px;
  padding-top: 6px;
}

.admin-nav-group.is-open .admin-nav-panel {
  display: grid;
}

.admin-sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  color: #dce7f4;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.admin-sidebar nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: #7891ad;
  opacity: .72;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: #ffffff;
  color: #06111d;
}

.admin-sidebar nav a:hover::before,
.admin-sidebar nav a.is-active::before {
  background: var(--red);
  opacity: 1;
}

.admin-sidebar nav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar nav a:hover span,
.admin-sidebar nav a.is-active span {
  color: #06111d;
}

.admin-storage {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.admin-storage > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-storage span {
  color: #98acc4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-storage strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.admin-storage-bar {
  height: 8px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.admin-storage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #20d38a;
}

.admin-storage p {
  margin: 0;
  color: #c8d6e7;
  font-size: 12px;
  line-height: 1.35;
}

.admin-storage.is-danger {
  border-color: rgba(227, 20, 32, .72);
  background: rgba(227, 20, 32, .14);
}

.admin-storage.is-danger .admin-storage-bar span {
  background: var(--red);
}

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

.admin-mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #cfd9e6;
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
}

.admin-mobile-menu span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: #06111d;
}

.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-stats.visits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pwa-install-alert {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-color: rgba(227, 20, 32, .28);
  background: #fff8f8;
}

.pwa-install-alert[hidden] {
  display: none;
}

.pwa-install-alert h2,
.pwa-install-alert p {
  margin: 0;
}

.pwa-install-alert p {
  margin-top: 6px;
  color: var(--muted);
}

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

.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-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-actions-row h2 {
  margin: 0;
}

.admin-log-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

.admin-log-list pre {
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #10213a;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-history-table th:nth-child(4),
.chatbot-history-table th:nth-child(5) {
  min-width: 260px;
}

.chatbot-history-text {
  max-width: 360px;
  color: #24364d;
}

.lead-table tr.is-new td {
  background: #fff8f0;
}

.lead-row-link {
  color: #071525;
  font-weight: 900;
  text-decoration: none;
}

.lead-row-link:hover {
  color: var(--red);
}

.lead-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-status.is-new {
  background: #fee2e2;
  color: #b91c1c;
}

.lead-table-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-table-actions .btn,
.lead-table-actions button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
}

.lead-red-action,
.lead-table-actions .btn-secondary,
.lead-table-actions button,
.message-card .btn-secondary,
.admin-danger-action {
  border: 1px solid rgba(227, 20, 32, .28);
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.lead-red-action:hover,
.lead-table-actions .btn-secondary:hover,
.lead-table-actions button:hover,
.message-card .btn-secondary:hover,
.admin-danger-action:hover {
  background: #fff1f2;
}

.lead-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.lead-detail-head h2 {
  margin: 10px 0 4px;
}

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

.lead-info-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.lead-info-grid span,
.lead-message span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lead-info-grid strong {
  word-break: break-word;
}

.lead-message {
  padding: 18px;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: #f8fafc;
}

.lead-message p {
  margin: 0;
  color: #10213a;
  line-height: 1.7;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cfd9e6;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #f8fafc;
}

.rich-toolbar button,
.rich-toolbar input,
.rich-toolbar select {
  min-height: 34px;
  width: auto;
  padding: 7px 10px;
  border: 1px solid #d8e2ee;
  border-radius: 7px;
  background: #fff;
  color: #071525;
  font-weight: 900;
  cursor: pointer;
}

.rich-editor {
  min-height: 190px;
  padding: 14px;
  border: 1px solid #cfd9e6;
  border-radius: 0 0 9px 9px;
  background: #fff;
  color: #071525;
  font-weight: 500;
  line-height: 1.65;
  outline: none;
}

.message-card {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.message-card:first-child {
  border-top: 0;
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.message-card-head span,
.message-card-head a {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.message-body {
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #10213a;
  line-height: 1.65;
}

.message-error {
  margin: 0;
  color: #b91c1c;
  font-weight: 900;
}

.message-attachments {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.messaging-app {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.conversation-list {
  min-height: 680px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.conversation-list h2 {
  margin: 0;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.conversation-row {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: #071525;
  text-decoration: none;
}

.conversation-row:hover,
.conversation-row.is-active {
  background: #fff;
}

.conversation-row.is-new {
  border-left: 4px solid var(--red);
}

.conversation-row span {
  font-weight: 950;
}

.conversation-row strong {
  overflow: hidden;
  color: #26384f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row small {
  color: var(--muted);
  font-weight: 800;
}

.conversation-thread {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
}

.conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.conversation-head span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-head h2,
.conversation-head p {
  margin: 6px 0 0;
}

.thread-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 560px;
  padding: 22px 26px;
  overflow: auto;
  background: #eef4fb;
}

.thread-bubble {
  max-width: 78%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #10213a;
  box-shadow: 0 8px 20px rgba(10,35,66,.06);
}

.thread-bubble.outbound {
  justify-self: end;
  border-color: rgba(227, 20, 32, .18);
  background: #fff8f8;
}

.thread-bubble.is-failed {
  border-color: #b91c1c;
}

.thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.thread-bubble h3 {
  margin: 10px 0;
}

.thread-bubble p {
  margin: 0;
  line-height: 1.65;
}

.conversation-reply {
  padding: 20px 26px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.empty-thread {
  padding: 42px;
}

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

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

.admin-submit-cell {
  display: flex;
  align-items: end;
}

.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);
}

.admin-photo-preview,
.admin-realisation-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.admin-photo-preview-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.admin-photo-preview-tools strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-photo-preview-tools button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
}

.admin-photo-preview p,
.admin-realisation-photos p {
  margin: 0;
  color: var(--muted);
}

.admin-photo-preview figure,
.admin-realisation-photos figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-photo-preview img,
.admin-realisation-photos img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #06111d;
}

.admin-photo-preview figcaption {
  padding: 9px 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-realisation-photos figcaption {
  padding: 9px 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-realisation-photos .is-main-photo {
  border-color: var(--red);
  box-shadow: 0 16px 34px rgba(227, 20, 32, .12);
}

.admin-photo-preview button,
.admin-realisation-photos button {
  width: calc(100% - 20px);
  margin: 10px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #06111d;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.admin-realisation-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.admin-realisation-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-realisation-head h2 {
  margin: 8px 0;
}

.admin-realisation-head p {
  margin: 0;
  color: var(--muted);
}

.admin-partner-summary {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.admin-partner-summary img {
  width: 130px;
  height: 86px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.partner-logo-preview img {
  background: #f8fafc;
}

.admin-doc-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-doc-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-doc-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-doc-head h3 {
  margin: 8px 0;
}

.admin-doc-head p {
  margin: 0 0 8px;
  color: var(--muted);
}

.admin-edit-details {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.admin-edit-details summary {
  cursor: pointer;
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 900;
}

.admin-edit-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.admin-realisation-edit-form {
  padding: 16px;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.admin-check-inline {
  align-self: end;
  min-height: 48px;
}

.flash-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.flash-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.flash-editor-toolbar button,
.flash-editor-toolbar select,
.flash-editor-toolbar input[type="color"] {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.flash-editor-toolbar button {
  min-width: 36px;
  cursor: pointer;
}

.flash-editor-toolbar label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.flash-editor-surface {
  min-height: 190px;
  padding: 16px;
  outline: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.flash-current-image {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.flash-current-image span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.flash-current-image img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: 10px;
  background: #06111d;
}

.flash-current-image small {
  color: var(--muted);
}

.file-manager-group {
  overflow: visible;
}

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

.file-manager-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.file-manager-head h2 {
  margin: 6px 0 0;
}

.file-manager-empty {
  margin: 0;
  color: var(--muted);
}

.file-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.file-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(10,35,66,.08);
}

.file-card.is-used {
  border-color: rgba(227, 20, 32, .32);
}

.file-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: #06111d;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
}

.file-preview img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.file-card-body {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.file-card-body strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-body small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.file-usage {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(227, 20, 32, .08);
}

.file-usage b {
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.file-usage span {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.file-card form {
  padding: 0 12px 12px;
}

.file-card button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.file-card button:disabled {
  background: #d7dee8;
  color: #607086;
  cursor: not-allowed;
}

.mail-title {
  margin-bottom: 16px;
}

.mail-toolbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.mail-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mail-search input,
.mail-search button,
.mail-account-admin button,
.mail-reader-actions button {
  min-height: 42px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  font: inherit;
}

.mail-search input {
  min-width: 0;
  padding: 0 12px;
  background: #fff;
}

.mail-search button,
.mail-account-admin button,
.mail-reader-actions button {
  padding: 0 14px;
  background: #f8fafc;
  color: #071525;
  font-weight: 900;
  cursor: pointer;
}

.mail-app {
  min-height: 720px;
  display: grid;
  grid-template-columns: 260px minmax(330px, .9fr) minmax(420px, 1.2fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10,35,66,.08);
}

.site-message-app {
  grid-template-columns: 230px minmax(340px, .95fr) minmax(430px, 1.25fr);
}

.site-message-toolbar {
  grid-template-columns: auto minmax(280px, 1fr) auto;
}

.site-message-toolbar .mail-search {
  grid-template-columns: minmax(180px, 1fr) 160px auto;
}

.mail-sidebar,
.mail-list,
.mail-reader {
  min-width: 0;
  min-height: 0;
}

.mail-sidebar {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.mail-panel-title,
.mail-list-head,
.mail-compose-head,
.mail-reader-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mail-panel-title strong,
.mail-list-head strong,
.mail-compose-head h2,
.mail-reader-head h2 {
  color: #071525;
}

.mail-panel-title a,
.mail-list-head a {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.mail-account,
.mail-folders a {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
}

.mail-account span,
.mail-folders span {
  color: #071525;
  font-weight: 900;
}

.mail-account small,
.mail-folders small {
  color: #64748b;
  font-size: 12px;
}

.mail-account.is-active,
.mail-folders a.is-active {
  background: #06111d;
  color: #fff;
}

.mail-account.is-active span,
.mail-account.is-active small,
.mail-folders a.is-active span,
.mail-folders a.is-active small {
  color: #fff;
}

.folders-title {
  margin-top: 22px;
}

.mail-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.mail-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}

.mail-list-head span,
.mail-compose-head span,
.mail-reader-head span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mail-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  color: #071525;
  text-decoration: none;
}

.mail-row:hover,
.mail-row.is-active {
  background: #eef6ff;
}

.mail-row.is-unread {
  background: #fff8f8;
}

.mail-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #06111d;
  color: #fff;
  font-weight: 950;
}

.mail-row-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.mail-row-main b,
.mail-row-main strong,
.mail-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row-main b {
  font-size: 14px;
}

.mail-row-main strong {
  font-size: 14px;
}

.mail-row-main small,
.mail-row-meta {
  color: #64748b;
  font-size: 12px;
}

.mail-row.is-unread .mail-row-main b,
.mail-row.is-unread .mail-row-main strong {
  color: var(--red);
}

.mail-row-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}

.mail-row-meta em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.site-request-row .mail-row-meta em:nth-of-type(2) {
  color: #0b4d8f;
}

.mail-reader {
  padding: 22px;
  overflow-y: auto;
}

.mail-reader-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mail-reader-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
}

.mail-reader-head p {
  margin: 0;
  color: #64748b;
}

.mail-actions,
.mail-reader-actions,
.mail-compose-actions,
.mail-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-actions .btn {
  min-height: 42px;
  width: auto;
  padding: 0 14px;
}

.mail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mail-meta-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.mail-meta-grid b {
  display: block;
  margin-top: 4px;
  color: #071525;
  font-size: 13px;
}

.mail-body {
  min-height: 240px;
  padding: 18px 0;
  color: #10213a;
  font-size: 16px;
  line-height: 1.72;
}

.site-request-body {
  min-height: 140px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.site-thread {
  margin-top: 22px;
}

.site-thread h3 {
  margin: 0 0 12px;
  color: #071525;
}

.inline-compose {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mail-error {
  padding: 12px 14px;
  border: 1px solid #ffc4c8;
  border-radius: 10px;
  background: #fff1f2;
  color: #a20f18;
  font-weight: 900;
}

.mail-attachments {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.mail-attachments a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.mail-reader-actions {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mail-reader-actions .danger,
.mail-account-admin .danger {
  border-color: #ffc4c8;
  color: var(--red);
  background: #fff5f6;
}

.mail-empty {
  padding: 28px;
  color: #64748b;
}

.mail-empty h2 {
  margin: 0 0 8px;
  color: #071525;
}

.reader-empty {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
}

.mail-compose,
.mail-settings,
.mail-diagnostics {
  margin-top: 18px;
}

.mail-compose-head {
  margin-bottom: 16px;
}

.mail-compose-head h2 {
  margin: 2px 0 0;
}

.mail-compose-head p {
  margin: 0;
  color: #64748b;
}

.mail-editor {
  min-height: 240px;
}

.signature-editor {
  min-height: 110px;
}

.mail-account-admin {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mail-account-admin article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.mail-account-admin strong,
.mail-account-admin span {
  display: block;
}

.mail-account-admin span {
  color: #64748b;
  font-size: 13px;
}

.mail-log-list {
  display: grid;
  gap: 8px;
}

.mail-log-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.mail-log-list .error {
  background: #fff1f2;
  color: #9f121a;
}

.mail-log-list .warning {
  background: #fff8e5;
  color: #8a5a00;
}

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

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(292px, 86vw);
    height: 100dvh;
    z-index: 80;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 24px 0 60px rgba(3, 17, 31, .22);
  }

  .admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(3, 17, 31, .46);
  }

  .admin-sidebar-content {
    overflow-y: auto;
  }

  .admin-mobile-menu {
    display: block;
  }

  .admin-main {
    width: 100%;
    min-width: 0;
    padding: 14px 14px 36px;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: -14px -14px 18px;
    border-radius: 0;
  }

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

  .admin-realisation-head,
  .admin-partner-summary {
    display: grid;
  }

  .mail-toolbar,
  .mail-app,
  .site-message-toolbar,
  .site-message-app,
  .mail-account-admin {
    grid-template-columns: 1fr;
  }

  .site-message-toolbar .mail-search {
    grid-template-columns: 1fr;
  }

  .mail-app {
    min-height: 0;
  }

  .mail-sidebar,
  .mail-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mail-list {
    max-height: 430px;
  }

  .mail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .admin-topbar > div {
    min-width: 0;
  }

  .admin-topbar b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-topbar .btn {
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-mobile-menu {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

.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-formatbar,
.visual-seo-tools {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10,35,66,.07);
}

.visual-formatbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.visual-current-field {
  color: #0b1726;
  font-weight: 900;
}

.visual-format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.visual-format-actions button {
  width: 38px;
  height: 38px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #f8fafc;
  color: #06111d;
  font-weight: 900;
  cursor: pointer;
}

.visual-format-actions button:hover {
  border-color: #d71920;
}

.visual-format-actions label {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.visual-format-actions input,
.visual-format-actions select {
  max-width: 170px;
  border: 0;
  background: transparent;
  color: #06111d;
  font: inherit;
  outline: 0;
}

.visual-format-actions input[type="color"] {
  width: 30px;
  height: 28px;
  padding: 0;
}

.visual-image-control,
.visual-link-control {
  display: none !important;
}

.visual-editor.is-image-selected .visual-image-control,
.visual-editor.is-link-selected .visual-link-control {
  display: flex !important;
}

.visual-seo-tools {
  padding: 12px 14px;
}

.visual-seo-tools summary {
  color: #0b1726;
  font-weight: 900;
  cursor: pointer;
}

.visual-seo-tools > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.visual-seo-tools label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.visual-seo-tools input {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  font: inherit;
}

.visual-workspace {
  display: block;
}

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

.visual-preview-canvas {
  width: 1440px;
  min-height: 900px;
  transform-origin: top left;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10,35,66,.12);
}

.visual-preview-wrap iframe {
  display: block;
  width: 1440px;
  min-height: 900px;
  border: 0;
  background: #fff;
}

.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-formatbar,
  .visual-seo-tools > div {
    grid-template-columns: 1fr;
  }

  .visual-format-actions {
    justify-content: flex-start;
  }
}

.jx-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  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;
  touch-action: none;
  user-select: none;
}

.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) {
  .messaging-app {
    grid-template-columns: 1fr;
  }

  .conversation-list {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thread-bubble {
    max-width: 100%;
  }

  .conversation-head {
    display: grid;
  }

  .lead-detail-head,
  .lead-actions {
    display: grid;
  }

  .lead-info-grid {
    grid-template-columns: 1fr;
  }

  .jx-chatbot {
    right: 24px;
    bottom: 24px;
  }

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

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

.seo-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.seo-score {
  width: 124px;
  height: 124px;
  display: grid;
  place-content: center;
  border-radius: 24px;
  background: #eef6ff;
  color: #071525;
  text-align: center;
}

.seo-score strong {
  font-size: 44px;
  line-height: 1;
}

.seo-score span {
  color: #64748b;
  font-weight: 900;
}

.seo-score.is-good {
  background: #def7ec;
  color: #0b5132;
}

.seo-score.is-warning {
  background: #fff3d6;
  color: #8a5a00;
}

.seo-score.is-danger {
  background: #ffe3e6;
  color: #a20f18;
}

.seo-hero h2 {
  margin: 0 0 6px;
  color: #071525;
}

.seo-hero p {
  margin: 0;
  color: #64748b;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.seo-actions .btn {
  min-height: 44px;
  width: auto;
  padding: 0 16px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.seo-module {
  display: grid;
  align-content: start;
  gap: 14px;
}

.seo-module-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

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

.seo-module-head h2 {
  margin: 4px 0 0;
  color: #071525;
}

.seo-module-head button,
.seo-list button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #ffc4c8;
  border-radius: 10px;
  background: #fff5f6;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.seo-issues {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-issues li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6f6;
  color: #9f121a;
  font-weight: 800;
}

.seo-ok {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e9f8f0;
  color: #0b5132;
  font-weight: 900;
}

.seo-module small {
  color: #64748b;
}

.seo-empty {
  grid-column: 1 / -1;
}

.seo-list {
  display: grid;
  gap: 10px;
}

.seo-list p,
.seo-list form {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.seo-list span {
  color: #64748b;
}

.seo-action-table {
  overflow-x: auto;
}

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

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

.seo-action-table th {
  color: #64748b;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .seo-hero,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-actions {
    justify-content: flex-start;
  }
}
