/* ============================================================
   ИПК «Маяк» — unified stylesheet
   Index:  procurement desk (full-screen, standalone)
   Other:  catalog, about, contacts (traditional site layout)
   ============================================================ */

/* ── Reset & shared tokens ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }

:root {
  /* Brand */
  --navy:    #0f2040;
  --navy-dp: #0a1830;
  --or:      #466575;   /* muted steel-blue brand accent */
  --paper:   #f5f7fa;
  --line:    #d8e0e9;
  --muted:   #5a687a;
  --white:   #ffffff;

  /* Procurement desk */
  --pd-ink:    #1e2735;
  --pd-paper:  #eeece4;
  --pd-line:   #b8b8ad;
  --pd-orange: #466575;
  --pd-navy:   #25313f;
  --mono: "SFMono-Regular", ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   PROCUREMENT DESK — index.html only
   ============================================================ */
.desk-page {
  background: var(--pd-paper);
  color: var(--pd-ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  min-height: 100dvh;
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 100;
  padding: 8px 12px; color: #fff; background: var(--pd-navy);
}

/* Shell: sidebar + main */
.pd-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100dvh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.pd-sidebar {
  background: var(--pd-navy);
  color: #e8e6de;
  display: flex;
  flex-direction: column;
  padding: 29px 28px 23px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.pd-mark {
  display: flex; gap: 10px; align-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
}
.pd-mark span {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  background: var(--pd-orange);
  clip-path: polygon(50% 0, 100% 29%, 100% 100%, 0 100%, 0 29%);
  font-weight: 800;
}
.pd-sidebar-rule {
  height: 1px; background: #66707b; margin: 38px 0 18px;
}
.pd-eyebrow,
.pd-tiny,
.pd-pane-title,
.pd-sidebar-foot { font: 500 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pd-eyebrow { margin: 0; color: #aab3b4; }
.pd-steps { margin-top: 56px; display: grid; gap: 22px; }
.pd-steps span {
  position: relative;
  font-size: 12px; opacity: .48;
  display: flex; gap: 11px; align-items: center;
}
.pd-steps i { font: 500 10px var(--mono); font-style: normal; }
.pd-steps .is-current { opacity: 1; color: #fff; }
.pd-steps .is-current::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--pd-orange); border-radius: 50%;
  position: absolute; left: -18px;
}

/* Sidebar nav links */
.pd-sidenav {
  margin-top: 36px; display: grid; gap: 12px;
  padding-top: 24px; border-top: 1px solid #66707b;
}
.pd-sidenav a {
  font: 500 11px var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: #aab3b4;
  transition: color .15s;
}
.pd-sidenav a:hover { color: #fff; }

.pd-sidebar-foot {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid #66707b;
  color: #aab3b4;
  display: flex; justify-content: space-between;
}

/* ── Main column ─────────────────────────────────────────── */
.pd-main {
  min-width: 0;
  display: flex; flex-direction: column;
}

.pd-header {
  padding: 30px 44px 26px;
  border-bottom: 1px solid var(--pd-line);
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 30px;
}
.pd-header h1 {
  font-size: clamp(27px, 3.4vw, 46px);
  line-height: 1.02; letter-spacing: -.02em;
  margin: 14px 0 0; text-transform: uppercase; font-weight: 800;
  color: var(--pd-ink);
  max-width: 15ch; overflow-wrap: anywhere;
}
.pd-header h1 em { color: var(--pd-orange); font-style: normal; }
.pd-header > div:first-child { min-width: 0; }
.pd-header-contact {
  text-align: right; display: grid; gap: 4px;
  padding-top: 7px; font-size: 11px; color: #677078;
  flex-shrink: 0;
}
.pd-header-contact a {
  color: var(--pd-ink);
  font: 700 14px var(--mono);
}

/* Secondary commercial-step label above the configurator */
.pd-section-label {
  padding: 18px 44px 0;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.pd-section-label .pd-tiny { color: var(--pd-orange); }
.pd-section-label p {
  margin: 0; max-width: 62ch;
  font-size: 13px; line-height: 1.5; color: #5a636d;
  overflow-wrap: anywhere;
}

/* ── Workspace (configurator form) ──────────────────────── */
.pd-workspace {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  flex: 1;
  min-width: 0;
}

/* Left: product cards */
.pd-product-pane {
  border-right: 1px solid var(--pd-line);
  padding: 22px 22px 22px 24px;
  min-width: 0;
}
.pd-pane-title {
  display: flex; justify-content: space-between;
  color: #697177; margin-bottom: 18px;
}
.pd-pane-title small { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.pd-products { display: grid; gap: 8px; }

.pd-product {
  min-height: 104px;
  text-align: left;
  border: 1px solid #c5c4ba;
  background: #f5f3ed;
  padding: 10px 12px 10px 10px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 10px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.pd-product:hover   { transform: translateX(4px); background: #fffdf5; }
.pd-product.selected { background: var(--pd-navy); color: #fff; border-color: var(--pd-navy); }

.pd-product-thumb {
  grid-row: 1 / -1;
  width: 54px; height: 82px;
  object-fit: cover; align-self: stretch;
  filter: saturate(.82);
  transition: filter .18s ease, transform .18s ease;
}
.pd-product:hover .pd-product-thumb,
.pd-product.selected .pd-product-thumb { filter: saturate(1); transform: scale(1.04); }

.pd-product-id { font: 500 10px var(--mono); color: #78828a; }
.pd-product.selected .pd-product-id { color: #b7c0c8; }

.pd-product-title {
  align-self: end;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pd-product strong {
  font-size: 13px; line-height: 1.2;
  overflow-wrap: anywhere;
  /* ensure full name is always visible */
  white-space: normal;
  display: block;
}
.pd-product-title small {
  font: 500 8px/1.25 var(--mono);
  color: #747c82;
}
.pd-product.selected .pd-product-title small { color: #b7c0c8; }
.pd-product b {
  grid-column: 2;
  align-self: end;
  font: 700 13px var(--mono);
  overflow-wrap: anywhere; min-width: 0;
}
.pd-product i {
  grid-column: 3;
  align-self: end;
  font: 500 9px var(--mono); font-style: normal;
  text-transform: uppercase;
  color: var(--pd-orange);
  white-space: nowrap;
}
/* Tone formula colours */
.pd-product.cobalt  b { color: #28717d; }
.pd-product.shellac b { color: #a55543; }
.pd-product.oxide   b { color: #5f7a2b; }
.pd-product.ysz     b { color: #5c7b54; }
.pd-product.bismuth b { color: #9a7a25; }
.pd-product.lithium-crystal b { color: #557687; }
.pd-product.lithium-solution b { color: #3e7782; }
.pd-product.selected b,
.pd-product.selected i { color: #fff; }

/* Right: detail pane (material field + workflow) */
.pd-detail-pane {
  background: #e4e5dd;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  min-height: 560px;
  min-width: 0;
}

.pd-material-field {
  position: relative; overflow: hidden;
  min-width: 0;
  padding: 28px 22px;
  background: #d9ded8;
  border-right: 1px solid var(--pd-line);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: background .3s ease;
}
.pd-material-field.cobalt  { background: #cedde1; }
.pd-material-field.shellac { background: #e7cbc0; }
.pd-material-field.oxide   { background: #d9ddbd; }
.pd-material-field.ysz     { background: #d1dbcb; }
.pd-material-field.bismuth { background: #e5dfbd; }
.pd-material-field.lithium-crystal { background: #d5e0e4; }
.pd-material-field.lithium-solution { background: #c9dde0; }

.pd-orbit {
  position: absolute;
  border: 1px solid rgba(30,39,53,.45); border-radius: 50%;
  width: 255px; height: 255px;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pd-orbit-b { width: 124px; height: 124px; border-color: var(--pd-orange); }

.pd-material-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34; mix-blend-mode: multiply;
  filter: saturate(.84) contrast(1.05);
  transition: opacity .25s ease, transform .35s ease;
}
.pd-material-field:hover .pd-material-image { opacity: .47; transform: scale(1.025); }

.pd-formula {
  margin: auto 0 8px;
  font-size: clamp(42px, 5.5vw, 86px);
  line-height: 1; letter-spacing: -.05em;
  font-weight: 800; position: relative;
  overflow-wrap: anywhere;
}
.pd-material-field > p { font-size: 13px; margin: 0; position: relative; }
.pd-cas { font: 500 10px var(--mono); letter-spacing: .08em; margin-top: 8px; position: relative; }

/* Workflow panels */
.pd-brief,
.pd-contact-step,
.pd-sent {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.pd-brief-head { display: flex; justify-content: space-between; gap: 14px; min-width: 0; }
.pd-brief-head > div { min-width: 0; }
.pd-brief h2,
.pd-contact-step h2,
.pd-sent h2 {
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: .98; text-transform: uppercase;
  letter-spacing: -.03em; margin: 10px 0 0; font-weight: 800;
  overflow-wrap: anywhere;
}
.pd-contact-step h2 {
  font-size: clamp(22px, 2.35vw, 34px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.pd-status {
  align-self: flex-start;
  font: 500 9px var(--mono); letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 8px; background: #bdd0c1; white-space: nowrap;
}
.pd-specs {
  display: grid; margin: 20px 0 18px;
  border-top: 1px solid var(--pd-line);
}
.pd-specs div {
  border-bottom: 1px solid var(--pd-line);
  padding: 9px 0;
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 12px;
}
.pd-specs span { color: #697177; }
.pd-specs b { font-weight: 700; text-align: right; }

.pd-volumes > span { color: #687178; display: block; }
.pd-volumes div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pd-volumes button {
  font: 500 11px var(--mono);
  border: 1px solid var(--pd-line);
  padding: 8px 10px;
  background: transparent; cursor: pointer;
}
.pd-volumes button.active {
  background: var(--pd-orange); border-color: var(--pd-orange); color: #fff;
}

.pd-usage { margin: 18px 0 0; display: flex; flex-direction: column; gap: 7px; }
.pd-usage label { color: #687178; }
.pd-usage textarea {
  min-height: 68px; padding: 10px;
  border: 1px solid var(--pd-line);
  background: #fbfaf5; color: var(--pd-ink);
  resize: vertical; font: 14px/1.5 Arial, sans-serif;
}

.pd-continue {
  margin-top: auto; width: 100%;
  border: 0; background: var(--pd-navy); color: #fff !important;
  -webkit-text-fill-color: #fff;
  cursor: pointer; padding: 14px 16px;
  text-align: left;
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: transform .18s ease, background .18s ease;
}
.pd-continue:hover { background: var(--pd-orange); transform: translateY(-2px); }
.pd-continue:disabled,
.form-panel .button:disabled { cursor: wait; opacity: .72; transform: none; }
.pd-continue span:last-child { font-size: 18px; line-height: 1; }
.pd-brief .pd-continue { margin-top: 16px; }

.pd-back {
  align-self: flex-start;
  background: transparent; border: 1px solid var(--pd-line);
  color: var(--pd-ink); padding: 7px 10px;
  cursor: pointer; font: 500 10px var(--mono);
  text-transform: uppercase; letter-spacing: .05em;
}
.pd-back:hover { border-color: var(--pd-orange); color: var(--pd-orange); }

.pd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 20px 0 6px; }
.pd-fld { display: flex; flex-direction: column; gap: 6px; }
.pd-fld-full { grid-column: 1 / -1; }
.pd-fld label { font-size: 13px; font-weight: 700; }
.pd-fld input {
  padding: 10px; border: 1px solid var(--pd-line);
  background: #fbfaf5; color: var(--pd-ink);
  font: 15px/1.4 Arial, sans-serif;
}
.pd-fld input:focus { outline: 2px solid var(--pd-orange); outline-offset: -1px; }
.pd-error {
  display: block; margin: 6px 0 0;
  padding: 9px 12px; color: #7a1f0c;
  background: #f6ddd4; border-left: 3px solid var(--pd-orange);
  font-size: 13px;
}
.pd-error a,
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pd-contact-step .pd-continue { margin-top: 14px; }
.pd-note { margin: 11px 0 0; color: #687178; font-size: 12px; line-height: 1.55; }

/* Confirmation / sent */
.pd-sent {
  justify-content: center;
  background: var(--pd-navy); color: #e8e6de;
}
.pd-check {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pd-orange); color: #fff; font-size: 22px;
  margin-bottom: 16px;
}
.pd-sent h2 { margin: 12px 0; color: #fff; }
.pd-sent p {
  font-size: 13px; line-height: 1.6;
  color: #c3cac8; max-width: 320px; margin: 0 0 10px;
}
.pd-sent-hint a { color: #b2cfdf; text-decoration: underline; }
.pd-sent-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.pd-mailto {
  background: var(--pd-orange); color: #fff;
  padding: 11px 16px;
  font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em;
}
.pd-mailto:hover { background: #a54400; }
.pd-sent button {
  background: transparent; border: 1px solid #7e8790; color: #fff;
  padding: 11px 14px; cursor: pointer;
  font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em;
}
.pd-sent button:hover { border-color: #b2cfdf; color: #b2cfdf; }

/* Bottom status bar */
.pd-footer {
  border-top: 1px solid var(--pd-line);
  padding: 13px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  color: #667078;
  font: 500 9px var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.pd-footer-links { display: flex; gap: 18px; }
.pd-footer-links a { color: var(--pd-ink); }
.pd-footer-links a:hover { color: var(--pd-orange); }

/* ── Responsive: desk ────────────────────────────────────── */
@media (max-width: 960px) {
  .pd-shell { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 20px; gap: 12px 20px; }
  .pd-sidebar-rule { display: none; }
  .pd-eyebrow { display: none; }
  .pd-steps { margin-top: 0; flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
  .pd-steps span { font-size: 11px; }
  .pd-sidenav { margin-top: 0; border-top: 0; padding-top: 0; flex-direction: row; gap: 14px; }
  .pd-sidebar-foot { display: none; }
}
/* At intermediate widths, keep the contact question readable: the back button
   moves below the heading instead of squeezing words into a narrow column. */
@media (min-width: 761px) and (max-width: 1180px) {
  .pd-contact-step .pd-brief-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pd-contact-step .pd-brief-head > div { width: 100%; }
  .pd-contact-step h2 { font-size: clamp(22px, 2.8vw, 30px); }
}
@media (max-width: 760px) {
  .pd-sidebar { padding: 12px 16px; }
  .pd-mark b { display: none; }
  .pd-steps { display: none; }
  .pd-header { padding: 20px 16px; }
  .pd-header-contact { display: none; }
  .pd-section-label { padding: 14px 16px 0; }
  .pd-workspace { grid-template-columns: 1fr; }
  .pd-product-pane { border-right: 0; padding: 16px; }
  .pd-products { grid-template-columns: 1fr 1fr; gap: 7px; }
  .pd-product {
    min-height: 120px; padding: 8px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 7px;
  }
  .pd-product-thumb { width: 42px; height: 96px; }
  .pd-product strong { font-size: 11px; line-height: 1.2; }
  .pd-product b { grid-column: 2; font-size: 11px; white-space: normal; }
  .pd-product i { grid-column: 2; text-align: left; font-size: 8px; }
  .pd-detail-pane { grid-template-columns: 1fr; min-height: 0; }
  .pd-material-field { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--pd-line); }
  .pd-formula { font-size: clamp(38px, 10vw, 62px); }
  .pd-brief, .pd-contact-step, .pd-sent { padding: 22px 16px; }
  .pd-fields { grid-template-columns: 1fr; }
  .pd-footer { padding: 12px 16px; flex-wrap: wrap; }
  .pd-footer-links { gap: 12px; }
}

/* ============================================================
   SUPPORTING PAGES — catalog.html, about.html, contacts.html
   ============================================================ */
.site-page {
  background: var(--white);
  color: var(--navy);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}
.site-page a { color: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* Shared skip link for supporting pages */
.site-page .skip-link { position: absolute; left: -999px; }
.site-page .skip-link:focus {
  left: 12px; top: 12px; z-index: 10;
  padding: 8px 12px; color: #fff; background: var(--navy);
}

/* ── Site header ─────────────────────────────────────────── */
.site-header { color: #fff; background: var(--navy); border-bottom: 4px solid var(--or); }
.header-top { display: flex; align-items: center; min-height: 83px; gap: 32px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto; font-size: 23px; font-weight: 800; letter-spacing: .08em;
}
.logo-mark {
  display: grid; width: 29px; height: 29px; place-items: center;
  color: var(--or); border: 2px solid var(--or); font-size: 15px; line-height: 1;
}
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
.main-nav a { border-bottom: 2px solid transparent; padding: 8px 0; }
.main-nav a:hover, .main-nav a:focus { border-color: var(--or); }
.header-contact { color: #fff; white-space: nowrap; font-size: 15px; font-weight: 700; }
.menu-toggle { display: none; padding: 6px 0; color: #fff; border: 0; background: transparent; font-weight: 700; cursor: pointer; }

/* ── Buttons ─────────────────────────────────────────────── */
.button {
  display: inline-block; padding: 13px 20px;
  color: #fff; background: var(--or); border: 1px solid var(--or);
  cursor: pointer; font-weight: 700; text-align: center;
}
.button:hover, .button:focus { color: var(--or); background: #fff; }
.button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-outline:hover, .button-outline:focus { color: #fff; background: var(--navy); }
.button-small { padding: 9px 13px; font-size: 14px; }

/* ── Page banner ─────────────────────────────────────────── */
.page-banner { padding: 62px 0 57px; color: #fff; background: var(--navy-dp); }
.page-banner h1 { max-width: 800px; font-size: clamp(38px, 5vw, 56px); }
.page-banner p { max-width: 670px; margin: 17px 0 0; color: #d5dfec; font-size: 19px; }
.eyebrow { margin: 0 0 15px; color: #ffb37a; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-page .eyebrow { color: var(--or); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 74px 0; }
.section-muted { background: var(--paper); }
.section-head { max-width: 710px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(29px, 3.5vw, 43px); letter-spacing: -.025em; }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.55; }
.accent-line { width: 54px; height: 4px; margin: 20px 0; background: var(--or); }
.text-link { display: inline-flex; gap: 8px; margin-top: 26px; color: var(--or); font-weight: 800; }
.formula { color: var(--or); font-size: 23px; font-weight: 800; }

/* ── Split / grid layouts ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-height: 287px; padding: 25px; border: 1px solid var(--line); background: #fff; }
.product-card h3 { margin-top: 22px; font-size: 21px; }
.product-card p { color: var(--muted); margin: 13px 0 25px; }
.product-card .button { margin-top: auto; align-self: flex-start; }

/* ── Accordion ───────────────────────────────────────────── */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-button {
  display: flex; width: 100%; justify-content: space-between;
  padding: 18px 0; color: var(--navy); border: 0; background: #fff;
  cursor: pointer; font-weight: 800; text-align: left;
}
.accordion-button span { color: var(--or); font-size: 21px; }
.accordion-panel { display: none; padding: 0 0 18px; color: var(--muted); }
.accordion-item.is-open .accordion-panel { display: block; }

/* ── Catalog ─────────────────────────────────────────────── */
.catalog-list { display: grid; gap: 13px; }
.catalog-item { border: 1px solid var(--line); background: #fff; }
.catalog-trigger {
  display: grid; width: 100%;
  grid-template-columns: 130px 1fr auto;
  align-items: center; gap: 20px;
  padding: 21px 24px; color: var(--navy); border: 0; background: #fff;
  cursor: pointer; text-align: left;
}
.catalog-trigger.has-media { grid-template-columns: 96px 110px 1fr auto; }
.catalog-media { width: 96px; height: 72px; overflow: hidden; border: 1px solid var(--line); }
.catalog-media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-trigger h2 { font-size: 20px; text-align: left; }
.catalog-trigger .formula { font-size: 19px; }
.catalog-detail {
  display: none; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 0 24px 25px 24px; color: var(--muted);
}
.catalog-item.is-open .catalog-detail { display: grid; }
.catalog-item.is-open .catalog-trigger { padding-bottom: 14px; }
.catalog-item.is-open .catalog-trigger > span:last-child { display: inline-block; transform: rotate(45deg); }
.catalog-item.is-open .catalog-button > span:last-child { transform: rotate(45deg); }
.detail-title { color: var(--navy); font-weight: 800; }

/* ── Contact page ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-list { margin: 25px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ── Forms (contacts page) ───────────────────────────────── */
.form-panel { padding: 38px; color: #fff; background: var(--navy); }
.form-panel h2 { font-size: 34px; }
.form-panel > p { margin: 12px 0 27px; color: #d4dfec; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px; color: var(--navy); border: 1px solid #bac6d4; border-radius: 0; background: #fff; }
textarea { min-height: 112px; resize: vertical; }
.form-panel .button { margin-top: 21px; }
.form-note { margin: 14px 0 0; color: #bdcad9; font-size: 12px; }
.form-status { font-size: 13px; min-height: 1.2em; }
.form-status.is-success { color: #bde8c6; }
.form-status.is-error { color: #ffd0c4; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin-bottom: 20px; padding: 13px 15px; color: #16451b; border-left: 4px solid #2c7c35; background: #edf8ee; }

/* ── Analytics consent ────────────────────────────────────── */
.mayak-cookie-consent {
  position: fixed; right: 18px; bottom: 18px; z-index: 1000;
  width: min(400px, calc(100vw - 36px));
  box-sizing: border-box; padding: 18px;
  background: #25313f; color: #f7f5ed;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 34px rgba(18, 28, 38, .24);
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}
.mayak-cookie-consent strong {
  display: block; margin-bottom: 5px;
  font: 600 13px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.mayak-cookie-consent p { margin: 0; color: #d6dddc; }
.mayak-cookie-consent a { color: #fff; font-weight: 700; text-underline-offset: 2px; }
.mayak-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mayak-cookie-actions button,
.mayak-cookie-settings {
  min-height: 38px; border: 1px solid #aeb9b9; cursor: pointer;
  padding: 9px 11px; font: 600 11px var(--mono);
  letter-spacing: .03em; text-transform: uppercase;
}
.mayak-cookie-reject { color: #f7f5ed; background: transparent; }
.mayak-cookie-accept { color: #fff; border-color: var(--pd-orange) !important; background: var(--pd-orange); }
.mayak-cookie-actions button:hover,
.mayak-cookie-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mayak-cookie-settings {
  position: static; display: block; margin: 12px 18px 12px auto;
  min-height: 28px; padding: 5px 8px;
  color: #53606a; border-color: #c4c4bc; background: #eeece4;
  font-size: 9px; opacity: .86;
}
.mayak-cookie-settings:hover,
.mayak-cookie-settings:focus-visible { color: var(--pd-ink); opacity: 1; outline: 2px solid var(--pd-orange); outline-offset: 2px; }
@media (max-width: 500px) {
  .mayak-cookie-consent { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 16px; }
  .mayak-cookie-actions button { flex: 1 1 145px; }
}

.footer-policy { margin-left: 10px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.privacy-content { max-width: 820px; }
.privacy-content section + section { margin-top: 34px; }
.privacy-content h2 { margin-bottom: 10px; }
.privacy-content p,
.privacy-content li { color: #4e5d69; line-height: 1.75; }
.privacy-content ul { padding-left: 22px; }
.privacy-meta { margin-top: 36px; padding-top: 18px; border-top: 1px solid #c7c5bc; font-size: 13px; }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer { padding: 48px 0 25px; color: #d6deea; background: var(--navy-dp); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-title { margin: 0 0 11px; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0; font-size: 14px; }
.copyright { margin-top: 39px !important; padding-top: 18px; border-top: 1px solid #31415e; color: #94a5bc; font-size: 13px !important; }

/* ── Responsive: supporting pages ───────────────────────── */
@media (max-width: 900px) {
  .header-top { flex-wrap: wrap; padding: 17px 0; gap: 14px 24px; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .main-nav { display: none; order: 3; width: 100%; margin: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
  .site-header.menu-open .main-nav { display: flex; }
  .header-contact { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { gap: 35px; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 30px, 1160px); }
  .section { padding: 53px 0; }
  .product-grid, .split, .contact-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .form-panel { padding: 26px 20px; }
  .form-field.full { grid-column: auto; }
  .catalog-trigger { grid-template-columns: 72px 1fr auto; gap: 12px; padding: 18px 15px; }
  .catalog-trigger.has-media { grid-template-columns: 64px 1fr auto; }
  .catalog-media { width: 64px; height: 52px; }
  .catalog-trigger h2 { font-size: 17px; }
  .catalog-detail { grid-template-columns: 1fr; gap: 16px; padding: 0 15px 20px; }
}

/* Dossier accent: catalog page background matches desk paper */
.dossier { background: #eeece4; }
.dossier .catalog-item { background: #fbfaf5; }
/* ============================================================
   CONTENT PAGES (Catalog, About, Contacts, Products)
   ============================================================ */
.pd-content-pane {
  padding: 38px 44px;
  background: var(--pd-paper);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pd-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.pd-text-block {
  font-size: 14px; line-height: 1.6; color: var(--pd-navy);
  max-width: 65ch;
}
.pd-text-block h2 {
  font-size: 24px; font-weight: 800; margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.02em;
}
.pd-text-block h2:not(:first-child) { margin-top: 30px; }
.pd-text-block p { margin: 0 0 16px; }
.pd-text-block ul { padding-left: 20px; margin: 0 0 16px; }
.pd-text-block a { color: var(--pd-orange); font-weight: 700; text-decoration: none; }
.pd-text-block a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Contact form */
.pd-contact-form-pane {
  background: var(--pd-navy);
  color: #fff;
  padding: 30px;
}
.pd-contact-form-pane h2 {
  font-size: 24px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase;
}
.pd-contact-form-pane label { font-size: 13px; font-weight: 700; color: #fff; }
.pd-contact-form-pane select {
  padding: 10px; border: 1px solid var(--pd-line); background: #fbfaf5; font: 15px/1.4 Arial, sans-serif;
}
.form-status { font-size: 13px; min-height: 1.2em; margin: 10px 0 0; }
.form-status.is-success { color: #bde8c6; }
.form-status.is-error { color: #ffd0c4; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Catalog */
.pd-catalog-groups {
  display: grid;
  gap: 44px;
}
.pd-catalog-group {
  min-width: 0;
}
.pd-catalog-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pd-line);
}
.pd-catalog-group-head > span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--pd-orange);
}
.pd-catalog-group-head h2 {
  margin: 0;
  color: var(--pd-ink);
  font: 700 clamp(15px, 2vw, 18px)/1.2 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.pd-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pd-catalog-card {
  display: flex; flex-direction: column;
  border: 1px solid #c5c4ba; background: #f5f3ed;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  overflow: hidden; text-decoration: none; color: inherit;
}
.pd-catalog-card:hover { transform: translateY(-4px); background: #fffdf5; border-color: var(--pd-orange); }
.pd-catalog-card img { width: 100%; height: 160px; object-fit: cover; filter: saturate(.82); border-bottom: 1px solid #c5c4ba; transition: filter .18s ease; }
.pd-catalog-card:hover img { filter: saturate(1); }
.pd-catalog-card-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pd-catalog-card-info h2,
.pd-catalog-card-info h3 { font-size: 18px; font-weight: 800; margin: 8px 0; text-transform: uppercase; color: var(--pd-ink); }
.pd-card-standard { display: block; margin: -3px 0 9px; font: 500 10px/1.35 var(--mono); color: #687178; }
.pd-catalog-card-info p { margin: auto 0 0; font-size: 13px; color: #687178; }
.pd-catalog-card-info .pd-formula { font: 700 16px var(--mono); margin-bottom: 12px; }
.pd-catalog-card.zircon .pd-formula { color: var(--pd-orange); }
.pd-catalog-card.cobalt .pd-formula { color: #28717d; }
.pd-catalog-card.shellac .pd-formula { color: #a55543; }
.pd-catalog-card.ysz .pd-formula { color: #5c7b54; }
.pd-catalog-card.oxide .pd-formula { color: #5f7a2b; }
.pd-catalog-card.bismuth .pd-formula { color: #9a7a25; }
.pd-catalog-card.lithium-crystal .pd-formula { color: #557687; }
.pd-catalog-card.lithium-solution .pd-formula { color: #3e7782; }

/* Product detail link in desk */
.pd-product:focus-visible { outline: 2px solid var(--pd-orange); outline-offset: 2px; }
.pd-selected-product-link {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pd-orange);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform .15s;
}
.pd-selected-product-link:hover,
.pd-selected-product-link:focus-visible { transform: translateX(3px); }

/* Products detail page */
.pd-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 30px;
  border-bottom: 1px solid var(--pd-line);
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  color: #687178;
}
.pd-breadcrumbs a {
  color: var(--pd-ink);
  text-decoration: none;
}
.pd-breadcrumbs a:hover,
.pd-breadcrumbs a:focus-visible { color: var(--pd-orange); }

.pd-product-detail {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  flex: 1;
  min-width: 0;
}
.pd-product-image-pane {
  position: relative; overflow: hidden;
  background: #d9ded8;
  border-right: 1px solid var(--pd-line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px;
}
.pd-product-image-pane.zircon { background: #d9ded8; }
.pd-product-image-pane.cobalt { background: #cedde1; }
.pd-product-image-pane.shellac { background: #e7cbc0; }
.pd-product-image-pane.ysz { background: #d1dbcb; }
.pd-product-image-pane.oxide { background: #d9ddbd; }
.pd-product-image-pane.bismuth { background: #e5dfbd; }
.pd-product-image-pane.lithium-crystal { background: #d5e0e4; }
.pd-product-image-pane.lithium-solution { background: #c9dde0; }
.pd-product-image-pane img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
  filter: saturate(.96) contrast(1.04);
}
.pd-image-disclosure {
  position: absolute; bottom: 16px; left: 16px;
  font: 500 9px var(--mono); color: rgba(30,39,53,.8);
  text-transform: uppercase; letter-spacing: .05em;
  z-index: 2;
}
.pd-product-info-pane {
  padding: 40px 44px;
  background: #e4e5dd;
  display: flex; flex-direction: column;
}
.pd-specs-large {
  display: flex; flex-wrap: wrap; gap: 40px;
  padding-bottom: 30px; border-bottom: 1px solid var(--pd-line);
  margin-bottom: 30px;
}
.pd-spec-item { display: flex; flex-direction: column; gap: 8px; }
.pd-spec-item b { font: 700 16px var(--mono); color: var(--pd-ink); }
.pd-related-products { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--pd-line); }
.pd-related-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.pd-related-links a {
  border: 1px solid var(--pd-line); padding: 8px 12px;
  font: 500 11px var(--mono); text-transform: uppercase; text-decoration: none;
  color: var(--pd-ink); transition: background .18s, color .18s;
}
.pd-related-links a:hover { background: var(--pd-navy); color: #fff; }

@media (max-width: 960px) {
  .pd-breadcrumbs { padding: 12px 16px; }
  .pd-product-detail { grid-template-columns: 1fr; }
  .pd-product-image-pane { min-height: 280px; border-right: none; border-bottom: 1px solid var(--pd-line); }
  .pd-product-info-pane { padding: 24px 16px; }
  .pd-specs-large { gap: 20px; }
  .pd-content-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-content-pane { padding: 24px 16px; }
}

/* ── Typography wrapping safeguards ─────────────────────────
   Russian words wrap only at spaces; compound words use
   non-breaking hyphens in content; identifiers stay intact. */
.pd-shell { hyphens: none; }
.pd-header h1 {
  max-width: 22ch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.pd-brief h2,
.pd-contact-step h2,
.pd-sent h2,
.pd-contact-form h2,
.pd-text-block h2,
.pd-catalog-group-head h2,
.pd-catalog-card h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.pd-product strong {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.pd-product b,
.pd-formula {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.pd-header-contact a,
.pd-shell a[href^="tel:"],
.pd-product-id,
.pd-tiny,
.pd-nowrap {
  white-space: nowrap;
}
.pd-header-contact a,
.pd-shell a[href^="tel:"],
.pd-product-id,
.pd-nowrap,
.pd-specs b,
.pd-spec-item b {
  font-variant-numeric: tabular-nums;
}
.pd-specs b,
.pd-spec-item b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.pd-specs a[href^="mailto:"],
.pd-text-block a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 760px) {
  .pd-header h1 { max-width: 100%; }
}
.pd-brand-caption { white-space: normal; overflow-wrap: anywhere; }
.pd-caption-short { display: none; }
.pd-main:has(.pd-product-detail) > .pd-header h1 { font-size: clamp(24px, 3.2vw, 42px); }
.pd-product strong { font-size: 12px; }
.pd-product-title small { font-size: 10px; line-height: 1.4; color: #525e68; overflow-wrap: anywhere; }
.pd-catalog-card-info h3 { font-size: 16px; }
.pd-card-standard { font-size: 12px; color: #525e68; }
.pd-spec-item.pd-standard b { font-size: 18px; overflow-wrap: anywhere; }
.pd-spec-item { min-width: 0; }
.pd-product { grid-template-rows: 1fr auto auto; }
.pd-product-title { grid-column: 2 / -1; grid-row: 1; align-self: center; }
.pd-product b { grid-column: 2 / -1; grid-row: 2; white-space: normal; overflow-wrap: anywhere; }
.pd-product i { grid-column: 2 / -1; grid-row: 3; }
.pd-product.selected .pd-product-title small { color: #cbd3da; }
@media (max-width: 760px) {
  .pd-product strong { font-size: 11px; }
}
@media (max-width: 760px) {
  .pd-caption-full { display: none; }
  .pd-caption-short { display: inline; }
}

