/* Content pages: articles, news, QA, quotation and order.
   Used together with product-site.css; no Tailwind classes. */

.ps-lang {
  font-size: .78rem;
  font-weight: 800;
  color: var(--ps-muted);
  padding: 8px 4px;
  letter-spacing: .04em;
}
.ps-lang:hover { color: var(--ps-brand); }

/* Simple content page head */
.ps-page-head {
  padding: 48px 0 34px;
  background:
    radial-gradient(900px 320px at 18% 0%, rgba(230, 0, 111, .08), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--ps-soft) 100%);
  border-bottom: 1px solid var(--ps-border-2);
}
.ps-page-head h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  letter-spacing: -.04em;
}
.ps-page-head .ps-lead {
  max-width: 760px;
  margin: 0;
  color: var(--ps-body);
  font-size: 1.02rem;
  line-height: 1.8;
}
.ps-page-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--ps-muted);
  font-size: .8rem;
}
.ps-page-head-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Article */
.ps-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: start;
  padding: 38px 0 72px;
}
.ps-article { min-width: 0; }
.ps-article-head { margin-bottom: 26px; }
.ps-article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ps-brand);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ps-article-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}
.ps-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ps-muted);
  font-size: .82rem;
}
.ps-article-cover {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--ps-border-2);
  border-radius: var(--ps-radius);
  background: var(--ps-soft);
}
.ps-article-cover img { width: 100%; height: auto; }
.ps-article-body { max-width: none; }
.ps-article-body.ps-prose { max-width: none; }

/* Article prose: extends the shared .ps-prose */
.ps-prose { color: var(--ps-body); font-size: 1rem; line-height: 1.9; }
.ps-prose > p { margin: 0 0 1.15rem; }
.ps-prose h2 {
  margin: 2.2rem 0 .8rem;
  color: var(--ps-ink);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.35;
}
.ps-prose h3 {
  margin: 1.8rem 0 .6rem;
  color: var(--ps-ink);
  font-size: 1.18rem;
  line-height: 1.4;
}
.ps-prose h4 { margin: 1.4rem 0 .5rem; color: var(--ps-ink); font-size: 1.02rem; }
.ps-prose ul, .ps-prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.ps-prose li { margin-bottom: .4rem; }
.ps-prose strong { color: var(--ps-ink); }
.ps-prose a { color: var(--ps-brand); text-decoration: underline; text-underline-offset: 3px; }
.ps-prose a:hover { text-decoration-thickness: 2px; }
.ps-prose blockquote {
  margin: 1.5rem 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ps-brand);
  border-radius: 0 10px 10px 0;
  background: var(--ps-brand-soft);
  color: #6b3a50;
}
.ps-prose figure { margin: 1.6rem 0; }
.ps-prose figure img {
  width: 100%;
  border: 1px solid var(--ps-border-2);
  border-radius: 12px;
  background: var(--ps-soft);
}
.ps-prose figcaption {
  margin-top: 8px;
  color: var(--ps-muted);
  font-size: .8rem;
  text-align: center;
}
.ps-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--ps-border); }
.ps-prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--ps-soft);
  color: #8a2450;
  font-size: .9em;
}
.ps-prose pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #17171b;
  color: #f5edf1;
}
.ps-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.ps-prose table th, .ps-prose table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ps-border-2);
  text-align: left;
  vertical-align: top;
  font-size: .88rem;
  line-height: 1.65;
}
.ps-prose table th { background: #fff7fa; color: #6b4b59; font-weight: 850; }
.ps-prose table tr:last-child td { border-bottom: 0; }

/* Article sidebar */
.ps-aside { display: flex; flex-direction: column; gap: 16px; }
.ps-aside-card {
  padding: 18px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
}
.ps-aside .ps-aside-title,
.ps-aside-card .ps-aside-title {
  margin: 0 0 10px;
  color: var(--ps-ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ps-aside-card p { margin: 0; color: var(--ps-body); font-size: .86rem; line-height: 1.7; }
.ps-aside-meta { display: grid; gap: 8px; margin-top: 10px; color: var(--ps-muted); font-size: .8rem; }
.ps-aside-meta div { display: flex; justify-content: space-between; gap: 12px; }
.ps-aside-meta b { color: var(--ps-ink); font-weight: 700; }
.ps-aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--ps-brand);
  font-size: .84rem;
  font-weight: 800;
}

.ps-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ps-related-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease;
}
.ps-related-link:hover { transform: translateY(-2px); border-color: #f0b9d2; }
.ps-related-link strong { color: var(--ps-ink); font-size: .92rem; line-height: 1.5; }
.ps-related-link span { color: var(--ps-muted); font-size: .8rem; line-height: 1.6; }

.ps-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.ps-prev-next a, .ps-prev-next span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  font-size: .88rem;
  line-height: 1.6;
}
.ps-prev-next small { display: block; margin-bottom: 4px; color: var(--ps-muted); font-size: .72rem; }

