@import url('./components/partners.css?v=20260917-artera-1');

:root {
  --color-text: #f4f1e8;
  --color-muted: #b4b1a8;
  --color-bg: #0d0f12;
  --color-surface: #16191f;
  --color-surface-alt: #20242b;
  --color-brand: #39d6c8;
  --color-brand-deep: #0f8f86;
  --color-accent: #ffb15c;
  --color-accent-deep: #d46f30;
  --color-success: #65d88f;
  --color-border: rgba(244, 241, 232, 0.14);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
  --header-height: 5rem;
  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.85rem;
  --radius-pill: 999px;
  --space-xxs: 0.35rem;
  --space-xs: 0.65rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container: min(1140px, 92vw);
  --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(57, 214, 200, 0.075), transparent 38rem),
    linear-gradient(155deg, #0d0f12, #111519 55%, #0d0f12);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #7bf1e7;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.15;
  margin-top: 0;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: 3.3rem;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 2.15rem;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

ul {
  padding-left: 1.15rem;
}

main {
  min-height: 60vh;
}

section {
  padding-block: var(--space-xl);
}

site-header,
site-footer,
section-title,
service-card,
ai-service-card,
case-study-card,
blog-card,
cta-section,
contact-form {
  display: block;
  min-width: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.stack > * + * {
  margin-top: var(--space-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #111;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  border: 2px solid #000;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.45;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, #7bf1e7 100%);
  color: #08100f;
  box-shadow: 0 6px 20px rgba(57, 214, 200, 0.12);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #08100f;
  background: linear-gradient(135deg, #71f2e6 0%, #a5fff6 100%);
}

.btn-secondary {
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.2);
  color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(244, 241, 232, 0.12);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.text-link::after {
  content: '\2192';
  transition: transform 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--color-accent);
  margin-bottom: 0.55rem;
}

.section-head {
  max-width: 75ch;
  margin-bottom: var(--space-lg);
}

.section-head p:last-child {
  color: var(--color-muted);
}

.editorial-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.editorial-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 0;
}

.editorial-heading > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.project-card {
  min-width: 0;
}

.project-card:nth-child(even) {
  margin-top: 4rem;
}

.project-card > a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.project-image img {
  width: 100%;
  height: auto;
  transition: transform 650ms var(--motion-smooth);
}

.project-open {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  background: var(--color-text);
  color: #102824;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.project-card > a:hover .project-open,
.project-card > a:focus-visible .project-open {
  background: var(--color-brand);
  transform: translate(2px, -2px);
}

.project-caption {
  padding-top: 1.5rem;
}

.project-caption .kicker {
  color: var(--color-muted);
  font-size: 0.65rem;
  line-height: 1.6;
  font-weight: 500;
}

.project-caption h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.project-caption p:last-child {
  color: var(--color-muted);
  max-width: 54ch;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  background: rgba(255, 177, 92, 0.16);
  color: #ffd6a3;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.badge-quiet {
  background: rgba(57, 214, 200, 0.12);
  color: #9df6ef;
}

site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: relative;
  background: rgba(13, 15, 18, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 1.7vw, 1.75rem);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: #0d0f12;
  background: linear-gradient(145deg, var(--color-brand), var(--color-accent));
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1vw, 1rem);
}

.nav-link {
  text-decoration: none;
  color: rgba(244, 241, 232, 0.78);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 0.65rem 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--color-brand);
  color: var(--color-text);
}

.nav-link:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: rgba(244, 241, 232, 0.08);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 1280px) {
  .site-header .container {
    width: min(1360px, calc(100% - 3rem));
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .site-nav ul {
    justify-content: flex-end;
  }

  .site-nav > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline: 1.15rem;
    font-size: 0.84rem;
  }
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  display: block;
  transition: transform 170ms ease, opacity 170ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  min-height: 84vh;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.9) contrast(1.08);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0) 0%, rgba(13, 15, 18, 0.9) 100%),
    radial-gradient(circle at 20% 26%, rgba(255, 177, 92, 0.2) 0%, transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(57, 214, 200, 0.2) 0%, transparent 35%);
}

