:root {
  --bg: #f7f3ee;
  --panel: #ffffff;
  --panel-2: #f3eadf;
  --text: #1d1d1f;
  --muted: #5f5f65;
  --primary: #1c4031;
  --primary-2: #2b5e48;
  --accent: #d98d3a;
  --border: rgba(20, 20, 25, 0.08);
  --shadow: 0 18px 40px rgba(22, 24, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topline {
  background: #1a2e28;
  color: #e5eee9;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.topline span {
  opacity: 0.85;
  margin-left: 12px;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 238, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  letter-spacing: 0.07em;
  font-size: 1.05rem;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link:hover,
.small-link:hover,
.site-footer a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  background: none;
  border: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 15px 24px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 64, 49, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(28, 64, 49, 0.22);
}

.button.small {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(28, 64, 49, 0.2);
  box-shadow: none;
}

.button.full-width {
  width: 100%;
  margin-top: 18px;
}

.lang-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 25, 24, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.lang-modal.hidden,
.auth-modal.hidden {
  display: none;
}

.lang-modal-box,
.auth-modal-box {
  width: min(700px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 28px;
  padding: clamp(20px, 5vw, 28px) clamp(18px, 5vw, 26px) 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.modal-eyebrow {
  margin-bottom: 10px;
}

.lang-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.lang-option {
  border: 1px solid rgba(28, 64, 49, 0.15);
  background: #f5f5f2;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.lang-option.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 78px 0 60px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--primary-2);
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 600;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(28, 64, 49, 0.06);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 515px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.print-card {
  border-radius: 28px;
  padding: 22px 18px;
  min-height: 240px;
  background: linear-gradient(135deg, #1c4031, #2d5f4d);
  color: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.print-card-large {
  min-height: 300px;
  grid-column: 1 / span 2;
  background: linear-gradient(135deg, #d99a50, #c7782e);
}

.print-card-small.alt {
  background: linear-gradient(135deg, #dfe6d7, #b7cbb7);
  color: var(--text);
}

.mini-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 18px;
}

.print-card-small.alt .mini-tag {
  background: rgba(28, 64, 49, 0.08);
}

.print-card h3 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.stats-strip {
  padding: 10px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stats-grid strong {
  font-size: 1.7rem;
  color: var(--primary);
}

.stats-grid span {
  color: var(--muted);
}

.product-section,
.templates-section,
.services-section,
.why-us-section,
.quote-section {
  padding: 36px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.services-section h2,
.quote-box h2,
.why-us-section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid rgba(28, 64, 49, 0.12);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-grid,
.services-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.product-card,
.service-card,
.template-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.product-card,
.template-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card.hidden {
  display: none;
}

.product-icon,
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(28, 64, 49, 0.08);
}

.product-card h3,
.service-card h3,
.template-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.product-card p,
.service-card p,
.template-card p,
.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--muted);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.meta-row span {
  font-weight: 700;
  color: var(--primary);
}

.small-link {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.templates-section {
  background: linear-gradient(180deg, rgba(28, 64, 49, 0.04), rgba(28, 64, 49, 0.02));
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-preview {
  height: 170px;
  border-radius: 18px;
  border: 1px solid rgba(28, 64, 49, 0.12);
  overflow: hidden;
  position: relative;
}

.preview-one {
  background: linear-gradient(135deg, #d4a060, #f4e9d4);
}

.preview-two {
  background: linear-gradient(135deg, #d8b7c8, #f9f1f5);
}

.preview-three {
  background: linear-gradient(135deg, #d65b44, #f3c7be);
}

.preview-four {
  background: linear-gradient(135deg, #2b7a4d, #dfeec8);
}

.preview-one::before,
.preview-two::before,
.preview-three::before,
.preview-four::before {
  content: "";
  position: absolute;
  inset: 18px 14px auto 14px;
  height: 38px;
  background: rgba(255,255,255,0.38);
  border-radius: 12px;
}

.preview-one::after,
.preview-two::after,
.preview-three::after,
.preview-four::after {
  content: "";
  position: absolute;
  inset: 74px 18px 18px 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
}

.services-section {
  background: linear-gradient(180deg, rgba(28, 64, 49, 0.04), rgba(28, 64, 49, 0.02));
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.why-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2.2;
  font-size: 1.05rem;
}

.quote-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  background: #f3eadf;
  border: 1px solid rgba(28, 64, 49, 0.08);
  border-radius: 28px;
  padding: 28px;
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border: 1px solid rgba(28, 64, 49, 0.14);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 14px 16px;
  resize: vertical;
  color: var(--text);
}

.auth-modal-box {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 26px;
  padding: 28px 24px 22px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(28, 64, 49, 0.15);
  border-radius: 12px;
  padding: 13px 14px;
}

.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  background: #111918;
  color: #edf5f2;
  padding: 44px 0 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer a {
  color: rgba(237, 245, 242, 0.8);
}

.page-shell {
  padding: 48px 0 90px;
}

.page-heading {
  margin-bottom: 30px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.05em;
}

.product-promo-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.product-grid {
  margin-top: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.product-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(28,64,49,0.15), rgba(217,141,58,0.2));
  display: grid;
  place-items: center;
  font-size: clamp(6rem, 12vw, 10rem);
  box-shadow: var(--shadow);
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.detail-price {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.feature-list {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 24px;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cart-item-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(28, 64, 49, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}

.cart-item-meta h3 {
  margin: 0 0 4px;
}

.cart-item-meta p {
  margin: 0;
  color: var(--muted);
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(28, 64, 49, 0.04);
}

.cart-item-controls button {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}

.remove-btn {
  border: none;
  background: transparent;
  color: #b52626;
  font-weight: 700;
}

.cart-summary {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: fit-content;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.summary-row strong {
  color: var(--primary);
}

.empty-cart {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 60px 24px;
  background: var(--panel);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 4rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero,
  .quote-box,
  .footer-inner,
  .product-grid,
  .services-grid,
  .template-grid,
  .stats-grid,
  .why-grid,
  .detail-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hero {
    padding-top: 42px;
  }
}

@media (max-width: 560px) {
  .topline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
  }

  .topline span {
    margin-left: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero-visual {
    min-height: 360px;
    gap: 12px;
  }

  .print-card {
    min-height: 180px;
    padding: 18px 14px;
    border-radius: 20px;
  }

  .print-card-large {
    min-height: 210px;
  }

  .cart-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .cart-item-icon {
    grid-row: 1 / span 2;
  }

  .cart-item-meta {
    grid-column: 2 / -1;
  }

  .cart-item-controls {
    grid-column: 2;
    justify-self: start;
  }

  .cart-item > strong {
    grid-column: 3;
    justify-self: end;
  }

  .cart-item .remove-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .cart-item > * {
    min-width: 0;
  }

  .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lang-option {
    min-height: 44px;
    padding: 8px;
    text-align: center;
  }

  .lang-modal-box h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .lang-subtitle {
    margin-bottom: 12px;
  }

  .lang-modal-box .button.full-width {
    margin-top: 12px;
  }
}
