/* ============================================================
   Трекпор Технолоджи — стиль light_01_fresenius (применён ко всему сайту)
   Палитра: белый фон, тёмно-синий #002967, оранжевый акцент #e7941b.
   ============================================================ */

:root {
  --color-primary: #002967;      /* основной (Fresenius navy) */
  --color-accent: #e7941b;       /* акцент (Fresenius orange) */
  --color-dark: #3f4e54;         /* основной текст */
  --color-light: #f4f6f9;        /* светлый фон секций/блоков */
  --color-white: #ffffff;
  --font-main: "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 15px; }

/* ---------- Верхняя полоса (User Area) ---------- */
.topbar { background: #eef1f5; color: var(--color-dark); font-size: 13px; border-bottom: 1px solid #e2e8ef; }
.topbar .container { display: flex; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--color-primary); font-weight: 600; }

/* ---------- Шапка (белая, корпоративная) ---------- */
.header { background: #ffffff; border-bottom: 1px solid #e2e8ef; color: var(--color-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 20px; flex-wrap: wrap; }

.logo img { max-height: 70px; width: auto; }
/* Плейсхолдер логотипа (заменить на свой файл) */
.logo-placeholder {
  display: inline-block; padding: 14px 22px; border: 2px dashed rgba(0,41,103,.5);
  color: var(--color-primary); font-weight: bold; letter-spacing: 1px;
}

/* ---------- Главное меню ---------- */
.nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: block; padding: 10px 16px; color: var(--color-dark); font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--color-primary); text-decoration: none; }
.nav a.selected { color: var(--color-primary); border-bottom-color: var(--color-accent); font-weight: 700; }

/* ---------- Баннер (head-row3) ---------- */
.banner { padding-top: 26px; padding-bottom: 30px; color: var(--color-dark); background: #ffffff; }
.banner h1 { font-size: 30px; margin-bottom: 8px; color: var(--color-primary); font-weight: 800; line-height: 1.25; }
.banner .subtitle { font-size: 17px; color: var(--color-dark); opacity: .95; margin-bottom: 14px; }
.banner p { max-width: 640px; margin-bottom: 10px; }
.lang-switch { float: right; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--color-dark); }

