:root {
  --bg: #ffffff;
  --soft: #f5f7fa;
  --soft-2: #eef3f8;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe4ee;
  --blue: #2f80ed;
  --blue-dark: #185abc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 10px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Helvetica, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 228, 238, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.brand {
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(47, 128, 237, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.line-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  padding: 90px 0 110px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 0.86;
}

.hero-subtitle {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { color: var(--text); background: #fff; }

.section {
  width: var(--container);
  padding: 96px 0;
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.intro-copy h2,
.page-hero h1,
.section h2 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 0.98;
}

.intro-text,
.page-lead,
.text-block p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.feature-grid,
.service-grid,
.project-grid,
.about-layout,
.contact-layout,
.region-grid,
.logo-grid,
.direction-showcase,
.home-project-grid,
.home-process-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.service-card,
.text-block,
.contact-form,
.contact-info,
.direction-card,
.home-project,
.process-mini,
.cta-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.region-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.logo-grid span {
  display: grid;
  min-height: 92px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.logo-grid span:hover {
  color: var(--blue);
  border-color: rgba(47, 128, 237, 0.28);
  transform: translateY(-2px);
}

.price-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.price-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  color: var(--text);
  background: var(--soft);
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.feature-card,
.service-card,
.text-block,
.contact-form,
.contact-info,
.process-mini,
.cta-panel {
  padding: clamp(24px, 3vw, 34px);
}

.feature-card span,
.service-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(47, 128, 237, 0.08);
  border-radius: 999px;
}

.feature-card p,
.service-card p,
.project-card p,
.contact-info p,
.form-note,
.direction-card p,
.process-mini p {
  color: var(--muted);
  line-height: 1.7;
}

.section-title-row {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title-row h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.2vw, 4.3rem);
  line-height: 1;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.direction-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.direction-card {
  overflow: hidden;
}

.direction-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.direction-card div {
  padding: clamp(22px, 3vw, 32px);
}

.direction-card span,
.home-project span,
.process-mini span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-project-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
}

.home-project {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #111827;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.home-project:first-child {
  grid-row: span 2;
}

.home-project::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 52%);
}

.home-project img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.home-project:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.045);
}

.home-project div {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  padding: 0;
  color: white;
}

.home-project span {
  color: rgba(255, 255, 255, 0.76);
}

.home-project h3 {
  max-width: 520px;
  font-size: clamp(1.35rem, 2.4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.home-project:not(:first-child) h3 {
  font-size: 1.25rem;
}

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

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.09), transparent 42%),
    #fff;
}

.cta-panel h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.page-hero {
  width: var(--container);
  padding: 116px 0 74px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.service-card {
  flex: 0 1 280px;
  min-height: 250px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 128, 237, 0.35);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter:hover,
.filter.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

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

.project-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.project-card.is-hidden { display: none; }

.project-media {
  overflow: hidden;
  background: var(--soft);
}

.project-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card.tall img { height: 430px; }
.project-card:hover img { transform: scale(1.045); }

.project-body {
  padding: 20px;
}

.project-tag {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.value-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  color: var(--muted);
  list-style: none;
}

.value-list li {
  padding-left: 18px;
  border-left: 2px solid var(--blue);
}

.timeline-section {
  padding-top: 40px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  color: var(--blue);
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.contact-form input {
  height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1);
}

.contact-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-section {
  padding-top: 0;
}

.map-frame {
  height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  filter: grayscale(0.2) contrast(0.95);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: var(--container);
  padding: 34px 0;
  margin: 0 auto;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

@media (max-width: 1060px) {
  .service-grid,
  .project-grid,
  .feature-grid,
  .about-layout,
  .direction-showcase,
  .home-project-grid,
  .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .contact-layout,
  .region-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }

  .site-header {
    height: 66px;
    padding: 0 14px;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px; }
  .nav-toggle { display: block; }

  .hero {
    min-height: calc(100svh - 66px);
  }

  .hero h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
  }

  .btn,
  .filter {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .page-hero {
    padding: 82px 0 52px;
  }

  .service-grid,
  .project-grid,
  .feature-grid,
  .about-layout,
  .logo-grid,
  .direction-showcase,
  .home-project-grid,
  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .direction-card img,
  .home-project img,
  .home-project:first-child img {
    height: 260px;
  }

  .home-project-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-project:first-child {
    grid-row: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
}

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