/* News cards and listing */
.ps-news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
}
.ps-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ps-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.ps-news-card:hover {
  transform: translateY(-3px);
  border-color: #f0b9d2;
  box-shadow: var(--ps-shadow);
}
.ps-news-media { display: block; overflow: hidden; background: linear-gradient(135deg, #f7edf2, #f1e6ec); aspect-ratio: 16 / 9; }
.ps-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ps-news-card:hover .ps-news-media img { transform: scale(1.04); }
.ps-news-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.ps-news-date { margin-bottom: 7px; color: var(--ps-brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ps-news-title {
  margin: 0 0 8px;
  color: var(--ps-ink);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-news-card .ps-news-title { font-size: 1.05rem; line-height: 1.5; }
.ps-news-summary {
  margin: 0 0 14px;
  color: var(--ps-body);
  font-size: .86rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-news-more { margin-top: auto; color: var(--ps-brand); font-size: .84rem; font-weight: 800; }
.ps-news-hero { padding: 42px 0 30px; background: linear-gradient(180deg, #fff, var(--ps-soft)); border-bottom: 1px solid var(--ps-border-2); }

/* QA */
.ps-qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ps-qa-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  transition: border-color .18s ease, transform .18s ease;
}
.ps-qa-card:hover { transform: translateY(-2px); border-color: #f0b9d2; }
.ps-qa-card h3 { margin: 6px 0 8px; font-size: 1rem; line-height: 1.5; }
.ps-qa-card p { margin: 0; color: var(--ps-body); font-size: .86rem; line-height: 1.7; }
.ps-qa-category { color: var(--ps-brand); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ps-qa-list { border-top: 1px solid var(--ps-border); }
.ps-qa-item { border-bottom: 1px solid var(--ps-border); padding: 18px 0; }
.ps-qa-item summary {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
  color: var(--ps-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}
.ps-qa-item summary::-webkit-details-marker { display: none; }
.ps-qa-item summary::after { content: "+"; flex: none; color: var(--ps-brand); font-weight: 900; }
.ps-qa-item[open] summary::after { content: "–"; }
.ps-qa-item .ps-qa-a { margin: 12px 0 0; color: var(--ps-body); font-size: .92rem; line-height: 1.85; }
.ps-qa-item .ps-qa-a p { margin: 0 0 .8rem; }

/* Quotation and pricing tables */
.ps-quote-table-wrap, .ps-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: #fff;
}
.ps-quote-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.ps-quote-table th, .ps-quote-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ps-border-2);
  text-align: left;
  vertical-align: top;
  font-size: .86rem;
  line-height: 1.65;
}
.ps-quote-table th { background: var(--ps-brand); color: #fff; font-size: .78rem; font-weight: 800; }
.ps-quote-table tr:last-child td { border-bottom: 0; }
.ps-quote-table td:last-child, .ps-quote-table th:last-child { text-align: right; white-space: nowrap; }
.ps-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ps-plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
}
.ps-plan.ps-featured { border-color: var(--ps-brand); box-shadow: 0 18px 45px rgba(230, 0, 111, .1); }
.ps-plan-name { margin: 0 0 6px; color: var(--ps-ink); font-size: 1.05rem; font-weight: 850; }
.ps-plan-price { margin: 8px 0 4px; color: var(--ps-brand); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.ps-plan-price small { color: var(--ps-muted); font-size: .76rem; font-weight: 600; letter-spacing: 0; }
.ps-plan-list { margin: 16px 0 0; padding: 0; list-style: none; }
.ps-plan-list li { position: relative; padding: 6px 0 6px 20px; color: var(--ps-body); font-size: .86rem; line-height: 1.6; }
.ps-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ps-teal); font-weight: 900; }

/* Order form */
.ps-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding: 38px 0 72px; }
.ps-order-form { display: grid; gap: 18px; }
.ps-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-field > label { color: var(--ps-ink); font-size: .82rem; font-weight: 750; }
.ps-field .ps-hint { color: var(--ps-muted); font-size: .76rem; }
.ps-input, .ps-select, .ps-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ps-ink);
  font-size: .9rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ps-input:focus, .ps-select:focus, .ps-textarea:focus {
  border-color: var(--ps-brand);
  box-shadow: 0 0 0 3px rgba(230, 0, 111, .08);
}
.ps-textarea { min-height: 110px; resize: vertical; }
.ps-checkbox-row { display: flex; gap: 9px; align-items: flex-start; color: var(--ps-body); font-size: .84rem; line-height: 1.65; }
.ps-checkbox-row input { margin-top: 3px; }
.ps-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ps-form-status { font-size: .84rem; color: var(--ps-teal); }
.ps-form-status.is-error { color: #c0392b; }
.ps-order-summary { position: sticky; top: 90px; padding: 20px; border: 1px solid var(--ps-border); border-radius: var(--ps-radius); background: var(--ps-soft); }
.ps-order-summary h3 { margin: 0 0 12px; font-size: .92rem; }
.ps-order-summary dl { display: grid; gap: 8px; margin: 0; }
.ps-order-summary div { display: flex; justify-content: space-between; gap: 12px; color: var(--ps-body); font-size: .86rem; }
.ps-order-summary dt, .ps-order-summary dd { margin: 0; }
.ps-order-summary dd { color: var(--ps-ink); font-weight: 750; }
.ps-order-summary .ps-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ps-border); font-size: 1rem; }

.ps-empty {
  padding: 28px;
  border: 1px dashed var(--ps-border);
  border-radius: 12px;
  color: var(--ps-muted);
  text-align: center;
  font-size: .9rem;
}

/* Image preview */
.ps-image-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 16, .86);
}
.ps-image-modal[hidden] { display: none; }
.ps-image-modal img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  cursor: zoom-out;
}
.ps-image-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.ps-image-modal-close:hover { background: rgba(255, 255, 255, .26); }

@media (max-width: 1024px) {
  .ps-article-layout { grid-template-columns: minmax(0, 1fr); }
  .ps-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-order-layout { grid-template-columns: minmax(0, 1fr); }
  .ps-order-summary { position: static; }
  .ps-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-qa-grid { grid-template-columns: 1fr; }
  .ps-plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ps-page-head { padding: 34px 0 26px; }
  .ps-article-layout, .ps-order-layout { padding: 26px 0 52px; }
  .ps-aside { grid-template-columns: 1fr; }
  .ps-news-grid, .ps-related { grid-template-columns: 1fr; }
  .ps-prev-next { grid-template-columns: 1fr; }
  .ps-form-row { grid-template-columns: 1fr; }
  .ps-news-body { padding: 15px; }
  .ps-article-cover { border-radius: 10px; }
}