:root {
  --bg: #f4efe8;
  --surface: #fffaf4;
  --surface-soft: #ede4d8;
  --surface-deep: #e4d7c9;
  --text: #1f1a17;
  --muted: #6a5f57;
  --line: #d7c9bc;
  --accent: #3a302a;
  --accent-2: #8a7262;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(31, 26, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a,
.lang-switch a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.lang-switch a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.lang-switch strong {
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.page-hero,
.project-hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.footer-wrap,
.about-grid,
.contact-grid,
.project-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid,
.about-grid,
.project-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
}

.hero-card,
.info-card,
.project-card,
.contact-card,
.stat-card,
.project-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.info-card,
.contact-card,
.project-panel {
  padding: 1.4rem;
}

.hero-card img,
.project-image-large {
  border-radius: 16px;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.section {
  padding: 3.2rem 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.project-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.project-body h3,
.project-body p,
.project-body a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.project-meta {
  font-size: 0.88rem;
  color: var(--accent-2);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  margin-top: auto;
}

.info-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.stat-card {
  padding: 1.2rem;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-list,
.spec-list,
.project-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li + li,
.spec-list li + li,
.project-links li + li {
  margin-top: 0.7rem;
}

.contact-note,
.spec-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-list strong {
  display: inline-block;
  min-width: 140px;
}

.project-panel h3 {
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-wrap {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .info-grid,
  .about-grid,
  .contact-grid,
  .footer-wrap,
  .stat-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-right {
    margin-left: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .lang-switch {
    display: none;
  }

  .hero,
  .page-hero,
  .project-hero {
    padding: 3.5rem 0 2.2rem;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .project-card {
    border-radius: 24px;
  }

  .project-body {
    padding: 1.1rem;
  }

  .brand {
    font-size: 0.98rem;
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .nav-wrap {
    min-height: 72px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-card,
  .info-card,
  .contact-card,
  .project-panel {
    padding: 1.1rem;
  }

  .project-card img,
  .hero-card img,
  .project-image-large,
  .about-image {
    aspect-ratio: 4 / 3;
  }

  .spec-list strong {
    min-width: 110px;
  }
}
