:root {
  --bg: #ffffff;
  --panel: #f6f8fb;
  --surface: #ffffff;
  --stroke: rgba(15, 23, 42, 0.12);
  --text: rgba(15, 23, 42, 0.94);
  --muted: rgba(15, 23, 42, 0.62);
  --brand: #2563eb;
  --brand2: #1d4ed8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --hero-image: url('../../images/main.png');
  --footer-bg: #0b1220;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.70);
  --footer-stroke: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

.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: -999px;
  top: 12px;
  background: #ffffff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22);
}

.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 750; letter-spacing: 0.2px; }
.brand-sub { font-weight: 650; color: var(--muted); font-size: 0.95rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 10px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(37, 99, 235, 0.10);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.nav-toggle-bars {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm { padding: 10px 12px; border-radius: 11px; }

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  color: var(--text);
  border-color: var(--stroke);
  background: rgba(15, 23, 42, 0.03);
}

.btn-ghost:hover { background: rgba(15, 23, 42, 0.06); }

main { display: block; }

.hero {
  position: relative;
  padding: 86px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.hero--image { color: rgba(255, 255, 255, 0.96); }
.hero--image .muted,
.hero--image .lead,
.hero--image .eyebrow { color: rgba(255, 255, 255, 0.88); }

.hero-inner--center {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy--center {
  text-align: center;
  max-width: 760px;
}

.hero-copy--center h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-copy--center .lead {
  max-width: 54ch;
  margin: 12px auto 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hero-actions--center { justify-content: center; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.hero-inner.hero-inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 { margin: 0 0 10px; letter-spacing: -0.01em; }

.h3 { margin: 0 0 8px; }
.h4 { margin: 0; font-size: 1.1rem; }

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.badge {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.badge-title { font-weight: 700; margin-bottom: 4px; }
.badge-desc { color: var(--muted); font-size: 0.95rem; }

.card {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header { padding: 18px 18px 0; }
.card-body { padding: 18px; }

.mini-form {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
}

.field { display: grid; gap: 6px; }
.label { color: var(--muted); font-weight: 650; font-size: 0.92rem; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-note { margin: 0; }
.form-status { margin: 0; min-height: 1.2em; }

.section { padding: 54px 0; }
.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head--center {
  text-align: center;
  justify-items: center;
}

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

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

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

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: start;
}

.about-copy h3 {
  margin: 0 0 8px;
}

.about-copy p {
  margin: 0 0 14px;
}

.about-photo {
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.project-detail-card {
  overflow: hidden;
}

.carousel {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}

.carousel-actions {
  display: inline-flex;
  gap: 8px;
}

.carousel-btn {
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

.carousel-btn:hover { background: rgba(15, 23, 42, 0.06); }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 14px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.carousel-stage {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.carousel-arrow:hover { background: rgba(15, 23, 42, 0.70); }

.carousel-arrow--prev { left: 18px; }
.carousel-arrow--next { right: 18px; }

.carousel-track:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.carousel-slide {
  scroll-snap-align: start;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.detail-item {
  display: grid;
  gap: 4px;
}

.spec-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.spec-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
}

.spec-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.10);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.spec-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.spec-value {
  color: var(--text);
  font-weight: 760;
  margin-top: 2px;
}

.detail-label {
  font-weight: 750;
  color: rgba(15, 23, 42, 0.76);
}

.service {
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.service-icon::after {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: var(--brand);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.service-icon[data-icon="home"]::after {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 3 3 10v11h7v-7h4v7h7V10l-9-7Zm7 16h-3v-7H8v7H5v-8l7-5 7 5v8Z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 3 3 10v11h7v-7h4v7h7V10l-9-7Zm7 16h-3v-7H8v7H5v-8l7-5 7 5v8Z"/></svg>');
}

.service-icon[data-icon="hammer"]::after {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M3 21 14 10l-4-4L1 15l2 6Zm18.7-16.3-3.4-3.4a1 1 0 0 0-1.4 0l-2.1 2.1 4.8 4.8 2.1-2.1a1 1 0 0 0 0-1.4ZM12.6 6.4 15 4l5 5-2.4 2.4-5-5Z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M3 21 14 10l-4-4L1 15l2 6Zm18.7-16.3-3.4-3.4a1 1 0 0 0-1.4 0l-2.1 2.1 4.8 4.8 2.1-2.1a1 1 0 0 0 0-1.4ZM12.6 6.4 15 4l5 5-2.4 2.4-5-5Z"/></svg>');
}

.service-icon[data-icon="badge"]::after {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a5 5 0 0 0-5 5v3.1a6 6 0 0 0 0 11.8V22l5-2 5 2v-0.1a6 6 0 0 0 0-11.8V7a5 5 0 0 0-5-5Zm3 5v2.2a6 6 0 0 0-6 0V7a3 3 0 0 1 6 0Zm-3 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a5 5 0 0 0-5 5v3.1a6 6 0 0 0 0 11.8V22l5-2 5 2v-0.1a6 6 0 0 0 0-11.8V7a5 5 0 0 0-5-5Zm3 5v2.2a6 6 0 0 0-6 0V7a3 3 0 0 1 6 0Zm-3 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z"/></svg>');
}

.text-link { color: var(--brand); font-weight: 650; }
.text-link:hover { text-decoration: underline; }

.cta-banner {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

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

.gallery-item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  transition: transform 160ms ease, background 160ms ease;
}

.gallery-item:hover { transform: translateY(-2px); background: #ffffff; }

.gallery-thumb {
  height: 170px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(29, 78, 216, 0.12));
  position: relative;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.gallery-meta { padding: 14px; }
.gallery-title { font-weight: 750; margin-bottom: 2px; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.choose-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.choose-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 18px;
  display: grid;
  gap: 10px;
}

.choose-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.choose-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: rgb(34, 197, 94);
  margin-top: 2px;
}

.choose-photo { overflow: hidden; }

.choose-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.steps li {
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 14px;
}

.step-title { font-weight: 750; margin-bottom: 4px; }

.page-hero {
  padding: 54px 0 18px;
  border-bottom: 1px solid var(--stroke);
  background: var(--panel);
}

.page-hero--image {
  position: relative;
  padding: 72px 0 64px;
  color: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.page-hero--image .lead,
.page-hero--image .muted,
.page-hero--image .eyebrow { color: rgba(255, 255, 255, 0.88); }

.page-hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.feature {
  border: 1px solid var(--stroke);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
}
.feature-title { font-weight: 750; margin-bottom: 4px; }

.stack { display: grid; gap: 14px; }

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

.info-list { display: grid; gap: 12px; margin-top: 12px; }
.info-item { display: grid; gap: 4px; }
.info-label { color: var(--muted); font-weight: 650; font-size: 0.92rem; }

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.pill:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pill.is-active { color: #06101f; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; }

.pill.is-active { color: #ffffff; }

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

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

.project-card--detail {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.project-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.project-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.project-body { padding: 14px; }

.site-footer {
  border-top: 1px solid var(--stroke);
  background: var(--footer-bg);
  padding: 30px 0;
}

.site-footer,
.site-footer .footer-title,
.site-footer .footer-head {
  color: var(--footer-text);
}

.site-footer .muted {
  color: var(--footer-muted);
}

.site-footer a {
  color: var(--footer-muted);
}

.site-footer a:hover {
  color: var(--footer-text);
}

.footer-inner { display: grid; gap: 18px; }
.footer-title { font-weight: 800; letter-spacing: -0.01em; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-col { display: grid; gap: 10px; }
.footer-col a { color: var(--footer-muted); }
.footer-col a:hover { color: var(--footer-text); }

.footer-head { font-weight: 750; }

.footer-bottom {
  padding-top: 12px;
  border-top: 1px solid var(--footer-stroke);
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .choose-grid { grid-template-columns: 1fr; }
  .choose-image { height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: 92%; }
  .carousel-slide img { height: 240px; }
  .carousel-arrow { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid--center { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    margin: 0 16px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px; }
}