.hero::after {
  z-index: 2;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 92, 0.55), rgba(57, 214, 200, 0.45), transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.55fr);
  align-items: center;
}

.hero-copy p {
  color: var(--color-muted);
  max-width: 64ch;
}

.hero-copy {
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.hero-visual {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    linear-gradient(150deg, rgba(57, 214, 200, 0.22), rgba(255, 177, 92, 0.1));
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-soft);
  color: #fff;
  position: relative;
  border: 1px solid rgba(244, 241, 232, 0.16);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 241, 232, 0.22);
  border-radius: calc(var(--radius-lg) - 0.45rem);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: auto -12% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 92, 0.18) 0%, rgba(255, 177, 92, 0) 72%);
  pointer-events: none;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.hero-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs);
  align-items: start;
  font-weight: 600;
}

.hero-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 22px rgba(255, 177, 92, 0.6);
  margin-top: 0.45rem;
}

.surface {
  background: rgba(244, 241, 232, 0.045);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.panel {
  padding: clamp(1rem, 2vw, 1.8rem);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid > * {
  min-width: 0;
}

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

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

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

.card {
  --card-padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.035), transparent),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  height: 100%;
  overflow: hidden;
  transition: transform 260ms var(--motion-smooth), border-color 180ms ease, box-shadow 260ms ease;
}

.service-card:hover,
.blog-card:hover,
.case-study-card:hover,
.card:focus-within {
  border-color: rgba(57, 214, 200, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.card p {
  color: var(--color-muted);
}

.card-media {
  flex-shrink: 0;
  width: calc(100% + var(--card-padding) * 2);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding)) 1.15rem;
  border-bottom: 1px solid var(--color-border);
  filter: saturate(0.8) contrast(1.02);
}

.service-card,
.blog-card,
.case-study-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card > .text-link,
.case-study-card > .btn,
.blog-card-body > .text-link {
  margin-top: auto;
}

.service-card > .text-link,
.blog-card-body > .text-link {
  padding-top: 0.75rem;
}

.blog-card {
  padding: 0;
}

.blog-card .card-media {
  width: 100%;
  margin: 0;
  object-fit: contain;
  background: var(--color-bg);
  filter: none;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  padding: var(--card-padding);
}

.blog-card h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  text-wrap: pretty;
}

.ai-card {
  border-top: 2px solid rgba(57, 214, 200, 0.65);
}

.card ul {
  color: rgba(244, 241, 232, 0.86);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.service-card h3,
.ai-card h3,
.blog-card h3,
.case-study-card h3 {
  margin-top: 0.55rem;
}

.case-study-card {
  border: 1px solid rgba(57, 214, 200, 0.28);
  background: linear-gradient(160deg, rgba(57, 214, 200, 0.12), rgba(255, 177, 92, 0.06)), var(--color-surface);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: var(--space-lg);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(57, 214, 200, 0.14), rgba(255, 177, 92, 0.04)),
    #12161a;
  color: #fff;
  border: 1px solid rgba(244, 241, 232, 0.16);
  box-shadow: var(--shadow-soft);
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.cta-panel p {
  color: rgba(244, 241, 232, 0.85);
  margin-bottom: 0;
}

.cta-panel .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}

.cta-panel .btn-secondary:hover,
.cta-panel .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.breadcrumbs {
  margin-top: 1.15rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumbs li {
  color: var(--color-muted);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.3rem;
  color: rgba(244, 241, 232, 0.35);
}

.highlight-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 177, 92, 0.26);
  background: linear-gradient(145deg, rgba(255, 177, 92, 0.13), rgba(57, 214, 200, 0.08)), var(--color-surface);
  padding: 1.2rem;
}

.number-steps {
  counter-reset: flow;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.number-steps li {
  counter-increment: flow;
  background: rgba(244, 241, 232, 0.055);
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs);
}

.number-steps li::before {
  content: counter(flow);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #111;
  background: var(--color-brand);
}

.list-columns {
  columns: 2;
  column-gap: 1.2rem;
}

