:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #eee8dd;
  --text: #202326;
  --muted: #626a70;
  --line: #d9d3c9;
  --brand: #a64128;
  --brand-dark: #2e3936;
  --accent: #d7a84f;
  --shadow: 0 18px 45px rgba(32, 35, 38, 0.11);
  --shadow-soft: 0 10px 28px rgba(32, 35, 38, 0.09);
  --shadow-hover: 0 22px 50px rgba(32, 35, 38, 0.14);
  --glass: rgba(255, 255, 255, 0.76);
  --motion: 180ms ease;
  --radius: 8px;
  --container: 1400px;
}

* {
  box-sizing: border-box;
}

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-preloader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: page-preloader-pulse 1.1s ease-in-out infinite;
}

@keyframes page-preloader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(215, 168, 79, 0.12), transparent 28%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 42%, #fff 100%);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  transition: color var(--motion), background var(--motion), border-color var(--motion);
}

:focus-visible {
  outline: 3px solid rgba(215, 168, 79, 0.58);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.82);
  border-bottom: 1px solid rgba(217, 211, 201, 0.78);
  box-shadow: 0 10px 30px rgba(32, 35, 38, 0.04);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-shell {
  width: 100%;
  margin: 0;
  padding-inline: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform var(--motion);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  width: 58px;
  height: 46px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 8px rgba(166, 65, 40, 0.16));
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--motion), background var(--motion), transform var(--motion), box-shadow var(--motion);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity var(--motion), transform var(--motion);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(238, 232, 221, 0.72);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .nav-cta {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(166, 65, 40, 0.18);
}

.main-nav .nav-cta::after {
  display: none;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta[aria-current="page"] {
  background: #8f351f;
  color: #fff;
}

.main-nav .nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px 16px;
}

.nav-account-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  object-fit: cover;
}

.nav-account-name {
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: transform var(--motion), box-shadow var(--motion);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.mobile-tabbar {
  display: none;
}

.hero {
  padding: 72px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero-copy,
.page-hero .narrow {
  animation: fade-slide-up 520ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 5vw, 4.3rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.22rem;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.signature-line {
  margin: 18px 0 0;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-trust svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(166, 65, 40, 0.1);
  color: var(--brand);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(32, 35, 38, 0.08);
  transition: transform var(--motion), box-shadow var(--motion), background var(--motion), border-color var(--motion), color var(--motion);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: #8f351f;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.button.light {
  background: #fff;
  color: var(--brand-dark);
}

.hero-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(46, 57, 54, 0.86), rgba(166, 65, 40, 0.64)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.08) 42px 44px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fade-slide-up 640ms ease 80ms both;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(32, 35, 38, 0.17);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  transition: transform 600ms ease, filter 600ms ease;
}

.hero-photo.no-transition {
  transition: none;
}

.hero-photo.releasing {
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.hero-visual:hover .hero-photo {
  transform: scale(1.025);
  filter: contrast(1.03) saturate(1.04);
}

.hero-photo-peek {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.hero-photo-peek.is-active {
  opacity: 1;
}

.hero-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero-gallery-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 35, 38, 0.52);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--motion), transform var(--motion);
}

.hero-gallery-arrow:hover {
  background: rgba(166, 65, 40, 0.82);
}

.hero-gallery-prev,
.hero-gallery-next {
  top: 50%;
  transform: translateY(-50%);
}

.hero-gallery-prev:hover,
.hero-gallery-next:hover {
  transform: translateY(-50%) translateY(-1px);
}

.hero-gallery-prev {
  left: 14px;
}

.hero-gallery-next {
  right: 14px;
}

.hero-gallery-cta {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.86rem;
}

.hero-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-gallery-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: background var(--motion), transform var(--motion);
}

.hero-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 35, 38, 0.88);
  backdrop-filter: blur(12px);
  animation: fade-slide-up 220ms ease both;
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 61;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--motion), box-shadow var(--motion);
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  box-shadow: var(--shadow-soft);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
}

.lightbox-arrow {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) translateY(-1px);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

body.lightbox-open {
  overflow: hidden;
}

.showcase {
  position: relative;
  min-height: clamp(480px, 78vh, 720px);
  overflow: hidden;
  background: var(--brand-dark);
}

.showcase-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(32px) brightness(0.5) saturate(1.15);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 500ms ease;
}

.showcase-image-bg.is-loaded {
  opacity: 1;
}

.showcase-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 320ms ease, transform 320ms ease;
}

.showcase-image.no-transition {
  transition: none;
}

