:root {
  --bg: #f5f4ed;
  --surface: #faf9f5;
  --surface-2: #e8e6dc;
  --text: #141413;
  --muted: #5e5d59;
  --soft: #87867f;
  --dark: #30302e;
  --dark-2: #141413;
  --warm-silver: #b0aea5;
  --brand: #c96442;
  --brand-soft: #d97757;
  --green: #5e6f55;
  --border: #e8e6dc;
  --border-soft: #f0eee6;
  --ring: #d1cfc5;
  --shadow: 0 4px 24px rgba(20, 20, 19, 0.06);
  --max: 1180px;
  --serif: 'Source Serif 4', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.narrow { max-width: 820px; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 237, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark-2);
  color: var(--surface);
  box-shadow: 0 0 0 1px var(--dark);
  font-size: 0.86rem;
}

.brand-text { font-size: 0.95rem; }

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.menu a:hover { color: var(--text); }

.menu a.lang-switch {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--ring);
}

.hero {
  padding: 88px 0 78px;
}

.hero-grid,
.split-grid,
.visual-grid,
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy-wrap { max-width: 670px; }

.eyebrow,
.section-tag,
.card-number {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-copy {
  max-width: 690px;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
  color: var(--surface);
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--ring);
}

.hero-visual,
.media-card {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--border-soft);
}

.hero-visual img,
.media-card img { width: 100%; height: auto; }

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 { max-width: 820px; }

.prose p {
  font-size: 1.04rem;
  line-height: 1.72;
}

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

.card {
  min-height: 245px;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

.card p,
.feature-item p { font-size: 0.98rem; }

.card-number {
  display: inline-block;
  color: var(--soft);
  margin-bottom: 34px;
}

.visual-grid { gap: 64px; }
.reverse > :first-child { order: 1; }
.reverse > :last-child { order: 2; }

.dark-media { background: var(--dark-2); }

.feature-list {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.feature-item {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--border);
}

.feature-item h3 {
  font-size: 1.28rem;
  margin-bottom: 7px;
}

.block-title {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.block-title h2 {
  max-width: 860px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
}

.about-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

.about-card.large-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.about-card p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mini-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 0.9rem;
}

.service-cards .card {
  min-height: 230px;
}

.case-feature {
  padding: 34px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-soft), var(--shadow);
}

.case-feature h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.case-section {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 22px;
}

.case-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 0.92rem;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { color: var(--text); }


.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.chips span {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 0.95rem;
}

.contact-section { padding-top: 34px; padding-bottom: 104px; }

.contact-box {
  align-items: start;
  padding: 42px;
  border-radius: 28px;
  background: var(--dark-2);
  box-shadow: 0 0 0 1px var(--dark), var(--shadow);
}

.contact-box h2,
.contact-box p { color: var(--surface); }
.contact-box .section-tag { color: var(--brand-soft); }
.contact-box > div:first-child p { color: var(--warm-silver); }

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--dark);
}

.contact-list strong {
  display: block;
  color: var(--surface);
  font-size: 0.86rem;
  margin-bottom: 3px;
}

.contact-list span {
  color: var(--warm-silver);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--border-soft);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; font-size: 0.92rem; }
.site-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .visual-grid,
  .contact-box,
  .cards,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card.large-card {
    grid-row: auto;
    min-height: auto;
  }

  .reverse > :first-child,
  .reverse > :last-child { order: initial; }

  .hero { padding-top: 64px; }
  .hero-copy-wrap { max-width: none; }
  .cards { gap: 16px; }
  .card { min-height: auto; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .nav { min-height: 68px; align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .menu { gap: 11px 16px; }
  .menu a { font-size: 0.9rem; }
  .hero { padding: 48px 0 58px; }
  .section { padding: 66px 0; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .hero-copy { font-size: 1.04rem; }
  .hero-visual,
  .media-card { border-radius: 22px; }
  .contact-box { padding: 26px; border-radius: 22px; }
  .chips { justify-content: flex-start; }
}
