/* ============================================================
   VIRONEX PHARMACEUTICALS — ОСНОВНОЙ ФАЙЛ СТИЛЕЙ
   ============================================================
   Все стили разделены по блокам, чтобы их было удобно менять.

   Быстрые настройки:
   1. Цвета сайта — раздел 01.
   2. Фон главной страницы — переменная --hero-image.
   3. Шапка и меню — раздел 04.
   4. Главный экран — раздел 05.
   5. Мобильная версия — разделы 15 и 16.
   ============================================================ */


/* ============================================================
   01. ОСНОВНЫЕ ЦВЕТА И НАСТРОЙКИ
   ============================================================ */

:root {
  /* Основная синяя палитра */
  --blue-950: #041334;
  --blue-900: #08235d;
  --blue-800: #0b3182;
  --blue-700: #1047b5;
  --blue-600: #1a5dda;
  --blue-500: #2b74f3;
  --blue-200: #cfe0ff;
  --blue-100: #eaf2ff;

  /* Нейтральные цвета */
  --ice: #f5f9ff;
  --white: #ffffff;
  --text: #0a1735;
  --muted: #63708a;
  --line: #dbe6f7;

  /* Служебные цвета */
  --success: #16885a;
  --danger: #c83245;

  /* Размеры и эффекты */
  --shadow: 0 24px 65px rgba(7, 35, 93, 0.14);
  --radius: 18px;
  --max: 1180px;

  /* Фоновое изображение главной страницы */
  --hero-image: url("../img/заднийфон.png");
}


/* ============================================================
   02. СБРОС СТИЛЕЙ И ОБЩИЕ НАСТРОЙКИ
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}


/* ============================================================
   03. ВЕРХНЯЯ ИНФОРМАЦИОННАЯ ПОЛОСА
   ============================================================ */

.topbar {
  background: linear-gradient(90deg, var(--blue-950), var(--blue-700));
  color: #dce8ff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 34px;
}


/* ============================================================
   04. ШАПКА, ЛОГОТИП И ГЛАВНОЕ МЕНЮ
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 71, 181, 0.12);
  box-shadow: 0 10px 35px rgba(4, 19, 52, 0.05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 112px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 150px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a,
.nav button {
  padding: 12px 0;
  color: var(--blue-900);
  background: none;
  border: 0;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.nav a.active {
  color: var(--blue-500);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 44px;
  left: -20px;
  min-width: 220px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: var(--blue-100);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--blue-900);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}


/* ============================================================
   05. ГЛАВНЫЙ ЭКРАН С ФОНОВОЙ ЛАБОРАТОРИЕЙ
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 680px;
  overflow: hidden;

  /* Затемнение слева делает текст хорошо читаемым */
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(245, 249, 255, 0.94) 48%,
      rgba(234, 242, 255, 0.4) 100%
    ),
    var(--hero-image);

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -80px;
  width: 520px;
  height: 520px;
  background: url("../img/vironex-symbol.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 85px 0;
}

.hero-brand-logo {
  width: 230px;
  margin-bottom: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500));
}

