:root {
  --bg: #f5f7fb;
  --bg-strong: #0d1b2a;
  --surface: #ffffff;
  --surface-alt: #edf3ff;
  --primary: #1152ff;
  --primary-dark: #0b3cc9;
  --secondary: #101828;
  --text: #1d2939;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.08);
  --shadow: 0 30px 60px rgba(17, 82, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.section-tag {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
}

.cv-topbar {
  background: linear-gradient(90deg, #021b2b 0%, #061f35 100%);
  color: #fff;
  padding: 22px 0 24px;
  position: relative;
  overflow: hidden;
}

.cv-topbar::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -26px;
  width: 280px;
  height: 120px;
  background: rgba(66, 176, 237, 0.22);
  transform: skewX(-28deg);
}

.cv-header {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.cv-brand {
  flex-shrink: 0;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.cv-logo-img {
  width: 170px;
  height: auto;
  display: block;
}

.cv-company {
  flex: 1;
}

.cv-company h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.cv-company p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.nav-left {
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--secondary);
}

.brand-text-only {
  gap: 0;
}

.nav-logo {
  width: 48px;
  height: auto;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4f8bff);
  color: white;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--secondary);
  font-weight: 600;
}

.nav-links a {
  opacity: 0.8;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 82, 255, 0.06);
  border: 1px solid rgba(17, 82, 255, 0.12);
  border-radius: 999px;
  padding: 5px;
  margin-right: 8px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(17, 82, 255, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 22px;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--line);
  padding: 14px 22px;
}

.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(17, 82, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #f5f8ff 0%, #f5f7fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  max-width: 640px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 28px;
}

.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  color: var(--secondary);
  font-weight: 600;
}

.hero-points li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 10px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card-badge {
  display: inline-block;
  background: rgba(17, 82, 255, 0.08);
  color: var(--primary);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 24px;
}

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

.stat-grid div {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 18px 16px;
}

.stat-grid strong {
  display: block;
  font-size: 1.8rem;
  color: var(--secondary);
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.93rem;
}

.about,
.services,
.portfolio,
.process {
  background: #fff;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.about-snippet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
}

.about-full {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.about-toggle {
  margin-top: 18px;
}

.service-grid,
.process-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.process-step,
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(17, 82, 255, 0.08);
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 42px;
}

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

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4f8bff);
  color: white;
  font-weight: 800;
  margin-bottom: 20px;
}

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

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.portfolio-full {
  margin-top: 28px;
}

.portfolio-year-group {
  margin-bottom: 24px;
}

.portfolio-year {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 82, 255, 0.08);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portfolio-list {
  display: grid;
  gap: 18px;
}

.portfolio-entry {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.portfolio-entry span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(17, 82, 255, 0.08);
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.portfolio-entry h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.portfolio-entry p {
  margin: 0;
  color: var(--muted);
}

.gallery-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 18px 0 8px;
}

.gallery-image-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  background: var(--surface);
}

.panel-main {
  width: min(68%, 760px);
  height: 470px;
  z-index: 2;
}

.panel-secondary {
  width: min(46%, 560px);
  height: 360px;
  margin-left: -90px;
  margin-top: 96px;
  z-index: 3;
  border: 10px solid rgba(255, 255, 255, 0.7);
}

.panel-tertiary {
  width: min(28%, 320px);
  height: 240px;
  margin-left: -72px;
  margin-top: 182px;
  z-index: 4;
  border: 8px solid rgba(255, 255, 255, 0.8);
}

.panel-quaternary {
  width: min(22%, 240px);
  height: 190px;
  margin-left: -54px;
  margin-top: 230px;
  z-index: 5;
  border: 7px solid rgba(255, 255, 255, 0.8);
}

.gallery-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.panel-main img {
  object-position: center 52%;
}

.panel-secondary img,
.panel-tertiary img,
.panel-quaternary img {
  object-position: center center;
}

@media (max-width: 768px) {
  .gallery-showcase {
    min-height: 420px;
    padding: 8px 0 0;
  }

  .panel-main {
    width: 72%;
    height: 310px;
  }

  .panel-secondary {
    width: 56%;
    height: 240px;
    margin-left: -52px;
    margin-top: 58px;
    border-width: 6px;
  }

  .panel-tertiary {
    width: 36%;
    height: 180px;
    margin-left: -30px;
    margin-top: 110px;
    border-width: 5px;
  }

  .panel-quaternary {
    width: 30%;
    height: 150px;
    margin-left: -22px;
    margin-top: 140px;
    border-width: 5px;
  }
}

.map-wrap {
  display: grid;
  gap: 18px;
}

.map-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
  background: var(--surface);
}

.map-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.portfolio-thumb {
  height: 220px;
  border-radius: 18px 18px 0 0;
  background-size: cover;
  background-position: center;
}

.thumb-one {
  background: linear-gradient(135deg, #112b63, #5ca3ff);
}

.thumb-two {
  background: linear-gradient(135deg, #0d1b2a, #3ca7b0);
}

.thumb-three {
  background: linear-gradient(135deg, #3b1d5e, #b388ff);
}

.portfolio-copy {
  padding: 20px 18px 24px;
}

.cta-band {
  padding-top: 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--bg-strong), #1b3b73);
  border-radius: 30px;
  padding: 36px 42px;
  color: white;
  box-shadow: var(--shadow);
}

.cta-box h2,
.cta-box p {
  color: white;
}

.site-footer {
  background: #0d1321;
  color: white;
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-brand {
  color: white;
  margin-bottom: 18px;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 28px;
}

@media (max-width: 900px) {
  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-company {
    width: 100%;
  }

  .hero-grid,
  .two-column,
  .service-grid,
  .process-grid,
  .portfolio-grid,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .two-column,
  .cta-box {
    display: grid;
  }

  .nav {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-grid,
  .two-column,
  .service-grid,
  .process-grid,
  .portfolio-grid,
  .gallery-grid,
  .footer-grid,
  .cta-box,
  .stat-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .nav {
    justify-content: center;
  }

  .cta-box {
    padding: 28px 24px;
  }
}