.showcase-image.releasing,
.showcase-copy.releasing {
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.showcase-image.slide-left {
  opacity: 0;
  transform: translateX(-8%);
}

.showcase-image.slide-right {
  opacity: 0;
  transform: translateX(8%);
}

.showcase-image.is-loaded {
  opacity: 1;
  transform: translateX(0);
}

.showcase-image-peek {
  opacity: 0;
  pointer-events: none;
}

.showcase-image-peek.is-active {
  opacity: 1;
}

.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(18, 20, 21, 0.85) 0%, rgba(18, 20, 21, 0.58) 38%, rgba(18, 20, 21, 0.1) 68%);
}

.showcase-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(480px, 78vh, 720px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 10vh, 96px);
  padding-left: clamp(24px, 6vw, 88px);
  max-width: 620px;
  color: #fff;
}

.showcase-content .eyebrow {
  color: var(--accent);
}

.showcase-copy {
  opacity: 0;
  transition: opacity 320ms ease, transform 320ms ease;
}

.showcase-copy.no-transition {
  transition: none;
}

.showcase-copy.slide-left {
  opacity: 0;
  transform: translateX(-8%);
}

.showcase-copy.slide-right {
  opacity: 0;
  transform: translateX(8%);
}

.showcase-copy.is-loaded {
  opacity: 1;
  transform: translateX(0);
}

.showcase-copy-peek {
  position: absolute;
  left: clamp(24px, 6vw, 88px);
  right: 24px;
  bottom: clamp(56px, 10vh, 96px);
  max-width: 620px;
  opacity: 0;
  pointer-events: none;
}

.showcase-copy-peek.is-active {
  opacity: 1;
}

.showcase-content h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.showcase-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background var(--motion), transform var(--motion);
}

.showcase-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) translateY(-1px);
}

.showcase-prev {
  left: 20px;
}

.showcase-next {
  right: 20px;
}

.showcase-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  transition: background var(--motion), transform var(--motion);
}

.showcase-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.showcase-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.gate-preview {
  width: min(82%, 360px);
  height: 230px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 26px;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.gate-preview span {
  display: block;
  border-radius: 999px 999px 6px 6px;
  background: rgba(255, 255, 255, 0.82);
  animation: gate-glow 3.4s ease-in-out infinite;
}

.section {
  padding: 64px 0;
}

.section.muted {
  background: var(--surface-soft);
}

.section-heading {
  margin-bottom: 26px;
}

.work-video-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.work-video {
  display: block;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.text-block {
  display: grid;
  gap: 16px;
}

.text-block p {
  margin: 0;
}

.policy-copy {
  gap: 22px;
}

.policy-updated {
  font-size: 0.98rem;
}

.policy-list {
  margin: 0;
  padding-left: 1.55rem;
  display: grid;
  gap: 20px;
}

.policy-list li {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(217, 211, 201, 0.86);
}

.policy-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-list li::marker {
  color: var(--brand);
  font-weight: 800;
}

.policy-list h2 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

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

.service-card,
.form-card,
.contact-card,
.side-note,
.info-stack article {
  border: 1px solid rgba(217, 211, 201, 0.86);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 8px 20px rgba(32, 35, 38, 0.05);
  backdrop-filter: blur(14px);
  transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion), background var(--motion);
}

.service-card:hover,
.contact-card:hover,
.side-note:hover,
.info-stack article:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 65, 40, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hover);
}

.service-card,
.contact-card,
.side-note,
.info-stack article {
  padding: 24px;
}

.service-card p,
.contact-card p,
.side-note p,
.text-block p {
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(166, 65, 40, 0.1);
  color: var(--brand);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.service-card a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--brand);
  font-weight: 800;
}

.company-quote {
  position: relative;
  margin-top: 48px;
  padding: 32px 36px;
  border-left: 5px solid var(--accent);
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.company-quote p {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.company-quote cite {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 800;
}

.contact-register-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-register-card .button {
  width: fit-content;
  margin-top: 14px;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 35, 38, 0.42);
  backdrop-filter: blur(12px);
}

.request-modal[hidden] {
  display: none;
}

.request-modal-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid rgba(217, 211, 201, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-hover);
  animation: fade-slide-up 260ms ease both;
}

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

.request-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  transition: transform var(--motion), background var(--motion), box-shadow var(--motion);
}

.steps li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.faq-draft-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  transition: background var(--motion), box-shadow var(--motion);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.steps span {
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 38%, transparent 72%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
}

.cta-band:hover::before {
  transform: translateX(100%);
}

