﻿:root {
  --bg: #eef3f9;
  --bg-soft: #f8fbff;
  --surface: #ffffff;
  --text: #2a1d1b;
  --muted: #6f5b57;
  --brand: #ef4136;
  --brand-accent: #fbb040;
  --brand-strong: #d6382e;
  --border: #f1d3c3;
  --radius: 14px;
  --font: "Segoe UI", "Bahnschrift", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  font-family: var(--font);
}

body:not(.includes-ready) [data-include] { visibility: hidden; }

body:not(.includes-ready) main { opacity: 0; }

body.includes-ready main { opacity: 1; transition: opacity .12s ease-out; }

.container { width: min(1120px, 92%); margin: 0 auto; }

main { flex: 1 0 auto; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(243, 248, 255, .94), rgba(249, 252, 255, .94));
}

.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand-logo-img { display: block; width: 180px; max-width: 42vw; height: auto; }

.main-nav { display: flex; gap: 14px; flex-wrap: wrap; }

.main-nav a { color: var(--text); text-decoration: none; font-weight: 700; }

.main-nav a.active { color: var(--brand-strong); }

.lang-switch { display: flex; gap: 8px; }

.lang-switch a {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.lang-switch a.active {
  background: linear-gradient(120deg, var(--brand), var(--brand-accent));
  color: #fff;
  border-color: transparent;
}

.hero { padding: 76px 0 32px; }

body.embed-mode .hero { padding-top: 24px; }

.hero h1 { margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 36px); line-height: 1.15; }

h1 { font-size: clamp(24px, 3.1vw, 32px); line-height: 1.2; }

h2 { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.25; }

h3 { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; }

.hero p { margin: 0 0 12px; color: var(--muted); max-width: 760px; font-size: 20px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-accent));
  color: #fff;
  border-color: transparent;
}

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

.btn-primary:hover { filter: saturate(1.04) brightness(.98); }

.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }

.store-badge {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 180px;
}

.store-badge:hover {
  filter: brightness(1.04);
}

.store-badge-img {
  width: 180px;
  height: 54px;
  display: inline-flex;
  vertical-align: middle;
}

.section { padding: 24px 0; }

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

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

.card ul li + li { margin-top: 8px; }

.card p { color: var(--muted); }

.site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); text-align: center; }

.footer-links {
  line-height: 1.6;
}

.footer-meta {
  margin-top: 8px;
}

a { color: var(--brand-strong); }

a:hover { color: var(--brand); }

.site-footer a { color: #2a4f86; }

.site-footer a:hover { color: #1f3f6b; }

body.modal-open { overflow: hidden; }

.dd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 52, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.dd-modal-overlay[hidden] { display: none; }

.dd-modal {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(20, 35, 52, 0.18);
}

.dd-modal-title { margin: 0 0 8px; }

.dd-modal-text { margin: 0; color: var(--muted); }

.dd-modal-actions { margin-top: 16px; display: flex; justify-content: flex-end; }

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(20, 35, 52, .12);
}

.cookie-consent[hidden] { display: none; }

.cookie-consent-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-form { margin-top: 12px; display: grid; gap: 10px; max-width: 680px; }

.contact-form label { font-weight: 600; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form.is-locked {
  opacity: .75;
}

.contact-form.is-locked input,
.contact-form.is-locked select,
.contact-form.is-locked textarea,
.contact-form.is-locked button {
  cursor: not-allowed;
}

.form-hint { margin-top: 4px; color: var(--muted); font-size: 14px; }

.form-status { margin-top: 4px; font-size: 14px; }

.form-status.is-muted { color: var(--muted); }

.form-status.is-success { color: #0f7a3d; }

.form-status.is-error { color: #b42318; }

body[data-page="faq"] .card h2 {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: .01em;
  margin-top: 20px;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-view { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: flex-start; }
  .cookie-consent-actions { width: 100%; justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1 1 auto; }
  .brand-logo-img { width: 164px; }
  .cta-row { width: 100%; }
  .store-badge { flex: 1 1 100%; min-width: 0; }
  .store-badge-img { width: 100%; max-width: 260px; height: auto; }
  .hero h1 { font-size: clamp(24px, 6vw, 30px); }
  h1 { font-size: clamp(22px, 5.4vw, 28px); }
  h2 { font-size: clamp(19px, 4.8vw, 24px); }
  h3 { font-size: clamp(16px, 4vw, 20px); }
}




.help-content .help-note {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}

.help-content .faq-item + .faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.help-content .faq-item h3 {
  margin-bottom: 6px;
}

.catalog-intro {
  margin-bottom: 16px;
}

.catalog-disclaimer {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.catalog-state p {
  margin: 0;
}

.catalog-state.is-error {
  border-color: #f2bdb8;
}

.product-list-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.product-list-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.product-list-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.product-list-body {
  display: grid;
  gap: 10px;
}

.product-list-body h2 {
  margin: 0;
  font-size: 22px;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.product-list-body p {
  margin: 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff3eb;
  color: #7e483b;
  padding: 3px 10px;
  font-size: 13px;
}

.product-sku {
  font-family: "Consolas", "Courier New", monospace;
  color: var(--muted);
  font-size: 13px;
}

.product-list-price {
  margin: 0;
  color: var(--brand-strong);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

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

.product-main-image {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.product-info h1 {
  margin: 6px 0 10px;
}

.product-info > p {
  margin: 0 0 10px;
}

.product-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-share-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.qr-box {
  width: min(240px, 100%);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.qr-box img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  margin-top: 10px;
}

.product-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 861px) and (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .product-view { grid-template-columns: 1fr; gap: 14px; }
  .product-main-image { max-height: 260px; }
  .product-list-price { font-size: 32px; }
  .share-row .btn { width: 100%; }
  .qr-box { width: 100%; justify-items: flex-start; }
  .qr-box img { width: min(220px, 100%); height: auto; }
}
