/* ══════════════════════════════════════════
   Страница «О компании»
   Переиспользует токены и компоненты main.css
══════════════════════════════════════════ */

/* Страница только на русском */
.page-template-page-about .lang-toggle,
.page-template-page-about .lang-dropdown { display: none; }

.page-template-page-about section { padding: 100px 0; }

/* ── HERO ── */
.about-page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px !important;
  overflow: hidden;
}

.about-page-hero .container { position: relative; z-index: 2; }

.about-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 15ch;
}

.about-page-lead {
  max-width: 720px;
  margin-top: 8px;
  display: grid;
  gap: 18px;
}

.about-page-lead p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text2);
}

/* ── ИНТЕЛЛЕКТУАЛЬНАЯ СОБСТВЕННОСТЬ ── */
.about-ip { background: var(--bg2); }

.about-ip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.about-ip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.about-ip-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.about-ip-media {
  position: relative;
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--border);
  max-height: 380px;
  overflow: hidden;
}

.about-ip-media img {
  width: 100%;
  display: block;
  /* Свидетельство — вертикальный документ: показываем верх с гербом и номером */
  object-fit: cover;
  object-position: top center;
  max-height: 380px;
}

.about-ip-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  opacity: 0;
  transition: opacity 0.25s;
}

.about-ip-media:hover .about-ip-zoom,
.about-ip-media:focus-visible .about-ip-zoom { opacity: 1; }

.about-ip-body { padding: 28px 30px 30px; flex: 1; }

.about-ip-kind {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

.about-ip-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-ip-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.7; }

.about-ip-facts {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.about-ip-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
}

.about-ip-facts dt { color: var(--text3); }
.about-ip-facts dd { color: var(--text); font-weight: 500; text-align: right; }

/* ── РЕКВИЗИТЫ ── */
.about-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.about-table th,
.about-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.about-table tr:last-child th,
.about-table tr:last-child td { border-bottom: none; }

.about-table th {
  font-weight: 500;
  color: var(--text3);
  width: 34%;
  white-space: nowrap;
}

.about-table td { color: var(--text); line-height: 1.6; }

/* ── ЛАЙТБОКС ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-dialog {
  position: relative;
  max-width: min(860px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox-dialog { transform: scale(1); }

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.lightbox-caption {
  font-size: 0.84rem;
  color: var(--text2);
  text-align: center;
  max-width: 60ch;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-close:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

@media (max-width: 640px) {
  .lightbox { padding: 56px 16px 24px; }
  .lightbox-close { top: -48px; right: 0; }
  .lightbox-img { max-height: calc(100vh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-dialog { transition: none; }
  .lightbox-close:hover { transform: none; }
}

/* ── SCROLL REVEAL ── */
.page-template-page-about .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-template-page-about .fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .page-template-page-about .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-template-page-about section { padding: 72px 0; }
  .about-page-hero { padding: calc(var(--nav-h) + 48px) 0 56px !important; }

  .about-ip-grid { grid-template-columns: 1fr; }
  .about-ip-media, .about-ip-media img { max-height: 320px; }

  .about-table th, .about-table td { padding: 14px 18px; }
  .about-table th { width: auto; white-space: normal; }
}

@media (max-width: 540px) {
  .about-ip-body { padding: 24px 20px; }

  /* Узкий экран: подпись и значение в столбик */
  .about-table th, .about-table td { display: block; width: auto; }
  .about-table th { padding-bottom: 4px; border-bottom: none; font-size: 0.8rem; }
  .about-table td { padding-top: 0; }

  .about-ip-facts > div { flex-direction: column; gap: 2px; }
  .about-ip-facts dd { text-align: left; }

}
