:root {
  --color-text: #272a2e;
  --color-muted: #626871;
  --color-soft: #f4f6f8;
  --color-line: #dfe3e8;
  --color-dark: #171a1f;
  --color-accent: #1769d2;
  --color-accent-dark: #0f4d9b;
  --max-width: 1180px;
  --hero-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--color-text); background: #fff; font-family: Tahoma, Verdana, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 142px; height: auto; filter: brightness(0); }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.7rem); margin-left: auto; color: #4e535a; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.site-nav a:hover { color: var(--color-accent-dark); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--color-line); border-radius: 6px; background: #fff; color: var(--color-dark); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.brand-intro {
  display: flex;
  min-height: min(720px, 78svh);
  align-items: center;
  padding: 9rem 1rem 6rem;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(90deg, var(--color-accent) 0 7px, transparent 7px), #fff;
}

.brand-intro-inner { width: min(1040px, 100%); margin: 0 auto; }
.brand-kicker, .eyebrow { margin: 0 0 1rem; color: var(--color-accent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.brand-intro h1 { max-width: 970px; margin: 0; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.1; }
.brand-lead { max-width: 800px; margin: 1.5rem 0 2rem; color: var(--color-muted); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.55; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0.72rem 1.15rem; border: 2px solid transparent; border-radius: 6px; font-weight: 800; line-height: 1.2; text-align: center; transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.button:hover { transform: translateY(-2px); text-decoration: none; }
.button-primary { color: #fff; background: var(--color-accent); }
.button-primary:hover { background: var(--color-accent-dark); }
.button-outline { color: var(--color-accent-dark); border-color: var(--color-accent); background: #fff; }
.button-outline:hover { color: #fff; background: var(--color-accent); }
.button-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: transparent; }
.button-light { color: var(--color-dark); border-color: #d5d8dc; background: #fff; }

.solution-section { padding: clamp(4.5rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--color-line); }
.solution-inner { width: 100%; margin: 0; }
.solution-hero { position: relative; min-height: clamp(560px, 68svh, 760px); overflow: hidden; background: var(--color-dark); }
.carousel-slides { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 0.7s ease, transform 5.5s ease; }
.carousel-slide.is-active { opacity: 1; transform: scale(1); }
.solution-hero-overlay { position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgba(7, 11, 17, 0.94) 0%, rgba(7, 11, 17, 0.72) 46%, rgba(7, 11, 17, 0.12) 82%), linear-gradient(to right, rgba(7, 11, 17, 0.58), transparent 72%); pointer-events: none; }
.solution-hero-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; width: min(var(--max-width), calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 12rem clamp(2.5rem, 6vw, 5rem) 0; color: #fff; }
.solution-hero h2 { max-width: 1050px; margin: 0 0 1.35rem; color: #fff; font-size: clamp(1.75rem, 4vw, 3.6rem); line-height: 1.08; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45); }
.solution-intro { display: grid; grid-template-columns: minmax(0, 800px) auto; gap: 2rem; align-items: end; }
.solution-intro p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.button-hero { color: #fff; border-color: rgba(255, 255, 255, 0.85); background: rgba(8, 14, 22, 0.28); backdrop-filter: blur(8px); }
.button-hero:hover { color: var(--color-dark); background: #fff; }
.carousel-controls { position: absolute; z-index: 3; right: max(1rem, calc((100vw - var(--max-width)) / 2)); bottom: clamp(2.5rem, 6vw, 5rem); display: flex; align-items: center; gap: 0.65rem; }
.carousel-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; color: #fff; background: rgba(7, 11, 17, 0.38); font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: color 0.2s ease, background-color 0.2s ease; }
.carousel-button:hover, .carousel-button:focus-visible { color: var(--color-dark); background: #fff; outline: none; }
.carousel-dots { display: flex; gap: 0.35rem; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.42); transition: background-color 0.2s ease, transform 0.2s ease; }
.carousel-dots span.is-active { background: #fff; transform: scale(1.25); }
.solution-content { width: min(var(--max-width), calc(100% - 2rem)); margin: clamp(2rem, 5vw, 4rem) auto 0; }
.solution-content .card-grid { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: clamp(2rem, 5vw, 4rem); }
.info-card { min-height: 250px; padding: clamp(1.35rem, 2.5vw, 2rem); border-top: 4px solid var(--color-accent); border-radius: 4px; background: var(--color-soft); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21, 32, 46, 0.1); }
.info-card h3 { margin: 0 0 0.9rem; font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.25; }
.info-card p { margin: 0; color: var(--color-muted); }

.section-inner { width: min(var(--max-width), calc(100% - 2rem)); margin: 0 auto; }
.reference-section, .contact-section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.reference-section { background: var(--color-soft); }
.section-heading { max-width: 840px; margin: 0 0 clamp(2rem, 5vw, 4rem); }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.15; }
.section-heading > p:not(.eyebrow) { max-width: 720px; margin: 1.1rem 0 0; color: var(--color-muted); font-size: 1.08rem; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.reference-card { overflow: hidden; border: 1px solid var(--color-line); border-radius: 6px; background: #fff; }
.reference-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.reference-card div { padding: 1.25rem; }
.reference-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; line-height: 1.3; }
.reference-card p { margin: 0; color: var(--color-muted); }

.contact-section { background: var(--color-dark); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; color: #fff; }
.contact-panel p { color: rgba(255, 255, 255, 0.76); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-start; }
.contact-actions p { width: 100%; margin: 1rem 0 0; font-size: 0.95rem; }

.site-footer { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.4rem clamp(1rem, 3vw, 2.5rem); color: #70757d; background: #fff; border-top: 1px solid var(--color-line); }
.site-footer div, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; margin: 0; padding: 1rem 0 0.35rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav.is-open { display: flex; }
  .solution-intro, .contact-panel { grid-template-columns: 1fr; }
  .solution-hero-content { padding-right: 8rem; }
  .card-grid, .reference-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
}

@media (max-width: 620px) {
  .brand img { width: 118px; }
  .brand-intro { min-height: 72svh; padding-top: 7.5rem; }
  .solution-hero { min-height: 82svh; }
  .solution-content { width: calc(100% - 2rem); }
  .solution-hero-content { width: calc(100% - 2rem); padding: 5rem 0 2rem; }
  .solution-hero h2 { max-width: 100%; margin-bottom: 1rem; }
  .solution-intro { gap: 1.2rem; }
  .solution-intro p { font-size: 0.98rem; line-height: 1.5; }
  .solution-intro .button { width: auto; justify-self: start; }
  .carousel-controls { top: 1rem; right: 1rem; bottom: auto; }
  .carousel-button { width: 40px; height: 40px; }
  .button { width: 100%; }
  .reference-section, .contact-section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .info-card, .carousel-slide, .carousel-dots span { transition: none; }
}
