:root {
  --bg: #0b0b12;
  --card: #1c1c2f;
  --text: #f2f2f8;
  --muted: #b8b8c7;
  --primary: #ff3bc1;
  --secondary: #4dd5ff;
  --accent: #8f5bff;
  --ok: #19d68c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    16px/1.6 "Open Sans",
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(143, 91, 255, 0.34),
      transparent 35%
    ),
    radial-gradient(circle at 80% 0%, rgba(255, 59, 193, 0.3), transparent 35%),
    linear-gradient(180deg, #08080e, #101022);
  opacity: 1;
  position: relative;
}

html,
body {
  overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(var(--container), 92%);
  margin: auto;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(255, 59, 193, 0.22),
    rgba(77, 213, 255, 0.18),
    transparent 60%
  );
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 59, 193, 0.35);
  border: none;
}
.btn-secondary {
  border-color: rgba(173, 130, 255, 0.65);
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(143, 91, 255, 0.2),
    rgba(77, 213, 255, 0.08)
  );
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(143, 91, 255, 0.28),
    0 0 12px rgba(77, 213, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn:hover::before {
  opacity: 1;
  transform: scale(1);
}
.btn-secondary:hover {
  border-color: rgba(255, 148, 220, 0.72);
  color: #ffe6ff;
  box-shadow:
    0 0 16px rgba(143, 91, 255, 0.34),
    0 0 10px rgba(255, 59, 193, 0.24);
}

.site-header {
  position: fixed;
  z-index: 1000;
  width: 100%;
  background: rgba(9, 9, 17, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo {
  font:
    700 1.2rem Montserrat,
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
}
.logo span {
  color: var(--secondary);
  text-shadow: 0 0 12px rgba(77, 213, 255, 0.75);
}
.nav {
  display: flex;
  gap: 1rem;
}
.nav a {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--muted);
}
.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search {
  position: relative;
}
.search input {
  width: 260px;
  padding: 0.65rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111224;
  color: #fff;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  cursor: pointer;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at center,
      rgba(77, 213, 255, 0.2) 0%,
      rgba(77, 213, 255, 0.2) 65%,
      transparent 66%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%234dd5ff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")
      center/12px 12px no-repeat;
}
.search-suggestions {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #16162a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1400;
}
.search-suggestions.open {
  display: block;
}
.search-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.search-item:hover {
  background: rgba(77, 213, 255, 0.16);
}
.search-hint {
  margin: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #cfd0e4;
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
}
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: #131322;
  transform: translateX(100%);
  transition: 0.3s;
  padding: 1.25rem 1.2rem 2rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav__close {
  flex-shrink: 0;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin: 0 0 0.85rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.mobile-nav__close:hover {
  background: rgba(77, 213, 255, 0.16);
  border-color: rgba(77, 213, 255, 0.45);
}
.mobile-nav a {
  display: block;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 1100;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(8, 6, 18, 0.34), rgba(8, 6, 18, 0.34)),
    radial-gradient(
      circle at 20% 20%,
      rgba(143, 91, 255, 0.22),
      transparent 40%
    ),
    radial-gradient(circle at 80% 0, rgba(255, 59, 193, 0.18), transparent 40%);
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font:
    700 clamp(1.9rem, 4vw, 3.2rem) Montserrat,
    Arial,
    sans-serif;
  margin: 0.4rem 0;
  text-shadow: 0 0 24px rgba(255, 59, 193, 0.55);
  text-transform: uppercase;
}
.hero p {
  color: #e9e9f7;
}
.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.8;
}

.section {
  padding: 4.2rem 0;
}
.section.fade-section {
  opacity: 0.15;
  transition: opacity 0.5s ease;
}
.section.fade-section.in-view {
  opacity: 1;
}
.section-title {
  font:
    700 2rem Raleway,
    Arial,
    sans-serif;
  margin: 0 0 0.9rem;
}
.lead {
  color: #d9d9e8;
  max-width: 900px;
}
.grid {
  display: grid;
  gap: 1rem;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: linear-gradient(180deg, #1a1a2d, #151524);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 180deg,
    rgba(255, 59, 193, 0.18),
    rgba(77, 213, 255, 0.14),
    rgba(143, 91, 255, 0.18),
    rgba(255, 59, 193, 0.18)
  );
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(77, 213, 255, 0.16);
}
.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.kpi {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}
.slider {
  position: relative;
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.4s ease;
}
.slide {
  min-width: 100%;
}
.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f4f69;
  outline: none;
  border: none;
  padding: 0;
}
.dot.active {
  background: var(--primary);
}