.cta-band p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 68px 0;
  background: rgba(238, 232, 221, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.stats div {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(32, 35, 38, 0.04);
  backdrop-filter: blur(10px);
  transition: transform var(--motion), box-shadow var(--motion);
}

.stats div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.stats strong {
  display: block;
  color: var(--brand);
  font-size: 2rem;
}

.stats span {
  color: var(--muted);
}

.stats strong.stat-placeholder {
  color: var(--muted);
}

.account-panel,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  max-width: 1024px;
  margin-inline: auto;
}

.form-card {
  padding: 26px;
  max-width: 640px;
}

.form-card h2 {
  margin-bottom: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-actions .button {
  margin: 0;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 168, 79, 0.42);
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 8px 20px rgba(215, 168, 79, 0.11);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.support-chat-panel {
  position: relative;
  width: min(340px, calc(100vw - 28px));
  padding: 20px 16px 16px;
  border: 1px solid rgba(217, 211, 201, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(32, 35, 38, 0.16);
  backdrop-filter: blur(18px);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 200ms ease, transform 200ms ease;
}

.support-chat-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.support-chat-menu .eyebrow {
  margin-bottom: 4px;
}

.support-chat-menu h2 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.support-chat-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-chat-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion);
}

.support-chat-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 65, 40, 0.34);
  box-shadow: var(--shadow-soft);
}

.support-chat-menu-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(166, 65, 40, 0.1);
  color: var(--brand);
}

.support-chat-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-chat-back {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.support-chat-back:hover {
  color: var(--brand);
}

.support-chat-header {
  margin-bottom: 8px;
}

.support-chat-header h2 {
  font-size: 1.12rem;
}

.support-chat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion);
}

.support-chat-close:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 65, 40, 0.34);
  box-shadow: var(--shadow-soft);
}

.support-chat-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-chat-account,
.support-chat-locked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.support-chat-locked .button {
  width: 100%;
}

.support-chat-account {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.support-chat-account strong {
  font-size: 0.94rem;
}

.support-chat-account span,
.support-chat-action-text {
  color: var(--muted);
  font-size: 0.86rem;
}

.support-chat-form-intro {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.support-chat-action-text {
  margin: 0 0 10px;
  line-height: 1.45;
}

.support-chat-form textarea {
  min-height: 98px;
}

.support-chat-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.support-chat-status[data-state="pending"] {
  color: var(--muted);
}

.support-chat-status[data-state="success"] {
  color: #3f7f55;
}

.support-chat-status[data-state="error"] {
  color: #a52f1b;
}

.support-chat-toggle {
  min-width: 102px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b44a30, #8f351f);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(166, 65, 40, 0.28);
  cursor: pointer;
  transition: transform var(--motion), box-shadow var(--motion);
}

.support-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(166, 65, 40, 0.34);
}

.support-chat-toggle-icon {
  display: none;
}

.contact-people {
  color: var(--muted);
}

.contact-people strong {
  color: var(--text);
}

.field-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: #a52f1b;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-error:empty {
  min-height: 0;
  margin: 0;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input.has-error {
  border-color: #b43e27;
  background: #fff8f6;
}

.password-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.password-strength {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.password-strength span {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.password-strength span::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
  transition: width 0.18s ease, background 0.18s ease;
}

.password-strength[data-level="weak"] span::before {
  width: 33%;
  background: #b0472f;
}

.password-strength[data-level="medium"] span::before {
  width: 66%;
  background: #d7a84f;
}

.password-strength[data-level="strong"] span::before {
  width: 100%;
  background: #3f7f55;
}

.auth-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 168, 79, 0.1), transparent 26%),
    #fff;
}

.auth-main {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background: #fff;
  padding: 58px 0;
}

