:root {
  --ink: #1f1d1b;
  --muted: #6f6760;
  --line: #ded6cd;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #9b6b35;
  --accent-dark: #6f4721;
  --rose: #a95f67;
  --green: #3f6b59;
  --shadow: 0 18px 45px rgba(32, 28, 24, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-width: 1180px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  height: 82px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 700; font-size: 20px; }
.brand-mark { width: 164px; height: 55px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; padding: 12px 14px; border-radius: 6px; color: #312c28; }
.nav-item:hover { background: #f1e9df; }
.nav-has-menu > a { display: inline-flex; gap: 5px; align-items: center; }
.nav-arrow { color: var(--accent); font-size: 13px; }
.nav-menu {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 230px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  border-radius: 8px;
}
.nav-has-menu:hover .nav-menu { display: grid; }
.nav-menu a { padding: 10px 12px; border-radius: 6px; color: #302b27; }
.nav-menu a:hover { background: #f1e9df; }
.account-nav { display: flex; align-items: center; gap: 14px; }
.avatar-menu { position: relative; }
.avatar-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.avatar-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  min-width: 150px;
  padding: 8px;
}
.avatar-menu:hover .avatar-dropdown,
.avatar-menu.is-open .avatar-dropdown { display: grid; }
.avatar-dropdown a { padding: 10px 12px; border-radius: 6px; }
.avatar-dropdown a:hover { background: #f1e9df; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-small { min-height: 38px; padding: 0 16px; }
.button-outline { background: transparent; color: var(--accent-dark); }
.button-outline:hover { color: #fff; }

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(20,18,16,.78), rgba(20,18,16,.24)), var(--hero-image), #2a2521;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 72px;
}
.hero-content { width: 760px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
.hero .eyebrow { color: #f2c984; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 18px; }
h1 { font-size: 56px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
.hero p { font-size: 20px; max-width: 680px; }

.content-band { padding: 74px 72px; }
.band-muted { background: #f3eee8; }
.section-head { max-width: 820px; margin-bottom: 34px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 300px minmax(210px, auto);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(39, 34, 29, .08);
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card-media {
  display: block;
  width: 100%;
  min-height: 300px;
  background: #eee5da;
  overflow: hidden;
}
.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  min-height: 210px;
}
.category-card-title {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}
.category-card-text {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step {
  border-top: 4px solid var(--accent);
  background: #fff;
  padding: 24px;
  min-height: 180px;
}
.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) 380px; gap: 54px; align-items: start; }
.rich-copy p { margin: 0 0 18px; color: #3a342f; }
.feature-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  position: sticky;
  top: 110px;
}
.feature-panel li { margin-bottom: 12px; }
.page-hero {
  padding: 92px 72px;
  background: #24201d;
  color: #fff;
}
.page-hero-compact { min-height: 360px; display: flex; align-items: center; }
.page-hero p { max-width: 830px; color: #efe7dd; font-size: 18px; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.image-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.image-grid img { height: 300px; width: 100%; object-fit: cover; background: #eee5da; }
.image-grid figcaption { padding: 16px 18px; color: var(--muted); }

.contact-section { background: #ece4da; }
.contact-form {
  max-width: 980px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
label { display: grid; gap: 7px; margin-bottom: 18px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfc4b8;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.form-error { color: #9b1c1c; font-size: 14px; font-weight: 600; }
.flash-wrap { padding: 18px 72px 0; }
.flash { border-radius: 6px; padding: 13px 16px; background: #e8f4ec; border: 1px solid #a8ceb4; }

.auth-wrap { max-width: 560px; margin: 72px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.info-list, .inquiry-list { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.inquiry-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.inquiry-item:last-child { border-bottom: 0; }

.policy-wrap { max-width: 980px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.flow-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 28px 0; }
.flow-node { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 18px; min-height: 120px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 48px 72px;
  background: #191714;
  color: #f7efe6;
}
.site-footer p { margin: 8px 0; color: #d4c8bd; }
.site-footer nav { display: grid; gap: 9px; min-width: 220px; }
.site-footer a:hover { color: #f2c984; }
