:root {
  --blue: #0046c7;
  --black: #080808;
  --text: #303030;
  --muted: #666666;
  --line: #dddddd;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

.header {
  background: #ffffff;
}

.header-inner {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.logo {
  width: 470px;
  max-width: 100%;
  display: block;
}

.brand p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text);
}

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

.nav a {
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .02em;
}

.nav a:hover {
  color: var(--blue);
}

.menu-button {
  display: none;
  background: #ffffff;
  border: 0;
  width: 40px;
  height: 40px;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--black);
  margin: 6px auto;
}

.hero {
  padding: 84px 0 74px;
}

h1 {
  color: var(--black);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -2px;
  max-width: 860px;
}

.small-line,
.card-line {
  width: 38px;
  height: 3px;
  background: var(--blue);
}

.small-line {
  margin: 28px 0;
}

.hero p {
  max-width: 430px;
  font-size: 17px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 34px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .02em;
}

.button.secondary {
  background: #ffffff;
  color: var(--blue);
  margin-top: 22px;
}

.section {
  padding: 48px 0 42px;
}

.section-label {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}

h2 {
  color: var(--black);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 210px;
  border: 1px solid var(--line);
  padding: 38px 40px;
  background: #ffffff;
}

.card h3 {
  color: var(--black);
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.card-line {
  margin-bottom: 22px;
  width: 28px;
  height: 2px;
}

.card p {
  font-size: 15px;
  color: var(--text);
}

.compact {
  padding-top: 42px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.projects article {
  min-height: 150px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.projects article:first-child {
  border-left: 0;
  padding-left: 0;
}

.projects h3 {
  color: var(--black);
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.projects p {
  font-size: 13px;
  color: var(--text);
}

.contact {
  text-align: center;
  padding-top: 70px;
}

.contact .center {
  margin-left: auto;
  margin-right: auto;
}

.contact p {
  margin-bottom: 16px;
}

.email {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  margin-top: 30px;
}

.footer .container {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    height: auto;
    min-height: 104px;
    padding: 22px 0;
  }

  .logo {
    width: 310px;
  }

  .brand p {
    font-size: 13px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 104px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 18px;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 58px 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projects article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    min-height: auto;
  }

  .projects article:first-child {
    border-top: 0;
  }
}