.list-columns li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.pricing-card {
  border-top: 4px solid var(--color-accent);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-md);
  align-items: start;
}

.form-note {
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
  color: var(--color-muted);
}

.contact-form {
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.08), rgba(244, 241, 232, 0.035)),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.32rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 0.65rem;
  padding: 0.72rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: rgba(13, 15, 18, 0.72);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 241, 232, 0.45);
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.2rem;
}

.form-status {
  margin-top: 0.6rem;
  color: var(--color-success);
  font-weight: 700;
}

.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms var(--motion-smooth) var(--reveal-delay),
    transform 520ms var(--motion-smooth) var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .blog-card:hover,
  .case-study-card:hover {
    transform: translateY(-3px);
  }

  .project-card {
    transition: transform 260ms var(--motion-smooth);
  }

  .project-card:hover {
    transform: translateY(-2px);
  }

  .project-card > a:hover .project-image img,
  .project-card > a:focus-visible .project-image img {
    transform: scale(1.025);
  }

  .btn:active {
    transform: translateY(0) scale(0.985);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.page-home):not(.page-article) .page-hero > .container {
    animation: page-hero-enter 620ms var(--motion-smooth) both;
  }
}

@keyframes page-hero-enter {
  from {
    opacity: 0.72;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  padding-bottom: var(--space-lg);
}

.page-hero p {
  max-width: 76ch;
  color: var(--color-muted);
}

body:not(.page-article) .page-hero {
  padding-block: clamp(2.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(ellipse at 100% 0%, rgba(57, 214, 200, 0.055), transparent 65%);
}

body:not(.page-article) .page-hero h1 {
  max-width: 26ch;
  font-size: clamp(2.15rem, 4.5vw, 3.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-block: 1rem 1.5rem;
}

body:not(.page-article) .page-hero .kicker {
  color: var(--color-brand);
}

body:not(.page-article) .page-hero > .container > p:last-child {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}

.article-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.article-shell {
  display: grid;
  gap: var(--space-md);
}

.article-panel {
  padding: clamp(1.1rem, 2.3vw, 2rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 72ch;
  margin: 0 auto 1.5rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(244, 241, 232, 0.06);
  border: 1px solid var(--color-border);
  color: rgba(244, 241, 232, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-lead {
  font-size: 1.08rem;
  color: rgba(244, 241, 232, 0.9);
}

.article-content {
  display: grid;
  gap: 1.15rem;
  max-width: 72ch;
  margin-inline: auto;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.article-content > * {
  margin: 0;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.5rem;
  line-height: 1.3;
  text-wrap: pretty;
}

.article-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.article-content li + li {
  margin-top: 0.4rem;
}

.article-content p,
.article-content li {
  color: rgba(244, 241, 232, 0.9);
}

.article-content ul,
.article-content ol {
  margin: 0;
  padding-left: 1.2rem;
}

.article-note {
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--color-brand);
  border-radius: 0.8rem;
  background: rgba(57, 214, 200, 0.08);
}

.article-related {
  display: grid;
  gap: 0.85rem;
}

.article-related a {
  text-decoration: none;
}

.article-related strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.article-related span {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.muted-block {
  color: var(--color-muted);
  max-width: 70ch;
}

.service-groups article + article {
  margin-top: var(--space-md);
}

.service-groups ul {
  columns: 2;
  column-gap: 1.2rem;
}

.service-groups li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}

.category-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-pill-list span {
  border-radius: var(--radius-pill);
  padding: 0.33rem 0.65rem;
  border: 1px solid var(--color-border);
  background: rgba(244, 241, 232, 0.06);
  font-size: 0.84rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  background: rgba(244, 241, 232, 0.055);
  padding: 0.7rem 0.8rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  background: #090a0c;
  color: #e9f1fc;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(244, 241, 232, 0.72);
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-invitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--color-border);
}

.site-footer .footer-invitation p {
  max-width: 32ch;
  font-size: 1.1rem;
}

.site-footer .footer-invitation .footer-contact {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  color: var(--color-text);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.site-footer .footer-invitation .footer-contact span {
  color: var(--color-brand);
  transition: transform 180ms ease;
}

.site-footer .footer-invitation .footer-contact:hover span,
.site-footer .footer-invitation .footer-contact:focus-visible span {
  transform: translate(3px, -3px);
}

.site-footer address.footer-contact {
  display: grid;
  align-items: start;
  gap: 0.3rem;
  margin: 0;
  color: rgba(244, 241, 232, 0.72);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.site-footer address.footer-contact span,
.site-footer address.footer-contact a {
  margin: 0;
  color: rgba(244, 241, 232, 0.72);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.cookie-banner {
  position: fixed;
  z-index: 1200;
  inset: auto 1rem 1rem;
  max-width: 600px;
  max-height: 70dvh;
  width: calc(100% - 2rem);
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 0.9rem;
  background: rgba(12, 15, 20, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}

body:has(cookie-consent-bar) .chatbot-widget,
body.nav-open .chatbot-widget,
body.nav-open .cookie-banner {
  visibility: hidden;
}

.cookie-banner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-brand), var(--color-accent));
}

.cookie-banner p {
  margin: 0;
  color: var(--color-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cookie-banner .btn {
  font-size: 0.88rem;
  padding: 0.62rem 1.1rem;
}

.cookie-banner .btn-secondary {
  border-color: rgba(244, 241, 232, 0.36);
}

.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus-visible {
  background: rgba(244, 241, 232, 0.16);
}

.cookie-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.cookie-close {
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  background: transparent;
  font: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}

.cookie-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.cookie-policy-links a,
.chatbot-data-notice a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-banner .cookie-actions .btn {
  flex: 1 1 0;
  min-height: 44px;
}

.cookie-banner .cookie-current {
  font-size: 0.85rem;
  line-height: 1.5;
}

.chatbot-data-notice {
  margin: 0 0 0.55rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-grid > section {
  padding-block: 0;
  min-width: 0;
}

.footer-grid h2:not(:first-child) {
  margin-top: 1.5rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 232, 0.14);
  padding-block: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.chatbot-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  width: min(420px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.chatbot-widget [hidden] {
  display: none;
}

.chatbot-toggle {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  margin-left: auto;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #051515;
  background: linear-gradient(135deg, #39d6c8 0%, #8bf5ec 100%);
  box-shadow: 0 14px 36px rgba(11, 44, 42, 0.45);
  cursor: pointer;
  pointer-events: auto;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
  transform: translateY(-2px);
}

.chatbot-panel {
  margin-top: 0.7rem;
  max-height: calc(100dvh - var(--header-height) - 6rem);
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  background: rgba(10, 12, 15, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  background: linear-gradient(90deg, rgba(57, 214, 200, 0.2), rgba(255, 177, 92, 0.1));
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1rem;
  color: #f7fbfd;
}

.chatbot-close {
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(15, 18, 22, 0.7);
  color: #f4f1e8;
  border-radius: 0.55rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  padding: 0.85rem;
  display: grid;
  gap: 0.8rem;
}

.chatbot-messages {
  max-height: 315px;
  overflow-y: auto;
  display: grid;
  gap: 0.62rem;
  padding-right: 0.15rem;
}

.chatbot-message {
  border-radius: 0.75rem;
  padding: 0.6rem 0.72rem;
  border: 1px solid rgba(244, 241, 232, 0.1);
}

.chatbot-message-assistant {
  background: rgba(57, 214, 200, 0.1);
}

.chatbot-message-user {
  background: rgba(255, 177, 92, 0.12);
}

.chatbot-message-label {
  margin: 0 0 0.2rem;
  font-size: 0.73rem;
  font-weight: 800;
  color: rgba(244, 241, 232, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chatbot-message-text {
  margin: 0;
  color: #f4f1e8;
  font-size: 0.94rem;
  line-height: 1.46;
}

.chatbot-assist-actions {
  display: flex;
  justify-content: flex-start;
}

.chatbot-assist-actions .btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
}

.chatbot-input-form,
.chatbot-lead-form {
  display: grid;
  gap: 0.55rem;
}

.chatbot-input-form textarea,
.chatbot-lead-form input,
.chatbot-lead-form select,
.chatbot-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(5, 7, 9, 0.72);
  color: #f4f1e8;
  border-radius: 0.62rem;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 1rem;
}

.chatbot-input-actions {
  display: flex;
  justify-content: flex-end;
}

.chatbot-input-actions .btn,
.chatbot-lead-form .btn {
  font-size: 0.9rem;
  padding: 0.58rem 1rem;
}

.chatbot-status,
.chatbot-lead-status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.chatbot-lead-form {
  border-top: 1px solid rgba(244, 241, 232, 0.1);
  padding-top: 0.72rem;
}

.chatbot-lead-form h3 {
  margin: 0;
  font-size: 0.94rem;
}

.chatbot-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.chatbot-form-grid label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: rgba(244, 241, 232, 0.9);
}

.chatbot-full {
  grid-column: 1 / -1;
}

.chatbot-privacy {
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: flex-start;
}

.chatbot-privacy input {
  width: auto;
  margin-top: 0.2rem;
}

.chatbot-privacy span {
  font-size: 0.8rem;
  line-height: 1.45;
}

.chatbot-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1279px) {
  :root {
    --header-height: 4.5rem;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 0.35rem) 1rem auto;
    width: calc(100% - 2rem);
    max-height: calc(100vh - var(--header-height) - 1.5rem);
    max-height: calc(100dvh - var(--header-height) - 1.5rem);
    overflow-y: auto;
    background: rgba(22, 25, 31, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.8rem 0.65rem;
    font-size: 0.95rem;
    white-space: normal;
  }

  .site-nav .btn {
    width: 100%;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .blog-layout,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

  .footer-grid > section:first-child {
    grid-column: 1 / -1;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  .editorial-heading,
  .project-grid,
  .footer-invitation {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-heading {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .project-grid {
    gap: 2.5rem;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-caption {
    padding-top: 1rem;
  }

  .footer-contact {
    justify-self: start;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1140px, calc(100vw - 1.5rem));
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }

  h3 {
    font-size: 1.2rem;
  }

  section {
    padding-block: 2.75rem;
  }

  p,
  li,
  input,
  select,
  textarea {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 2.9rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero-bg {
    opacity: 0.22;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-copy .kicker {
    margin-bottom: 0.7rem;
  }

  .hero-actions,
  .cta-actions,
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .cookie-actions .btn {
    width: 100%;
  }

  .hero-visual {
    padding: 1rem;
  }

  .hero-visual::before {
    inset: 8px;
  }

  .hero-list {
    gap: 0.85rem;
  }

  .hero-list li {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .contact-form,
  .highlight-box,
  .cta-panel {
    padding: 1rem;
  }

  .card {
    --card-padding: 1.15rem;
  }

  .badge {
    font-size: 0.7rem;
  }

  .service-groups ul,
  .list-columns {
    columns: 1;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    gap: 1rem;
  }

  .article-panel {
    padding: 1rem;
  }

  .article-lead {
    font-size: 1rem;
  }

  .checkbox-field {
    gap: 0.6rem;
  }

  .checkbox-field input {
    margin-top: 0.28rem;
  }

  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 0.9rem;
    border-radius: 0.85rem;
  }

  .cookie-banner p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .chatbot-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .chatbot-form-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-messages {
    max-height: 280px;
  }

  .brand-logo {
    width: 44px;
  }

  .brand-name {
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-link {
    padding: 0.8rem 0.65rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .breadcrumbs ol {
    gap: 0.15rem;
    font-size: 0.84rem;
  }

  .footer-grid {
    gap: 1.4rem;
  }

  .site-footer {
    padding-top: 2.75rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100vw - 1.1rem);
  }

  section {
    padding-block: 2.35rem;
  }

  h1 {
    font-size: 1.82rem;
  }

  h2 {
    font-size: 1.42rem;
  }

  .header-inner {
    gap: 0.85rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-visual,
  .contact-form,
  .highlight-box,
  .cta-panel,
  .cookie-banner {
    padding: 0.88rem;
  }

  .card {
    --card-padding: 1.05rem;
  }

  .site-nav {
    inset: calc(var(--header-height) + 0.35rem) 0.55rem auto;
    width: calc(100% - 1.1rem);
    padding: 0.9rem;
  }

  .cookie-banner {
    inset: auto 0.55rem 0.55rem;
    width: calc(100% - 1.1rem);
  }

  .chatbot-widget {
    right: 0.55rem;
    bottom: 0.55rem;
    width: calc(100vw - 1.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Production chatbot enhancements retained from the Laravel runtime. */
/* ================================================================
   9. Chatbot pubblico
   ================================================================ */
.chatbot-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  width: min(500px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: width 180ms ease;
}

.chatbot-widget[data-lead-form="open"] {
  width: min(580px, calc(100vw - 2rem));
}

.chatbot-toggle {
  display: flex;
  flex: 0 0 auto;
  align-self: flex-end;
  width: auto;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.62rem 0.82rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  color: #051515;
  background: linear-gradient(135deg, #39d6c8 0%, #8bf5ec 100%);
  box-shadow: 0 14px 36px rgba(11, 44, 42, 0.45);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.chatbot-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(5, 21, 21, 0.12);
}

.chatbot-widget[data-open="true"] .chatbot-toggle {
  display: none;
}

.chatbot-widget[data-open="true"] .chatbot-panel {
  margin-top: 0;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  height: min(740px, calc(100vh - 2rem));
  height: min(740px, calc(100dvh - 2rem));
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
  transform: translateY(-2px);
}

.chatbot-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
  height: min(680px, calc(100vh - 5.5rem));
  height: min(680px, calc(100dvh - 5.5rem));
  margin-top: 0.7rem;
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(10, 12, 15, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-storage-choice {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.chatbot-storage-choice h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.chatbot-storage-choice p {
  margin: 0 0 0.85rem;
  color: #deded9;
}

.chatbot-storage-choice a {
  color: var(--color-primary, #39d6c8);
  text-decoration: underline;
}

.chatbot-storage-actions {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.chatbot-storage-actions button,
.chatbot-storage-back {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(57, 214, 200, 0.55);
  border-radius: 0.65rem;
  background: #142725;
  color: #f4f1e8;
  font: inherit;
  cursor: pointer;
}

.chatbot-storage-control {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: #cfdbd7;
}

.chatbot-storage-manage {
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #63e1d7;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.chatbot-widget button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chatbot-storage-choice[hidden],
.chatbot-storage-control[hidden],
.chatbot-storage-back[hidden],
.chatbot-widget[data-storage-choice="open"] .chatbot-messages,
.chatbot-widget[data-storage-choice="open"] .chatbot-quick-actions,
.chatbot-widget[data-storage-choice="open"] .chatbot-input-form,
.chatbot-widget[data-lead-form="open"] .chatbot-storage-choice,
.chatbot-widget[data-lead-form="open"] .chatbot-storage-control {
  display: none;
}

.chatbot-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  background: linear-gradient(90deg, rgba(57, 214, 200, 0.2), rgba(255, 177, 92, 0.1));
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1rem;
  color: #f7fbfd;
}

.chatbot-header p {
  margin: 0.1rem 0 0;
  color: rgba(244, 241, 232, 0.68);
  font-size: 0.76rem;
}

.chatbot-close {
  flex: 0 0 32px;
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(15, 18, 22, 0.7);
  color: #f4f1e8;
  border-radius: 0.55rem;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  flex: 1 1 auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.chatbot-messages {
  min-height: 120px;
  height: auto;
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  gap: 0.62rem;
  padding-right: 0.15rem;
}

.chatbot-message {
  border-radius: 0.75rem;
  padding: 0.6rem 0.72rem;
  border: 1px solid rgba(244, 241, 232, 0.1);
}

.chatbot-message-assistant {
  background: rgba(57, 214, 200, 0.1);
}

.chatbot-message-user {
  background: rgba(255, 177, 92, 0.12);
}

.chatbot-message-label {
  margin: 0 0 0.2rem;
  font-size: 0.73rem;
  font-weight: 800;
  color: rgba(244, 241, 232, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chatbot-message-text {
  margin: 0;
  color: #f4f1e8;
  font-size: 0.94rem;
  line-height: 1.46;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chatbot-quick-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.chatbot-quick-actions button {
  flex: 0 0 auto;
  border: 1px solid rgba(57, 214, 200, 0.3);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  background: rgba(57, 214, 200, 0.08);
  color: #e9fffd;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.chatbot-quick-actions button:hover,
.chatbot-quick-actions button:focus-visible {
  background: rgba(57, 214, 200, 0.18);
}

.chatbot-quick-actions button.is-suggested {
  border-color: #ffb15c;
  background: rgba(255, 177, 92, 0.16);
  color: #fff4e8;
}

.chatbot-input-form,
.chatbot-lead-form {
  display: grid;
  gap: 0.55rem;
}

.chatbot-input-form {
  flex: 0 0 auto;
}

.chatbot-input-form textarea,
.chatbot-lead-form input,
.chatbot-lead-form select,
.chatbot-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(5, 7, 9, 0.72);
  color: #f4f1e8;
  border-radius: 0.62rem;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.92rem;
}

.chatbot-input-form textarea {
  min-height: 42px;
  max-height: 96px;
  resize: none;
}

.chatbot-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 0.8rem;
  background: rgba(5, 7, 9, 0.72);
}

.chatbot-composer textarea {
  border: 0;
  background: transparent;
  padding: 0.45rem;
}

.chatbot-composer textarea:focus {
  outline: none;
}

.chatbot-send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.62rem 0.72rem;
  background: #39d6c8;
  color: #051515;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.chatbot-lead-form .btn {
  font-size: 0.9rem;
  padding: 0.58rem 1rem;
}

.chatbot-status,
.chatbot-lead-status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.chatbot-lead-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid rgba(244, 241, 232, 0.1);
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(244, 241, 232, 0.04);
}

.chatbot-widget[data-lead-form="open"] .chatbot-messages,
.chatbot-widget[data-lead-form="open"] .chatbot-quick-actions,
.chatbot-widget[data-lead-form="open"] .chatbot-input-form {
  display: none;
}

.chatbot-lead-form h3 {
  margin: 0;
  font-size: 0.94rem;
}

.chatbot-lead-form > p {
  margin: -0.2rem 0 0.25rem;
  color: rgba(244, 241, 232, 0.68);
  font-size: 0.78rem;
  line-height: 1.4;
}

.chatbot-lead-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chatbot-lead-cancel {
  border: 0;
  background: transparent;
  color: #f4f1e8;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-optional {
  color: rgba(244, 241, 232, 0.55);
  font-size: 0.72rem;
}

.chatbot-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.chatbot-widget[data-lead-form="open"] .chatbot-form-grid {
  gap: 0.75rem;
}

.chatbot-widget[data-lead-form="open"] .chatbot-lead-form {
  padding: 1rem;
}

.chatbot-form-grid label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: rgba(244, 241, 232, 0.9);
}

.chatbot-full {
  grid-column: 1 / -1;
}

.chatbot-privacy {
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: flex-start;
}

.chatbot-privacy input {
  width: auto;
  margin-top: 0.2rem;
}

.chatbot-privacy span {
  font-size: 0.8rem;
  line-height: 1.45;
}

.chatbot-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


@media (max-width: 760px) {
  .chatbot-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .chatbot-widget[data-lead-form="open"] {
    width: calc(100vw - 1.5rem);
  }

  .chatbot-panel {
    height: calc(100dvh - 5rem);
    max-height: calc(100dvh - 5rem);
  }

  .chatbot-form-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-messages {
    min-height: 120px;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 420px) {
  .chatbot-widget,
  .chatbot-widget[data-lead-form="open"] {
    right: 0.55rem;
    bottom: 0.55rem;
    width: calc(100vw - 1.1rem);
    max-height: calc(100dvh - 1.1rem);
  }
}
