:root {
  --bg: #f8f4ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf9;
  --text: #1f2a21;
  --muted: #667166;
  --line: rgba(31, 42, 33, 0.12);
  --line-strong: rgba(31, 42, 33, 0.24);
  --accent: #27543d;
  --accent-2: #b95f74;
  --accent-3: #d9b96f;
  --shadow: 0 18px 45px rgba(27, 41, 30, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-ui: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 191, 197, 0.45), transparent 26%),
    radial-gradient(circle at top right, rgba(169, 208, 180, 0.38), transparent 24%),
    linear-gradient(180deg, #fcf7f2 0%, #f6efe6 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 239, 0.78);
  border-bottom: 1px solid rgba(39, 84, 61, 0.08);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #4d8162 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(39, 84, 61, 0.09);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(39, 84, 61, 0.18);
}

.btn-accent {
  background: var(--accent-2);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.page-hero,
.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.page-hero-card {
  padding: 38px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(185, 95, 116, 0.1);
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.section-head h2 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.hero p,
.page-hero p,
.section-head p,
.body-copy {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 26px;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(39, 84, 61, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-image-card,
.stack-card,
.glass-card,
.feature-card,
.product-card,
.info-card,
.form-card,
.lookup-card,
.admin-panel,
.timeline-card,
.map-card,
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.hero-image-card {
  overflow: hidden;
  min-height: 540px;
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(14, 30, 22, 0.75));
}

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

.stack-card {
  padding: 18px;
}

.stack-card strong,
.feature-card strong,
.info-card strong,
.contact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.section {
  padding: 38px 0 84px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.info-card,
.contact-card,
.timeline-card {
  padding: 24px;
}

.feature-card p,
.info-card p,
.contact-card p,
.timeline-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

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

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-body {
  padding: 20px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.product-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(39, 84, 61, 0.09);
  color: var(--accent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
}

.form-card,
.lookup-card,
.admin-panel,
.glass-card,
.map-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.93rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 33, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-box {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 18px;
}

.order-card strong {
  font-size: 1.05rem;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255, 255, 255, 0.76);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 42, 33, 0.08);
  vertical-align: top;
}

th {
  background: rgba(39, 84, 61, 0.08);
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(39, 84, 61, 0.08);
  background: rgba(255, 255, 255, 0.38);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-copy,
.footer-links a {
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.cta-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 25;
}

.cta-float a {
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 700;
}

.cta-phone {
  background: var(--accent);
}

.cta-order {
  background: var(--accent-2);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .footer-grid,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 252, 247, 0.98);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(39, 84, 61, 0.1);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .card-grid.cols-3,
  .card-grid.cols-4,
  .product-grid,
  .footer-grid,
  .stats-grid,
  .stack-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-hero-card,
  .hero-image-card,
  .form-card,
  .lookup-card,
  .admin-panel,
  .glass-card,
  .map-card {
    padding: 22px;
  }

  .hero-image-card {
    min-height: 420px;
  }

  .cta-float {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .cta-float a {
    text-align: center;
  }
}
