:root {
  --ink: #071a1f;
  --muted: #60737a;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(10, 38, 44, 0.14);
  --brand: #0b6f7e;
  --accent: #f2b705;
  --green: #18a06a;
  --bg-base: #eaf4f3;
  --bg-glow-a: rgba(242, 183, 5, 0.2);
  --bg-glow-b: rgba(24, 160, 106, 0.2);
  --bg-grad-a: #f7fbfa;
  --bg-grad-b: #d8ebe8;
  --bg-grad-c: #f5f7f1;
  --grid-line-a: rgba(11, 111, 126, 0.09);
  --grid-line-b: rgba(11, 111, 126, 0.08);
  --nav-bg: rgba(7, 26, 31, 0.9);
  --footer-bg: #071a1f;
  --lead: #244349;
  --field-bg: #fff;
  --field-ink: #071a1f;
  --field-line: rgba(7, 26, 31, 0.18);
  --shadow: 0 24px 70px rgba(3, 20, 26, 0.16);
}

:root.time-morning,
body.time-morning {
  --ink: #102028;
  --muted: #64757b;
  --brand: #08717f;
  --accent: #f4b63d;
  --green: #26a777;
  --bg-base: #f8fbf8;
  --bg-glow-a: rgba(255, 210, 92, 0.3);
  --bg-glow-b: rgba(89, 191, 145, 0.2);
  --bg-grad-a: #fff8e8;
  --bg-grad-b: #e4f4f0;
  --bg-grad-c: #fbfff7;
  --nav-bg: rgba(8, 56, 66, 0.9);
  color-scheme: light;
}

:root.time-day,
body.time-day {
  --ink: #071a1f;
  --muted: #60737a;
  --brand: #0b6f7e;
  --accent: #f2b705;
  --green: #18a06a;
  color-scheme: light;
}

:root.time-evening,
body.time-evening {
  --ink: #182127;
  --muted: #68747a;
  --brand: #11657b;
  --accent: #ffb25b;
  --green: #1e9073;
  --bg-base: #ebe8df;
  --bg-glow-a: rgba(255, 155, 73, 0.32);
  --bg-glow-b: rgba(31, 99, 118, 0.24);
  --bg-grad-a: #fff0dc;
  --bg-grad-b: #d7e3df;
  --bg-grad-c: #efe4d8;
  --nav-bg: rgba(27, 42, 48, 0.92);
  color-scheme: light;
}

:root.time-night,
body.time-night {
  --ink: #f1fbfb;
  --muted: #abc5c9;
  --surface: rgba(8, 24, 31, 0.86);
  --surface-strong: rgba(6, 20, 27, 0.96);
  --line: rgba(214, 241, 244, 0.16);
  --brand: #71d7e6;
  --accent: #ffd166;
  --green: #56d69f;
  --bg-base: #030b10;
  --bg-glow-a: rgba(255, 209, 102, 0.08);
  --bg-glow-b: rgba(113, 215, 230, 0.12);
  --bg-grad-a: #030b10;
  --bg-grad-b: #081922;
  --bg-grad-c: #111923;
  --grid-line-a: rgba(113, 215, 230, 0.12);
  --grid-line-b: rgba(255, 209, 102, 0.06);
  --nav-bg: rgba(3, 13, 18, 0.9);
  --footer-bg: #030d12;
  --lead: #c9dddf;
  --field-bg: rgba(5, 20, 26, 0.92);
  --field-ink: #edf7f7;
  --field-line: rgba(214, 241, 244, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-base);
  line-height: 1.55;
  transition: background 500ms ease, color 500ms ease;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, var(--bg-glow-a), transparent 26%),
    radial-gradient(circle at 84% 18%, var(--bg-glow-b), transparent 26%),
    linear-gradient(135deg, var(--bg-grad-a), var(--bg-grad-b) 42%, var(--bg-grad-c));
  overflow: hidden;
  transition: background 700ms ease;
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(90deg, var(--grid-line-a) 1px, transparent 1px),
    linear-gradient(var(--grid-line-b) 1px, transparent 1px);
  background-size: 84px 84px;
  animation: gridDrift 18s linear infinite;
  transform: rotate(-8deg);
}

