/*
Theme Name: OST Titan Catalog
Theme URI: https://osttitan.ru/
Description: Дочерняя тема для сайта-каталога медицинской продукции OST Titan.
Author: OST Titan
Template: astra
Version: 1.0.0
Text Domain: osttitan-catalog
*/

:root {
  --ost-bg: #f6f8fb;
  --ost-surface: #ffffff;
  --ost-surface-soft: #eef3f8;
  --ost-line: #d9e4ef;
  --ost-ink: #163247;
  --ost-ink-soft: #51677a;
  --ost-accent: #008db1;
  --ost-accent-dark: #006f8d;
  --ost-highlight: #0e5f80;
  --ost-shadow: 0 18px 40px rgba(8, 38, 63, 0.08);
}

body {
  background: linear-gradient(180deg, #f7fafc 0%, #edf4f9 100%);
  color: var(--ost-ink);
}

.page .entry-header {
  display: none;
}

.ost-breadcrumbs {
  padding: 12px 0 0;
}

.ost-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ost-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ost-ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ost-breadcrumbs-item:not(:last-child)::after {
  content: "/";
  color: rgba(81, 103, 122, 0.55);
}

.ost-breadcrumbs-item a {
  color: var(--ost-accent-dark);
  text-decoration: none;
}

.ost-breadcrumbs-item span {
  color: var(--ost-ink);
}

.ost-sibling-nav {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--ost-line);
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 30px rgba(8, 38, 63, 0.04);
}

.ost-sibling-title {
  margin: 0;
  color: var(--ost-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ost-sibling-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ost-shell {
  padding: 36px 0 84px;
}

.ost-container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.ost-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 0;
  border: 1px solid var(--ost-line);
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(238,246,251,0.96));
  box-shadow: var(--ost-shadow);
  border-radius: 28px;
  overflow: hidden;
}

.ost-hero-copy {
  padding: 48px;
  border-right: 1px solid var(--ost-line);
}

.ost-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ost-accent-dark);
}

.ost-title,
.ost-section-title,
.ost-card h3,
.ost-side-card h3 {
  margin: 0;
  color: var(--ost-ink);
  line-height: 1;
  letter-spacing: -0.035em;
}

.ost-title {
  margin-top: 20px;
  font-size: clamp(42px, 6vw, 86px);
}

.ost-title span,
.ost-section-title span {
  color: var(--ost-accent);
}

.ost-lead,
.ost-section-copy,
.ost-card p,
.ost-side-card p,
.ost-list li,
.ost-table td,
.ost-table th {
  color: var(--ost-ink-soft);
  line-height: 1.75;
}

.ost-lead {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 18px;
}

.ost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.ost-btn:hover {
  transform: translateY(-2px);
}

.ost-btn-primary {
  background: var(--ost-ink);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(15, 42, 62, 0.14);
}

.ost-btn-primary:hover,
.ost-btn-primary:focus,
.ost-btn-primary:visited {
  color: #fff !important;
}

.ost-btn-secondary {
  background: rgba(0, 141, 177, 0.08);
  color: var(--ost-ink);
  border-color: rgba(0, 111, 141, 0.18);
}

.ost-btn-secondary:hover,
.ost-btn-secondary:focus {
  background: rgba(0, 141, 177, 0.14);
  border-color: rgba(0, 111, 141, 0.28);
}

.ost-hero-side {
  display: grid;
}

.ost-side-card {
  padding: 28px 30px;
  border-bottom: 1px solid var(--ost-line);
  background: rgba(240, 247, 252, 0.85);
}

.ost-side-card:last-child {
  border-bottom: 0;
}

.ost-side-card h3 {
  margin-top: 12px;
  font-size: clamp(22px, 2.8vw, 30px);
}

.ost-side-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.ost-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ost-line);
}

.ost-metrics strong {
  display: block;
  color: var(--ost-ink);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 10px;
}

.ost-section {
  padding: 74px 0 0;
}

.ost-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.ost-section-title {
  margin-top: 14px;
  font-size: clamp(34px, 4.6vw, 66px);
}

.ost-section-copy {
  margin: 20px 0 0;
  font-size: 17px;
}

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