.step {
  position: relative;
  padding-left: 3rem;
}
.step::before {
  content: attr(data-step);
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0d1020;
  background: linear-gradient(135deg, #6be4ff, #7d8bff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  z-index: 2;
}
.step:hover::before {
  background: linear-gradient(135deg, #ff6ed5, #6be4ff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 10px 20px rgba(143, 91, 255, 0.35);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #ddd;
  cursor: pointer;
  transition: 0.25s;
}
.chip.active {
  background: rgba(77, 213, 255, 0.2);
  border-color: var(--secondary);
}

.masonry {
  columns: 3 260px;
  column-gap: 1rem;
}
.masonry .card {
  break-inside: avoid;
  margin-bottom: 1rem;
}
.cta {
  background: linear-gradient(
    90deg,
    rgba(255, 59, 193, 0.25),
    rgba(77, 213, 255, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111224;
  color: #fff;
}

/* Custom number + select controls */
.input[type="number"] {
  appearance: auto;
  padding-right: 0.7rem;
}
.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
  filter: hue-rotate(170deg) saturate(1.15) brightness(1.08);
  cursor: pointer;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.5L8 10l4.5-4.5' fill='none' stroke='%234dd5ff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
      right 0.75rem center/14px 14px no-repeat,
    #111224;
}
select.input.select-open {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 10.5L8 6l4.5 4.5' fill='none' stroke='%23ff7fe1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
      right 0.75rem center/14px 14px no-repeat,
    #111224;
}
small.error {
  color: #ff8989;
  display: block;
  min-height: 1.1rem;
}

.calc-builder {
  display: grid;
  gap: 1rem;
}
.calc-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.calc-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.25s ease;
}
.calc-steps-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-steps-headbox {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.calc-steps-head .lead {
  width: 100%;
  margin: 0 0 0.2rem;
  font-size: 0.93rem;
}
.calc-step {
  display: none;
}
.calc-step.active {
  display: block;
}
.calc-step label {
  display: block;
  font-size: 0.88rem;
  color: #cfd1e4;
  margin-bottom: 0.3rem;
}
.calc-summary h3 {
  margin: 0 0 0.5rem;
}
#calc-warnings {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.warn {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 205, 93, 0.4);
  background: rgba(255, 205, 93, 0.12);
  color: #ffe9a6;
  font-size: 0.92rem;
}
.calc-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfcfe0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
}
.footer-company {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: #c4c4d6;
  line-height: 1.5;
}
.footer-company__line {
  margin: 0 0 0.35rem;
}
.footer-company__line:last-child {
  margin-bottom: 0;
}
.footer-company a {
  color: var(--secondary);
}
.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: #a8a8c0;
}
.breadcrumbs {
  font-size: 0.92rem;
  color: #c7c7da;
  padding: 1rem 0;
}
.breadcrumbs a {
  color: var(--secondary);
}
.product-gallery {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}
.tab-btn {
  padding: 0.6rem 0.8rem;
  background: none;
  border: 0;
  color: #ddd;
  cursor: pointer;
}
.tab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--primary);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.accordion-head {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  display: block;
}
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}
.accordion-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1rem 1rem;
}
.about-map {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.about-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.page-link {
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #ddd;
  cursor: pointer;
}

.page-link.active {
  background: rgba(77, 213, 255, 0.2);
  border-color: var(--secondary);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(540px, 92vw);
  max-height: min(90vh, calc(100dvh - 32px));
  flex-shrink: 0;
  background: #171728;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: auto;
  cursor: default;
}

/* Filter transition */
[data-item] {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}
[data-item].filter-out {
  opacity: 0;
  transform: scale(0.96);
  filter: saturate(0.7);
  pointer-events: none;
}
[data-item].is-hidden {
  opacity: 0;
}

/* Popular products carousel: 3/2/1 and no upward lift on hover */
#products .slide {
  min-width: 33.333%;
  padding: 0 0.5rem;
}
#products .card:hover {
  transform: none;
}
.popular-products__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}
.popular-products__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-testimonials__avatar {
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 0.8rem;
}
.client-testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project case gallery (e.g. CoffeeWave): equal 4:3 tiles, flex wrap */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.project-gallery__figure {
  flex: 1 1 calc((100% - 2rem) / 3);
  min-width: min(100%, 200px);
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.project-gallery__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-process-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.about-process-gallery__item {
  flex: 1 1 calc((100% - 1rem) / 2);
  min-width: min(100%, 260px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-process-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
}
.chat-widget__toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 1.45rem;
  transition: transform 0.2s ease;
}
.chat-widget__toggle:hover {
  transform: translateY(-2px) scale(1.02);
}
.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, 92vw);
  height: min(500px, 76vh);
  background: #151628;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}
