@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Fira+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #1b3838;
  --primary-dark: #112525;
  --accent: #c9592b;
  --accent-soft: #faeae3;
  --warm: #d49b38;
  --surface: #ffffff;
  --bg-alt: #f4f7f7;
  --text-main: #1b2424;
  --text-muted: #566464;
  --border-color: #d2dddd;
  --radius: 10px;
  --btn-radius: 2px;
  --shadow-alpine: 0 5px 16px rgba(17, 37, 37, 0.08);
  --shadow-hover: 0 12px 26px rgba(17, 37, 37, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Bree Serif', Georgia, serif;
  color: var(--primary-dark);
  line-height: 1.24;
  font-weight: 400;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Top bar */
.top-strip {
  background: var(--primary-dark);
  color: #e6efef;
  font-size: 13px;
  padding: 8px 0;
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-geo {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.6px;
  margin-right: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.16s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.cart-btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--btn-radius);
}

.cart-btn-header:hover {
  background: var(--primary-dark);
}

.cart-counter {
  background: var(--accent);
  color: #ffffff;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Blocky Alpine Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-hearth {
  background: var(--accent);
  color: #ffffff;
}

.btn-hearth:hover {
  background: #a44620;
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Alpine Thermal Hero */
.hero-alpine {
  background: linear-gradient(175deg, #f4f7f7 0%, #e5ecec 100%);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(30px, 3.8vw, 43px);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.layer-planner-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-alpine);
}

.hero-img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-alpine);
}

/* Sections */
.section {
  padding: 60px 0;
}

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

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3vw, 35px);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* 4 Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-alpine);
}

.pillar-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

/* Products */
.product-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-alpine);
  transition: transform 0.16s, box-shadow 0.16s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap {
  position: relative;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
}

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

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

.product-form-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-old-price {
  font-size: 14px;
  color: #849494;
  text-decoration: line-through;
}

.product-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Story Grid */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.story-img {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-alpine);
}

/* Reviews & Blog */
.reviews-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.review-card,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-alpine);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}

.review-author {
  font-weight: 700;
  font-size: 15px;
}

.review-city {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.blog-link {
  color: var(--primary);
  font-weight: 700;
}

/* FAQ & Disclaimer */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq-item h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.compliance-disclaimer-box {
  margin-top: 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
}

/* Detail & Table */
.product-detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.detail-img-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.detail-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 8px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
}

.composition-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 14px;
}

.composition-table th,
.composition-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.composition-table th {
  background: var(--bg-alt);
  font-weight: 700;
}

/* Cart & Checkout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.cart-table-wrap,
.cart-summary-box {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-alpine);
}

.cart-item-row {
  display: grid;
  grid-template-columns: 74px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.cart-item-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: 6px;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #a93b3b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.qty-input {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-size: 15px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

/* Modal & Cookie & Toast */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 37, 37, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: var(--primary-dark);
  color: #e6efef;
  padding: 15px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 150;
  font-size: 13px;
}

.toast-msg {
  display: none;
  position: fixed;
  bottom: 84px;
  right: 22px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 180;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #dbe5e5;
  padding: 54px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #eeb860;
}

.footer-badge {
  display: inline-block;
  padding: 4px 11px;
  background: rgba(201, 89, 43, 0.28);
  border: 1px solid rgba(238, 184, 96, 0.4);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(219, 229, 229, 0.78);
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }
  .hero-grid,
  .story-grid,
  .product-detail-grid,
  .cart-layout,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .cart-item-row {
    grid-template-columns: 60px 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