.ost-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ost-visual-card {
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(8, 38, 63, 0.05);
  border-radius: 24px;
  overflow: hidden;
}

.ost-visual-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(238,246,251,0.9), rgba(255,255,255,0.96));
  border-bottom: 1px solid var(--ost-line);
}

.ost-visual-media img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
}

.ost-visual-copy {
  padding: 18px 20px 20px;
}

.ost-visual-copy strong {
  display: block;
  color: var(--ost-ink);
  font-size: 18px;
  line-height: 1.2;
}

.ost-visual-copy span {
  display: block;
  margin-top: 10px;
  color: var(--ost-ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.ost-card {
  padding: 30px 28px;
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 16px 34px rgba(8, 38, 63, 0.05);
  border-radius: 24px;
}

.ost-card h3 {
  margin-top: 4px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.ost-card p {
  margin: 14px 0 0;
  font-size: 15px;
}

.ost-card .ost-btn,
.ost-note-box .ost-btn {
  margin-top: 18px;
}

.ost-card-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ost-line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ost-accent-dark);
}

.ost-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ost-list li {
  position: relative;
  padding-left: 18px;
}

.ost-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--ost-accent);
}

.ost-accent-band {
  margin-top: 74px;
  border: 1px solid rgba(0, 111, 141, 0.14);
  background: linear-gradient(135deg, rgba(0,141,177,0.08), rgba(14,95,128,0.05));
  border-radius: 28px;
}

.ost-accent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.ost-accent-box {
  padding: 24px;
  border: 1px solid rgba(0, 111, 141, 0.16);
  background: rgba(255,255,255,0.72);
  border-radius: 22px;
}

.ost-accent-box strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--ost-ink);
  letter-spacing: -0.03em;
}

.ost-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.78);
  border-radius: 22px;
}

.ost-table {
  width: 100%;
  border-collapse: collapse;
}

.ost-table th,
.ost-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ost-line);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.ost-table th {
  color: var(--ost-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(238, 246, 251, 0.9);
}

.ost-page-head {
  padding: 24px 0 8px;
}

.ost-page-head h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ost-page-body {
  display: grid;
  gap: 22px;
  padding: 18px 0 60px;
}

.ost-page-body .ost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ost-page-body h2 {
  margin: 10px 0 0;
  color: var(--ost-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ost-page-body h3 {
  color: var(--ost-ink);
}

.ost-page-body a,
.ost-accent-box a,
.ost-note-box a {
  color: var(--ost-accent-dark);
  text-decoration: none;
}

.ost-page-body a:hover,
.ost-accent-box a:hover,
.ost-note-box a:hover {
  text-decoration: underline;
}

.ost-note-box {
  padding: 24px;
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.78);
  border-radius: 22px;
}

.ost-page-head .ost-eyebrow {
  margin-bottom: 6px;
}

.ost-page-head,
.ost-page-body {
  max-width: 1240px;
}

.ost-page-body > .ost-grid,
.ost-page-body > .ost-visual-grid {
  align-items: stretch;
}

.ost-page-body > .ost-grid .ost-card,
.ost-grid > .ost-card,
.ost-visual-grid > .ost-visual-card {
  height: 100%;
}

.ost-page-body > .ost-grid .ost-card,
.ost-grid > .ost-card {
  display: flex;
  flex-direction: column;
}

.ost-page-body > .ost-grid .ost-card .ost-btn,
.ost-grid > .ost-card .ost-btn {
  margin-top: auto;
}

.ost-page-body > .ost-grid .ost-card .ost-card-note,
.ost-grid > .ost-card .ost-card-note {
  margin-top: auto;
}

.ost-page-body > .ost-grid .ost-card .ost-btn + .ost-card-note,
.ost-grid > .ost-card .ost-btn + .ost-card-note {
  margin-top: 16px;
}

.ost-note-box {
  box-shadow: 0 12px 26px rgba(8, 38, 63, 0.04);
}

.ost-note-box p:last-child,
.ost-card p:last-child,
.ost-visual-copy span:last-child {
  margin-bottom: 0;
}

.ost-card-note {
  color: rgba(22, 50, 71, 0.72);
  letter-spacing: 0.08em;
}

.ost-page-body > h2 {
  padding-top: 10px;
  border-top: 1px solid rgba(217, 228, 239, 0.9);
}

.ost-accent-box p {
  margin: 0;
}

.ost-accent-box a {
  display: inline-block;
  margin: 4px 0;
}

@media (max-width: 1180px) {
  .ost-hero,
  .ost-section-grid,
  .ost-accent-inner {
    grid-template-columns: 1fr;
  }

  .ost-hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--ost-line);
  }
}