@keyframes gridDrift {
  from { translate: 0 0; }
  to { translate: 84px 84px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 500ms ease, border-color 500ms ease;
}

.scroll-progress {
  position: fixed;
  top: var(--header-height, 87px);
  left: 0;
  right: 0;
  z-index: 49;
  height: 4px;
  overflow: hidden;
  background: rgba(0, 145, 255, 0.12);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00b7ff, #3be7ff, #00a2ff);
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.9), 0 0 28px rgba(59, 231, 255, 0.55);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.brand strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--brand);
  font-weight: 800;
}

.menu-toggle {
  position: fixed;
  top: 18px;
  right: clamp(18px, 5vw, 72px);
  z-index: 70;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 2px 0;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: 84px;
  right: clamp(18px, 5vw, 72px);
  z-index: 69;
  display: grid;
  min-width: 210px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-nav a {
  padding: 12px 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 6px;
}

.main-nav a:hover { background: var(--accent); color: var(--ink); }

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  padding: 56px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 820px; font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { max-width: 780px; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }

.lead {
  max-width: 680px;
  color: var(--lead);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions, .inquiry-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary { background: var(--accent); color: var(--ink); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); }
.btn:hover { transform: translateY(-1px); }

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-panel a {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-panel a:hover,
.hero-panel a:focus-visible {
  transform: translateY(-4px);
  background: var(--accent);
  color: var(--ink);
}

.section-head { margin: 24px 0; }
.section-head.compact { margin-bottom: 14px; }

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

.service-card {
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 84px rgba(3, 20, 26, 0.22);
}

.service-card video,
.service-card .motion-clip {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand), var(--green));
}

.service-card div { padding: 20px; }
.service-card p { color: var(--muted); }

.partner-band {
  padding: 34px 0;
  background: var(--footer-bg);
  color: #fff;
}

.partner-band .eyebrow { color: var(--accent); }

.partner-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.15);
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 26px;
  padding: 22px 0;
  animation: marquee 30s ease-in-out infinite alternate;
}

.partner-marquee:hover .partner-track { animation-play-state: paused; }

.partner-track a {
  width: 160px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.partner-track img {
  max-height: 48px;
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.inquiry {
  padding: 56px 0;
}

.inquiry-head {
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.contact-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.contact-form.open { display: grid; }
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--lead);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--field-ink);
  background: var(--field-bg);
}

.contact-form .full { grid-column: 1 / -1; }
.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.consent input { width: auto; margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; }

.reviews {
  padding: 56px 0;
}

.reviews-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 133, 244, 0.13), transparent 46%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.reviews-panel p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--lead);
  font-weight: 700;
}

.whatsapp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 54px rgba(3, 20, 26, 0.28);
}

.whatsapp svg {
  width: 33px;
  height: 33px;
  fill: currentColor;
}

.whatsapp span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: var(--footer-bg);
  color: #e7f5f2;
}

.site-footer a { display: block; color: #e7f5f2; margin-bottom: 7px; }
.legal-links a { color: var(--accent); font-weight: 800; }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: var(--lead); }

@media (max-width: 980px) {
  .site-header { align-items: center; }
  .menu-toggle { right: 16px; }
  .main-nav { right: 16px; top: 82px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 0.98rem; }
  .brand small { font-size: 0.78rem; }
  .menu-toggle { top: 14px; right: 14px; width: 50px; height: 50px; }
  .main-nav { top: 72px; right: 14px; width: min(240px, calc(100vw - 28px)); }
  .main-nav a { padding: 11px 12px; font-size: 0.88rem; white-space: nowrap; }
  .hero-panel, .service-grid, .contact-form, .site-footer { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .inquiry-head, .reviews-panel, .cookie-banner { align-items: stretch; flex-direction: column; }
  .whatsapp { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
