:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-2: #171a21;
  --text: #f5f0e8;
  --muted: #b5b0a8;
  --line: rgba(245, 240, 232, 0.14);
  --gold: #d6ae62;
  --gold-2: #f0d39a;
  --green: #7ea081;
  --blue: #6f9bb7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 174, 98, 0.12), transparent 34rem),
    linear-gradient(135deg, #08090b 0%, #101218 48%, #08090b 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold);
  color: #16100a;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover,
.project-body a:hover {
  color: var(--gold-2);
}

main {
  position: relative;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(290px, 0.54fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 86px);
  padding: 42px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.15vw, 4.85rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-text,
.section-heading,
.about-copy p,
.contact p {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #14100a;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-stats div,
.service-card,
.project-card,
.values div,
.steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong,
.hero-stats span,
.values strong,
.values span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 6px;
  color: var(--gold-2);
  font-size: 1.1rem;
}

.hero-stats span,
.service-card p,
.service-card li,
.project-body p,
.steps p,
.values span {
  color: var(--muted);
  line-height: 1.6;
}

.profile-panel {
  position: relative;
}

.portrait-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.profile-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(14px);
}

.profile-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid,
.project-grid,
.steps {
  display: grid;
  gap: 18px;
}

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

.service-card,
.project-card,
.steps div {
  padding: 26px;
}

.service-card {
  min-height: 330px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.service-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--gold-2);
  font-weight: 800;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
}

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

.project-card {
  padding: 0;
  overflow: hidden;
  background: var(--panel);
}

.project-preview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 190px;
  padding: 22px;
}

.project-preview span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.project-preview strong,
.project-preview small {
  display: block;
  text-align: right;
}

.project-preview small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.project-preview.dental {
  background: linear-gradient(135deg, #16313d, #7ea081);
}

.project-preview.food {
  background: linear-gradient(135deg, #4b2a1f, #d6ae62);
}

.project-preview.next {
  background: linear-gradient(135deg, #252934, #6f9bb7);
}

.project-body {
  padding: 24px;
}

.project-body a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-2);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 46px;
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.values {
  display: grid;
  align-content: center;
  gap: 14px;
}

.values div {
  padding: 22px;
}

.values strong {
  margin-bottom: 8px;
  color: var(--gold-2);
}

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

.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  background: var(--gold);
  color: #14100a;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 174, 98, 0.16), rgba(255, 255, 255, 0.035));
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact p {
  max-width: 670px;
  margin-bottom: 0;
  line-height: 1.7;
}

.contact-actions {
  justify-content: flex-end;
  max-width: 390px;
  margin-top: 0;
}

.contact-actions span {
  width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
  overflow-wrap: anywhere;
}

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

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .contact-actions span {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .contact {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 12px;
  }

  .brand strong {
    max-width: 190px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .hero-stats {
    display: none;
  }

  .button {
    width: 100%;
  }

  .profile-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .project-preview {
    min-height: 170px;
  }

  .contact {
    padding: 26px;
  }
}