@media (max-width: 900px) {
  .ost-grid,
  .ost-visual-grid,
  .ost-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ost-shell {
    padding: 20px 0 64px;
  }

  .ost-container {
    width: min(100% - 24px, 1320px);
  }

  .ost-hero-copy,
  .ost-side-card,
  .ost-card,
  .ost-accent-inner,
  .ost-accent-box,
  .ost-note-box {
    padding: 20px 18px;
  }

  .ost-actions {
    flex-direction: column;
  }

  .ost-btn {
    width: 100%;
  }

  .ost-section {
    padding-top: 56px;
  }

  .ost-accent-band {
    margin-top: 56px;
  }
}

/* ost item enhancement styles */
.ost-item-grid {
  margin-top: 28px;
}

.ost-item-grid .ost-card,
.ost-spec-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ost-card-media {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 247, 252, 0.96), rgba(232, 242, 248, 0.9));
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ost-card-media img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  display: block;
}

.ost-item-grid .ost-card h3 {
  margin: 0;
  font-size: 22px;
}

.ost-item-grid .ost-card p {
  margin: 0;
}

.ost-spec-grid {
  margin-top: 24px;
}

.ost-spec-card {
  min-height: 100%;
}

.ost-spec-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

/* === Расширения v1.1 === */

/* 7-колоночная сетка категорий */
.ost-grid-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 1180px) {
  .ost-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ost-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ost-grid-wide {
    grid-template-columns: 1fr;
  }
}

/* Секция доверия */
.ost-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.ost-trust-item {
  padding: 28px 24px;
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.86);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(8,38,63,0.04);
}

.ost-trust-icon {
  font-size: 10px;
  color: var(--ost-accent);
  margin-bottom: 14px;
}

.ost-trust-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ost-ink);
}

.ost-trust-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ost-ink-soft);
  line-height: 1.7;
}

.ost-trust-item a {
  color: var(--ost-accent-dark);
  text-decoration: none;
}

.ost-trust-item a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .ost-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ost-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Форма запроса */
.ost-contact-wrap {
  margin-top: 36px;
  max-width: 860px;
}

.ost-contact-form {
  padding: 36px;
  border: 1px solid var(--ost-line);
  background: rgba(255,255,255,0.90);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(8,38,63,0.05);
}

.ost-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.ost-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ost-form-field--full {
  grid-column: 1 / -1;
}

.ost-form-field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ost-ink);
}

.ost-form-field input,
.ost-form-field textarea {
  padding: 13px 16px;
  border: 1px solid var(--ost-line);
  border-radius: 12px;
  background: var(--ost-bg);
  color: var(--ost-ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.ost-form-field input:focus,
.ost-form-field textarea:focus {
  border-color: var(--ost-accent);
  box-shadow: 0 0 0 3px rgba(0,141,177,0.12);
}

.ost-form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.ost-contact-success {
  padding: 28px 32px;
  border: 1px solid rgba(0,141,177,0.22);
  background: rgba(0,141,177,0.06);
  border-radius: 20px;
  font-size: 17px;
  color: var(--ost-ink);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ost-form-grid {
    grid-template-columns: 1fr;
  }

  .ost-contact-form {
    padding: 22px 18px;
  }
}

/* === Галерея документов === */
.ost-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.ost-doc-item {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.ost-doc-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.ost-doc-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ost-doc-label {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ost-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fafafa;
}

@media (max-width: 900px) {
  .ost-docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ost-docs-grid {
    grid-template-columns: 1fr;
  }
  .ost-doc-item img {
    height: 220px;
  }
}
