:root {
  --bg: #1b1b1b;
  --bg-dark: #121212;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --line: rgba(255, 255, 255, 0.35);
  --container: 1100px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 30px; height: 30px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 36px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn-outline { border: 2px solid var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 20px; }
.logo-mark { font-size: 2.3rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1; }
.logo-sub {
  padding-left: 20px;
  border-left: 2px solid var(--text);
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 0.85rem; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav a:hover, .nav a.active { border-color: var(--text); }
.header-mail { padding: 10px 20px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--text); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0 0 0 32%;
  background: url("assets/img/hero.jpg") center / cover no-repeat;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(18, 18, 18, 0.6) 25%, transparent 55%);
}
.hero-content { position: relative; padding-top: 48px; padding-bottom: 48px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero p { margin: 24px 0 32px; font-size: 1.05rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.rule { width: 40px; margin: 28px 0; border: 0; border-top: 2px solid var(--text); }
.about-text p { margin: 0; color: #e0e0e0; font-size: 1.05rem; }
.about-img { width: 100%; aspect-ratio: 545 / 235; object-fit: cover; }

/* Areas */
.areas { padding-top: 24px; padding-bottom: 24px; }
.areas-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.areas-list li {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.areas-list li:first-child { padding-left: 0; border-left: 0; }
.area-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.areas-list h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.areas-list p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Projects */
.projects { padding-top: 32px; padding-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.arrow-link { transition: transform 0.2s; }
.arrow-link:hover { transform: translateX(4px); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.projects-grid figure { margin: 0; overflow: hidden; }
.projects-grid img {
  width: 100%;
  aspect-ratio: 17 / 10;
  object-fit: cover;
  transition: transform 0.5s;
}
.projects-grid figure:hover img { transform: scale(1.04); }

/* CTA */
.cta {
  margin-top: 32px;
  padding: 40px 0;
  background:
    linear-gradient(rgba(40, 40, 40, 0.55), rgba(40, 40, 40, 0.55)),
    url("assets/img/cta-bg.jpg") center / cover no-repeat,
    #555;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta p { margin: 10px 0 0; color: #cfcfcf; font-size: 1.05rem; }

.site-footer { padding: 20px 0; background: var(--bg-dark); color: var(--muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1024px) {
  .header-mail { display: none; }
  .areas-list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .areas-list li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg-dark);
    font-size: 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #2a2a2a; }

  .hero { min-height: 520px; align-items: flex-end; }
  .hero-bg { inset: 0; }
  .hero-bg::before { background: linear-gradient(0deg, var(--bg-dark) 10%, rgba(18, 18, 18, 0.5) 55%, rgba(18, 18, 18, 0.2) 100%); }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .logo-mark { font-size: 1.9rem; }
  .logo { gap: 14px; }
  .logo-sub { padding-left: 14px; font-size: 0.7rem; }
  .areas-list { grid-template-columns: 1fr; }
  .areas-list li { padding-left: 0; border-left: 0; }
  .btn { padding: 12px 24px; }
  .cta .btn { font-size: 0.85rem; }
  .hero p br { display: none; }
}