/* ---------- Баннер: логотипы продукции ---------- */
.banner-products { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.banner-products img { max-height: 80px; width: auto; opacity: .95; transition: transform .2s, opacity .2s; }
.banner-products a:hover img { transform: scale(1.05); opacity: 1; text-decoration: none; }

/* ---------- Контентная сетка ---------- */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Левая колонка / блоки ---------- */
.block { background: var(--color-light); border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.block-title { background: var(--color-primary); color: #fff; padding: 10px 14px; font-size: 15px; }
.block-title a { color: #fff; }
.block-content { padding: 14px; }

.left-menu { list-style: none; }
.left-menu li { border-bottom: 1px solid #dde6ee; }
.left-menu li:last-child { border-bottom: none; }
.left-menu a { display: block; padding: 8px 4px; color: var(--color-dark); }
.left-menu a.selected, .left-menu a:hover { color: var(--color-primary); font-weight: 600; text-decoration: none; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 6px; }
.search-form input[type="text"] {
  flex: 1; padding: 7px 9px; border: 1px solid #c4d2de; border-radius: 4px; font-size: 14px;
}
.btn, .search-form button {
  background: var(--color-primary); color: #fff; border: none; padding: 8px 16px;
  border-radius: 0; cursor: pointer; font-size: 14px; transition: background .2s;
}
.btn:hover, .search-form button:hover { background: var(--color-accent); }

/* ---------- Правая колонка / страницы ---------- */
.page-title { font-size: 26px; color: var(--color-primary); margin-bottom: 16px; border-bottom: 2px solid var(--color-accent); padding-bottom: 8px; font-weight: 700; }
.content-block { margin-bottom: 24px; }
.content-block h2 { font-size: 20px; margin-bottom: 10px; color: var(--color-primary); font-weight: 700; }
.content-block p { margin-bottom: 10px; }

/* ---------- Изображения в контенте ---------- */
.float-right-img { float: right; margin-left: 18px; max-width: 260px; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.float-left-img { float: left; margin-right: 18px; max-width: 260px; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.full-width-img { display: block; width: 100%; max-width: 100%; height: auto; margin-top: 12px; border-radius: 4px; }
.product-detail-img { display: block; max-width: 100%; max-height: 360px; height: auto; margin-bottom: 16px; border-radius: 6px; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.content-block::after { content: ""; display: table; clear: both; }

/* ---------- Карточки продукции ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product-card { border: 1px solid #d7e1ea; border-radius: 6px; padding: 16px; background: var(--color-white); transition: box-shadow .2s, transform .2s; text-align: center; }
.product-card:hover { box-shadow: 0 4px 14px rgba(0,41,103,.15); transform: translateY(-3px); }
.product-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--color-primary); }
.product-card img { max-width: 100%; max-height: 140px; height: auto; border-radius: 4px; margin-bottom: 12px; }
.product-card .img-placeholder {
  height: 140px; background: repeating-linear-gradient(45deg,#eef3f8,#eef3f8 12px,#e3ebf3 12px,#e3ebf3 24px);
  border-radius: 4px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: #7d93a6; font-size: 13px;
}

/* ---------- Таблица характеристик ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.spec-table th, .spec-table td { border: 1px solid #d7e1ea; padding: 9px 12px; text-align: left; font-size: 14px; }
.spec-table th { background: var(--color-light); width: 45%; color: var(--color-primary); }

/* ---------- Форма обратной связи ---------- */
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c4d2de; border-radius: 4px; margin-bottom: 14px; font-size: 14px; font-family: inherit;
}

/* ---------- Контакты / реквизиты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.contact-item { background: var(--color-light); border-radius: 6px; padding: 14px 16px; }
.contact-item h3 { font-size: 15px; color: var(--color-primary); margin-bottom: 6px; }

/* ---------- Цитаты (Прямая речь) ---------- */
.quote-block {
  background: var(--color-light); border-left: 4px solid var(--color-accent);
  padding: 18px 20px; margin: 16px 0; font-style: italic; font-size: 17px; color: var(--color-dark);
  border-radius: 0 6px 6px 0;
}
.quote-block cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--color-primary); }

/* ---------- Карточки консультантов ---------- */
.consultant-card {
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px;
  background: var(--color-light); border-radius: 6px; padding: 14px;
}
.consultant-card img { max-width: 90px; width: 90px; height: auto; border-radius: 4px; flex-shrink: 0; }
.consultant-card h3 { font-size: 16px; color: var(--color-primary); margin-bottom: 4px; }
.consultant-card p { font-size: 14px; margin: 0; }

/* ---------- Списки документов (PDF) ---------- */
.doc-list { list-style: none; padding-left: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px dashed #dde6ee; font-size: 14px; }
.doc-list li:last-child { border-bottom: none; }

/* ---------- Новости / пресса ---------- */
.news-list { list-style: none; padding-left: 0; }
.news-item { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #dde6ee; }
.news-item:last-child { border-bottom: none; }
.news-date { display: inline-block; background: var(--color-accent); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-source { display: block; color: #8a9ba8; font-size: 12px; margin-top: 4px; }

/* ---------- Видео ---------- */
.video-embed { margin: 16px 0; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
.video-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: none; }

/* ---------- Ссылка "назад" ---------- */
.back-link { display: inline-block; margin-top: 24px; padding: 8px 16px; background: var(--color-light); color: var(--color-primary); border-radius: 0; font-weight: 500; }
.back-link:hover { background: var(--color-accent); color: #fff; text-decoration: none; }

/* ---------- Ссылки-подсказки в контенте ---------- */
.links-indent { margin-top: 12px; padding-left: 8px; }
.links { list-style: none; padding-left: 0; }
.links li { padding: 4px 0; }


/* ---------- Карточки цитат (Прямая речь) ---------- */
.quote-card { position: relative; padding-left: 100px; min-height: 90px; }
.quote-photo {
  position: absolute; left: 0; top: 0;
  width: 85px; height: 85px; object-fit: cover;
  border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.quote-card h3 { font-size: 17px; color: var(--color-primary); margin-bottom: 8px; }



/* ---------- Поиск по сайту ---------- */
.search-form { display: flex; gap: 6px; }
.search-form input[type="text"] {
  flex: 1; padding: 7px 10px; border: 1px solid #c4d2de; border-radius: 4px; font-size: 13px;
}
.search-form button {
  padding: 7px 14px; background: var(--color-primary); color: #fff; border: none; border-radius: 0;
  cursor: pointer; font-size: 13px; transition: background .2s;
}
.search-form button:hover { background: var(--color-accent); }

#search-results { margin-top: 12px; padding: 10px; background: #f5f8fb; border-radius: 6px; font-size: 13px; }
#search-results h4 { margin-bottom: 8px; color: var(--color-primary); font-size: 14px; }
.search-list { list-style: none; padding: 0; margin: 0; }
.search-list li { margin-bottom: 6px; }
.search-list a { color: var(--color-primary); text-decoration: none; }
.search-list a:hover { text-decoration: underline; }
.no-results { color: #8a9ba8; font-style: italic; }


/* ---------- Подвал (светлый, корпоративный) ---------- */
.footer { background: #f4f6f9; border-top: 1px solid #e2e8ef; color: var(--color-dark); padding-top: 24px; padding-bottom: 24px; font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--color-primary); }

/* ---------- Утилиты ---------- */
.readmore::after { content: " →"; color: var(--color-accent); font-weight: bold; }
.mt-16 { margin-top: 16px; }
.hidden { display: none; }

/* ---------- Фиксы аудита дизайна (2026-09-22) ---------- */
/* h3 в контенте — единый стиль заголовков секций */
.content-block h3 { font-size: 18px; color: var(--color-primary); margin-top: 18px; margin-bottom: 8px; }
.content-block h3:first-child { margin-top: 0; }

/* Таблица метаданных авторефератов (перенос из inline) */
.meta-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.meta-table td { border: 1px solid #c9d6e2; padding: 6px 10px; vertical-align: top; }
.meta-table td:first-child { font-weight: bold; white-space: nowrap; background: var(--color-light); color: var(--color-primary); width: 1%; }

/* Подпункты левого меню (без inline-хаков) */
.left-menu li.sub a { padding-left: 24px; }

/* Карточки списка авторефератов (без отступа под фото) */
.abs-list-item { background: var(--color-light); border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.abs-list-item h3 { font-size: 16px; color: var(--color-primary); margin-bottom: 6px; }
.abs-list-item h3 a { color: var(--color-primary); }
.abs-list-item p { margin-bottom: 4px; }
.abs-meta { color: #6b7c8a !important; font-size: 13px !important; margin-top: 6px; }

/* Список направлений (company/index) */
.directions-list { list-style: none; padding-left: 0; margin-top: 12px; }
.directions-list li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid #dde6ee; }
.directions-list li:last-child { border-bottom: none; }
.directions-list li::before { content: "→"; position: absolute; left: 4px; color: var(--color-accent); font-weight: bold; }


/* ---------- Фиксы выравнивания (сессия 12) ---------- */
.partner-logo { float: left; margin: 0 20px 10px 0; max-width: 180px; width: auto; height: auto; }
.consultant-photo { display: block; max-width: 320px; width: 100%; height: auto; margin-bottom: 16px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.abs-cover { float: right; max-width: 200px; width: 100%; height: auto; margin-left: 16px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.center { text-align: center; }
.partner-inline { display: inline-block; max-width: 220px; width: auto; height: auto; vertical-align: middle; }


/* ---------- Фиксы выравнивания (сессия 14) ---------- */
#right-col p, #right-col div { text-align: justify; hyphens: auto; }
#right-col ul, #right-col ol, #right-col li { text-align: left; }
#right-col .page-title { text-align: left; }