.chat-widget.open .chat-widget__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-widget__header h3 {
  margin: 0;
  font-size: 1rem;
}
.chat-widget__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.chat-widget__messages {
  padding: 0.9rem;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}
.chat-msg {
  max-width: 88%;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}
.chat-msg p {
  margin: 0;
}
.chat-msg--bot {
  justify-self: start;
  background: rgba(77, 213, 255, 0.14);
}
.chat-msg--user {
  justify-self: end;
  background: rgba(255, 59, 193, 0.2);
}
.chat-msg__links {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
}
.chat-msg__links a {
  color: #9ee7ff;
  text-decoration: underline;
}
.chat-widget__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-widget__input {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #101224;
  color: #fff;
  padding: 0.65rem 0.7rem;
}
.chat-widget__send {
  border-radius: 9px;
  border: 0;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

article.card[data-card-link] {
  cursor: pointer;
}

body.page-catalog .card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  margin: -1rem -1rem 0.75rem -1rem;
  width: calc(100% + 2rem);
}
body.page-catalog .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Smaller card H2 on category tabs */
body.page-catalog .card h2,
body.page-services .card h2,
body.page-portfolio .card h2 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.neon-show-teaser__grid {
  align-items: center;
  gap: 2rem;
}
.neon-show-teaser__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.neon-show-teaser__media img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-neon-show h1 {
  margin-bottom: 2rem;
}
.neon-show-page-grid {
  gap: 1.25rem;
}
.neon-show-page-grid .neon-show-card {
  padding: 1.35rem 1.6rem;
}

@media (min-width: 767px) {
  .neon-show-page-grid--row {
    grid-column: 1/3;
  }
}

.neon-show-page-grid .neon-show-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.neon-show-page-grid .neon-show-card p {
  margin: 0 0 0.75rem;
}
.neon-show-page-grid .neon-show-card p:last-child {
  margin-bottom: 0;
}
.neon-show-page-grid .neon-show-card ul:not(.neon-show-infographic) {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.neon-show-page-grid .neon-show-card ul:not(.neon-show-infographic) li {
  margin-bottom: 0.35rem;
}
.neon-first-screen__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.neon-first-screen__media img {
  width: 100%;
  height: auto;
  display: block;
}

.neon-types-slider.slider {
  display: grid;
  grid-template-columns: minmax(38px, auto) minmax(0, 1fr) minmax(38px, auto);
  grid-template-rows: auto auto;
  gap: 0.65rem 0.35rem;
  align-items: center;
  overflow: visible;
}
.neon-types-slider .slides {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  overflow: visible;
  border-radius: var(--radius);
  min-width: 0;
}
.neon-types-slider .slide {
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 0;
  pointer-events: none;
}
.neon-types-slider .slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.neon-types-slider .slider__prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.neon-types-slider .slider__next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.neon-types-slider .dots {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
}
.neon-types-slider .slide figure {
  margin: 0;
}
.neon-types-slider .slide img {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vh);
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.neon-types-slider .slide figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: #c9c9dc;
  line-height: 1.4;
}

.slider__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 18, 36, 0.82);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.slider__btn:hover {
  background: rgba(77, 213, 255, 0.2);
  border-color: rgba(77, 213, 255, 0.55);
  box-shadow: 0 0 14px rgba(77, 213, 255, 0.2);
}
.slider__btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.neon-show-infographic {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.neon-show-infographic li {
  padding-left: 1.35rem;
  position: relative;
}
.neon-show-infographic li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #d746ff);
}

@media (max-width: 1199px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid,
  .grid-3,
  .product-gallery,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .search input {
    width: 200px;
  }
  #products .slide {
    min-width: 50%;
  }
}
@media (min-width: 992px) {
  body:not(.page-home) h1 {
    font-size: clamp(2.2rem, 2.6vw, 2.85rem);
    line-height: 1.18;
    margin-bottom: 1.25rem;
  }
  h2 {
    font-size: clamp(2rem, 2.2vw, 2.5rem);
    margin-bottom: 1.2rem;
  }
}
@media (max-width: 991px) {
  .nav,
  .search {
    display: none;
  }
  .hamburger {
    display: block;
  }
}
@media (max-width: 767px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .form-row,
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 70vh;
  }
  .masonry {
    columns: 1;
  }
  #products .slide {
    min-width: 100%;
  }
  .calc-actions .btn {
    width: 100%;
  }
  .chat-widget {
    right: 10px;
    bottom: 10px;
  }
  .chat-widget__panel {
    width: min(96vw, 440px);
    height: min(80dvh, 720px);
    right: -2px;
    bottom: 68px;
  }
}