.hero h1 {
  margin: 20px 0 28px;
  color: var(--blue-950);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hero p {
  max-width: 660px;
  color: #53627d;
  font-size: 20px;
}


/* ============================================================
   06. КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.22s;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 12px 28px rgba(16, 71, 181, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(16, 71, 181, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--blue-800);
  background: #ffffff;
  border-color: var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
}


/* ============================================================
   07. ОБЩИЕ СЕКЦИИ И БЛОК ABOUT
   ============================================================ */

.section {
  padding: 100px 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.section-dark::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  background: url("../img/vironex-symbol.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.section-soft {
  background: var(--ice);
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
}

.section-dark .section-head p {
  color: #c8d6f2;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.visual-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--blue-100);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(16, 71, 181, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.content-title {
  color: var(--blue-950);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-dark .content-title {
  color: #ffffff;
}

.lead {
  color: #5c6980;
  font-size: 19px;
}

.section-dark .lead {
  color: #d0ddf5;
}

.signature {
  margin-top: 30px;
  color: var(--blue-700);
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: italic;
}


/* ============================================================
   08. ЦИФРЫ И ПРЕИМУЩЕСТВА
   ============================================================ */

.metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.metric {
  padding: 30px 22px;
  background: rgba(255, 255, 255, 0.055);
}

.metric strong {
  display: block;
  color: #a9c8ff;
  font-size: 29px;
}

.metric span {
  color: #d7e3f8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ============================================================
   09. КАРТОЧКИ И КАТАЛОГ ПРОДУКЦИИ
   ============================================================ */

.feature-grid,
.product-grid,
.stack-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.product-card,
.stack-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: 0.25s;
}

.feature-card:hover,
.product-card:hover,
.stack-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.feature-card {
  padding: 34px;
}

.feature-card .num {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.feature-card h3 {
  margin: 26px 0 12px;
  color: var(--blue-950);
  font-size: 25px;
  text-transform: uppercase;
}

.feature-card p,
.product-card p {
  color: var(--muted);
}

.product-card {
  color: var(--text);
}

.product-card img,
.stack-card img {
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: var(--blue-100);
}

.product-body,
.stack-body {
  padding: 24px;
}

.product-type {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-card h3,
.stack-card h3 {
  margin: 8px 0 10px;
  color: var(--blue-950);
  font-size: 24px;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  padding: 6px 9px;
  color: var(--blue-800);
  font-size: 11px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: 99px;
}


/* ============================================================
   10. ЗАГОЛОВОК ВНУТРЕННИХ СТРАНИЦ
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 78px;
  color: var(--blue-950);
  background: linear-gradient(110deg, #ffffff 0%, var(--blue-100) 65%, #dce9ff 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7%;
  width: 270px;
  height: 270px;
  background: url("../img/vironex-symbol.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
  transform: translateY(-50%);
}

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

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 700px;
  color: #586986;
}

.breadcrumbs {
  color: #647491;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ============================================================
   11. ПРОВЕРКА КОДА, ФОРМЫ И КОНТАКТЫ
   ============================================================ */

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 30px;
}

.auth-panel {
  padding: 48px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue-950), var(--blue-800));
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.auth-panel .field input,
.auth-panel .field textarea {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-panel .field input::placeholder,
.auth-panel .field textarea::placeholder {
  color: #c6d4ef;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 116, 243, 0.12);
}

.form-message {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
}

.form-message.show {
  display: block;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  border-radius: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.contact-card {
  padding: 40px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue-950), var(--blue-800));
  border-radius: 20px;
  box-shadow: var(--shadow);
}


/* ============================================================
   12. ПОДВАЛ САЙТА
   ============================================================ */

.footer {
  padding: 72px 0 24px;
  color: #ffffff;
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer h4 {
  color: #a9c8ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 9px 0;
  color: #c7d5ef;
  font-size: 14px;
}

.footer a:hover {
  color: #ffffff;
}

.footer-note {
  margin-top: 42px;
  padding-top: 24px;
  color: #96a8ca;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo {
  width: 220px;
  margin-bottom: 20px;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
}

.footer .disclaimer {
  color: #b8c7e2;
}


/* ============================================================
   13. ВСПЛЫВАЮЩИЕ ОКНА
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 19, 52, 0.76);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  color: var(--text);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-dark {
  color: var(--text);
  background: #ffffff;
}

.modal-body {
  padding: 40px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--blue-900);
  font-size: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 22px;
}

.version-card {
  display: block;
  padding: 24px;
  text-align: center;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.version-card:hover {
  color: var(--blue-700);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.disclaimer {
  color: var(--muted);
  font-size: 14px;
}

.modal .disclaimer {
  color: var(--muted);
}

.modal .disclaimer strong {
  color: var(--blue-950);
}


/* ============================================================
   14. АДМИНИСТРАТИВНАЯ ПАНЕЛЬ
   ============================================================ */

.table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 12px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--blue-900);
  background: var(--blue-100);
}

.admin-layout {
  min-height: 100vh;
  padding: 50px 0;
  background: linear-gradient(135deg, var(--ice), #ffffff);
}

.admin-logo {
  width: 210px;
  margin: 0 0 30px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-btn {
  padding: 7px 10px;
  color: var(--blue-800);
  background: #ffffff;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  cursor: pointer;
}

.small-btn:hover {
  background: var(--blue-100);
}

.notice {
  margin-bottom: 24px;
  padding: 16px;
  background: #edf4ff;
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
}

.hidden {
  display: none !important;
}


/* ============================================================
   15. АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ — ДО 900 PX
   ============================================================ */

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-wrap {
    min-height: 94px;
  }

  .brand {
    width: 125px;
  }

  .nav {
    position: fixed;
    top: 128px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 30px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .split,
  .auth-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .product-grid,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 590px;
  }

  .section {
    padding: 74px 0;
  }

  .visual-card {
    min-height: 430px;
  }

  .page-hero::after {
    right: -80px;
  }
}


/* ============================================================
   16. АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ — ДО 600 PX
   ============================================================ */

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .topbar .container {
    justify-content: center;
    height: 42px;
    text-align: center;
  }

  .nav-wrap {
    min-height: 82px;
  }

  .brand {
    width: 105px;
  }

  .nav {
    top: 124px;
  }

  .hero-copy {
    padding: 66px 0;
  }

  .hero-brand-logo {
    width: 180px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero::after {
    right: -170px;
    width: 350px;
    height: 350px;
  }

  .feature-grid,
  .product-grid,
  .stack-grid,
  .footer-grid,
  .form-row,
  .version-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .page-hero {
    padding: 88px 0 54px;
  }

  .page-hero h1 {
    font-size: 47px;
  }

  .page-hero::after {
    right: -100px;
    width: 220px;
    height: 220px;
  }

  .modal-body {
    padding: 34px 22px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 190px;
  }
}
