/*
Theme Name: NeuroBioTech Media
Theme URI: https://neurobiotech.ru/
Template: reboot
Author: NeuroBioTech
Description: Современная дочерняя тема для образовательного портала о нутрициологии, здоровье и биотехнологиях.
Version: 1.0.0
Text Domain: neurobiotech
*/

:root {
  --nbt-ink: #102033;
  --nbt-muted: #667085;
  --nbt-line: #d9e4ea;
  --nbt-soft: #f4faf8;
  --nbt-blue: #0b5cad;
  --nbt-teal: #13a89e;
  --nbt-green: #4a9f43;
  --nbt-sun: #f2b84b;
  --nbt-card: #ffffff;
  --nbt-shadow: 0 16px 45px rgba(16, 32, 51, .08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7fbfb;
  color: var(--nbt-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--nbt-blue);
}

img {
  max-width: 100%;
  height: auto;
}

.site-content.fixed,
.main-navigation.fixed,
.site-header.fixed {
  max-width: none;
}

.nbt-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nbt-topbar {
  background: #eef8f5;
  color: #25524d;
  font-size: 14px;
}

.nbt-topbar .nbt-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}

.nbt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(13, 92, 173, .12);
  backdrop-filter: blur(16px);
}

.nbt-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.nbt-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--nbt-ink);
  text-decoration: none;
  min-width: 210px;
}

.nbt-brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nbt-blue), var(--nbt-teal));
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 168, 158, .24);
}

.nbt-brand__name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.nbt-brand__tagline {
  display: block;
  margin-top: 2px;
  color: var(--nbt-muted);
  font-size: 12px;
  line-height: 1.2;
}

.nbt-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbt-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #24364a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nbt-nav a:hover,
.nbt-nav .current-menu-item > a {
  background: #edf7ff;
  color: var(--nbt-blue);
}

.nbt-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nbt-search-toggle,
.nbt-menu-toggle,
.nbt-theme-toggle,
.nbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  background: #fff;
  color: var(--nbt-ink);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nbt-btn {
  gap: 9px;
  padding: 0 16px;
  border-color: transparent;
  background: var(--nbt-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.nbt-btn:hover,
.nbt-search-toggle:hover,
.nbt-menu-toggle:hover,
.nbt-theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--nbt-shadow);
}

.nbt-menu-toggle {
  display: none;
}

.nbt-search-panel {
  display: none;
  border-top: 1px solid var(--nbt-line);
  background: #fff;
}

.nbt-search-panel.is-open {
  display: block;
}

.nbt-search-panel form {
  display: flex;
  gap: 10px;
  padding: 16px 0;
}

.nbt-search-panel input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  padding: 0 16px;
}

.nbt-section {
  padding: 56px 0;
}

.nbt-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11, 92, 173, .92), rgba(19, 168, 158, .84)),
    url("assets/img/neurobiotech-hero.svg") center/cover no-repeat;
  color: #fff;
}

.nbt-hero .nbt-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 46px 0 66px;
}

.nbt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.nbt-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.nbt-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.9);
  font-size: 20px;
}

.nbt-hero__search {
  display: flex;
  gap: 10px;
  max-width: 720px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(10, 48, 76, .22);
}

.nbt-hero__search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  padding: 0 14px;
  font-size: 16px;
}

.nbt-hero__search button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--nbt-green);
  color: #fff;
  font-weight: 800;
}

.nbt-hero__panel {
  background: rgba(255,255,255,.95);
  color: var(--nbt-ink);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--nbt-shadow);
}

.nbt-hero__panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.nbt-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbt-checklist li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid #eef2f4;
}

.nbt-checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6f7ef;
  color: var(--nbt-green);
  font-weight: 900;
}

.nbt-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.nbt-section__head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.nbt-section__head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--nbt-muted);
}

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

.nbt-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nbt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  background: var(--nbt-card);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(16, 32, 51, .05);
}

.nbt-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.nbt-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #edf7ff;
  color: var(--nbt-blue);
}

.nbt-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.nbt-card p {
  margin: 0 0 16px;
  color: var(--nbt-muted);
}

.nbt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--nbt-muted);
  font-size: 13px;
}

.nbt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: #eef8f5;
  padding: 0 10px;
  color: #28665e;
  font-size: 13px;
  font-weight: 800;
}

.nbt-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.nbt-article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 8px 26px rgba(16, 32, 51, .05);
}

.nbt-breadcrumbs {
  margin-bottom: 18px;
  color: var(--nbt-muted);
  font-size: 14px;
}