.auth-section {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.dashboard-active .auth-main {
  min-height: calc(100vh - 78px);
  align-items: start;
  padding: 0;
}

.dashboard-active .auth-section {
  width: 100%;
  max-width: none;
}

.auth-card {
  width: min(100%, 430px);
}

.auth-note {
  width: min(100%, 760px);
}

.auth-note-compact {
  width: min(100%, 920px);
  padding: 18px 24px;
}

.auth-note-compact .auth-note-header {
  align-items: center;
}

.auth-note-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-note-header > div {
  min-width: 0;
}

.auth-note .button {
  width: auto;
  margin-top: 0;
}

.auth-note-compact h1 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.auth-note-compact p:last-child {
  max-width: 46ch;
  margin-bottom: 0;
}

.auth-note-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.auth-note-demo-button {
  min-height: 40px;
  padding: 10px 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.auth-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(217, 211, 201, 0.92);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: rgba(252, 248, 245, 0.97);
  box-shadow: 0 18px 42px rgba(32, 35, 38, 0.16);
  backdrop-filter: blur(18px);
  animation: toast-slide-in 260ms ease both;
}

.auth-toast.is-hiding {
  animation: toast-slide-out 240ms ease both;
}

.auth-toast[hidden] {
  display: none;
}

.auth-toast--error {
  border-left-color: #a52f1b;
  background: rgba(255, 247, 244, 0.98);
}

.auth-toast--success {
  border-left-color: #3f7f55;
  background: rgba(246, 251, 247, 0.98);
}

.auth-toast--info {
  border-left-color: var(--brand);
  background: rgba(252, 248, 245, 0.98);
}

.auth-toast-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-toast--error .auth-toast-label {
  color: #a52f1b;
}

.auth-toast--success .auth-toast-label {
  color: #3f7f55;
}

.auth-toast--info .auth-toast-label {
  color: var(--brand);
}

.auth-toast-message {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-form-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.debug-account-access {
  position: fixed;
  z-index: 30;
  top: 94px;
  right: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(180, 62, 39, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.debug-account-access:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.dashboard-active .debug-account-access {
  display: none;
}

.auth-card[hidden] {
  display: none;
}

.auth-card h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.auth-card .button {
  width: 100%;
  margin-top: 18px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-weight: 800;
  font-size: 0.95rem;
}

.auth-links a {
  color: var(--brand);
}

.auth-links.single-link {
  justify-content: center;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover,
.auth-links a:hover {
  color: #8f351f;
}

.dashboard-panel {
  width: 100%;
}

.dashboard-panel[hidden],
.dashboard-section[hidden] {
  display: none;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 34px 32px;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 20px 44px rgba(32, 35, 38, 0.14);
}

.dashboard-hero .eyebrow {
  color: var(--accent);
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.dashboard-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.dashboard-logout {
  min-width: 110px;
  background: #fff;
  justify-self: end;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 40px;
  width: 100%;
  margin: 0;
  padding: 0 32px 64px 0;
}

.dashboard-side {
  min-height: 560px;
  padding: 36px 24px 36px 32px;
  border-right: 1px solid var(--line);
}

.dashboard-menu {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: 0;
}

.dashboard-tab {
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color var(--motion), transform var(--motion), padding var(--motion), border-color var(--motion);
}

.dashboard-tab:hover,
.dashboard-tab.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--text);
  transform: translateX(3px);
}

.dashboard-tab.is-active {
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.dashboard-content {
  min-height: 330px;
  padding: 36px 0 0;
}

.dashboard-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

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

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-summary div,
.dashboard-placeholder {
  padding: 18px 20px 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-summary div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.dashboard-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes gate-glow {
  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

.dashboard-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 3rem;
}

.dashboard-placeholder {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-inline-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.settings-form {
  max-width: 820px;
  margin-top: 30px;
}

.settings-group h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.settings-action-button {
  min-width: 190px;
}

.settings-action-button.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.settings-empty-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.settings-panel-card {
  width: min(100%, 820px);
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.settings-panel-card.is-visible {
  display: block;
}

.settings-form-compact {
  max-width: none;
  margin-top: 0;
}

.settings-panel-meta {
  margin-bottom: 18px;
  color: var(--muted);
}

.profile-photo-setting {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-photo-setting .button {
  margin-right: 12px;
}

.profile-photo-setting p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.settings-avatar {
  width: 82px;
  height: 82px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #d9dde2;
  object-fit: cover;
}

.user-management-search {
  max-width: 360px;
  margin-top: 22px;
}

.user-management-search input {
  min-height: 44px;
}

.user-management-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.user-management-card {
  padding: 24px;
  border: 1px solid rgba(217, 211, 201, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.user-management-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.user-management-head h3 {
  margin: 10px 0 6px;
  font-size: 1.35rem;
}

.user-management-head p {
  margin: 0;
}

.user-management-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-role-badge--admin {
  background: rgba(180, 74, 48, 0.14);
  color: #8f351f;
}

.user-role-badge--manager {
  background: rgba(46, 57, 54, 0.12);
  color: var(--brand-dark);
}

.user-role-badge--client {
  background: rgba(215, 168, 79, 0.18);
  color: #7a5a19;
}

.user-role-badge--supporto {
  background: rgba(98, 106, 112, 0.16);
  color: var(--muted);
}

.message-inbox {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.message-card,
.conversation-card {
  padding: 20px;
  border: 1px solid rgba(217, 211, 201, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.message-card-date {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.message-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.message-card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.message-card-subject {
  margin: 0 0 6px;
}

.message-card-body {
  margin: 0;
  color: var(--text);
  white-space: pre-line;
}

.message-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-type-badge--contatto {
  background: rgba(215, 168, 79, 0.18);
  color: #7a5a19;
}

.message-type-badge--preventivo {
  background: rgba(180, 74, 48, 0.14);
  color: #8f351f;
}

.message-type-badge--supporto-chat {
  background: rgba(46, 57, 54, 0.12);
  color: var(--brand-dark);
}

.conversation-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.conversation-message {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(238, 232, 221, 0.7);
}

.conversation-message--staff {
  align-self: flex-end;
  background: rgba(166, 65, 40, 0.1);
}

.conversation-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 0.78rem;
}

.conversation-message-meta strong {
  color: var(--brand-dark);
}

.conversation-message--staff .conversation-message-meta strong {
  color: var(--brand);
}

.conversation-message-meta span {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.conversation-message-body {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
}

.conversation-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-reply-form .button {
  align-self: flex-end;
}

.user-management-form {
  max-width: none;
  margin-top: 0;
}

.user-management-role-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.user-management-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.user-management-delete {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.button.danger {
  border-color: rgba(165, 47, 27, 0.28);
  background: #fff4f1;
  color: #a52f1b;
}

.button.danger:hover {
  border-color: rgba(165, 47, 27, 0.5);
  background: #fdebe6;
  color: #8f2415;
}

.management-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.settings-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.settings-save-button {
  margin-top: 18px;
}

.dashboard-logout-form {
  margin: 0;
}

.security-stack {
  width: min(100%, 920px);
  margin-top: 8px;
}

.security-heading p:last-child {
  max-width: 64ch;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.security-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.security-card h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

.security-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.security-flag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(180, 62, 39, 0.1);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.security-footnote {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.security-footnote code {
  color: var(--text);
}

.side-note,
.contact-card {
  position: sticky;
  top: 104px;
}

.info-stack {
  display: grid;
  gap: 18px;
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.site-footer {
  padding: 42px 0 24px;
  background: #202326;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-brand {
  color: #fff;
}

.brand-motto {
  color: #fff;
  font-weight: 800;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .contact-people,
.site-footer .contact-people strong,
.site-footer .contact-people a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

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

  .main-nav a {
    justify-content: center;
  }

  .main-nav .nav-account-link {
    justify-content: center;
  }

  .support-chat {
    right: 14px;
    bottom: 14px;
  }

  .hero-grid,
  .split,
  .account-panel,
  .security-grid,
  .form-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
  }

  .dashboard-layout {
    width: 100%;
    padding-right: 16px;
    gap: 28px;
  }

  .user-management-head {
    flex-direction: column;
  }

  .user-management-meta {
    justify-items: start;
    text-align: left;
  }

  .dashboard-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 24px 16px;
  }

  .dashboard-side {
    min-height: auto;
    padding: 22px 0 22px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .dashboard-logout {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-photo {
    min-height: 300px;
  }

  .showcase,
  .showcase-content {
    min-height: 560px;
  }

  .showcase-content {
    padding-bottom: 72px;
  }

  .side-note,
  .contact-card {
    position: static;
  }

  .service-grid,
  .stats,
  .footer-grid,
  .dashboard-summary {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .header-shell {
    padding-inline: 12px;
  }

  .main-nav {
    top: 70px;
  }

  .hero,
  .section,
  .page-hero {
    padding: 42px 0;
  }

  .auth-main {
    min-height: calc(100vh - 70px);
    padding: 34px 0;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-action-button {
    width: 100%;
    min-width: 0;
  }

  .settings-panel-card {
    padding: 22px 18px;
  }

  .dashboard-active .auth-main {
    padding: 0;
  }

  h1 {
    font-size: 2.25rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-gallery-cta {
    width: auto;
  }

  .showcase,
  .showcase-content {
    min-height: 480px;
  }

  .showcase-content {
    max-width: 100%;
    padding: 0 16px 96px;
  }

  .service-grid,
  .stats,
  .footer-grid,
  .form-row,
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-summary div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .form-card,
  .contact-card,
  .side-note,
  .cta-band {
    padding: 20px;
  }

  .support-chat {
    right: 12px;
    bottom: 12px;
  }

  .auth-toast {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
  }

  .support-chat-panel {
    width: 100%;
  }

  .support-chat-toggle {
    width: 100%;
  }

  .profile-photo-setting {
    align-items: flex-start;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .auth-links {
    flex-direction: column;
    gap: 8px;
  }

  .auth-note-header {
      flex-direction: column;
  }

  .auth-note-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-hero {
      grid-template-columns: 1fr;
      justify-items: start;
      padding: 24px 16px;
  }

  .debug-account-access {
    top: 82px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .dashboard-content {
    padding: 20px;
  }
}
