:root {
  --bg: #f6f0e8;
  --bg-soft: #fbf7f1;
  --paper: #fffaf4;
  --text: #2b241d;
  --muted: #74685d;
  --line: rgba(64, 50, 39, 0.14);
  --accent: #8a6546;
  --accent-dark: #4a3324;
  --accent-soft: #eadbca;
  --success: #3d6b4e;
  --danger: #a24a37;
  --shadow: 0 24px 60px rgba(43, 36, 29, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 188, 158, 0.35), transparent 35vw),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: 92px 0; }
.section-tight { padding: 58px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 241, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: var(--container);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e241d, #9b7656);
  display: grid;
  place-items: center;
  color: #fff7ef;
  font-size: 14px;
}
.logo span:last-child { font-size: 14px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(138, 101, 70, 0.10); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.75);
  border-radius: 50%;
  color: var(--text);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 4px auto;
  border-radius: 2px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #201911;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(23, 17, 12, 0.76), rgba(23, 17, 12, 0.42) 38%, rgba(23, 17, 12, 0.12) 68%), var(--hero-image, url('/assets/images/hero.png'));
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(23,17,12,0.78));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 110px 0 82px;
  color: #fff7ef;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 670px) 1fr; gap: 40px; align-items: end; }
.hero h1 {
  margin: 18px 0 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  max-width: 760px;
}
.hero p { max-width: 570px; color: rgba(255, 247, 239, 0.82); font-size: 18px; }
.hero-panel {
  justify-self: end;
  max-width: 360px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.hero-panel strong { display: block; font-size: 38px; line-height: 1; margin-bottom: 8px; }
.hero-panel span { color: rgba(255,247,239,0.78); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #e9cdae; }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.04em;
}
h3 { font-size: 23px; letter-spacing: -0.025em; }
p { margin: 0; color: var(--muted); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 36px;
  align-items: end;
  margin-bottom: 40px;
}
.section-head p { font-size: 17px; }
.section-head.centered { display: block; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head.centered p { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.22s ease;
}
.btn-primary { background: var(--accent-dark); color: #fff7ef; box-shadow: 0 14px 26px rgba(74, 51, 36, 0.24); }
.btn-primary:hover { transform: translateY(-2px); background: #2f2118; }
.btn-light { background: rgba(255, 250, 244, 0.88); color: var(--text); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.34); color: #fff7ef; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,250,244,0.55); }
.btn-ghost:hover { background: var(--paper); transform: translateY(-2px); }
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 0;
}
.text-button:hover { color: var(--accent); }

.info-strip {
  position: relative;
  z-index: 3;
  background: #221910;
  color: #fff7ef;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.info-strip-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.info-item {
  padding: 26px 22px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.info-item:last-child { border-right: 1px solid rgba(255,255,255,0.10); }
.info-item strong { display: block; font-size: 24px; margin-bottom: 4px; }
.info-item span { color: rgba(255,247,239,0.68); font-size: 14px; }

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

.image-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--paper);
  border: 1px solid var(--line);
}
.image-card img { width: 100%; height: 100%; object-fit: cover; min-height: 430px; }
.text-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 244, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.text-card h2 { margin: 12px 0 20px; }
.text-card p + p { margin-top: 16px; }
.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(138, 101, 70, 0.08);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff7ef;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.feature-item strong { display: block; margin-bottom: 4px; }
.feature-item p { font-size: 14px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .project-card, .review-card, .step-card, .admin-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,250,244,0.78);
  box-shadow: 0 18px 40px rgba(43,36,29,0.08);
  overflow: hidden;
}
.service-thumb img { width: 100%; height: 220px; object-fit: cover; }
.service-content { padding: 24px; display: grid; gap: 12px; }
.service-content p { font-size: 15px; }
.service-subtitle { color: var(--text); font-weight: 700; }
.service-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.service-bottom strong { color: var(--accent-dark); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { transition: 0.22s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-image-link img { width: 100%; height: 285px; object-fit: cover; transition: 0.28s ease; }
.project-card:hover .project-image-link img { transform: scale(1.035); }
.project-card-body { padding: 24px; display: grid; gap: 13px; }
.project-card h3 a:hover { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.card-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(138, 101, 70, 0.09);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.process-section { background: rgba(255,250,244,0.48); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-card { padding: 28px; }
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 24px;
}
.step-card h3 { margin-bottom: 12px; }

.cta-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--accent-dark);
  box-shadow: var(--shadow);
  color: #fff7ef;
}
.cta-panel img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.cta-content { padding: clamp(30px, 5vw, 58px); }
.cta-content h2 { margin: 12px 0 18px; }
.cta-content p { color: rgba(255,247,239,0.75); }
.cta-content .eyebrow { color: #e9cdae; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 800; color: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(255,250,244,0.90);
  outline: none;
  transition: 0.18s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(138,101,70,0.55); box-shadow: 0 0 0 4px rgba(138,101,70,0.12); }
.cta-content input, .cta-content select, .cta-content textarea { border-color: rgba(255,255,255,0.18); }
.form-note { margin-top: 14px; font-size: 13px; color: rgba(255,247,239,0.58) !important; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { padding: 26px; display: grid; gap: 18px; }
.stars { color: #b98850; letter-spacing: 0.12em; }
.review-author strong { display: block; }
.review-author span { color: var(--muted); font-size: 14px; }

.page-hero {
  padding: 88px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,250,244,0.80), rgba(234,219,202,0.56)),
    var(--page-image, none);
  background-size: cover;
  background-position: center;
}
.page-hero.dark {
  color: #fff7ef;
  background-image: linear-gradient(90deg, rgba(23,17,12,0.78), rgba(23,17,12,0.36)), var(--page-image);
  min-height: 380px;
  display: grid;
  align-items: end;
}
.page-hero.dark p { color: rgba(255,247,239,0.78); }
.page-hero h1 {
  margin: 14px 0 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 840px;
}
.page-hero p { max-width: 660px; font-size: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,250,244,0.72);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}
.filter-btn.active { background: var(--accent-dark); color: #fff7ef; border-color: var(--accent-dark); }

.project-detail-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 34px; align-items: start; }
.project-detail-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.project-detail-image img { width: 100%; max-height: 680px; object-fit: cover; }
.project-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.spec-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: rgba(255,250,244,0.76); }
.spec-row span { color: var(--muted); }
.spec-row strong { text-align: right; }
.detail-text { padding: 34px; border-radius: var(--radius-xl); background: rgba(255,250,244,0.76); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43,36,29,0.08); }
.detail-text h2 { margin-bottom: 16px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 26px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-card { padding: 26px; }
.contact-card strong { display: block; margin-bottom: 5px; }
.map-card {
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(74,51,36,0.70), rgba(138,101,70,0.38)),
    url('/assets/images/consultation.png') center/cover;
  color: #fff7ef;
  display: flex;
  align-items: end;
  padding: 32px;
}
.map-card p { color: rgba(255,247,239,0.74); }