.nbt-breadcrumbs a {
  color: var(--nbt-muted);
}

.nbt-article h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.nbt-article__lead {
  color: #405064;
  font-size: 20px;
  line-height: 1.58;
}

.nbt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.nbt-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--nbt-muted);
  font-size: 13px;
}

.nbt-article__image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf4f7;
}

.nbt-article__content {
  font-size: 18px;
  line-height: 1.78;
}

.nbt-article__content h2,
.nbt-article__content h3 {
  scroll-margin-top: 110px;
}

.nbt-article__content h2 {
  margin-top: 38px;
  font-size: 30px;
}

.nbt-article__content h3 {
  margin-top: 28px;
  font-size: 23px;
}

.nbt-article__content blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--nbt-teal);
  background: #f1fbf9;
  padding: 18px 22px;
  color: #29404a;
  font-weight: 700;
}

.nbt-note,
.nbt-disclaimer,
.nbt-faq,
.nbt-author-box {
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 20px;
}

.nbt-disclaimer {
  margin: 24px 0;
  background: #fff8e8;
  border-color: #f1d495;
  color: #5d4b20;
}

.nbt-toc {
  position: sticky;
  top: 110px;
  border: 1px solid var(--nbt-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(16, 32, 51, .05);
}

.nbt-toc__title {
  margin-bottom: 10px;
  font-weight: 900;
}

.nbt-toc a {
  display: block;
  padding: 7px 0;
  color: #405064;
  font-size: 14px;
  text-decoration: none;
}

.nbt-toc a:hover {
  color: var(--nbt-blue);
}

.nbt-toc__sub {
  padding-left: 14px !important;
  font-size: 13px !important;
}

.nbt-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nbt-blue), var(--nbt-teal));
}

.nbt-related {
  margin-top: 34px;
}

.nbt-footer {
  margin-top: 58px;
  background: #102033;
  color: #d8e5ea;
}

.nbt-footer a {
  color: #fff;
  text-decoration: none;
}

.nbt-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0;
}

.nbt-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.nbt-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbt-footer li {
  margin: 8px 0;
}

.nbt-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  color: #aebdc7;
  font-size: 14px;
}

.nbt-dark body,
body.nbt-dark {
  background: #0b1420;
  color: #e6eef4;
}

body.nbt-dark .nbt-header,
body.nbt-dark .nbt-card,
body.nbt-dark .nbt-article,
body.nbt-dark .nbt-toc,
body.nbt-dark .nbt-search-panel {
  background: #101d2b;
  color: #e6eef4;
  border-color: #23364b;
}

body.nbt-dark .nbt-nav a,
body.nbt-dark .nbt-brand,
body.nbt-dark .nbt-search-toggle,
body.nbt-dark .nbt-menu-toggle,
body.nbt-dark .nbt-theme-toggle {
  color: #e6eef4;
  background: #101d2b;
  border-color: #23364b;
}

@media (max-width: 1024px) {
  .nbt-header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .nbt-menu-toggle {
    display: inline-flex;
  }

  .nbt-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .nbt-nav.is-open {
    display: block;
  }

  .nbt-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 16px;
  }

  .nbt-header__actions {
    justify-content: end;
  }

  .nbt-hero .nbt-wrap,
  .nbt-article-layout {
    grid-template-columns: 1fr;
  }

  .nbt-toc {
    position: static;
    order: -1;
  }

  .nbt-grid,
  .nbt-grid--4,
  .nbt-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .nbt-topbar {
    display: none;
  }

  .nbt-wrap {
    width: min(100% - 24px, 1180px);
  }

  .nbt-header__inner {
    min-height: 66px;
    gap: 10px;
  }

  .nbt-brand {
    min-width: 0;
  }

  .nbt-brand__tagline,
  .nbt-btn span {
    display: none;
  }

  .nbt-nav ul,
  .nbt-grid,
  .nbt-grid--4,
  .nbt-footer__grid {
    grid-template-columns: 1fr;
  }

  .nbt-hero .nbt-wrap {
    min-height: auto;
    padding: 34px 0 42px;
  }

  .nbt-hero h1 {
    font-size: 34px;
  }

  .nbt-hero p,
  .nbt-article__lead {
    font-size: 18px;
  }

  .nbt-hero__search {
    flex-direction: column;
  }

  .nbt-section {
    padding: 38px 0;
  }

  .nbt-section__head {
    display: block;
  }

  .nbt-section__head h2 {
    font-size: 28px;
  }

  .nbt-article {
    padding: 22px 16px;
  }

  .nbt-article h1 {
    font-size: 31px;
  }
}
