/* CSS Variables */
:root {
  --brand: #00727d;
  --brand-2: #0d3159;
  --text: #1a1f28;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --border: #e5edf3;
  --upholstery: #141416;
  --radius: 14px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

h2 {
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 2rem !important;
  color: var(--text) !important;
  letter-spacing: -0.03em !important;
  position: relative;
  padding-bottom: 1rem !important;
}

h2::after {
  content: '' !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand) !important;
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--text);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--surface-2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 114, 125, 0.2);
  padding: 6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  gap: 8px;
}

.primary-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-nav a:hover {
  background: var(--surface-2);
  color: var(--brand);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 10px 0 14px;
}

.table-img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.table-img.large {
  max-width: 620px;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #edf2f7, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body p {
  flex: 1;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #005a63;
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-link {
  padding: 0;
  background: none;
  border: none;
  color: var(--brand);
  text-decoration: underline;
}

.btn-link:hover {
  color: #005a63;
}

/* Configurator */
.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.price-badge {
  display: inline-flex;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.config-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .config-wrap {
    grid-template-columns: 1fr;
  }
}

/* Carousel */
.carousel {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.slide {
  min-width: 100%;
}

.slide-inner {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.slide-inner.alt-bg {
  background: linear-gradient(180deg, #f0f5fa, #ffffff);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--surface-2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Config Panel */
.config-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.config-group {
  margin-bottom: 24px;
}

.config-panel .config-group h3,
.config-panel .config-group h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--sw), calc(100% - 24px), #fff);
  cursor: pointer;
  transition: all 0.2s;
}

.swatch:hover {
  transform: scale(1.05);
}

.swatch[aria-checked="true"] {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.swatch span {
  font-size: 0.8rem;
  color: #111;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 999px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.summary-box {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
}

.config-panel .summary-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #eff3f7;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 800;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: #6b7280;
  background: linear-gradient(180deg, #fff, #f9fcff);
}

.feature-list {
  padding-left: 20px;
  list-style-type: disc;
}