.site-footer { background: #221910; color: #fff7ef; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; gap: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 36px; }
.site-footer p, .site-footer a, .footer-bottom { color: rgba(255,247,239,0.68); }
.site-footer a:hover { color: #fff7ef; }
.footer-links { display: grid; gap: 8px; }
.footer-title { display: block; color: #fff7ef; font-weight: 800; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 14px; }

.toast-container { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: grid; gap: 10px; }
.toast {
  transform: translateY(12px);
  opacity: 0;
  transition: 0.22s ease;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--success);
  color: white;
  box-shadow: var(--shadow);
  max-width: 360px;
}
.toast-error { background: var(--danger); }
.toast.is-visible { transform: translateY(0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.admin-body { background: #f0e7dc; }
.admin-shell { width: min(1320px, calc(100% - 32px)); margin: 30px auto; display: grid; gap: 24px; }
.admin-topbar {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,250,244,0.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(43,36,29,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 24px; display: grid; gap: 10px; }
.admin-tab {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,250,244,0.72);
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}
.admin-tab.active { background: var(--accent-dark); color: #fff7ef; }
.admin-card { padding: 24px; }
.admin-card + .admin-card { margin-top: 18px; }
.admin-table-wrap { overflow: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: rgba(255,250,244,0.74); }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
td { font-size: 14px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.small-btn {
  border: 1px solid var(--line);
  background: rgba(255,250,244,0.90);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 13px;
}
.small-btn.danger { color: var(--danger); }
.small-btn.primary { background: var(--accent-dark); color: #fff7ef; border-color: var(--accent-dark); }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--accent-soft); color: var(--accent-dark); }
.badge.work { background: #dbe7d6; color: #3d6b4e; }
.badge.done { background: #d7e2ea; color: #34576b; }
.badge.hold { background: #eadbd2; color: #8f4d37; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); padding: 34px; border-radius: var(--radius-xl); background: rgba(255,250,244,0.88); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 42px; margin: 12px 0; letter-spacing: -0.04em; }
.hidden { display: none !important; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.admin-form .form-field.full { grid-column: 1 / -1; }
.admin-form textarea { min-height: 130px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 18px; border-radius: 20px; background: rgba(138,101,70,0.09); }
.stat-card strong { display: block; font-size: 32px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 13px; }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.error-page h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 86px; margin-bottom: 12px; }

@media (max-width: 980px) {
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,250,244,0.96);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .hero-grid, .section-head, .grid-2, .cta-panel, .contact-grid, .project-detail-layout, .admin-layout { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; }
  .info-strip-inner, .service-grid, .project-grid, .review-grid, .grid-3, .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .project-aside, .admin-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  .header-inner { height: 68px; }
  .hero { min-height: auto; }
  .hero-content { padding: 84px 0 54px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .info-strip-inner, .service-grid, .project-grid, .review-grid, .grid-3, .grid-4, .form-grid, .footer-grid, .admin-form, .stat-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .image-card img { min-height: 300px; }
  .cta-panel img { min-height: 300px; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 62px 0 40px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .toast-container { left: 14px; right: 14px; bottom: 14px; }
}
